diff --git a/src/api/API.js b/src/api/API.js index bee602c..85fe151 100644 --- a/src/api/API.js +++ b/src/api/API.js @@ -24,7 +24,7 @@ export const getUserListApi = function (params) { // 查询中奖名单 export const getGetPrizeUserListApi = function (params) { return request({ - url: `${APIurl}/admin/win/list`, + url: `${APIurl}/api/winUser/list`, method: "POST", data: params, }); diff --git a/src/views/choujiang/hxl-cj/cj.vue b/src/views/choujiang/hxl-cj/cj.vue index 89836f8..9a5f014 100644 --- a/src/views/choujiang/hxl-cj/cj.vue +++ b/src/views/choujiang/hxl-cj/cj.vue @@ -267,7 +267,7 @@ const closeGetPrize = () => { }; //揭示奖品 -const lookPrize = (item) => { +const lookPrize = async (item) => { // 未进入抽奖禁止揭晓 if (!joinLottery) { addQipao("请先进入抽奖。"); @@ -315,6 +315,8 @@ const lookPrize = (item) => { //点击揭晓 item.isLook = true; } + await nextTick(); + setPrizeData(currentPrizeIndex); }; 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); if (elements.bar) {