This commit is contained in:
YeMingfei666 2024-11-04 09:52:46 +08:00
commit 5ddd7da074
1 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@
<view class="u-p-t-18 u-p-l-30 u-p-r-30 u-p-b-10"> <view class="u-p-t-18 u-p-l-30 u-p-r-30 u-p-b-10">
<my-button box-shadow shape="circle" @tap="confirm">确认退菜</my-button> <my-button box-shadow shape="circle" @tap="confirm">确认退菜</my-button>
<view class="u-m-t-10"> <view class="u-m-t-10">
<my-button @tap="toggleModelShow" shape="circle" bgColor="#fff" type="cancel" <my-button @tap="onModelClose" shape="circle" bgColor="#fff" type="cancel"
box-shadow>取消</my-button> box-shadow>取消</my-button>
</view> </view>
</view> </view>
@ -138,7 +138,8 @@
function toggleModelShow(show) { function toggleModelShow(show) {
modelShow.value = show ? true : false modelShow.value = show ? true : false
} }
function onModelClose() { function onModelClose() {
number.value=1 number.value=1
modelShow.value = false modelShow.value = false