jiazhipeng 4 months ago
parent
commit
f7b8dbbb0d
  1. 2
      subPackages/letter/index.vue
  2. 32
      subPackages/order/detail.vue
  3. 2
      subPackages/user/changeNickname.vue

2
subPackages/letter/index.vue

@ -10,7 +10,7 @@
<view class="text-overflow" style="font-size: 24rpx;color: #848484;">{{item.subtitle}}</view> <view class="text-overflow" style="font-size: 24rpx;color: #848484;">{{item.subtitle}}</view>
<view class="subtitle flex-between"> <view class="subtitle flex-between">
<view style="color: #000000;"> <view style="color: #000000;">
<image style="width: 48rpx;height:48rpx" src="https://static.ticket.sz-trip.com/tongli/images/index/user.png" mode=""></image> <image style="width: 48rpx;height:48rpx" :src="showImg(item.author_img)" mode=""></image>
{{item.author}} {{item.author}}
</view> </view>
<view> <view>

32
subPackages/order/detail.vue

@ -175,6 +175,9 @@
<view class="flex-between"> <view class="flex-between">
实付金额<span style="font-size: 35rpx;color: #C3282E;">{{(fItem.total_price + fItem.total_post_money) / 100}}</span> 实付金额<span style="font-size: 35rpx;color: #C3282E;">{{(fItem.total_price + fItem.total_post_money) / 100}}</span>
</view> </view>
<view class="flex-between" v-if="fItem.data[0].express_id">
快递单号<span>{{fItem.data[0].express_id}}</span>
</view>
</view> </view>
</view> </view>
@ -605,26 +608,7 @@
// //
gotoDetail() { gotoDetail() {
// info.order_child[0].goods_genretickethotelfoodpgoods线line // info.order_child[0].goods_genretickethotelfoodpgoods线line
let url = '' let url = '/subPackages/techan/detail?id=' + this.info.order_child[0].data[0].goods_id
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;
}
uni.navigateTo({ uni.navigateTo({
url: url url: url
}) })
@ -642,7 +626,7 @@
}, },
'/api/order/applyRefund' '/api/order/applyRefund'
).then(res => { ).then(res => {
if (res.code == 1) { if (res.code == 1 || res.code == 200) {
uni.showToast({ uni.showToast({
title: '申请成功', title: '申请成功',
icon: 'success' icon: 'success'
@ -669,7 +653,7 @@
that.Post({ that.Post({
order_id: id order_id: id
}, '/api/order/closeOrder').then(res => { }, '/api/order/closeOrder').then(res => {
if (res.code == 1) { if (res.code == 1 || res.code==200) {
uni.showToast({ uni.showToast({
title: '关闭成功', title: '关闭成功',
icon: 'success' icon: 'success'
@ -694,7 +678,7 @@
type: "miniprogram", type: "miniprogram",
platform: 'miniprogram' platform: 'miniprogram'
}, '/api/pay/unify').then(res => { }, '/api/pay/unify').then(res => {
if (res.code == 1) { if (res.code == 1 || res.code==200) {
uni.requestPayment({ uni.requestPayment({
nonceStr: res.data.nonceStr, nonceStr: res.data.nonceStr,
package: res.data.package, package: res.data.package,
@ -749,7 +733,7 @@
this.Post({ this.Post({
order_id: this.info.order_id order_id: this.info.order_id
}, '/api/order/confirmPost').then(res => { }, '/api/order/confirmPost').then(res => {
if (res.code == 1) { if (res.code == 1||res.code==200) {
uni.showToast({ uni.showToast({
title: '确认收货成功', title: '确认收货成功',
icon: 'none' icon: 'none'

2
subPackages/user/changeNickname.vue

@ -28,7 +28,7 @@
nickname: this.nickname nickname: this.nickname
}, '/api/user/profile').then(res => { }, '/api/user/profile').then(res => {
console.log(res) console.log(res)
if (res.code == 1) { if (res.code == 1 || res.code == 200) {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: '保存成功!', content: '保存成功!',

Loading…
Cancel
Save