improve: 商品title

This commit is contained in:
From-wh 2023-06-07 15:56:11 +08:00
parent 62a302443e
commit 53ac7b1b8f
3 changed files with 20 additions and 28 deletions

View File

@ -29,7 +29,7 @@
</view>
<view class='text'>
<view class='acea-row row-between-wrapper'>
<view class='name line1'>{{item.productInfo.store_name}}</view>
<view class='name line2'>{{item.productInfo.store_name}}</view>
<view class='num'>x {{item.cart_num}}</view>
</view>
<view class='attr line1' v-if="item.productInfo.attrInfo">{{item.productInfo.attrInfo.suk}}

View File

@ -29,7 +29,7 @@
<image :src='item.image'></image>
</view>
<view class='text acea-row row-column-around'>
<view class='name line1'>{{item.title}}</view>
<view class='name line2'>{{item.title}}</view>
<view class='money font-color'>{{$t(`¥`)}}
<text class='num font-color'>{{item.price}}</text>
<text class="y_money">{{$t(`¥`)}}{{item.ot_price}}</text>

View File

@ -1166,32 +1166,24 @@
},
cancelOrder() {
let self = this
uni.showModal({
title: this.$t(`提示`),
content: this.$t(`确认取消该订单`),
success: function(res) {
if (res.confirm) {
orderCancel(self.orderInfo.order_id)
.then((data) => {
// #ifndef MP
self.$util.Tips({
title: data.msg
}, {
tab: 3
})
// #endif
// #ifdef MP
self.$util.Tips({
title: data.msg
}, '/pages/goods/order_list/index');
// #endif
})
.catch(() => {
self.getOrderInfo();
});
} else if (res.cancel) {}
}
});
orderCancel(self.orderInfo.order_id)
.then((data) => {
// #ifndef MP
self.$util.Tips({
title: data.msg
}, {
tab: 3
})
// #endif
// #ifdef MP
self.$util.Tips({
title: data.msg
}, '/pages/goods/order_list/index');
// #endif
})
.catch(() => {
self.getOrderInfo();
});
},
}
}