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 14ffacc4
authored
Dec 07, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
首页设置
1 parent
b4bc6e89
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
23 deletions
src/api/modules/homeSet.js
src/views/homeSet/index.vue
src/views/orderComment/index.vue
src/views/orderManage/index.vue
src/views/orderManage/orderDetail.vue
src/api/modules/homeSet.js
View file @
14ffacc
...
@@ -21,4 +21,15 @@ const updateHomeApi = params => {
...
@@ -21,4 +21,15 @@ const updateHomeApi = params => {
})
})
}
}
export
default
{
getHomeInfoListApi
,
updateHomeApi
}
// 在线客服
const
getConsultantListApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.config.consultant.list'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getHomeInfoListApi
,
updateHomeApi
,
getConsultantListApi
}
\ No newline at end of file
\ No newline at end of file
src/views/homeSet/index.vue
View file @
14ffacc
...
@@ -61,8 +61,6 @@
...
@@ -61,8 +61,6 @@
<div
class=
"flex-grow pro-txt"
>
<div
class=
"flex-grow pro-txt"
>
<p
class=
"one-line-ellipsis"
:title=
"subItem.goods.goodsName"
>
{{ subItem.goods.goodsName }}
</p>
<p
class=
"one-line-ellipsis"
:title=
"subItem.goods.goodsName"
>
{{ subItem.goods.goodsName }}
</p>
<div>
<div>
<!-- <span>商品链接:</span> -->
<!-- <el-button v-show="!subItem.goodsId" type="text" class="btn-link" @click="handleSinglePro(scope.scope, subIndex)">选择</el-button> -->
<el-button
v-show=
"subItem.goodsId"
type=
"text"
class=
"btn-link"
@
click=
"handleSinglePro(scope.scope, subIndex)"
>
更换
</el-button>
<el-button
v-show=
"subItem.goodsId"
type=
"text"
class=
"btn-link"
@
click=
"handleSinglePro(scope.scope, subIndex)"
>
更换
</el-button>
<el-button
v-show=
"subItem.goodsId"
type=
"text"
class=
"btn-link"
@
click=
"handleProDelete(subIndex)"
>
删除
</el-button>
<el-button
v-show=
"subItem.goodsId"
type=
"text"
class=
"btn-link"
@
click=
"handleProDelete(subIndex)"
>
删除
</el-button>
</div>
</div>
...
@@ -101,9 +99,9 @@
...
@@ -101,9 +99,9 @@
<p
class=
"edit-tips"
>
最多支持4张banner,图片格式仅支持JPG,PNG格式
</p>
<p
class=
"edit-tips"
>
最多支持4张banner,图片格式仅支持JPG,PNG格式
</p>
<p
class=
"edit-tips"
>
建议尺寸660*270px,大小10M以内
</p>
<p
class=
"edit-tips"
>
建议尺寸660*270px,大小10M以内
</p>
</div>
</div>
<
template
slot=
"onlineServic
e"
>
<
!-- <template slot="serviceTabl
e">
<
el-button
:size=
"size"
>
+选择客服
</el-button
>
<
GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable
>
</
template
>
</template>
-->
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
</div>
</div>
...
@@ -118,6 +116,9 @@
...
@@ -118,6 +116,9 @@
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
</div>
</div>
<select-single-pro-dialog
v-if=
"isSingleSelectVisible"
:isSingleSelectVisible=
"isSingleSelectVisible"
:selectedProInfo=
"selectedProInfo"
@
handleSingleSelectConfirm=
"handleSingleSelectConfirm"
@
handleSingleSelectClose=
"handleSingleSelectClose"
></select-single-pro-dialog>
<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> -->
<el-dialog
v-if=
"isImgVisible"
:visible
.
sync=
"isImgVisible"
class=
"dialog-look"
>
<el-dialog
v-if=
"isImgVisible"
:visible
.
sync=
"isImgVisible"
class=
"dialog-look"
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
>
...
@@ -135,13 +136,13 @@ export default {
...
@@ -135,13 +136,13 @@ export default {
footerLeft
:
'0'
,
footerLeft
:
'0'
,
footerWidth
:
'0'
,
footerWidth
:
'0'
,
size
:
'small'
,
size
:
'small'
,
userInfo
:
{},
// 查看大图
// 查看大图
isImgVisible
:
false
,
isImgVisible
:
false
,
dialogObj
:
{
dialogObj
:
{
url
:
''
,
url
:
''
,
uploadType
:
'img'
uploadType
:
'img'
},
},
// dialogImageUrl: '',
// 商品选择
// 商品选择
isSingleSelectVisible
:
false
,
isSingleSelectVisible
:
false
,
curBanner
:
{
curBanner
:
{
...
@@ -149,6 +150,21 @@ export default {
...
@@ -149,6 +150,21 @@ export default {
targetItem
:
{}
targetItem
:
{}
},
},
selectedProInfo
:
{},
selectedProInfo
:
{},
// 在线客服
customerServerList
:
[],
tableParams
:
{
tableOption
:
false
,
tableColumns
:
[
{
label
:
'姓名'
,
prop
:
'customerServerName'
},
{
label
:
'跟进专员类型'
,
prop
:
'customerServerUserTitle'
}
]
},
// 表单
// 表单
editForm
:
{
editForm
:
{
merchantQrcode
:
''
,
merchantQrcode
:
''
,
...
@@ -227,24 +243,60 @@ export default {
...
@@ -227,24 +243,60 @@ export default {
maxlength
:
'300'
maxlength
:
'300'
}
}
]
]
},
{
title
:
'在线客服'
,
editFormData
:
[
{
label
:
''
,
addHtml
:
'onlineService'
}
]
}
}
]
// {
// title: '在线客服',
// editFormData: [
// {
// label: '在线客服',
// name: 'customerServerUserId',
// type: 'select',
// optionList: [],
// optionId: 'id',
// optionLabel: 'staffName',
// optionsName: 'consultantList',
// 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.id == 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: '',
// addHtml: 'serviceTable'
// }
// ]
// }
],
// 基本信息
baseData
:
{
consultantList
:
[]
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
getInfo
()
this
.
getInfo
()
// this.getConsultant()
},
},
methods
:
{
methods
:
{
...
@@ -254,6 +306,7 @@ export default {
...
@@ -254,6 +306,7 @@ export default {
this
.
editForm
.
bannerList
=
[]
this
.
editForm
.
bannerList
=
[]
this
.
editForm
.
noticeContent
=
res
.
noticeContent
this
.
editForm
.
noticeContent
=
res
.
noticeContent
this
.
editForm
.
merchantQrcode
=
res
.
merchantQrcode
this
.
editForm
.
merchantQrcode
=
res
.
merchantQrcode
this
.
editForm
.
preferentialPolicy
=
res
.
preferentialPolicy
if
(
res
.
bannerList
.
length
)
{
if
(
res
.
bannerList
.
length
)
{
res
.
bannerList
.
forEach
(
item
=>
{
res
.
bannerList
.
forEach
(
item
=>
{
var
params
=
{
var
params
=
{
...
@@ -418,10 +471,7 @@ export default {
...
@@ -418,10 +471,7 @@ export default {
},
},
// 商品选择-start
// 商品选择-start
handleSinglePro
()
{
handleSinglePro
()
{
// this.curBanner.idx = idx
// this.curBanner.targetItem = targetItem
this
.
selectedProInfo
=
this
.
editForm
.
bannerList
[
this
.
curBanner
.
idx
].
goods
?
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
bannerList
[
this
.
curBanner
.
idx
].
goods
)
:
{}
this
.
selectedProInfo
=
this
.
editForm
.
bannerList
[
this
.
curBanner
.
idx
].
goods
?
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
bannerList
[
this
.
curBanner
.
idx
].
goods
)
:
{}
// this.editForm[targetItem.name][idx].goods ? (this.selectedProInfo = this.$common.utils.deepClone(this.editForm[targetItem.name][idx].goods)) : ''
this
.
handleSingleSelectClose
()
this
.
handleSingleSelectClose
()
},
},
handleSingleSelectConfirm
(
selectedProInfo
)
{
handleSingleSelectConfirm
(
selectedProInfo
)
{
...
@@ -434,6 +484,18 @@ export default {
...
@@ -434,6 +484,18 @@ export default {
this
.
isSingleSelectVisible
=
!
this
.
isSingleSelectVisible
this
.
isSingleSelectVisible
=
!
this
.
isSingleSelectVisible
},
},
// 商品选择-end
// 商品选择-end
// 在线客服-start
// handleConsultantClose() {
// this.isConsultantVisible = !this.isConsultantVisible
// },
getConsultant
()
{
this
.
$apis
.
homeSet
.
getConsultantListApi
({
merchantId
:
this
.
userInfo
.
merchantId
,
followType
:
3
}).
then
(
res
=>
{
// console.log(res)
this
.
baseData
.
consultantList
=
res
this
.
externalFormList
[
4
].
editFormData
[
0
].
optionList
=
res
})
},
// 在线客服-end
handleConfirm
()
{
handleConfirm
()
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
params
.
bannerList
=
[]
params
.
bannerList
=
[]
...
...
src/views/orderComment/index.vue
View file @
14ffacc
<!-- 评价管理-->
<!-- 评价管理-->
<
template
>
<
template
>
<div
class=
"marketing"
>
<div
class=
"marketing
p-t-20
"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<div>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"90px"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"90px"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
...
...
src/views/orderManage/index.vue
View file @
14ffacc
<!-- 订单管理 -->
<!-- 订单管理 -->
<
template
>
<
template
>
<div
class=
"marketing"
>
<div
class=
"marketing
p-t-20
"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"list-tips"
>
<div
class=
"list-tips"
>
<img
class=
"tips-img"
src=
"@/assets/icon-info.png"
/>
<img
class=
"tips-img"
src=
"@/assets/icon-info.png"
/>
...
@@ -551,7 +551,7 @@ export default {
...
@@ -551,7 +551,7 @@ export default {
submitExamine
(
params
)
{
submitExamine
(
params
)
{
this
.
$apis
.
orderManage
.
examineAllowApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
examineAllowApi
(
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
customClass
:
'message-Z-zinde'
})
})
...
...
src/views/orderManage/orderDetail.vue
View file @
14ffacc
...
@@ -154,6 +154,7 @@ export default {
...
@@ -154,6 +154,7 @@ export default {
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
routeInfo
=
this
.
$route
.
params
this
.
routeInfo
=
this
.
$route
.
params
console
.
log
(
this
.
routeInfo
)
this
.
getInfo
()
this
.
getInfo
()
},
},
...
...
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