订单页面的onshow刷新列表数据

唤起支付的页面隐藏发票和优惠券
This commit is contained in:
wangzimeng 2025-11-12 17:31:53 +08:00
parent 70aa9fd143
commit 0bd917c85b
2 changed files with 13 additions and 7 deletions

View File

@ -71,11 +71,11 @@
<text class="item-value ss-m-r-24">+{{ state.orderInfo.dispatch_amount }}</text> <text class="item-value ss-m-r-24">+{{ state.orderInfo.dispatch_amount }}</text>
</view> </view>
</view> </view>
<view <!-- <view
class="order-item ss-flex ss-col-center ss-row-between" class="order-item ss-flex ss-col-center ss-row-between"
v-if="state.orderPayload.order_type != 'score'" v-if="state.orderPayload.order_type != 'score'"
> >
<!-- <view v-if="state.orderInfo.coupon_discount_fee > 0" class="order-item ss-flex ss-col-center ss-row-between"> --> <view v-if="state.orderInfo.coupon_discount_fee > 0" class="order-item ss-flex ss-col-center ss-row-between">
<view class="item-title">优惠券</view> <view class="item-title">优惠券</view>
<view class="ss-flex ss-col-center" @tap="state.showCoupon = true"> <view class="ss-flex ss-col-center" @tap="state.showCoupon = true">
<text class="item-value text-red" v-if="state.orderPayload.coupon_id" <text class="item-value text-red" v-if="state.orderPayload.coupon_id"
@ -94,7 +94,7 @@
<text class="_icon-forward item-icon"></text> <text class="_icon-forward item-icon"></text>
</view> </view>
</view> </view> -->
<view <view
class="order-item ss-flex ss-col-center ss-row-between" class="order-item ss-flex ss-col-center ss-row-between"
v-if="state.orderInfo.promo_infos?.length" v-if="state.orderInfo.promo_infos?.length"
@ -122,7 +122,7 @@
</view> </view>
</view> </view>
<!-- 发票 --> <!-- 发票 -->
<view v-if="state.orderInfo.invoice_status === 1" class="bg-white ss-p-20 ss-r-20"> <!-- <view v-if="state.orderInfo.invoice_status === 1" class="bg-white ss-p-20 ss-r-20">
<view class="order-item ss-flex ss-col-center ss-row-between"> <view class="order-item ss-flex ss-col-center ss-row-between">
<view class="item-title">申请发票</view> <view class="item-title">申请发票</view>
<view class="ss-flex ss-col-center" @tap="onSelectInvoice"> <view class="ss-flex ss-col-center" @tap="onSelectInvoice">
@ -130,7 +130,7 @@
<text class="_icon-forward item-icon"></text> <text class="_icon-forward item-icon"></text>
</view> </view>
</view> </view>
</view> </view> -->
<!-- 选择优惠券弹框 --> <!-- 选择优惠券弹框 -->
<s-coupon-select <s-coupon-select
v-model="state.couponInfo" v-model="state.couponInfo"

View File

@ -167,7 +167,8 @@
import { import {
onLoad, onLoad,
onReachBottom, onReachBottom,
onPullDownRefresh onPullDownRefresh,
onShow
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
formatOrderColor formatOrderColor
@ -178,6 +179,7 @@
isEmpty isEmpty
} from 'lodash'; } from 'lodash';
const tradeManaged = computed(() => sheep.$store('app').has_wechat_trade_managed); const tradeManaged = computed(() => sheep.$store('app').has_wechat_trade_managed);
const pagination = { const pagination = {
@ -433,8 +435,12 @@
if (options.type) { if (options.type) {
state.currentTab = options.type; state.currentTab = options.type;
} }
getOrderList(); // getOrderList();
}); });
onShow(() => {
getOrderList();
})
// //
function loadmore() { function loadmore() {