12.6 退款问题修改

formal_basic
shilei 2 weeks ago
parent 58fee9376f
commit d6c5634f69

@ -18,14 +18,17 @@
// handle_loop() // handle_loop()
}, },
onShow: function() { onShow: function() {
// console.log(uni.getStorageSync('token'), 'token')
let token = uni.getStorageSync('token')
// console.log(globalData.isLogin, 'globalData.isLogin') // console.log(globalData.isLogin, 'globalData.isLogin')
// if (globalData.isLogin == false) { if (token != '' && token != null) {
globalData.isLogin = true
// setTimeout(() => { // setTimeout(() => {
// uni.navigateTo({ // uni.navigateTo({
// url: '../../pagesCenter/login/enter' // url: '../../pagesCenter/login/enter'
// }) // })
// }, 1000) // }, 1000)
// } }
}, },
onHide: function() { onHide: function() {
// console.log('App Hide') // console.log('App Hide')

@ -36,9 +36,11 @@
付款成功 付款成功
</view> </view>
<text class="refund_moneny" <text class="refund_moneny"
v-if="tab_current == 0 && item.refundStatus == null || item.refundStatus == 0" v-if="tab_current == 0 && item.refundStatus == 0 && item.payRefundId == null"
@click="handle_refund(item.id)">退款</text> @click="handle_refund(item.id)">退款</text>
<text v-if="item.refundStatus == 10" class="refund_moneny_10">退</text> <text class="refund_moneny_ing" v-if="item.refundStatus == 0 && item.payRefundId != null">退</text>
<text class="refund_moneny_fail" v-if="item.refundStatus == 20 && item.payRefundId != null">退</text>
<text v-if="item.refundStatus == 10 && item.payRefundId != null" class="refund_moneny_10">退( {{item.refundTotalPrice / 100}} )</text>
</view> </view>
<view class="margin-top-sm payTime" v-if="tab_current == 0">{{item.payTime}}</view> <view class="margin-top-sm payTime" v-if="tab_current == 0">{{item.payTime}}</view>
<view class="margin-top-sm payTime" v-else>{{item.createTime}}</view> <view class="margin-top-sm payTime" v-else>{{item.createTime}}</view>
@ -160,6 +162,7 @@
}, 2000) }, 2000)
setTimeout(() => { setTimeout(() => {
handle_bindType() handle_bindType()
getPayList(0)
uni.hideLoading() uni.hideLoading()
}, 4000) }, 4000)
} else { } else {
@ -172,6 +175,7 @@
}, 2000) }, 2000)
setTimeout(() => { setTimeout(() => {
handle_bindType() handle_bindType()
getPayList(0)
uni.hideLoading() uni.hideLoading()
}, 4000) }, 4000)
@ -367,6 +371,18 @@
margin-left: 10rpx; margin-left: 10rpx;
color: red; color: red;
} }
.refund_moneny_ing {
font-size: 13px;
// text-decoration: underline;
margin-left: 10rpx;
color: forestgreen;
}
.refund_moneny_fail {
font-size: 13px;
// text-decoration: underline;
margin-left: 10rpx;
color: red;
}
.refund_moneny_10 { .refund_moneny_10 {
color: #ad8787; color: #ad8787;

Loading…
Cancel
Save