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 0000000..962935f Binary files /dev/null and b/src/static/images/turntable/guan.png differ 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