细节调整
This commit is contained in:
@@ -305,6 +305,14 @@ const setClipboardData = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const onBack = () => {
|
||||
if (battleId.value) {
|
||||
uni.$showHint(2);
|
||||
} else {
|
||||
showModal.value = true;
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
uni.$on("socket-inbox", onReceiveMessage);
|
||||
});
|
||||
@@ -318,11 +326,7 @@ onUnmounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Container
|
||||
title="对战"
|
||||
:onBack="() => (showModal = true)"
|
||||
:bgType="battleId ? 1 : 0"
|
||||
>
|
||||
<Container title="对战" :onBack="onBack" :bgType="battleId ? 1 : 0">
|
||||
<view class="standby-phase" v-if="step === 1">
|
||||
<Guide>
|
||||
<view class="battle-guide">
|
||||
|
||||
Reference in New Issue
Block a user