Commit dd2de9ee by 李伟康

commit 增加切换关闭弹框

1 parent aa927852
......@@ -193,6 +193,11 @@ export default {
showPopup (e) {
this.$refs[e].open()
},
closeAllPopup(){
this.$refs.carBrandListVisible.close()
this.$refs.carBoxVisible.close()
this.$refs.employeeBoxVisible.close()
}
}
}
</script>
......
......@@ -26,6 +26,7 @@
<media_1
:views="media[1]"
:penSwitch="penSwitch"
ref="media1"
/>
</view>
<view :class="['view', { showView: id == 2 }]">
......@@ -168,6 +169,7 @@ export default {
},
/**切换素材 */
choose (e) {
if(this.id == 1) this.$refs.media1.closeAllPopup()
this.id = e.id;
this.getFindSoureDetail(e.id);
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!