Compare commits

..

No commits in common. "a436e20577893eb84497dd6a59fc50dc46091e23" and "54d34dd20ed1ce506ecee44b3f54f63a95c8ce44" have entirely different histories.

2 changed files with 33 additions and 28 deletions

View File

@ -190,10 +190,8 @@ const btn = () => {
// //
const drawBtn = () => { const drawBtn = () => {
console.log("抽奖:"); console.log("抽奖:");
getluckyBag(1); getluckyBag(1);
}; };
// //
@ -260,35 +258,42 @@ const getInfo = () => {
}; };
// //
const getMyPrizeRecored = () => {
const getMyPrizeRecored = ()=>{ service
service .post(process.env.VUE_APP_API + "/cms-activity/cms88/prize/list", {})
.post(process.env.VUE_APP_API + "/cms-activity/cms88/prize/list",{}) .then((res) => {
.then((res) => { console.log(res);
console.log("红包记录:",res); });
}); };
}
// isInActivityDate 0 1 // isInActivityDate 0 1
const getIsAddService = ()=>{ const getIsAddService = () => {
let isInActivityDate = 0 let isInActivityDate = 0;
service service
.post(process.env.VUE_APP_API + "/cms-activity/cms88/qywx/isadded/"+ isInActivityDate) .post(
.then((res) => { process.env.VUE_APP_API +
console.log("是否添加了企微",res); "/cms-activity/cms88/qywx/isadded/" +
}); isInActivityDate
} )
.then((res) => {
console.log(res);
});
};
// type 1 2 // type 1 2
const getluckyBag = (id)=>{ const getluckyBag = (id) => {
let type = id let type = id;
service service
.post(process.env.VUE_APP_API + "/cms-activity/cms88/redpacket/draw/"+ type,{}) .post(
.then((res) => { process.env.VUE_APP_API +
console.log("抽取红包结果:",res); "/cms-activity/cms88/redpacket/draw/" +
}); type,
} {}
)
.then((res) => {
console.log(res);
});
};
// //
const getActivityNum = () => { const getActivityNum = () => {

View File

@ -7,7 +7,7 @@
<div class="prize_title"></div> <div class="prize_title"></div>
</div> </div>
<div class="prize_middle"> <div class="prize_middle">
<div class="prize_item" v-for="(item,key) in prizeList" :key="key" v-show="item.isHas"> <div class="prize_item" v-for="item in prizeList" v-show="item.isHas">
<div class="prize_li"> <div class="prize_li">
<div class="prize_num">{{ item.prizeNum }}元红包</div> <div class="prize_num">{{ item.prizeNum }}元红包</div>
<div class="prize_spe">{{ item.spe }}</div> <div class="prize_spe">{{ item.spe }}</div>