From 81fb4aaa44fb3019d9cb4cfa95c8dbda39e5f61c Mon Sep 17 00:00:00 2001 From: xiaogang <825201136@qq.com> Date: Tue, 18 Jun 2024 16:19:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BD=AC=E7=9B=98=E6=8A=BD=E5=A5=96?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/turntable/index.vue | 31 ++++++--------------------- src/static/images/turntable/guan.png | Bin 0 -> 1410 bytes src/typings.ts | 1 + 3 files changed, 8 insertions(+), 24 deletions(-) create mode 100644 src/static/images/turntable/guan.png diff --git a/src/pages/turntable/index.vue b/src/pages/turntable/index.vue index 0f209cc..9073a3f 100644 --- a/src/pages/turntable/index.vue +++ b/src/pages/turntable/index.vue @@ -23,7 +23,7 @@ style="margin-top: a1e0 rpx; color: #003a6e" > 活动规则 - - @@ -185,7 +168,6 @@ import lotteryBg from '../../static/images/turntable/panpan.png' import dizuo from '../../static/images/turntable/dizuo.png' import Api from '@/service/turntable' import { useUserStore } from '@/store' -const imgUrl = 'http://jifenshop1.test.86698.cn/api/static/images/' export default { name: 'Home', components: { @@ -212,7 +194,6 @@ export default { ismask2: false, ismask: false, isz: 1, - imgUrl: '', activity_code: '', } }, @@ -221,6 +202,9 @@ export default { const { activity_code } = this.getUrlParams() // eslint-disable-next-line camelcase this.activity_code = activity_code || 'GOHANG' + // const token = 'eb1272c9c7e5f5032e75aa76222f63ae91' + // const useStore = useUserStore() + // useStore.setUserInfo({ token }) this.prizeList = [] this.getConfig() this.getPrizeList() @@ -250,7 +234,7 @@ export default { title: '加载中...', }) const params = { - activity_code: code, + activity_code: this.activity_code, } Api.getCode(params).then((res) => { uni.hideLoading() @@ -271,9 +255,8 @@ export default { }, // 获取奖品列表 getPrizeList() { - console.log(this.getUrlParm()) Api.getProducts({ - activity_code: code, + activity_code: this.activity_code, }).then((res) => { if (res.code === 200) { const { products } = res.data diff --git a/src/static/images/turntable/guan.png b/src/static/images/turntable/guan.png new file mode 100644 index 0000000000000000000000000000000000000000..962935f2614b0401e3505ff99260b61a7cb0575a GIT binary patch literal 1410 zcmV-|1%3L7P)Px)JV``BR9HvNnB8*|RTRL_xp#L{22{#G6Wf#zTMCL}snCSd+H49{W&|HPgQGs^ zgMXP%I_h*BsSYSKOKd5jD1ss~Pz0N%NvjkUwAqh)oV#>ux=qpztqghSOlQwM_jk|7 zJ?9>T8h^9hyPmT6`Y56rAtve(aDyOFr5Yx{B2M>FusI?t|EKdHyL%Au#EyhDU}z3=0dhLx@GiIt{PZHppOA~w;u08gcm#oB)~!v6OLj|M29cu z5x^;@oB(*XuRX$Ttp$;_5PRrS`6Gg#Mvctan-$iU1^PwbUKfIfBY@bjphXD4A1x?+ zzr(maAH?*YjMSwI@OwP|bg_=w9bUZEJbZa72y7u94?A_# z=9v6y^Vrz317`L30fz9B)MXd#GxG9ufu@oN-aw#;yk|@-d{{0WC-wb0N8Uz6PSLbZ zKX>lZooY}r1WZjkf&dC3+-@4qeC3yy8C^%=x8*%Wfcd7>`OnduTa8UU$Dc_zh-zV||QctE^4oROW+9<-k)| z4eHjxj%}fkc1XHOo_Hk~sZ*AjLNflItbIbj4a_Aw2LRY+0P$O6YJ4zAu$F_8>q44( z7!i3;7;mpq2AodD-X*{~0b(MW8b1>RNXq!3+>~`;1Of4?Zu0MuPj(&>z*-P!9;fu! z`>vuY0bSAmz44tKQTO^IMkE;6MuYL)&7cR9a=G5lUf^uEOqNvv$(X6r)PApuuate2 zAeR7nE@L1jA~m=ycd%m{EyRqpj39>6QZhNXX`WoE5i5mT;VXeuD|NGJlZ zwHlz726ZByBnCSlCGGt&1GRa}e;bByrt(&oKZsAU&p(9$uj@7<1|9S%}D z{7@>1FB^>Ue7T^WPIe}!v~&b5u7yOr-(j#LXeO0H0nnYs)P+;!imQgA=CboX?aka3vX%1~&ctAe6O}@0$<9G&T#r;<~ z=TW&I11O|ZnW2i$ASvXwl@LBk2%F^p(tTtpr&k+O{)eKBn|UY0Z5o!5I55XevMtYc6ow@9m8b^Bn0+08bmYGA_ QF8}}l07*qoM6N<$g0m}?CjbBd literal 0 HcmV?d00001 diff --git a/src/typings.ts b/src/typings.ts index 4ef185d..ec35db6 100644 --- a/src/typings.ts +++ b/src/typings.ts @@ -1,6 +1,7 @@ // 全局要用的类型放到这里 type IResData = { + message: string code: number msg: string data: T