Selaa lähdekoodia

退款状态

product
HolyKnightIX 2 vuotta sitten
vanhempi
commit
ba46ea9062
3 muutettua tiedostoa jossa 12 lisäystä ja 7 poistoa
  1. +2
    -1
      app.js
  2. +1
    -1
      pages/order/detail/index.js
  3. +9
    -5
      pages/order/detail/index.ttml

+ 2
- 1
app.js Näytä tiedosto

@@ -133,7 +133,8 @@ App({
if (res.data.mall) {
that.globalData.marketName = res.data.mall.name ? res.data.mall.name : ""
}
that.globalData.mouldType = res.data.mouldType ? res.data.mouldType : 0;
// that.globalData.mouldType = res.data.mouldType ? res.data.mouldType : 0;
that.globalData.mouldType = 1;
if (res.data.subMalls) {
const squareList = JSON.parse(res.data.subMalls)
tt.setStorageSync("squareList", squareList)


+ 1
- 1
pages/order/detail/index.js Näytä tiedosto

@@ -209,7 +209,7 @@ Page({
})

} else {
status = 'noRefund'
}
that.setData({
orderStatus: status,


+ 9
- 5
pages/order/detail/index.ttml Näytä tiedosto

@@ -47,14 +47,18 @@
</view>

<image class="infoArrow" src="{{chevronUrl}}" mode='widthFix'></image>
<pay-button tt:if="{{orderStatus}}" id='payBtn' class="goRefundPayBtn" order-status="{{orderStatus}}"
order-id="{{outOrderId}}" refund-id="{{outRefundOrderId}}" bind:refund="handleRefund"
bind:applyrefund="applyRefund" bind:error="handleError" />

<view id='payBtn' tt:if="{{!orderStatus}}" class="goRefund">
退款处理中
<view tt:if="{{orderStatus != 'noRefund'}}">
<pay-button tt:if="{{orderStatus}}" id='payBtn' class="goRefundPayBtn" order-status="{{orderStatus}}"
order-id="{{outOrderId}}" refund-id="{{outRefundOrderId}}" bind:refund="handleRefund"
bind:applyrefund="applyRefund" bind:error="handleError" />

<view id='payBtn' tt:if="{{!orderStatus}}" class="goRefund">
退款处理中
</view>
</view>


<!-- <view class="goRefund" catchtap="goRefund" data-id="{{order.id}}"
tt:if="{{order.payment!=0&&(order.couponOrderStatus==0||order.couponOrderStatus==3)}}">
{{order.couponOrderStatus==0?'申请退款':'退款进度'}}</view> -->


Ladataan…
Peruuta
Tallenna