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 d6a8f869
authored
Jul 20, 2022
by
wuwx
Committed by
chenwq
Jul 21, 2022
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改首页设置-在线客服样式逻辑
1 parent
180800f4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
35 deletions
src/views/giftBag/editGift.vue
src/views/homeSet/index.vue
src/views/productGroup/editProduct.vue
src/views/productGroup/index.vue
src/views/productStore/index.vue
src/views/giftBag/editGift.vue
View file @
d6a8f86
...
@@ -80,8 +80,8 @@
...
@@ -80,8 +80,8 @@
</div>
</div>
</div>
</div>
<div
class=
"approval"
slot=
"cardHolder"
>
<div
class=
"approval"
slot=
"cardHolder"
>
<el-radio
:disabled=
"routeInfo.
receivedStock
"
v-model=
"editForm.cardHolder"
:label=
"1"
>
否
</el-radio>
<el-radio
:disabled=
"routeInfo.
addOrEdit == 'edit'
"
v-model=
"editForm.cardHolder"
:label=
"1"
>
否
</el-radio>
<el-radio
:disabled=
"routeInfo.
receivedStock
"
v-model=
"editForm.cardHolder"
:label=
"2"
>
是
</el-radio>
<el-radio
:disabled=
"routeInfo.
addOrEdit == 'edit'
"
v-model=
"editForm.cardHolder"
:label=
"2"
>
是
</el-radio>
<p
class=
"cardHolder-tip"
>
(根据手机号将礼包中的优惠券直接发放到小程序对应账户的卡包中)
</p>
<p
class=
"cardHolder-tip"
>
(根据手机号将礼包中的优惠券直接发放到小程序对应账户的卡包中)
</p>
<phoneArea
:phones=
"phones"
:phoneLists=
"phoneLists"
ref=
"phoneArea"
placeholder=
"请输入领取手机号,多个手机号以换行隔开"
/>
<phoneArea
:phones=
"phones"
:phoneLists=
"phoneLists"
ref=
"phoneArea"
placeholder=
"请输入领取手机号,多个手机号以换行隔开"
/>
</div>
</div>
...
...
src/views/homeSet/index.vue
View file @
d6a8f86
...
@@ -120,13 +120,25 @@
...
@@ -120,13 +120,25 @@
<el-checkbox
v-for=
"(item, index) in baseData.clueList"
:label=
"item.confId"
:key=
"index"
>
{{ item.confName }}
</el-checkbox>
<el-checkbox
v-for=
"(item, index) in baseData.clueList"
:label=
"item.confId"
:key=
"index"
>
{{ item.confName }}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
<
template
slot=
"customerServerSuffix"
slot-scope=
"scope"
>
<
!-- <
template slot="customerServerSuffix" slot-scope="scope">
<el-button v-show="!scope.scope.optionList.length" type="text"></el-button>
<el-button v-show="!scope.scope.optionList.length" type="text"></el-button>
<p style="color: #5850ff" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<p style="color: #5850ff" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
</
template
>
</template>
-->
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</div> -->
</div> -->
<div
class=
"approval"
slot=
"customerServerUserId"
>
<el-radio
v-model=
"editForm.customerServer"
:label=
"1"
>
<el-select
style=
"width: 320px"
v-model=
"editForm.customerServerUserId"
:disabled=
"editForm.customerServer == 2"
:clearable=
"true"
:placeholder=
"'请选择在线客服'"
:no-data-text=
"'无数据'"
@
change=
"selectAddAttr"
>
<el-option
v-for=
"value in baseData.consultantList"
:key=
"value.userOneid"
:label=
"value.staffName"
:value=
"value.userOneid"
></el-option>
</el-select>
</el-radio>
<el-button
v-show=
"!baseData.consultantList.length"
type=
"text"
></el-button>
<p
style=
"color: #5850ff;margin-left: 22px;"
@
click=
"handleNoServer"
>
请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员
</p>
<el-radio
v-model=
"editForm.customerServer"
v-if=
"!showGh"
:label=
"2"
>
<el-input
style=
"width: 320px"
placeholder=
"请输入链接"
:disabled=
"editForm.customerServer == 1"
v-model=
"editForm.customerServerUserId"
clearable
></el-input>
</el-radio>
</div>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
</div>
</div>
...
@@ -206,6 +218,7 @@ export default {
...
@@ -206,6 +218,7 @@ export default {
userInfo
:
{},
userInfo
:
{},
// 查看大图
// 查看大图
isImgVisible
:
false
,
isImgVisible
:
false
,
showGh
:
false
,
dialogObj
:
{
dialogObj
:
{
url
:
''
,
url
:
''
,
uploadType
:
'img'
uploadType
:
'img'
...
@@ -261,6 +274,7 @@ export default {
...
@@ -261,6 +274,7 @@ export default {
bannerList
:
[],
bannerList
:
[],
configureStore
:
1
,
configureStore
:
1
,
merchantList
:
[],
merchantList
:
[],
customerServer
:
1
},
},
bannerItem
:
{
bannerItem
:
{
bannerImg
:
''
,
bannerImg
:
''
,
...
@@ -360,36 +374,42 @@ export default {
...
@@ -360,36 +374,42 @@ export default {
editFormData
:
[
editFormData
:
[
{
{
label
:
'在线客服'
,
label
:
'在线客服'
,
name
:
'customerServerUserId'
,
name
:
''
,
type
:
'select'
,
addHtml
:
'customerServerUserId'
optionList
:
[],
optionId
:
'userOneid'
,
optionLabel
:
'staffName'
,
optionsName
:
'consultantList'
,
suffixSlot
:
'customerServerSuffix'
,
isClear
:
true
,
changeAttr
:
(
value
,
targetItem
)
=>
{
var
tempObj
=
{
customerServerName
:
''
,
customerServerUserTitle
:
''
}
this
.
customerServerList
=
[]
this
.
editForm
.
customerServerId
=
''
this
.
editForm
.
customerServerName
=
''
this
.
editForm
.
customerServerUserTitle
=
''
if
(
value
)
{
tempObj
=
this
.
baseData
.
consultantList
.
find
(
item
=>
item
.
userOneid
==
value
)
this
.
editForm
.
customerServerId
=
tempObj
.
id
this
.
editForm
.
customerServerName
=
tempObj
.
staffName
this
.
editForm
.
customerServerUserTitle
=
tempObj
.
staffTitle
this
.
customerServerList
.
push
({
customerServerName
:
tempObj
.
staffName
,
customerServerUserTitle
:
tempObj
.
staffTitle
})
}
}
}
}
// {
// {
// label: '在线客服',
// name: 'customerServerUserId',
// type: 'select',
// optionList: [],
// optionId: 'userOneid',
// optionLabel: 'staffName',
// optionsName: 'consultantList',
// suffixSlot: 'customerServerSuffix',
// isClear: true,
// changeAttr: (value, targetItem) => {
// var tempObj = {
// customerServerName: '',
// customerServerUserTitle: ''
// }
// this.customerServerList = []
// this.editForm.customerServerId = ''
// this.editForm.customerServerName = ''
// this.editForm.customerServerUserTitle = ''
// if (value) {
// tempObj = this.baseData.consultantList.find(item => item.userOneid == value)
// this.editForm.customerServerId = tempObj.id
// this.editForm.customerServerName = tempObj.staffName
// this.editForm.customerServerUserTitle = tempObj.staffTitle
// this.customerServerList.push({
// customerServerName: tempObj.staffName,
// customerServerUserTitle: tempObj.staffTitle
// })
// }
// }
// }
// {
// label: '',
// label: '',
// addHtml: 'serviceTable'
// addHtml: 'serviceTable'
// }
// }
...
@@ -429,9 +449,31 @@ export default {
...
@@ -429,9 +449,31 @@ export default {
let
idxx
=
this
.
externalFormList
[
idx
].
editFormData
.
findIndex
(
item
=>
item
.
name
==
'configureStore'
)
let
idxx
=
this
.
externalFormList
[
idx
].
editFormData
.
findIndex
(
item
=>
item
.
name
==
'configureStore'
)
this
.
externalFormList
[
idx
].
editFormData
[
idxx
].
isHide
=
true
this
.
externalFormList
[
idx
].
editFormData
[
idxx
].
isHide
=
true
}
}
let
href
=
window
.
location
.
host
this
.
showGh
=
href
.
indexOf
(
'cgacar'
)
!=
-
1
},
},
methods
:
{
methods
:
{
selectAddAttr
(
value
){
var
tempObj
=
{
customerServerName
:
''
,
customerServerUserTitle
:
''
}
this
.
customerServerList
=
[]
this
.
editForm
.
customerServerId
=
''
this
.
editForm
.
customerServerName
=
''
this
.
editForm
.
customerServerUserTitle
=
''
if
(
value
)
{
tempObj
=
this
.
baseData
.
consultantList
.
find
(
item
=>
item
.
userOneid
==
value
)
this
.
editForm
.
customerServerId
=
tempObj
.
id
this
.
editForm
.
customerServerName
=
tempObj
.
staffName
this
.
editForm
.
customerServerUserTitle
=
tempObj
.
staffTitle
this
.
customerServerList
.
push
({
customerServerName
:
tempObj
.
staffName
,
customerServerUserTitle
:
tempObj
.
staffTitle
})
}
},
getInfo
()
{
getInfo
()
{
this
.
$apis
.
homeSet
.
getHomeInfoListApi
({}).
then
(
res
=>
{
this
.
$apis
.
homeSet
.
getHomeInfoListApi
({}).
then
(
res
=>
{
// console.log(res)
// console.log(res)
...
...
src/views/productGroup/editProduct.vue
View file @
d6a8f86
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
</el-radio-group>
</el-radio-group>
</
template
>
</
template
>
<
template
slot=
"serviceDescHtml"
>
<
template
slot=
"serviceDescHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.serviceDesc"
style=
"width: 320px"
placeholder=
"请输入
商品描述
"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="30" :disabled="isDisabled" />
<el-input
type=
"textarea"
v-model=
"editForm.serviceDesc"
style=
"width: 320px"
placeholder=
"请输入
服务说明
"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="30" :disabled="isDisabled" />
</
template
>
</
template
>
<div
slot=
"selectMerchant"
slot-scope=
"scope"
class=
"select-merchant"
>
<div
slot=
"selectMerchant"
slot-scope=
"scope"
class=
"select-merchant"
>
<div>
<div>
...
...
src/views/productGroup/index.vue
View file @
d6a8f86
...
@@ -355,7 +355,7 @@ export default {
...
@@ -355,7 +355,7 @@ export default {
},
},
// 删除
// 删除
del
(
row
)
{
del
(
row
)
{
this
.
secondConfirm
(
'删除'
,
'确定删除此
活动
?'
,
'proManage'
,
'deleteGoodsApi'
,
{
id
:
row
.
id
})
this
.
secondConfirm
(
'删除'
,
'确定删除此
商品
?'
,
'proManage'
,
'deleteGoodsApi'
,
{
id
:
row
.
id
})
},
},
handleShare
(
row
)
{
handleShare
(
row
)
{
this
.
$apis
.
proManage
.
getProShareApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
$apis
.
proManage
.
getProShareApi
({
id
:
row
.
id
}).
then
(
res
=>
{
...
...
src/views/productStore/index.vue
View file @
d6a8f86
...
@@ -437,7 +437,7 @@ export default {
...
@@ -437,7 +437,7 @@ export default {
},
},
// 删除
// 删除
del
(
row
)
{
del
(
row
)
{
this
.
secondConfirm
(
'删除'
,
'确定删除此
活动
?'
,
'proManage'
,
'deleteGoodsApi'
,
{
id
:
row
.
id
})
this
.
secondConfirm
(
'删除'
,
'确定删除此
商品
?'
,
'proManage'
,
'deleteGoodsApi'
,
{
id
:
row
.
id
})
},
},
dwonVisibleChange
()
{
dwonVisibleChange
()
{
this
.
$refs
.
downRef
&&
this
.
$refs
.
downRef
.
clearValidate
()
this
.
$refs
.
downRef
&&
this
.
$refs
.
downRef
.
clearValidate
()
...
...
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