feat:抽奖
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
left: highlightLeft,
|
||||
transition: isRotating ? 'all 0.07s linear' : 'none'
|
||||
}"></view>
|
||||
|
||||
|
||||
<!-- 9个格子 -->
|
||||
<view class="grid-item" v-for="(item, index) in 9" :key="index">
|
||||
@@ -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()
|
||||
},
|
||||
/**
|
||||
* 开始抽奖动画
|
||||
|
||||
Reference in New Issue
Block a user