|
|
@ -175,6 +175,9 @@ |
|
|
|
<view class="flex-between"> |
|
|
|
实付金额:<span style="font-size: 35rpx;color: #C3282E;">¥{{(fItem.total_price + fItem.total_post_money) / 100}}</span> |
|
|
|
</view> |
|
|
|
<view class="flex-between" v-if="fItem.data[0].express_id"> |
|
|
|
快递单号:<span>{{fItem.data[0].express_id}}</span> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@ -605,26 +608,7 @@ |
|
|
|
// 再次购买:跳转产品详情 |
|
|
|
gotoDetail() { |
|
|
|
// 子订单里info.order_child[0].goods_genre:景点ticket、酒店hotel、美食food、邮寄自提pgoods、线路line |
|
|
|
let url = '' |
|
|
|
switch (this.info.order_child[0].goods_genre) { |
|
|
|
case 'ticket': |
|
|
|
url = '/subPackages/ticketBooking/detail?id=' + this.info.order_child[0].scenic_data.id |
|
|
|
break; |
|
|
|
case 'hotel': |
|
|
|
url = '/subPackages/hotelHomestay/detail?id=' + this.info.order_child[0].scenic_data.id |
|
|
|
break; |
|
|
|
case 'food': |
|
|
|
url = '/subPackages/food/foodDetail?id=' + this.info.order_child[0].goods_id |
|
|
|
break; |
|
|
|
case 'pgoods': |
|
|
|
url = '/subPackages/techan/detail?id=' + this.info.order_child[0].goods_id |
|
|
|
break; |
|
|
|
case 'line': |
|
|
|
url = '/subPackages/line/detail?id=' + this.info.order_child[0].goods_id |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
let url = '/subPackages/techan/detail?id=' + this.info.order_child[0].data[0].goods_id |
|
|
|
uni.navigateTo({ |
|
|
|
url: url |
|
|
|
}) |
|
|
@ -642,7 +626,7 @@ |
|
|
|
}, |
|
|
|
'/api/order/applyRefund' |
|
|
|
).then(res => { |
|
|
|
if (res.code == 1) { |
|
|
|
if (res.code == 1 || res.code == 200) { |
|
|
|
uni.showToast({ |
|
|
|
title: '申请成功', |
|
|
|
icon: 'success' |
|
|
@ -669,7 +653,7 @@ |
|
|
|
that.Post({ |
|
|
|
order_id: id |
|
|
|
}, '/api/order/closeOrder').then(res => { |
|
|
|
if (res.code == 1) { |
|
|
|
if (res.code == 1 || res.code==200) { |
|
|
|
uni.showToast({ |
|
|
|
title: '关闭成功', |
|
|
|
icon: 'success' |
|
|
@ -694,7 +678,7 @@ |
|
|
|
type: "miniprogram", |
|
|
|
platform: 'miniprogram' |
|
|
|
}, '/api/pay/unify').then(res => { |
|
|
|
if (res.code == 1) { |
|
|
|
if (res.code == 1 || res.code==200) { |
|
|
|
uni.requestPayment({ |
|
|
|
nonceStr: res.data.nonceStr, |
|
|
|
package: res.data.package, |
|
|
@ -749,7 +733,7 @@ |
|
|
|
this.Post({ |
|
|
|
order_id: this.info.order_id |
|
|
|
}, '/api/order/confirmPost').then(res => { |
|
|
|
if (res.code == 1) { |
|
|
|
if (res.code == 1||res.code==200) { |
|
|
|
uni.showToast({ |
|
|
|
title: '确认收货成功', |
|
|
|
icon: 'none' |
|
|
|