交互完善
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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(() => {
|
||||||
|
|||||||
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user