|
@@ -31,7 +31,8 @@
|
|
|
<div class="pageTitle"></div>
|
|
|
<div class="iconBack" @click="onBack()"></div>
|
|
|
<div id="menu">
|
|
|
- <button id="table" v-show="!animationStatus" @click="start()"></button>
|
|
|
+ <button id="table" :class="tableIndex <= 1 ? 'disabled' : ''" v-show="!animationStatus"
|
|
|
+ @click="start()"></button>
|
|
|
<button id="sphere" v-show="animationStatus" @click="closes()"></button>
|
|
|
<!-- <button id="reset" style="margin-left:40px;" @click="resets()">照片墙</button> -->
|
|
|
<!-- <button id="lists" @click="listShow = true">中奖名单</button> -->
|
|
@@ -309,8 +310,11 @@
|
|
|
function renderData(data) {
|
|
|
table = data
|
|
|
tableLens = data.length
|
|
|
+ vm.tableIndex = tableLens
|
|
|
init();
|
|
|
animate();
|
|
|
+
|
|
|
+ console.log(vm.tableIndex, 'renderData')
|
|
|
}
|
|
|
|
|
|
//点击事件及部分判断
|
|
@@ -318,6 +322,7 @@
|
|
|
el: '#vueBoxs',
|
|
|
data: {
|
|
|
animationStatus: false,
|
|
|
+ tableIndex: 0,
|
|
|
listShow: false,
|
|
|
spic: {
|
|
|
img: '',
|
|
@@ -363,6 +368,9 @@
|
|
|
// alert("抽完咯~~~完咯~~~咯~~~,在中奖名单中清空,再来一次?");
|
|
|
// return;
|
|
|
// }
|
|
|
+ if (this.tableIndex <= 1) {
|
|
|
+ return
|
|
|
+ }
|
|
|
moving = true;
|
|
|
this.animationStatus = true;
|
|
|
objectsss.position.y = 0;
|