This commit is contained in:
Vinjor 2025-04-29 15:29:06 +08:00
parent 11148a7f3b
commit 13e376da89

View File

@ -31,8 +31,12 @@
</view>
</view>
</view>
<view v-if="wayOrder!=null" class="daiban-box">
您有一笔<text>{{ wayOrder.points }}</text>积分的提现订单请及时处理
<view v-if="ifHasWaiting" class="daiban-box">
<view class="daiban-dom">
<uni-icons type="chat-filled" size="18" style="padding-right: 10rpx;"></uni-icons>
您有一笔<text>{{ wayOrder.points }}</text>积分的提现订单请及时处理
<uni-icons type="right" size="18" style="padding-left: 10rpx;"></uni-icons>
</view>
</view>
<view class="data-list-box">
<view class="content-box">
@ -81,7 +85,7 @@
import {
pointList,
payout,
getOnWayOrder
getOnWayOrder
} from '@/api/business/member.js'
import {
toast
@ -99,10 +103,10 @@
//
ifMember: true,
//
ifHasWaiting: false,
ifHasWaiting: true,
menus: ['积分收支明细'],
menuIndex: 0,
wayOrder:{},
wayOrder: {},
//
dataList: [{
fromCode: "",
@ -139,23 +143,27 @@
this.pointsBalance = option.pointsBalance
this.initData()
},
onShow(){
this.initWayOrder()
},
onShow() {
this.initWayOrder()
},
methods: {
initWayOrder(){
getOnWayOrder().then(res=>{
if(res.code == 200) {
console.log(res,'res')
if (res.data){
this.wayOrder = res.data
} else {
this.wayOrder = null
}
}
})
},
initWayOrder() {
getOnWayOrder().then(res => {
if (res.code == 200) {
console.log(res, 'res')
if (res.data) {
this.wayOrder = res.data
this.ifHasWaiting = true
} else {
this.wayOrder = null
// this.ifHasWaiting = false
}
} else {
this.ifHasWaiting = false
}
})
},
/**
* 格式化数字
@ -351,15 +359,25 @@
.daiban-box {
width: 100%;
padding-top: 10rpx;
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
padding-top: 10rpx;
font-size: 28rpx;
text {
color: #FC1F3E;
.daiban-dom {
background-color: white;
padding: 10rpx 20rpx;
border-radius: 15rpx;
display: flex;
align-items: center;
justify-content: center;
text {
color: #FC1F3E;
}
}
}
.huiyuan-box {
@ -480,11 +498,11 @@
}
.no-member-and-wating {
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 520rpx);
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 535rpx);
}
.member-and-wating {
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 400rpx);
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 415rpx);
}
.data-list {