fix: gatewayButton

This commit is contained in:
2023-03-21 01:51:39 +09:00
parent 3c412f2803
commit aae730d39c
5 changed files with 14 additions and 5 deletions
+5
View File
@@ -119,6 +119,11 @@ function backButton()
return "<button type='button' class='btn btn-primary back_btn' onclick=location.replace('./')>돌아가기</button><br>";
}
function gatewayButton()
{
return "<button type='button' class='btn btn-primary back_btn' onclick=location.replace('../')>돌아가기</button><br>";
}
function CoreBackButton()
{
return "<button type='button' class='btn btn-primary back_btn' onclick=location.replace('v_chiefCenter.php')>돌아가기</button><br>";
+2 -2
View File
@@ -94,7 +94,7 @@ if ($gencount >= $maxgeneral) {
<body>
<div class="container">
<div class="bg0 with_border legacy_layout">장 수 선 택<br><?= backButton() ?></div>
<div class="bg0 with_border legacy_layout">장 수 선 택<br><?= gatewayButton() ?></div>
<table style="width:100%;" class="bg0 with_border">
<tr>
<td><?= info(0) ?></td>
@@ -142,7 +142,7 @@ if ($gencount >= $maxgeneral) {
</tr>
</tfoot>
</table>
<div class="with_border legacy_layout"><?= backButton() ?></div>
<div class="with_border legacy_layout"><?= gatewayButton() ?></div>
<div class="with_border legacy_layout"><?= banner() ?></div>
</div>
</div>
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<TopBackBar title="장수 생성" />
<TopBackBar title="장수 생성" type="gateway" />
<div v-if="gameConstStore && args" id="container" class="bg0">
<div class="nation-list">
+3 -1
View File
@@ -13,7 +13,7 @@ import "@scss/game_bg.scss";
const props = defineProps({
type: {
type: String as PropType<"normal" | "chief" | "close">,
type: String as PropType<"normal" | "chief" | "close" | "gateway">,
default: "normal",
required: false,
},
@@ -22,6 +22,8 @@ const props = defineProps({
function back() {
if (props.type === "normal") {
location.href = "./";
} else if (props.type === "gateway") {
location.href = "..";
} else if (props.type == "chief") {
location.href = "v_chiefCenter.php";
} else {
+3 -1
View File
@@ -34,7 +34,7 @@ import VueTypes from "vue-types";
const props = defineProps({
title: VueTypes.string.isRequired,
type: {
type: String as PropType<"normal" | "chief" | "close">,
type: String as PropType<"normal" | "chief" | "close" | "gateway">,
default: "normal",
required: false,
},
@@ -70,6 +70,8 @@ watch(toggleSearch, (val) => {
function back() {
if (props.type === "normal") {
location.href = "./";
} else if (props.type === "gateway") {
location.href = "..";
} else if (props.type == "chief") {
location.href = "v_chiefCenter.php";
} else {