fix: 转盘抽奖加入图标

This commit is contained in:
xiaogang 2024-06-18 16:19:15 +08:00
parent bf063afe43
commit 81fb4aaa44
3 changed files with 8 additions and 24 deletions

View File

@ -23,7 +23,7 @@
style="margin-top: a1e0 rpx; color: #003a6e"
></text>
<image
:src="imgUrl + 'guan.png'"
src="../../static/images/turntable/guan.png"
@click="closemsk"
style="width: 36rpx; height: 36rpx; margin-top: 150rpx"
mode=""
@ -55,7 +55,7 @@
<view></view>
<text class="f30 bold" style="color: #003a6e">活动规则</text>
<image
:src="imgUrl + 'guan.png'"
src="../../static/images/turntable/guan.png"
@click="closemsk"
style="width: 36rpx; height: 36rpx"
mode=""
@ -74,24 +74,7 @@
</view>
<view class="pos flex_center flex_items" style="margin-top: 60rpx">
<image src="../../static/images/turntable/ttchou.png" mode="" class="banner"></image>
<!-- <view
class="abs flex_items flex_center"
style="top: -68rpx; left: 50rpx; width: 254rpx; height: 77rpx"
>
<text class="f22 pos mb20" style="z-index: 2; color: #ff5f14">抽奖机会 每日8点刷新</text>
<image
class="abs"
mode=""
style="top: 0; left: 0; width: 100%; height: 77rpx"
:src="imgUrl + 'qp.png'"
></image>
</view> -->
</view>
<!-- <view class="flex_items flex_center">
<view class="t2 flex_items flex_center">
<text class="f22" style="color: #fafde2">每天分享一位好友获取一次抽奖资格</text>
</view>
</view> -->
<view class="flex_between">
<view></view>
<view class="flex_column flex_items mt30">
@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -1,6 +1,7 @@
// 全局要用的类型放到这里
type IResData<T> = {
message: string
code: number
msg: string
data: T