订单金额

master
lion 11 months ago
parent 2c700c0d07
commit e9cbb2cd48

@ -352,7 +352,7 @@
<view class="bottom-bar">
<view class="price">
<text>实付</text>
<text>¥ {{ accompanyProduct.price }}</text>
<text>¥ {{ orderId?paidPrice:accompanyProduct.price }}</text>
</view>
<u-button
v-if="form.pay_status === 0"
@ -623,6 +623,7 @@ export default {
},
data() {
return {
paidPrice:0,
workStatus: new Map([
[0, '待处理'],
[1, '已到客户家'],
@ -781,6 +782,7 @@ export default {
this.fileList = res.files.map(i => ({
url: i.url
}))
this.paidPrice = res.price
uni.setNavigationBarTitle({
title: res.accompany_product?res.accompany_product.name:'订单详情'
})
@ -886,6 +888,7 @@ export default {
const res = await this.$u.api.accompanyProductOrder(this.form);
if (res) {
this.orderId = res.id;
this.paidPrice = res.price
uni.showModal({
title: "下单成功",
content: "下单成功,是否立即支付?",

@ -113,7 +113,7 @@
<view class="bottom-bar">
<view class="price">
<text>实付</text>
<text>¥ {{ accompanyProduct.price }}</text>
<text>¥ {{ orderId?paidPrice:accompanyProduct.price }}</text>
</view>
<u-button v-if="form.pay_status === 0" style="margin-left: auto;" shape="circle" ripple
:custom-style="payBtnStyle" :throttle-time="2000" @click="pay">确认修改</u-button>
@ -298,7 +298,8 @@
serviceArchive,
},
data() {
return {
return {
paidPrice:0,
workStatus: new Map([
[0, '待处理'],
[1, '已到客户家'],
@ -446,7 +447,8 @@
this.nurse = res['nurse']
this.fileList = res.files.map(i => ({
url: i.url
}))
}))
this.paidPrice = res.price
uni.setNavigationBarTitle({
title: res.accompany_product ? res.accompany_product.name : '订单详情'
})

@ -20,7 +20,7 @@
<view class="price-text">
<view class="price-text__num">
{{ i.accompany_product ? i.accompany_product.price : 0 }}</view>
{{ i.price?i.price : '' }}</view>
<view class="price-text__no">订单号 {{ i.no }}</view>
</view>
</view>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 383 KiB

After

Width:  |  Height:  |  Size: 382 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 357 KiB

@ -30,7 +30,7 @@
<view class="price-text">
<view class="price-text__num">
{{ i.accompany_product ? i.accompany_product.price : 0 }}</view>
{{ i.price ? i.price : 0 }}</view>
<view class="price-text__no">订单号 {{ i.no }}</view>
</view>
</view>

Loading…
Cancel
Save