Commit ef328c4b by 前端

等待联调

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