Commit 4448314e authored by 刘用法's avatar 刘用法

加cancel

parent 5a0f8cf1
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</view> </view>
<view class="order-pop-btn-view"> <view class="order-pop-btn-view">
<u-button :custom-style="customStyleCancel" hover-class="none" shape="circle" type="primary" <u-button :custom-style="customStyleCancel" hover-class="none" shape="circle" type="primary"
@click="changeVisibleValue(false)"> @click="handleClickCancel">
取消 取消
</u-button> </u-button>
<u-button :custom-style="customStyleSave" shape="circle" type="primary" @click="handleClickSure"> <u-button :custom-style="customStyleSave" shape="circle" type="primary" @click="handleClickSure">
...@@ -62,6 +62,10 @@ ...@@ -62,6 +62,10 @@
changeVisibleValue(val) { changeVisibleValue(val) {
this.$emit('update:visible', val) this.$emit('update:visible', val)
}, },
handleClickCancel() {
this.changeVisibleValue(false)
this.$emit('cancel')
},
handleClickSure() { handleClickSure() {
this.$emit('click') this.$emit('click')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment