Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a2261c45
authored
Sep 22, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改代码
1 parent
558c8b98
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
125 additions
and
33 deletions
src/api/modules/seckillActivity.js
src/components/glsx-combi-form/index.vue
src/views/orderManage/index.vue
src/views/seckillActivity/editCrowdFund.vue
src/api/modules/seckillActivity.js
View file @
a2261c4
...
@@ -137,5 +137,15 @@ const getCrowdSharedApi = params => {
...
@@ -137,5 +137,15 @@ const getCrowdSharedApi = params => {
sign
:
true
sign
:
true
})
})
}
}
/**直播间下拉列表 */
const
getLiveListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.livebroadcast.dropdown.list'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getActivityPageApi
,
getCrowdfundListApi
,
exportCrowdfundApi
,
getBrowseListApi
,
exportBrowseApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
,
getSharedApi
,
addOrUpdateActivityApi
,
getActivityDetailApi
,
getCrowdSharedApi
}
export
default
{
getActivityPageApi
,
getCrowdfundListApi
,
exportCrowdfundApi
,
getBrowseListApi
,
exportBrowseApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
,
getSharedApi
,
addOrUpdateActivityApi
,
getActivityDetailApi
,
getCrowdSharedApi
,
getLiveListApi
}
src/components/glsx-combi-form/index.vue
View file @
a2261c4
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
v-model=
"formObj[item.name]"
v-bind=
"item.attrs ? item.attrs :
{}" v-on="item.listeners ? item.listeners : {}" :type="item.dateType || 'daterange'" :disabled="item.isDisabled" :value-format="item.valueFormat" :style="{ width: item.width || defaultWidth }" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="item.customPickerOptions || pickerOption[item.pickerOptions]">
</el-date-picker>
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
v-model=
"formObj[item.name]"
v-bind=
"item.attrs ? item.attrs :
{}" v-on="item.listeners ? item.listeners : {}" :type="item.dateType || 'daterange'" :disabled="item.isDisabled" :value-format="item.valueFormat" :style="{ width: item.width || defaultWidth }" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="item.customPickerOptions || pickerOption[item.pickerOptions]">
</el-date-picker>
<template
v-else-if=
"item.type === 'upload'"
>
<template
v-else-if=
"item.type === 'upload'"
>
<p
class=
"photo-top-tips"
>
{{
item
.
topTips
}}
</p>
<p
class=
"photo-top-tips"
>
{{
item
.
topTips
}}
</p>
<slot
:name=
"item.prefixSlot"
:scope=
"item"
></slot>
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width || defaultWidth }">
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width || defaultWidth }">
<div
v-if=
"Array.isArray(formObj[item.name]) ? formObj[item.name].length
< item
.
maxPhotoNum
:
!
formObj
[
item
.
name
]"
class=
"activity-img img-w-h"
:style=
"item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''"
>
<div
v-if=
"Array.isArray(formObj[item.name]) ? formObj[item.name].length
< item
.
maxPhotoNum
:
!
formObj
[
item
.
name
]"
class=
"activity-img img-w-h"
:style=
"item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''"
>
<div
class=
"add"
:style=
"item.uploadStyle && item.uploadStyle.hasOwnProperty('addStyle') ? item.uploadStyle.addStyle : ''"
>
+
</div>
<div
class=
"add"
:style=
"item.uploadStyle && item.uploadStyle.hasOwnProperty('addStyle') ? item.uploadStyle.addStyle : ''"
>
+
</div>
...
...
src/views/orderManage/index.vue
View file @
a2261c4
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
</span>
</span>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"sticky"
>
<GLCombiForm
<GLCombiForm
ref=
"showSearch"
ref=
"showSearch"
:rowNumber=
"1"
:rowNumber=
"1"
...
@@ -24,7 +25,6 @@
...
@@ -24,7 +25,6 @@
:formData=
"searchFormData"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
@
handleRest=
"handleReset"
class=
"sticky"
></GLCombiForm>
></GLCombiForm>
<div
class=
"flex"
>
<div
class=
"flex"
>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
@
click=
"handleExport"
@
click=
"handleExport"
>
导出
</el-button>
>
导出
</el-button>
</div>
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<div
class=
"order-manage-table"
>
<div
class=
"order-manage-table"
>
<GLTable
<GLTable
...
@@ -1158,7 +1158,7 @@ export default {
...
@@ -1158,7 +1158,7 @@ export default {
.order-manage
{
.order-manage
{
.container
{
.container
{
padding
:
20px
14px
;
padding
:
20px
14px
;
.sticky{
.sticky
{
position
:
sticky
;
position
:
sticky
;
top
:
20px
;
top
:
20px
;
z-index
:
99
;
z-index
:
99
;
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
a2261c4
...
@@ -435,10 +435,10 @@
...
@@ -435,10 +435,10 @@
新增表单
新增表单
</el-button>
</el-button>
</div>
</div>
<div
slot=
"
tx
"
>
<div
slot=
"
showAvatarNicknameFlag
"
>
<el-radio-group
v-model=
"editForm.
tx
"
>
<el-radio-group
v-model=
"editForm.
showAvatarNicknameFlag
"
>
<el-radio
:label=
"
0
"
>
隐藏
</el-radio>
<el-radio
:label=
"
1
"
>
隐藏
</el-radio>
<el-radio
:label=
"
1
"
>
显示
</el-radio>
<el-radio
:label=
"
2
"
>
显示
</el-radio>
</el-radio-group>
</el-radio-group>
</div>
</div>
<!-- 服务说明 -->
<!-- 服务说明 -->
...
@@ -654,11 +654,17 @@
...
@@ -654,11 +654,17 @@
:formRules=
"liveEditRule"
:formRules=
"liveEditRule"
>
>
<div
<div
slot=
"
liveQrImg
"
slot=
"
groupQrCode
"
class=
"edit-tips m-t-8"
class=
"edit-tips m-t-8"
>
建议尺寸:284*284
</div>
>
建议尺寸:284*284
</div>
<div
<div
slot=
"liveGif"
slot=
"defaultImg"
class=
"default-live-img"
>
<img
:src=
"defaultFloatingMaskDiagram"
/>
</div>
<div
slot=
"floatingMaskDiagram"
class=
"edit-tips m-t-8"
class=
"edit-tips m-t-8"
>
建议格式:GIF,尺寸228*346
</div>
>
建议格式:GIF,尺寸228*346
</div>
</glsx-combi-form>
</glsx-combi-form>
...
@@ -806,19 +812,19 @@ export default {
...
@@ -806,19 +812,19 @@ export default {
// 1-否,2-是
// 1-否,2-是
selectCarNumberFlag
:
2
,
selectCarNumberFlag
:
2
,
selectVehicleTypeFlag
:
2
,
selectVehicleTypeFlag
:
2
,
selectPhoneFlag
:
2
,
selectPhone
Number
Flag
:
2
,
formDescribeCheck
:
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhoneFlag'
],
formDescribeCheck
:
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhone
Number
Flag'
],
activityServices
:
[],
activityServices
:
[],
activityCommoditys
:
[],
activityCommoditys
:
[],
activityExperienceDTOs
:
[],
activityExperienceDTOs
:
[],
// formDescribeFirst: '',
// formDescribeFirst: '',
// formDescribeSecond: '',
// formDescribeSecond: '',
// formDescribeThird: '',
// formDescribeThird: '',
tx
:
0
,
showAvatarNicknameFlag
:
1
,
liveFlag
:
false
,
liveFlag
:
false
,
live
QrImg
:
''
,
live
BroadcastRoomId
:
''
,
liveNam
e
:
''
,
groupQrCod
e
:
''
,
liveGif
:
'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif
'
floatingMaskDiagram
:
'
'
},
},
//商品列表
//商品列表
tableParams
:
{
tableParams
:
{
...
@@ -903,7 +909,7 @@ export default {
...
@@ -903,7 +909,7 @@ export default {
},
},
{
{
label
:
'手机号'
,
label
:
'手机号'
,
value
:
'selectPhoneFlag'
value
:
'selectPhone
Number
Flag'
}
}
],
],
describeNum
:
2
,
describeNum
:
2
,
...
@@ -1338,8 +1344,8 @@ export default {
...
@@ -1338,8 +1344,8 @@ export default {
},
},
{
{
label
:
'头像昵称'
,
label
:
'头像昵称'
,
name
:
'
tx
'
,
name
:
'
showAvatarNicknameFlag
'
,
addHtml
:
'
tx
'
addHtml
:
'
showAvatarNicknameFlag
'
},
},
{
{
label
:
''
,
label
:
''
,
...
@@ -1367,19 +1373,22 @@ export default {
...
@@ -1367,19 +1373,22 @@ export default {
liveEditFormData
:
[
liveEditFormData
:
[
{
{
label
:
'选择直播'
,
label
:
'选择直播'
,
name
:
'live
Name
'
,
name
:
'live
BroadcastRoomId
'
,
type
:
'select'
,
type
:
'select'
,
tips
:
'暂无直播,请到运营平台直播间管理创建新的直播'
,
tips
:
'暂无直播,请到运营平台直播间管理创建新的直播'
,
maxlength
:
30
maxlength
:
30
,
optionLabel
:
'label'
,
optionId
:
'value'
,
optionList
:
[]
},
},
{
{
label
:
'加群二维码'
,
label
:
'加群二维码'
,
name
:
'
liveQrImg
'
,
name
:
'
groupQrCode
'
,
type
:
'upload'
,
type
:
'upload'
,
width
:
'320px'
,
width
:
'320px'
,
limitSize
:
10
,
limitSize
:
10
,
maxPhotoNum
:
1
,
maxPhotoNum
:
1
,
suffixSlot
:
'
liveQrImg
'
,
suffixSlot
:
'
groupQrCode
'
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
...
@@ -1397,13 +1406,14 @@ export default {
...
@@ -1397,13 +1406,14 @@ export default {
},
},
{
{
label
:
'运营浮窗动图'
,
label
:
'运营浮窗动图'
,
name
:
'
liveGif
'
,
name
:
'
floatingMaskDiagram
'
,
type
:
'upload'
,
type
:
'upload'
,
width
:
'320px'
,
width
:
'320px'
,
limitSize
:
10
,
limitSize
:
5
,
maxPhotoNum
:
1
,
maxPhotoNum
:
1
,
supportGif
:
true
,
supportGif
:
true
,
suffixSlot
:
'liveGif'
,
prefixSlot
:
'defaultImg'
,
suffixSlot
:
'floatingMaskDiagram'
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
...
@@ -1422,14 +1432,20 @@ export default {
...
@@ -1422,14 +1432,20 @@ export default {
}
}
],
],
liveEditRule
:
{
liveEditRule
:
{
liveName
:
[{
required
:
true
,
message
:
'请选择直播'
,
trigger
:
'change'
}],
liveBroadcastRoomId
:
[{
required
:
true
,
message
:
'请选择直播'
,
trigger
:
'change'
}],
liveQrImg
:
[{
required
:
true
,
message
:
'请选择加群二维码'
,
trigger
:
'change'
}],
groupQrCode
:
[{
required
:
true
,
message
:
'请选择加群二维码'
,
trigger
:
'change'
}],
liveGif
:
[{
required
:
true
,
message
:
'请选择运营浮窗动图'
,
trigger
:
'change'
}],
floatingMaskDiagram
:
[{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
callback
()
}
}]
},
},
defaultFloatingMaskDiagram
:
'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif'
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getLiveList
()
this
.
setMinHeight
(
'.crowd-config'
)
this
.
setMinHeight
(
'.crowd-config'
)
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
.
addOrEdit
!=
'add'
?
this
.
getInfo
()
:
this
.
getMerchantInfo
()
this
.
routeInfo
.
addOrEdit
!=
'add'
?
this
.
getInfo
()
:
this
.
getMerchantInfo
()
...
@@ -1478,6 +1494,9 @@ export default {
...
@@ -1478,6 +1494,9 @@ export default {
},
},
'editForm.fictitiousViewQuantity'
(
newValue
,
oldValue
)
{
'editForm.fictitiousViewQuantity'
(
newValue
,
oldValue
)
{
this
.
editForm
.
fictitiousViewQuantity
=
limitPrice
(
newValue
,
oldValue
,
7
,
0
,
0
)
this
.
editForm
.
fictitiousViewQuantity
=
limitPrice
(
newValue
,
oldValue
,
7
,
0
,
0
)
},
'editForm.liveBroadcastRoomId'
(
newValue
,
oldValue
)
{
this
.
editForm
.
liveFlag
=
newValue
?
true
:
false
}
}
},
},
...
@@ -1943,8 +1962,8 @@ export default {
...
@@ -1943,8 +1962,8 @@ export default {
this
.
editForm
.
formDescribeCheck
=
[]
this
.
editForm
.
formDescribeCheck
=
[]
this
.
editForm
.
selectCarNumberFlag
=
this
.
editForm
.
selectCarNumberFlag
||
1
this
.
editForm
.
selectCarNumberFlag
=
this
.
editForm
.
selectCarNumberFlag
||
1
this
.
editForm
.
selectVehicleTypeFlag
=
this
.
editForm
.
selectVehicleTypeFlag
||
1
this
.
editForm
.
selectVehicleTypeFlag
=
this
.
editForm
.
selectVehicleTypeFlag
||
1
this
.
editForm
.
selectPhone
Flag
=
this
.
editForm
.
selectPhone
Flag
||
1
this
.
editForm
.
selectPhone
NumberFlag
=
this
.
editForm
.
selectPhoneNumber
Flag
||
1
var
checkList
=
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhoneFlag'
]
var
checkList
=
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhone
Number
Flag'
]
checkList
.
forEach
(
item
=>
{
checkList
.
forEach
(
item
=>
{
if
(
this
.
editForm
[
item
]
==
2
)
{
if
(
this
.
editForm
[
item
]
==
2
)
{
this
.
editForm
.
formDescribeCheck
.
push
(
item
)
this
.
editForm
.
formDescribeCheck
.
push
(
item
)
...
@@ -2033,12 +2052,16 @@ export default {
...
@@ -2033,12 +2052,16 @@ export default {
// 1-否,2-是
// 1-否,2-是
param
.
selectCarNumberFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectCarNumberFlag'
)
!=
-
1
?
2
:
1
param
.
selectCarNumberFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectCarNumberFlag'
)
!=
-
1
?
2
:
1
param
.
selectVehicleTypeFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectVehicleTypeFlag'
)
!=
-
1
?
2
:
1
param
.
selectVehicleTypeFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectVehicleTypeFlag'
)
!=
-
1
?
2
:
1
param
.
selectPhone
Flag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectPhone
Flag'
)
!=
-
1
?
2
:
1
param
.
selectPhone
NumberFlag
=
param
.
formDescribeCheck
.
findIndex
(
item
=>
item
==
'selectPhoneNumber
Flag'
)
!=
-
1
?
2
:
1
delete
param
.
formDescribeCheck
delete
param
.
formDescribeCheck
Object
.
values
(
this
.
describeIdxToAttr
).
forEach
((
item
,
idx
)
=>
{
Object
.
values
(
this
.
describeIdxToAttr
).
forEach
((
item
,
idx
)
=>
{
param
[
'formDescribe'
+
item
]
=
this
.
formDescribeList
.
length
>
idx
?
this
.
formDescribeList
[
idx
].
value
:
''
param
[
'formDescribe'
+
item
]
=
this
.
formDescribeList
.
length
>
idx
?
this
.
formDescribeList
[
idx
].
value
:
''
})
})
//直播
if
(
param
.
liveFlag
)
{
if
(
!
param
.
floatingMaskDiagram
)
param
.
floatingMaskDiagram
=
this
.
defaultFloatingMaskDiagram
}
delete
param
.
liveFlag
return
param
return
param
},
},
...
@@ -2220,7 +2243,23 @@ export default {
...
@@ -2220,7 +2243,23 @@ export default {
}
else
{
}
else
{
this
.
cancelJump
()
this
.
cancelJump
()
}
}
},
//获取跟进员工
getLiveList
()
{
this
.
$apis
.
seckillActivity
.
getLiveListApi
({}).
then
(
res
=>
{
if
(
res
.
length
==
0
)
return
''
const
index
=
this
.
liveEditFormData
.
findIndex
(
item
=>
{
return
item
.
name
==
'liveBroadcastRoomId'
})
const
staff
=
res
.
map
(
item
=>
{
return
{
label
:
item
.
name
+
' - '
+
item
.
code
,
value
:
item
.
id
}
}
})
this
.
liveEditFormData
.
find
(
item
=>
item
.
name
==
'liveBroadcastRoomId'
).
optionList
=
staff
})
},
}
}
}
}
</
script
>
</
script
>
...
@@ -2487,4 +2526,46 @@ export default {
...
@@ -2487,4 +2526,46 @@ export default {
border-radius
:
4px
;
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0.3
);
background-color
:
rgba
(
144
,
147
,
153
,
0.3
);
}
}
.default-live-img
{
width
:
80px
;
height
:
80px
;
border
:
1px
solid
#e5e5e5
;
display
:
inline-block
;
border-radius
:
4px
;
cursor
:
pointer
;
margin-right
:
8px
;
position
:
relative
;
&::after
{
position
:
absolute
;
right
:
0
;
left
:
0
;
width
:
59px
;
height
:
22px
;
line-height
:
22px
;
text-align
:
center
;
background
:
rgba
(
0
,
0
,
0
,
0.5
);
border-radius
:
4px
0
4px
0
;
font-size
:
14px
;
color
:
#ffffff
;
content
:
'默认gif'
;
}
img
{
width
:
100%
;
height
:
100%
;
vertical-align
:
top
;
}
&
~
div
{
position
:
absolute
;
left
:
88px
;
top
:
0
;
.muti-imgs
{
margin
:
0
;
}
}
&
~
.edit-tips
{
display
:
block
;
position
:
relative
;
left
:
0
;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment