Commit ef328c4b by 前端

等待联调

1 parent 7ced9fad
......@@ -29,7 +29,10 @@ Vue.use(GLTableButton)
Vue.use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request2, sign, secret, sign_common, request_common, request_merchant, merchantId } = await fetchConfig(false)
const { response, request, request2, sign, secret, sign_common, request_common, request_merchant, merchantId,wuye_merchantLists } = await fetchConfig(false)
// 针对物业门店
Vue.prototype.$wuye_merchantLists = wuye_merchantLists
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
......
......@@ -3,6 +3,7 @@
<div class="home-set microStore edit-box">
<div class="container edit-container">
<div class="home-set-form flex-grow">
<div class="item-box" v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p>
<div class="flex pad-32">
......@@ -13,12 +14,13 @@
</p>
<el-button type="text" @click="handleImgDown(editForm[scope.scope.name])">下载图片</el-button>
</div>
<div slot="coverSlot">
<glsx-preview :picOptions="item.editFormData.posterOptions" :imageUrlArr="editForm.coverArr"
<div slot="welfareGroupQRCodeSlot">
<glsx-preview :picOptions="item.editFormData.posterOptions" :imageUrlArr="editForm.welfareGroupQRCode"
@change="changeChannelImg"></glsx-preview>
</div>
<div slot="coverSlot1">
<glsx-preview :picOptions="item.editFormData.posterOptions1" :imageUrlArr="editForm.coverArr1"
<div slot="welfareOfficerQRCodeSlot">
<glsx-preview :picOptions="item.editFormData.posterOptions1" :imageUrlArr="editForm.welfareOfficerQRCode"
@change="changeChannelImg"></glsx-preview>
</div>
<template slot="bannerList" slot-scope="scope">
......@@ -254,6 +256,7 @@ export default {
},
data() {
return {
isWuyeFlag:false,
showGh: false,
size: 'small',
userInfo: {},
......@@ -336,9 +339,9 @@ export default {
customerServerUrl: '',
posterOptions:'',
coverArr: [],
welfareGroupQRCode: '',
posterOptions1:'',
coverArr1: [],
welfareOfficerQRCode:'',
},
bannerItem: {
bannerImg: '',
......@@ -373,13 +376,15 @@ export default {
},
{
label: '福利群群码',
name: 'strategyImg',
addHtml: 'coverSlot'
name: 'welfareGroupQRCode',
addHtml: 'welfareGroupQRCodeSlot',
isHide:!this.isWuyeFlag
},
{
label: '福利官二维码',
name: 'strategyImg1',
addHtml: 'coverSlot1'
name: 'welfareOfficerQRCode',
addHtml: 'welfareOfficerQRCodeSlot',
isHide:!this.isWuyeFlag
},
]
},
......@@ -523,6 +528,10 @@ export default {
},
mounted() {
this.userInfo = this.$globalState.session
// 判断是否是物业
this.isWuyeFlag = this.$wuye_merchantLists.find(item => item == this.userInfo.merchantId)
this.getInfo()
this.getConsultant()
// 非集团账号隐藏配置门店
......@@ -580,6 +589,11 @@ export default {
this.editForm.customerServerUrl = res.customerServerUrl
this.editForm.bannerToSubMerchant = res.bannerToSubMerchant || 'N'
this.editForm.noticeToSubMerchant = res.noticeToSubMerchant || 'N'
// 本次新增福利二维码
this.editForm.welfareGroupQRCode = res.welfareGroupQRCode
this.editForm.welfareOfficerQRCode = res.welfareOfficerQRCode
// 在线客服
this.customerServerList = []
if (res.customerServerUserId) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!