From 52506bb2af07f7bcaaf3d5569a0b0f9924442174 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Fri, 20 Dec 2024 18:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E7=9B=98=E6=8A=BD=E5=A5=96=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- me/choujiang/choujiang.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/me/choujiang/choujiang.vue b/me/choujiang/choujiang.vue index 97c8d26..892ef20 100644 --- a/me/choujiang/choujiang.vue +++ b/me/choujiang/choujiang.vue @@ -96,6 +96,10 @@ }, data() { return { + // 1 订单拉起抽奖 + // 2 周任务拉起抽奖 + // 3 月任务拉起抽奖 + source:1, background:{ background:'transparent' }, @@ -237,7 +241,7 @@ // 注意这里返回的是一个 Promise // 大哥,这里只是模拟,别告诉我你不会对接自己的接口 async requestApiGetPrizeList() { - const res = await this.$Request.getT('/app/discSpinning/selectDiscSpinning') + const res = await this.$Request.getT('/app/discSpinning/selectDiscSpinning',{source:this.source}) if (res.code == 0) { return { ok: true, @@ -434,7 +438,7 @@ async remoteGetPrizeIndex() { this.result='' console.warn('###当前处于模拟的请求接口,并返回了中奖信息###') - const res = await this.$Request.getT('app/discSpinning/draw') + const res = await this.$Request.getT('app/discSpinning/draw',{source:this.source}) this.freeNum-- // this.getCount() console.log(res); @@ -539,7 +543,7 @@ } }, async getCount(){ - const res=await this.$Request.getT('app/discSpinning/drawCount') + const res=await this.$Request.getT('app/discSpinning/drawCount',{source:this.source}) if(res.code==0){ this.freeNum=res.count||0 this.freeNumDay=res.sum||0 @@ -555,6 +559,9 @@ }, onLoad(opt) { this.option = opt + if(opt.source){ + this.source=opt.source + } this.prizeList = [] this.getCount() this.getRedPack()