福利屋

This commit is contained in:
zpc 2025-04-03 23:59:34 +08:00
parent 384d38cd0c
commit 1e3eaff3c3
2 changed files with 19 additions and 11 deletions

View File

@ -62,7 +62,7 @@
<scroll-view scroll-y="true" class="benefits-scroll">
<view v-for="(item, index) in endedData" :key="index" class="benefit-item relative"
@click="$c.to({ url: '/pages/infinite/bonus_house_details' })">
@click="$c.to({ url: '/pages/infinite/bonus_house_details?goods_id=' + item.id })">
<text class="benefit-title">{{ item.title }}</text>
<text class="benefit-tips">{{ item.tips }}</text>
@ -125,7 +125,7 @@ export default {
try {
const res = await this.req({
url: "goods_fuliwu", //
url: "fuliwu", //
data: {
type: 1
}
@ -148,7 +148,7 @@ export default {
try {
const res = await this.req({
url: "goods_fuliwu", //
url: "fuliwu", //
data: {
type: 3
}
@ -259,6 +259,7 @@ export default {
.tab {
display: flex;
align-items: center;
justify-content: center;
.tab-item1 {
width: 160rpx;

View File

@ -123,9 +123,9 @@
<text style="color: #999999; font-size: 16rpx; margin-top: 12rpx;">{{ item.time }}</text>
</view>
<view class="row center" style="position: absolute; right: 56rpx;">
<image v-if="index == 0" :src="$img1('checkin/Jackpot.png')"
<image v-if="item.shang_id == 115" :src="$img1('checkin/Jackpot.png')"
style="width: 46rpx; height: 26rpx;" mode=""></image>
<text style="color: #999999; font-size: 20rpx; margin-left: 16rpx;">晶体*1500</text>
<text style="color: #999999; font-size: 20rpx; margin-left: 16rpx;">{{ item.award }}</text>
</view>
</view>
</scroll-view>
@ -220,7 +220,7 @@ export default {
async load(goods_id) {
const res = await this.req({
url: "goods_fuliwu_detail",
url: "fuliwu_detail",
data: {
goods_id: goods_id
}
@ -240,7 +240,8 @@ export default {
end_time: goods.flw_end_time,
choujiang_xianzhi: goods.choujiang_xianzhi,
popularity: join_count || 0,
quanju_xiangou: goods.quanju_xiangou
quanju_xiangou: goods.quanju_xiangou,
price: goods.price
};
if (user_consumption != null) {
this.user_total_consumption = user_consumption.total_consumed;
@ -438,7 +439,7 @@ export default {
//
try {
const res = await this.req({
url: "goods_fuliwu_participants",
url: "fuliwu_participants",
data: { goods_id }
});
@ -460,7 +461,7 @@ export default {
//
try {
const res = await this.req({
url: "goods_fuliwu_records",
url: "fuliwu_records",
data: { goods_id }
});
@ -468,8 +469,9 @@ export default {
this.awardRecordList = res.data.list.map(item => ({
avatar: item.avatar || "",
name: item.nickname || "用户",
time: item.win_time || "",
award: item.award_name || "晶体*1500"
time: item.create_time || "",
award: item.goodslist_title || "钻石*0",
shang_id: item.shang_id
}));
}
} catch (error) {
@ -539,6 +541,11 @@ export default {
return;
}
console.log(this.user_total_consumption, this.bonusData.choujiang_xianzhi);
if (this.bonusData.price == 0) {
this.useMoney = true;
this.confirmSubmit([1, 1]);
return;
}
this.confirmSubmit([0, 1])
// if (this.$refs['buyPop']) {
// this.$refs['buyPop'].open();