update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-12-19 21:19:00 +08:00
parent 20f5e6b7cc
commit 8f47153ca3
9 changed files with 98 additions and 14 deletions

View File

@@ -34,8 +34,8 @@
</view>
<view class="right">
<view class="btn" @click="utils.vibrateShort(() => toPage(1))"
>开奖记录</view
>
>开奖记录
</view>
<view class="btn mt-15" @click="utils.vibrateShort(() => toPage(2))">
投注记录
</view>
@@ -186,14 +186,14 @@
<!-- 底部操作栏 -->
<view class="subColor bottomBar">
<view class="btn1" @click="utils.vibrateShort(() => clearBet(true))"
>重置</view
>
>重置
</view>
<view class="btn2" @click="utils.vibrateShort(() => changeOdd())"
>X{{ oddVal }}</view
>
>X{{ oddVal }}
</view>
<view class="btn3" @click="utils.vibrateShort(() => verifyBet())"
>投注</view
>
>投注
</view>
</view>
</view>
</template>
@@ -451,17 +451,20 @@ const openDraw = () => {
}, 5000);
};
const oddVal = ref(1000);
const oddVal = ref(10000);
const changeOdd = () => {
switch (oddVal.value) {
case 1000:
case 10:
oddVal.value = 100;
break;
case 100:
oddVal.value = 10000;
break;
// case 10:
// oddVal.value = 100
// break
case 10000:
oddVal.value = 1000;
oddVal.value = 100000;
break;
case 100000:
oddVal.value = 10;
break;
}
};