Commit 21929195 by cwq0219

在线客服

1 parent 0ed9b278
......@@ -99,9 +99,9 @@
<p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">建议尺寸660*270px,大小10M以内</p>
</div>
<template slot="serviceTable">
<div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</template>
</div>
</glsx-combi-form>
</div>
</div>
......@@ -266,8 +266,8 @@ export default {
this.editForm.customerServerName = ''
this.editForm.customerServerUserTitle = ''
if (value) {
tempObj = this.baseData.consultantList.find(item => item.id == value)
this.editForm.customerServerId = tempObj.id
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({
......@@ -302,12 +302,24 @@ export default {
methods: {
getInfo() {
this.$apis.homeSet.getHomeInfoListApi({}).then(res => {
console.log(res)
// console.log(res)
this.editForm.bannerList = []
this.editForm.noticeContent = res.noticeContent
this.editForm.merchantQrcode = res.merchantQrcode
this.editForm.preferentialPolicy = res.preferentialPolicy
if (res.bannerList.length) {
// 在线客服
this.customerServerList = []
if (res.customerServerUserId) {
this.editForm.customerServerUserId = res.customerServerUserId
this.editForm.customerServerId = res.customerServerId
this.editForm.customerServerName = res.customerServerName
this.editForm.customerServerUserTitle = res.customerServerUserTitle
this.customerServerList.push({
customerServerName: res.customerServerName,
customerServerUserTitle: res.customerServerUserTitle
})
}
if (res.bannerList && res.bannerList.length) {
res.bannerList.forEach(item => {
var params = {
bannerImg: item.bannerImg,
......@@ -527,6 +539,7 @@ export default {
params.bannerList[idx].bannerType = 0
}
})
// console.log(params)
this.$apis.homeSet.updateHomeApi(params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!