Commit 21929195 by cwq0219

在线客服

1 parent 0ed9b278
...@@ -99,9 +99,9 @@ ...@@ -99,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="serviceTable"> <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>
</template> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
</div> </div>
...@@ -266,8 +266,8 @@ export default { ...@@ -266,8 +266,8 @@ export default {
this.editForm.customerServerName = '' this.editForm.customerServerName = ''
this.editForm.customerServerUserTitle = '' this.editForm.customerServerUserTitle = ''
if (value) { if (value) {
tempObj = this.baseData.consultantList.find(item => item.id == value) tempObj = this.baseData.consultantList.find(item => item.userOneid == value)
this.editForm.customerServerId = tempObj.id this.editForm.customerServerId = tempObj.id
this.editForm.customerServerName = tempObj.staffName this.editForm.customerServerName = tempObj.staffName
this.editForm.customerServerUserTitle = tempObj.staffTitle this.editForm.customerServerUserTitle = tempObj.staffTitle
this.customerServerList.push({ this.customerServerList.push({
...@@ -302,12 +302,24 @@ export default { ...@@ -302,12 +302,24 @@ export default {
methods: { methods: {
getInfo() { getInfo() {
this.$apis.homeSet.getHomeInfoListApi({}).then(res => { this.$apis.homeSet.getHomeInfoListApi({}).then(res => {
console.log(res) // console.log(res)
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 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 => { res.bannerList.forEach(item => {
var params = { var params = {
bannerImg: item.bannerImg, bannerImg: item.bannerImg,
...@@ -527,6 +539,7 @@ export default { ...@@ -527,6 +539,7 @@ export default {
params.bannerList[idx].bannerType = 0 params.bannerList[idx].bannerType = 0
} }
}) })
// console.log(params)
this.$apis.homeSet.updateHomeApi(params).then(res => { this.$apis.homeSet.updateHomeApi(params).then(res => {
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : res.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!