Commit d5197d49 by 杨北旺

修复店面服务设置bug

1 parent 90813f4b
......@@ -47,7 +47,7 @@
</div>
<div v-if="settingData.liveCodeUrl || this.activeId" class="box">
<div class="radio_title">
<el-radio v-model="wayRadio" :label="2">加企微领取</el-radio>
<el-radio v-model="wayRadio" :label="2" @change="selectActivedRadio">加企微领取</el-radio>
</div>
<div class="radio_panel">
<el-image :class="wayRadio == 1 ? 'opcaSty' : ''" style="width: 88px; height: 88px" :src="settingData.liveCodeUrl" :preview-src-list="[settingData.liveCodeUrl]"></el-image>
......@@ -207,21 +207,21 @@ export default {
glsxCombiForm
},
watch: {
wayRadio(newValue, oldValue) {
if (newValue == 2) {
if (this.tableData.length) {
this.tableData.forEach(item => {
if (item.id == this.settingData.liveCodeId) {
this.activeId = item.qrCode
this.activeInfo = {
codeName: item.codeName,
id: item.id
}
}
})
}
}
}
// wayRadio(newValue, oldValue) {
// if (newValue == 2) {
// if (this.tableData.length) {
// this.tableData.forEach(item => {
// if (item.id == this.settingData.liveCodeId) {
// this.activeId = item.qrCode
// this.activeInfo = {
// codeName: item.codeName,
// id: item.id
// }
// }
// })
// }
// }
// }
},
created() {
let clientHeight = document.documentElement.clientHeight
......@@ -378,6 +378,16 @@ export default {
// 跳转到新建活码渠道
jumpToCreated(){
this.$history.push('/drainage/channel/addCode')
},
// 选择企微
selectActivedRadio(e){
if(this.settingData.liveCodeUrl){
this.activeId = this.settingData.liveCodeUrl
this.activeInfo = {
codeName: this.settingData.liveCodeName,
id: this.settingData.liveCodeId
}
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!