From 23c38172081dbc2dd71181886a7b5a02a936f092 Mon Sep 17 00:00:00 2001
From: yangjie <812952667@qq.com>
Date: Fri, 24 Sep 2021 15:02:55 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=82=E6=B7=BB=E5=8A=A0=E5=B9=BF=E5=91=8A?=
=?UTF-8?q?=E8=BD=AE=E6=92=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
subPages/lottery/lottery.vue | 88 ++++++++++++++++++------------------
1 file changed, 44 insertions(+), 44 deletions(-)
diff --git a/subPages/lottery/lottery.vue b/subPages/lottery/lottery.vue
index aa9cbe6..85af11e 100644
--- a/subPages/lottery/lottery.vue
+++ b/subPages/lottery/lottery.vue
@@ -9,30 +9,26 @@
@finish="handleDrawFinish" v-if="prizeList.length" />
-
+
-
+
+
+
+
+
+
+
+
+
+ {{item}}
+
+
+
+
活动规则
@@ -77,25 +73,6 @@
中奖产品自动放入系统卡包,在我的-我的优惠券中查看,90天内有效。
-
-
@@ -158,7 +135,10 @@
// 每次消耗的金币数
goldNum: 20,
// 每天免费抽奖次数
- freeNumDay: 3
+ freeNumDay: 3,
+ interval:3000,
+ duration:12000,
+ list: ['1分钟前,无夏购买了会员', '2分钟前,无夏购买了会员', '3分钟前,无夏购买了会员']
}
},
computed: {
@@ -192,16 +172,13 @@
uni.showLoading({
title: '奖品准备中...'
})
-
// 等待接口返回的数据进一步处理
let res = await this.requestApiGetPrizeList()
- console.log('获取奖品列表', res)
-
if (res.ok) {
+ uni.hideLoading()
let data = res.data
if (data.length) {
this.prizeList = data
- console.log('已获取到奖品列表数据,开始绘制抽奖转盘')
// 如果开启了前端控制概率
// 得出权重的最大值并生成权重数组
@@ -486,6 +463,29 @@