订单页面的onshow刷新列表数据
唤起支付的页面隐藏发票和优惠券
This commit is contained in:
parent
70aa9fd143
commit
0bd917c85b
@ -71,11 +71,11 @@
|
||||
<text class="item-value ss-m-r-24">+¥{{ state.orderInfo.dispatch_amount }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
<!-- <view
|
||||
class="order-item ss-flex ss-col-center ss-row-between"
|
||||
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="ss-flex ss-col-center" @tap="state.showCoupon = true">
|
||||
<text class="item-value text-red" v-if="state.orderPayload.coupon_id"
|
||||
@ -94,7 +94,7 @@
|
||||
|
||||
<text class="_icon-forward item-icon"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view
|
||||
class="order-item ss-flex ss-col-center ss-row-between"
|
||||
v-if="state.orderInfo.promo_infos?.length"
|
||||
@ -122,7 +122,7 @@
|
||||
</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="item-title">申请发票</view>
|
||||
<view class="ss-flex ss-col-center" @tap="onSelectInvoice">
|
||||
@ -130,7 +130,7 @@
|
||||
<text class="_icon-forward item-icon"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 选择优惠券弹框 -->
|
||||
<s-coupon-select
|
||||
v-model="state.couponInfo"
|
||||
|
||||
@ -167,7 +167,8 @@
|
||||
import {
|
||||
onLoad,
|
||||
onReachBottom,
|
||||
onPullDownRefresh
|
||||
onPullDownRefresh,
|
||||
onShow
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
formatOrderColor
|
||||
@ -178,6 +179,7 @@
|
||||
isEmpty
|
||||
} from 'lodash';
|
||||
|
||||
|
||||
const tradeManaged = computed(() => sheep.$store('app').has_wechat_trade_managed);
|
||||
|
||||
const pagination = {
|
||||
@ -433,9 +435,13 @@
|
||||
if (options.type) {
|
||||
state.currentTab = options.type;
|
||||
}
|
||||
getOrderList();
|
||||
// getOrderList();
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
getOrderList();
|
||||
})
|
||||
|
||||
// 加载更多
|
||||
function loadmore() {
|
||||
if (state.loadStatus !== 'noMore') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user