交互完善

This commit is contained in:
kron
2025-07-11 01:00:54 +08:00
parent ea408ea382
commit b8e09c20e3
3 changed files with 11 additions and 2 deletions

View File

@@ -84,6 +84,15 @@ const goBack = () => {
</button> </button>
</view> </view>
</view> </view>
<view v-if="hintType === 3" class="tip-content">
<text>今天不玩了吗</text>
<view>
<button hover-class="none" @click="goBack">确认</button>
<button hover-class="none" @click="() => (showHint = false)">
取消
</button>
</view>
</view>
</ScreenHint> </ScreenHint>
</view> </view>
</template> </template>

View File

@@ -143,7 +143,7 @@ const onBack = () => {
if (battleId.value) { if (battleId.value) {
uni.$showHint(2); uni.$showHint(2);
} else { } else {
uni.navigateBack(); uni.$showHint(3);
} }
}; };
onMounted(() => { onMounted(() => {

View File

@@ -172,7 +172,7 @@ const onBack = () => {
if (battleId.value) { if (battleId.value) {
uni.$showHint(2); uni.$showHint(2);
} else { } else {
uni.navigateBack(); uni.$showHint(3);
} }
}; };
onMounted(() => { onMounted(() => {