Commit bf8bddd9 authored by youjie's avatar youjie

包车取消订单提示

parent 971dbf2e
...@@ -233,13 +233,19 @@ ...@@ -233,13 +233,19 @@
<!-- #endif --> <!-- #endif -->
</view> </view>
</view> </view>
<cancelPrompt v-if="showModal"
:showModal="showModal"
@cancel="cancelModal"
:orderNo="orderData.OrderNo"></cancelPrompt>
</view> </view>
</template> </template>
<script> <script>
import cancelPrompt from '@/components/cancelPrompt/cancelPrompt.vue'
import cancelProgress from '@/components/cancelPrompt/cancelProgress.vue' import cancelProgress from '@/components/cancelPrompt/cancelProgress.vue'
export default { export default {
components: { components: {
cancelPrompt,
cancelProgress cancelProgress
}, },
data() { data() {
...@@ -329,6 +335,7 @@ ...@@ -329,6 +335,7 @@
}, },
customer: {}, customer: {},
SalePhone: '', SalePhone: '',
showModal: false,
}; };
}, },
created() { created() {
...@@ -354,6 +361,9 @@ ...@@ -354,6 +361,9 @@
if (this.id) this.getOrderDetail(); if (this.id) this.getOrderDetail();
}, },
methods: { methods: {
cancelModal(){
this.showModal = false
},
payHotelOrder() { payHotelOrder() {
let userInfo = uni.getStorageSync("mall_UserInfo"); let userInfo = uni.getStorageSync("mall_UserInfo");
var payMsg = { var payMsg = {
...@@ -411,8 +421,11 @@ ...@@ -411,8 +421,11 @@
}); });
}, },
goCancelZK() { goCancelZK() {
var that = this; let that = this
if (that.submitCancel) return if(this.orderData.OrderStatus==2){
return this.showModal = true
}
if (this.submit || this.submitCancel) return;
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '确定取消订单?', content: '确定取消订单?',
......
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