优化:在线买单支付成功后不在停留在买单页面而是进入支付结果页面
This commit is contained in:
parent
e268d5be4d
commit
6161f5c2d3
|
|
@ -14,7 +14,11 @@
|
|||
<view class='itemCom'>{{order_pay_info.group_order_sn}}</view>
|
||||
</view>
|
||||
<view class='item acea-row row-between-wrapper'>
|
||||
<view>{{order_type== 20 ? '兑换时间' : '下单时间'}}</view>
|
||||
<view>
|
||||
<text v-if="order_type== 20">兑换时间</text>
|
||||
<text v-else-if="order_pay_info.activity_type == 30">买单时间</text>
|
||||
<text v-else>下单时间</text>
|
||||
</view>
|
||||
<view class='itemCom'>{{order_pay_info.create_time}}</view>
|
||||
</view>
|
||||
<view v-if="order_type== 20" class='item acea-row row-between-wrapper'>
|
||||
|
|
@ -47,7 +51,10 @@
|
|||
</view>
|
||||
<!--失败时: 重新购买 -->
|
||||
<view @tap="goOrderDetails">
|
||||
<button formType="submit" class='returnBnt gColor' hover-class='none'>查看订单</button>
|
||||
<button formType="submit" class='returnBnt gColor' hover-class='none'>
|
||||
<view v-if="order_pay_info.activity_type == 30">买单记录</view>
|
||||
<view v-else>查看订单</view>
|
||||
</button>
|
||||
</view>
|
||||
<button @click="goPink(order_pay_info.activity_id)" class='returnBnt s-Color' formType="submit" hover-class='none' v-if="order_pay_info.activity_type == 4 && order_pay_info.paid">邀请好友参团</button>
|
||||
<button v-if="!order_pay_info.paid || order_pay_info.activity_type != 4" @click="goIndex" class='returnBnt s-Color' formType="submit" hover-class='none'>返回首页</button>
|
||||
|
|
@ -214,12 +221,17 @@
|
|||
uni.navigateTo({
|
||||
url: '/pages/users/order_list/index?is_with_goods=1'
|
||||
});
|
||||
}else if(that.order_pay_info.activity_type == 30){
|
||||
uni.navigateTo({
|
||||
url: '/pages/users/online_payment/payment/record'
|
||||
});
|
||||
}else{
|
||||
if(that.order_type == 20){
|
||||
uni.navigateTo({
|
||||
url: '/pages/points_mall/exchange_record?delte=1'
|
||||
})
|
||||
}else{
|
||||
}
|
||||
else{
|
||||
if (that.order_pay_info.paid == 0) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/users/order_list/index'
|
||||
|
|
|
|||
|
|
@ -240,13 +240,14 @@ export default {
|
|||
});
|
||||
onlinePayment(payInfo).then(res => {
|
||||
if (res.status == 200) {
|
||||
let backUrl = `/pages/users/online_payment/payment/index?mer_id=${_this.mer_search.mer_id}`;
|
||||
let backTab = 5;
|
||||
let status = res.data.status,
|
||||
orderId = res.data.result.order_id,
|
||||
callback_key = res.data.result.pay_key,
|
||||
jsConfig = res.data.result.config;
|
||||
// let goPages = '/pages/order_pay_status/index?order_id=' + orderId + '&msg=' + res.message;
|
||||
|
||||
let backUrl = '/pages/order_pay_status/index?order_type=30&order_id=' + orderId + '&msg=' + res.message;
|
||||
let backTab = 5;
|
||||
|
||||
let goPages = backUrl;
|
||||
switch (status) {
|
||||
case 'ORDER_EXIST':
|
||||
|
|
|
|||
Loading…
Reference in New Issue