feat:抽奖

This commit is contained in:
2025-09-16 23:22:18 +08:00
parent 53c58cdf33
commit f86ae4a4b8
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
"appid" : "__UNI__4910728",
"description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。",
"versionName" : "1.0.1",
"versionCode" : 129,
"versionCode" : 131,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
@@ -10,6 +10,7 @@
transition: isRotating ? 'all 0.07s linear' : 'none'
}"></view>
<!-- 9个格子 -->
<view class="grid-item" v-for="(item, index) in 9" :key="index">
<!-- 中间格子作为抽奖按钮 (索引4) -->
@@ -159,7 +160,7 @@ export default {
* 处理开始抽奖事件
*/
async handleStartLottery(num) {
if(this.currentUserData.contractStatus != 5){
if(this.currentUserData.contractStatus != 4){
uni.showToast({
title: `您当前尚未签署合同,请先签署合同再参与抽奖~`,
icon: 'none'
@@ -219,7 +220,7 @@ export default {
this.$emit('start', num, this.currentPrize)
// 开始抽奖动画(无论父组件做了什么处理)
this.startLotteryAnimation(start)
this.startLotteryAnimation()
},
/**
* 开始抽奖动画
+1 -2
View File
@@ -12,7 +12,7 @@
<!-- 九宫格抽奖组件 -->
<LotteryGrid :prizesObj="prizesObj" :remainCount="prizesObj.times" :is-disabled="isRotating"
@start="handleStartLottery" @complete="handleLotteryComplete" :targetIndex="targetIndex" />
@start="handleStartLottery" @complete="handleLotteryComplete" />
<!-- 规则 -->
<view class="rule">
@@ -47,7 +47,6 @@ export default {
showResult: false, // 是否显示结果弹窗
currentPrize: [],// 当前中奖奖品
targetIndex: 0,
backPath: null,
}
},
+2 -2
View File
@@ -2,9 +2,9 @@
// export const BASE_URL="https://frontend.jdns360.com/api"; // 正式环境
// export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境
// export const BASE_URL = "https://api.tbmall.xin"; //生产
export const BASE_URL = "https://api.tbmall.xin"; //生产
// export const BASE_URL ='http://api.hm.a-d.work:6880' // 测试
export const BASE_URL ='http://api.outer.tbmall.xin:6880' // 本地测试
// export const BASE_URL ='http://api.outer.tbmall.xin:6880' // 本地测试