兑换记录

This commit is contained in:
duan
2025-01-15 14:49:27 +08:00
parent 1b0279655d
commit e5842b6429
5 changed files with 147 additions and 18 deletions

View File

@@ -6,17 +6,18 @@
v-for="(item, index) in datas.tab" :key="index">{{ item.label }}</view>
</view>
<view class="item" v-for="(item, index) in datas.list" :key="index">
<view class="color-666 u-font-24">中奖时间 {{item.drawDay}}</view>
<view class="color-666 u-font-24">{{datas.tabIndex==1?'中奖时间':'兑换时间'}} {{item.createTime}}</view>
<view class="u-m-t-24 u-flex u-row-between">
<view class="u-flex-1 u-flex u-col-top">
<u-image width="128rpx" height="128rpx" src="@/static/index/redPack.png"></u-image>
<view class="u-m-l-16">
<view>大额红包</view>
<view class="color-999 u-font-24 u-m-t-16">×1</view>
<view v-if="datas.tabIndex == 1">{{item.name}}</view>
<view v-else>{{item.prizeName}}</view>
<view v-if="datas.tabIndex == 1" class="color-999 u-font-24 u-m-t-16">×{{item.number}}</view>
</view>
</view>
<view class="">
<!-- <view class="btn-circle duihuan" @click="toDuiHuan(item)">立即兑换</view> -->
<view class="" v-if="datas.tabIndex==1&&!item.targetId&&item.type==3">
<view class="btn-circle duihuan" @click="toDuiHuan(item)">立即兑换</view>
</view>
</view>
</view>
@@ -86,10 +87,10 @@
}
} else {
if (datas.page == 1) {
datas.list = res.page.list;
datas.list = res.list;
} else {
if (res.records.length) {
datas.list.push(...datas.list, res.records)
datas.list.push(...datas.list, res.list)
}
}
// datas.total = res.page.totalCount;
@@ -106,8 +107,8 @@
// 立即兑换
function toDuiHuan(item) {
uni.navigateTo({
url: `/me/gift/duihuan?source=${this.query.source}&id=${item.id}`
});
url: `/pages/index/prizeDraw/duihuan?id=${item.id}`
})
}
</script>