Commit d5197d49 by 杨北旺

修复店面服务设置bug

1 parent 90813f4b
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
<div v-if="settingData.liveCodeUrl || this.activeId" class="box"> <div v-if="settingData.liveCodeUrl || this.activeId" class="box">
<div class="radio_title"> <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>
<div class="radio_panel"> <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> <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 { ...@@ -207,21 +207,21 @@ export default {
glsxCombiForm glsxCombiForm
}, },
watch: { watch: {
wayRadio(newValue, oldValue) { // wayRadio(newValue, oldValue) {
if (newValue == 2) { // if (newValue == 2) {
if (this.tableData.length) { // if (this.tableData.length) {
this.tableData.forEach(item => { // this.tableData.forEach(item => {
if (item.id == this.settingData.liveCodeId) { // if (item.id == this.settingData.liveCodeId) {
this.activeId = item.qrCode // this.activeId = item.qrCode
this.activeInfo = { // this.activeInfo = {
codeName: item.codeName, // codeName: item.codeName,
id: item.id // id: item.id
} // }
} // }
}) // })
} // }
} // }
} // }
}, },
created() { created() {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
...@@ -378,6 +378,16 @@ export default { ...@@ -378,6 +378,16 @@ export default {
// 跳转到新建活码渠道 // 跳转到新建活码渠道
jumpToCreated(){ jumpToCreated(){
this.$history.push('/drainage/channel/addCode') 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!