Commit dd2de9ee by 李伟康

commit 增加切换关闭弹框

1 parent aa927852
...@@ -193,6 +193,11 @@ export default { ...@@ -193,6 +193,11 @@ export default {
showPopup (e) { showPopup (e) {
this.$refs[e].open() this.$refs[e].open()
}, },
closeAllPopup(){
this.$refs.carBrandListVisible.close()
this.$refs.carBoxVisible.close()
this.$refs.employeeBoxVisible.close()
}
} }
} }
</script> </script>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<media_1 <media_1
:views="media[1]" :views="media[1]"
:penSwitch="penSwitch" :penSwitch="penSwitch"
ref="media1"
/> />
</view> </view>
<view :class="['view', { showView: id == 2 }]"> <view :class="['view', { showView: id == 2 }]">
...@@ -168,6 +169,7 @@ export default { ...@@ -168,6 +169,7 @@ export default {
}, },
/**切换素材 */ /**切换素材 */
choose (e) { choose (e) {
if(this.id == 1) this.$refs.media1.closeAllPopup()
this.id = e.id; this.id = e.id;
this.getFindSoureDetail(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!