Browse Source

修改提示

milestone-20250826-财富金轮
zhaoruhui 3 weeks ago
parent
commit
a95a805637
  1. 24
      src/views/wealth/goldenWheel.vue

24
src/views/wealth/goldenWheel.vue

@ -463,9 +463,25 @@ async loadHistoryRecord() {
// API
await this.fetchWheelInfo();
return true;
} else {
}else if(res.code === 400){
const prize = res.msg;
// API
const SpaceIndex = prize.indexOf(',');
if (SpaceIndex !== -1) {
// prizeMessage
this.prizeMessage = prize.substring(0, SpaceIndex);
// prizeAmount
this.prizeAmount = prize.substring(SpaceIndex + 1);
} else {
// prizeMessageprizeAmount
this.prizeMessage = prize;
this.prizeAmount = '';
}
// API
await this.fetchWheelInfo();
return true;
}else {
console.error('抽奖API返回错误:', res.msg);
//
this.prizeMessage = '抽奖失败';
@ -474,7 +490,7 @@ async loadHistoryRecord() {
// 使
await this.fetchWheelInfo();
return false;
return true;
}
} catch (error) {
console.error('抽奖API调用失败:', error);
@ -485,7 +501,7 @@ async loadHistoryRecord() {
// 使
await this.fetchWheelInfo();
return false;
return true;
}
},

Loading…
Cancel
Save