fix(custom): 修复若干问题

This commit is contained in:
2024-03-07 18:55:38 +08:00
parent fbbdecf2e0
commit 714b980b28
21 changed files with 292 additions and 155 deletions

View File

@@ -140,7 +140,7 @@ const create_order = async () => {
res = await createAfterOrder(data);
await get_cart_list();
Taro.navigateTo({
url: `/pages/admin/add_order/pending_order/pending_order_detail/index?oid=${props.merInfo.oid}&bid=${props.merInfo.bid}`,
url: `/pages/admin/add_order/pending_order/pending_order_detail/index?oid=${res.data.oid}&bid=${props.merInfo.bid}`,
});
} else {
res = await createActiveOrder({
@@ -175,13 +175,13 @@ defineExpose({
<view class="container">
<view>购物车数量: {{ cartInfo.count }}</view>
<view v-if="cartInfo.count > 0">
<text>总金额: {{ cartInfo.price.toFixed(2) }}</text
>,
<text>总积分: {{ cartInfo.exchange.toFixed(2) }}</text>
<text>总金额: {{ cartInfo.price.toFixed(2) }}</text
>
<text v-if="!IsPendingOrder">总积分: {{ cartInfo.exchange.toFixed(2) }}</text>
</view>
</view>
<view v-if="cartInfo.count > 0" class="payBtn" @click.stop="create_order"
>立即结算</view
>立即下单</view
>
</view>
<!-- 购物车弹窗 -->