|
@@ -28,7 +28,7 @@
|
|
|
<u-button class="btn1" @click="openPay(1)" text="前往第三方支付" shape="circle"></u-button>
|
|
|
</view>
|
|
|
<view class="btn" v-else>
|
|
|
- <u-button class="btn1" @click="toPurchase" text="我已支付,前往订单列表查看" shape="circle"></u-button>
|
|
|
+ <u-button class="btn1" @click="toOrder" text="前往订单列表页查看" shape="circle"></u-button>
|
|
|
<u-button class="btn2" @click="openPay(2)" text="还未支付,前往第三方支付" shape="circle"></u-button>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -87,33 +87,6 @@
|
|
|
url: `/packageGoods/order/index`
|
|
|
})
|
|
|
},
|
|
|
- toPurchase() {
|
|
|
- let _this = this
|
|
|
- uni.showLoading({
|
|
|
- title: '加载中'
|
|
|
- });
|
|
|
- $http.post('/api/v1/mp/user/ticket/query', {
|
|
|
- orderId: this.orderId,
|
|
|
- }).then(res => {
|
|
|
- uni.hideLoading();
|
|
|
- if (res.code == 0) {
|
|
|
- uni.showToast({
|
|
|
- title: '支付成功',
|
|
|
- icon: 'success',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- setTimeout(() => {
|
|
|
- uni.redirectTo({
|
|
|
- url: `/packageGoods/order/index`
|
|
|
- })
|
|
|
- }, 500)
|
|
|
- }else {
|
|
|
- uni.$u.toast(res.msg);
|
|
|
- }
|
|
|
- }).catch(() => {
|
|
|
- uni.hideLoading();
|
|
|
- })
|
|
|
- },
|
|
|
|
|
|
}
|
|
|
}
|