Commit 379346b5 by 胡悦

提交

1 parent 7d47006b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-06-20 11:32:52 * @Date: 2024-06-20 11:32:52
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-07-04 16:01:05 * @LastEditTime: 2024-07-04 16:07:51
--> -->
<template> <template>
<view class="layout" @click.prevent="touch"> <view class="layout" @click.prevent="touch">
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</view> </view>
</template> </template>
</wnCanvas> </wnCanvas>
<partsPop ref="partsRef" :screenList="screenList"></partsPop> <partsPop ref="partsRef" @close="close" :screenList="screenList"></partsPop>
</view> </view>
</template> </template>
<script> <script>
...@@ -77,9 +77,13 @@ export default { ...@@ -77,9 +77,13 @@ export default {
watchStatus () { watchStatus () {
this.showIndex = -1 this.showIndex = -1
this.$refs.partsRef.close() this.$refs.partsRef.close()
this.$emit('closeProductModel')
} }
}, },
methods: { methods: {
close() {
this.$emit('closeProductModel')
},
open(name) { open(name) {
console.log(name); console.log(name);
if (name) this.$refs.partsRef.show(name) if (name) this.$refs.partsRef.show(name)
......
...@@ -48,6 +48,7 @@ export default { ...@@ -48,6 +48,7 @@ export default {
}, },
close() { close() {
this.$refs.partsRef.close(); this.$refs.partsRef.close();
this.$emit('close')
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!