Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 802146b0
authored
Dec 22, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
首页设置-客服;单选商品组件-按钮跳转;秒杀活动列表
1 parent
b2956a0b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
20 deletions
src/assets/no-server.png
src/components/selectSingleProDialog/index.vue
src/views/homeSet/index.vue
src/views/seckillActivity/index.vue
src/assets/no-server.png
0 → 100644
View file @
802146b
20.7 KB
src/components/selectSingleProDialog/index.vue
View file @
802146b
<!-- 选择商品 - 单选 -->
<
template
>
<glsx-dialog
class=
"single-pro"
title=
"选择商品"
:isVisible
.
sync=
"isSingleSelectVisible"
width=
"900px"
@
confirmDialog=
"handleSingleSelectConfirm"
@
closeDialog=
"handleSingleSelectClose"
:showClose=
"true"
>
<glsx-dialog
class=
"single-pro"
title=
"选择商品"
:
btnOkLabel=
"productList.length ? '确定' : '创建商品'"
:
isVisible
.
sync=
"isSingleSelectVisible"
width=
"900px"
@
confirmDialog=
"handleSingleSelectConfirm"
@
closeDialog=
"handleSingleSelectClose"
:showClose=
"true"
>
<div
style=
"max-height:60vh"
>
<div
class=
"noproDiv"
v-if=
"!productList.length && fnCallBack"
>
<img
src=
"@/assets/noPro.png"
/>
...
...
@@ -29,6 +29,7 @@ export default {
name
:
'selectSingleProDialog'
,
data
()
{
return
{
userInfo
:
{},
infoId
:
''
,
minRatilPrice
:
''
,
productList
:
[],
...
...
@@ -54,6 +55,7 @@ export default {
computed
:
{},
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
infoId
=
this
.
selectedProInfo
.
id
this
.
getList
()
},
...
...
@@ -99,6 +101,10 @@ export default {
})
},
handleSingleSelectConfirm
()
{
if
(
!
this
.
productList
.
length
)
{
this
.
$history
.
push
(
this
.
userInfo
.
accountLevel
==
4
?
'/marketing/productGroup/editProduct/1/2'
:
'/marketing/productGroup/editProduct/1/1'
)
return
true
}
if
(
!
this
.
infoId
)
{
this
.
$message
({
message
:
'请选择商品'
,
...
...
src/views/homeSet/index.vue
View file @
802146b
...
...
@@ -101,6 +101,9 @@
<p
class=
"edit-tips"
>
最多支持4张banner,图片格式仅支持JPG,PNG格式
</p>
<p
class=
"edit-tips"
>
建议尺寸660*270px,大小10M以内
</p>
</div>
<
template
slot=
"customerServerSuffix"
slot-scope=
"scope"
>
<el-button
v-show=
"!scope.scope.optionList.length"
type=
"text"
@
click=
"handleNoServer"
>
请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员
</el-button>
</
template
>
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</div> -->
...
...
@@ -133,8 +136,12 @@
</div>
<select-single-pro-dialog
v-if=
"isSingleSelectVisible"
:isSingleSelectVisible=
"isSingleSelectVisible"
:selectedProInfo=
"selectedProInfo"
@
handleSingleSelectConfirm=
"handleSingleSelectConfirm"
@
handleSingleSelectClose=
"handleSingleSelectClose"
></select-single-pro-dialog>
<!-- 在线客服 -->
<!-- <glsx-dialog title="在线客服" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose">
</glsx-dialog> -->
<glsx-dialog
class=
"server-dialog"
title=
"在线客服"
width=
"712px"
btnOkLabel=
"创建客服"
:isVisible
.
sync=
"isConsultantVisible"
@
confirmDialog=
"handleConsultantConfirm"
@
closeDialog=
"handleConsultantClose"
>
<div
class=
"server-container"
>
<img
src=
"@/assets/no-server.png"
/>
<p
class=
"server-txt"
>
系统暂无已创建的在线客服
</p>
</div>
</glsx-dialog>
<el-dialog
v-if=
"isImgVisible"
:visible
.
sync=
"isImgVisible"
class=
"dialog-look"
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
>
...
...
@@ -167,20 +174,21 @@ export default {
},
selectedProInfo
:
{},
// 在线客服
isConsultantVisible
:
false
,
customerServerList
:
[],
tableParams
:
{
tableOption
:
false
,
tableColumns
:
[
{
label
:
'姓名'
,
prop
:
'customerServerName'
},
{
label
:
'跟进专员类型'
,
prop
:
'customerServerUserTitle'
}
]
},
//
tableParams: {
//
tableOption: false,
//
tableColumns: [
//
{
//
label: '姓名',
//
prop: 'customerServerName'
//
},
//
{
//
label: '跟进专员类型',
//
prop: 'customerServerUserTitle'
//
}
//
]
//
},
// 表单
editForm
:
{
merchantQrcode
:
''
,
...
...
@@ -273,6 +281,7 @@ export default {
optionId
:
'userOneid'
,
optionLabel
:
'staffName'
,
optionsName
:
'consultantList'
,
suffixSlot
:
'customerServerSuffix'
,
isClear
:
true
,
changeAttr
:
(
value
,
targetItem
)
=>
{
var
tempObj
=
{
...
...
@@ -522,9 +531,12 @@ export default {
},
// 商品选择-end
// 在线客服-start
// handleConsultantClose() {
// this.isConsultantVisible = !this.isConsultantVisible
// },
handleConsultantClose
()
{
this
.
isConsultantVisible
=
!
this
.
isConsultantVisible
},
handleConsultantConfirm
()
{
this
.
$history
.
push
(
'/home/followUp/index'
)
},
getConsultant
()
{
this
.
$apis
.
homeSet
.
getConsultantListApi
({
merchantId
:
this
.
userInfo
.
merchantId
,
followTypes
:
[
3
]
}).
then
(
res
=>
{
this
.
baseData
.
consultantList
=
res
...
...
@@ -532,6 +544,10 @@ export default {
this
.
externalFormList
[
idx
].
editFormData
[
0
].
optionList
=
res
})
},
// 没有客服列表
handleNoServer
()
{
this
.
handleConsultantClose
()
},
// 在线客服-end
handleConfirm
()
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
...
...
@@ -675,4 +691,16 @@ export default {
.home-set
.link-block
.banner-tips-txt
{
color
:
#999999
;
}
.home-set
.server-dialog
.server-container
{
text-align
:
center
;
height
:
196px
;
}
.home-set
.server-container
.server-txt
{
margin-top
:
13px
;
height
:
20px
;
font-size
:
16px
;
}
.home-set
.server-dialog
.el-dialog__footer
{
text-align
:
center
;
}
</
style
>
src/views/seckillActivity/index.vue
View file @
802146b
...
...
@@ -114,7 +114,7 @@ export default {
}
},
{
label
:
'库存'
,
label
:
'
剩余
库存'
,
prop
:
'goodsStock'
},
{
...
...
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