feat:抽奖判断是否签署合同
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@
|
|||||||
"name" : "信任桥",
|
"name" : "信任桥",
|
||||||
"appid" : "__UNI__4910728",
|
"appid" : "__UNI__4910728",
|
||||||
"description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。",
|
"description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。",
|
||||||
"versionName" : "1.0.3",
|
"versionName" : "1.0.1",
|
||||||
"versionCode" : 128,
|
"versionCode" : 129,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { raffleExecute } from '@/api/raffle.js';
|
import { raffleExecute } from '@/api/raffle.js';
|
||||||
|
import { getUserInfo } from '@/api/auth.js';
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
// 奖品数据数组
|
// 奖品数据数组
|
||||||
@@ -66,10 +67,22 @@ export default {
|
|||||||
STOP_SPEED: 250, // 停止时的速度阈值
|
STOP_SPEED: 250, // 停止时的速度阈值
|
||||||
animationTimer: null, // 动画计时器
|
animationTimer: null, // 动画计时器
|
||||||
targetIndex: 0,
|
targetIndex: 0,
|
||||||
currentPrize: []
|
currentPrize: [],
|
||||||
|
currentUserData:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getUserInfo();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 查询用户等级
|
||||||
|
async getUserInfo() {
|
||||||
|
const result = await getUserInfo();
|
||||||
|
if (result && result.bizcode === 100) {
|
||||||
|
const data = result.data;
|
||||||
|
this.currentUserData = result.data || {};
|
||||||
|
}
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 移动高亮框到指定索引位置
|
* 移动高亮框到指定索引位置
|
||||||
* @param {number} index - 格子索引
|
* @param {number} index - 格子索引
|
||||||
@@ -146,6 +159,13 @@ export default {
|
|||||||
* 处理开始抽奖事件
|
* 处理开始抽奖事件
|
||||||
*/
|
*/
|
||||||
async handleStartLottery(num) {
|
async handleStartLottery(num) {
|
||||||
|
if(this.currentUserData.contractStatus != 5){
|
||||||
|
uni.showToast({
|
||||||
|
title: `您当前尚未签署合同,请先签署合同再参与抽奖~`,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.prizesObj.times <= 0) {
|
if (this.prizesObj.times <= 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
+2
-2
@@ -2,9 +2,9 @@
|
|||||||
// export const BASE_URL="https://frontend.jdns360.com/api"; // 正式环境
|
// export const BASE_URL="https://frontend.jdns360.com/api"; // 正式环境
|
||||||
// export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境
|
// 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.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' // 本地测试
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user