|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="m-content"> |
|
|
|
|
<uni-nav-bar dark :fixed="true" shadow background-color="#007AFF" status-bar left-icon="left" left-text="" title="确认支付" @clickLeft="back" /> |
|
|
|
|
<uni-nav-bar dark :fixed="true" shadow background-color="#007AFF" status-bar left-icon="left" left-text="" title="确认支付" @clickLeft="cancelOrder" /> |
|
|
|
|
|
|
|
|
|
<view class="m-order"> |
|
|
|
|
<view class="m-price"> |
|
|
|
@ -94,7 +94,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onUnload() { |
|
|
|
|
this.back(); |
|
|
|
|
this.cancelOrder(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
cancelOrder() { |
|
|
|
@ -112,13 +112,14 @@ export default { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: 'none', |
|
|
|
|
title: '已取消' |
|
|
|
|
title: '已取消', |
|
|
|
|
duration:1200 |
|
|
|
|
}); |
|
|
|
|
setTimeout(() => { |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/pages/index' |
|
|
|
|
}); |
|
|
|
|
}, 2100); |
|
|
|
|
}, 1400); |
|
|
|
|
}) |
|
|
|
|
.catch((err) => { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|