Compare commits

...

2 Commits

Author SHA1 Message Date
3afa2e8c10 1 2026-04-07 18:47:12 +08:00
7d1083bf5c fix: calculate actual total item count for multi-item orders 2026-04-07 17:57:00 +08:00
4 changed files with 12 additions and 25 deletions

View File

@ -238,7 +238,7 @@ export const PAY_ORDER_NEW = "/ttpay/jsapi";
// 订单列表
export const SHOP_ORDER_LIST = "/douyin/goods/order/list";
// 订单详情
export const SHOP_ORDER_DETAILS = "/product/order/show";
export const SHOP_ORDER_DETAILS = "/douyin/goods/order/show";
// 取消订单
export const SHOP_ORDER_CANCEL = '/app/order/order_quxiao'
// 提醒发货

View File

@ -5,7 +5,7 @@
<view class="good-content" @click="$emit('clickGoodInfo', data[0])">
<view class="goods-row-first">
<view class="goods-name">{{ data[0].goods_name || "" }}</view>
<text class="goods-price">¥{{ data[0].goods_price || actual_price }}</text>
<text class="goods-price">¥{{ data[0].goods_price || data[0].product_actual_price }}</text>
</view>
<view class="goods-row-second">
<view class="goods-spec">
@ -24,7 +24,7 @@
<view class="good-info-right">
<text class="good-total-price">¥{{ actual_price }}</text>
<text class="fs-24 app-fc-normal good-num">
1
{{ totalCount }}
</text>
</view>
</view>
@ -56,6 +56,11 @@
return sum + price * number;
}, 0).toFixed(2);
},
totalCount() {
return this.data.reduce((sum, item) => {
return sum + parseInt(item.number || 1);
}, 0);
},
},
mounted() {
console.log(this.data,'--')

View File

@ -44,7 +44,7 @@
</view>
</view>
<view class="order-content" :class="{ 'split-border': showStatusBtn }" @click="jumpToDetails">
<good-info :data="data" :actual_price="data.actual_price" />
<good-info :data="data.items" :actual_price="data.actual_price" />
<view v-if="data.type && data.type !== 1" class="fs-24 app-fc-mark order-type">
随车订单
</view>

View File

@ -98,7 +98,7 @@
</template>
</view>
<view class="info-cell address-info-cell">
<view v-if="orderData.address" class="info-cell address-info-cell">
<view class="address-content">
<view class="address-row-first">
<image class="address-icon" src="@/static/images/address.png" />
@ -266,8 +266,8 @@
<!-- 抖音退款组件 -->
<view class="refund-btn-wrapper">
<pay-button-sdk
mode=1
:order-id="orderData.order_no || orderData.order_id"
mode={{1}}
:order-id="orderData.order_no"
:order-status="1"
:refund-total-amount="Math.round((orderData.actual_price || 0) * 100)"
:apply-refund-params="{
@ -517,24 +517,6 @@ import {
}
});
},
selectOption1(v) {
this.WeChat = v
this.wallet = ''
console.log(this.WeChat)
this.selected1 = false;
this.selected2 = true;
this.selected3 = true;
this.selected4 = false;
},
selectOption2(v) {
this.WeChat = ''
this.wallet = v
console.log(this.wallet)
this.selected1 = true;
this.selected2 = false;
this.selected3 = false;
this.selected4 = true;
},
coutDown() {
setTimeout(() => {
if (this.countDownTime > 0) {