Browse Source

Merge branch 'hongxilin/feature-20250710175148-抽奖' into milestone-20250722-抽奖

songtongtong/feature-20250717104937-众筹
no99 4 weeks ago
parent
commit
d6e099201d
  1. 2
      src/api/API.js
  2. 7
      src/views/choujiang/hxl-cj/cj.vue

2
src/api/API.js

@ -24,7 +24,7 @@ export const getUserListApi = function (params) {
// 查询中奖名单 // 查询中奖名单
export const getGetPrizeUserListApi = function (params) { export const getGetPrizeUserListApi = function (params) {
return request({ return request({
url: `${APIurl}/admin/win/list`,
url: `${APIurl}/api/winUser/list`,
method: "POST", method: "POST",
data: params, data: params,
}); });

7
src/views/choujiang/hxl-cj/cj.vue

@ -267,7 +267,7 @@ const closeGetPrize = () => {
}; };
// //
const lookPrize = (item) => {
const lookPrize = async (item) => {
// //
if (!joinLottery) { if (!joinLottery) {
addQipao("请先进入抽奖。"); addQipao("请先进入抽奖。");
@ -315,6 +315,8 @@ const lookPrize = (item) => {
// //
item.isLook = true; item.isLook = true;
} }
await nextTick();
setPrizeData(currentPrizeIndex);
}; };
function setPrizeData(currentPrizeIndex, isInit) { function setPrizeData(currentPrizeIndex, isInit) {
@ -345,7 +347,8 @@ function setPrizeData(currentPrizeIndex, isInit) {
} }
} }
// console.log("currentPrize", currentPrize);
console.log("count", count);
console.log("totalCount", totalCount);
let percent = (count / totalCount).toFixed(2); let percent = (count / totalCount).toFixed(2);
if (elements.bar) { if (elements.bar) {

Loading…
Cancel
Save