misc: 경매장 진입로를 금/쌀, 유니크로 2원화
This commit is contained in:
+29
-4
@@ -114,10 +114,10 @@ if (!$otherTextInfo) {
|
|||||||
|
|
||||||
$lastVoteID = $gameStor->lastVote;
|
$lastVoteID = $gameStor->lastVote;
|
||||||
$lastVote = null;
|
$lastVote = null;
|
||||||
if($lastVoteID){
|
if ($lastVoteID) {
|
||||||
$voteStor = KVStorage::getStorage($db, 'vote');
|
$voteStor = KVStorage::getStorage($db, 'vote');
|
||||||
$lastVote = VoteInfo::fromArray($voteStor->getValue("vote_{$lastVoteID}"));
|
$lastVote = VoteInfo::fromArray($voteStor->getValue("vote_{$lastVoteID}"));
|
||||||
if($lastVote->endDate && $lastVote->endDate < TimeUtil::now()){
|
if ($lastVote->endDate && $lastVote->endDate < TimeUtil::now()) {
|
||||||
$lastVote = null;
|
$lastVote = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -282,7 +282,21 @@ if($lastVoteID){
|
|||||||
<div id="nation-position"><?php myNationInfo($generalObj); ?></div>
|
<div id="nation-position"><?php myNationInfo($generalObj); ?></div>
|
||||||
<div id="general-position"><?php generalInfo($generalObj); ?></div>
|
<div id="general-position"><?php generalInfo($generalObj); ?></div>
|
||||||
<div id="generalCommandButton" class="row gx-0">
|
<div id="generalCommandButton" class="row gx-0">
|
||||||
<div class="buttonPlate bg2"><?= commandButton(['btnClass' => 'btn btn-sammo-nation', 'isTournamentApplicationOpen' => $isTournamentApplicationOpen, 'isBettingActive' => $isBettingActive]) ?></div>
|
<div class="buttonPlate bg2">
|
||||||
|
<?= commandButton([
|
||||||
|
'splitBtnBegin' => '<div class="btn-group">',
|
||||||
|
'splitBtnEnd' => '</div>',
|
||||||
|
'splitZoneSign' => '<button type="button" class="btn btn-sammo-nation dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false"><span class="visually-hidden">Toggle Dropdown</span></button>',
|
||||||
|
'splitZoneBegin' => '<ul class="dropdown-menu dropdown-menu-end">',
|
||||||
|
'splitZoneEnd' => '</ul>',
|
||||||
|
'splitSubBtnBegin' => '<li>',
|
||||||
|
'splitSubBtnEnd' => '</li>',
|
||||||
|
'btnClass' => 'btn btn-sammo-nation',
|
||||||
|
'btnSplitClass' => 'dropdown-item',
|
||||||
|
'isTournamentApplicationOpen' => $isTournamentApplicationOpen,
|
||||||
|
'isBettingActive' => $isBettingActive
|
||||||
|
])
|
||||||
|
?></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -382,7 +396,18 @@ if($lastVoteID){
|
|||||||
국가 메뉴
|
국가 메뉴
|
||||||
</div>
|
</div>
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarNation" id="navbarNationItems">
|
<ul class="dropdown-menu" aria-labelledby="navbarNation" id="navbarNationItems">
|
||||||
<?= commandButton(['btnBegin' => '<li>', 'btnEnd' => '</li>', 'btnClass' => 'dropdown-item', 'isTournamentApplicationOpen' => $isTournamentApplicationOpen, 'isBettingActive' => $isBettingActive]) ?>
|
<?= commandButton([
|
||||||
|
'btnBegin' => '<li>',
|
||||||
|
'btnEnd' => '</li>',
|
||||||
|
'splitMainBegin' => '<div class="d-none">',
|
||||||
|
'splitMainEnd' => '</div>',
|
||||||
|
'splitSubBtnBegin' => '<li>',
|
||||||
|
'splitSubBtnEnd' => '</li>',
|
||||||
|
'btnClass' => 'dropdown-item',
|
||||||
|
'btnSplitClass' => 'dropdown-item',
|
||||||
|
'isTournamentApplicationOpen' => $isTournamentApplicationOpen,
|
||||||
|
'isBettingActive' => $isBettingActive
|
||||||
|
]) ?>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropup">
|
<li class="nav-item dropup">
|
||||||
|
|||||||
+2
-2
@@ -65,7 +65,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#navbarNationItems {
|
#navbarNationItems {
|
||||||
columns: 2;
|
columns: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbarQuickItems {
|
#navbarQuickItems {
|
||||||
@@ -320,7 +320,7 @@ body {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbarButton2 {
|
.toolbarButton2 {
|
||||||
@extend .btn;
|
@extend .btn;
|
||||||
@extend .btn-sammo-base2;
|
@extend .btn-sammo-base2;
|
||||||
|
|||||||
@@ -16,5 +16,12 @@
|
|||||||
<?=$btnBegin??''?><a href='b_battleCenter.php' target='_blank' class='open-window commandButton <?=$btnClass??""?> <?= $showSecret ? '' : 'disabled' ?>'>감 찰 부</a><?=$btnEnd??''?>
|
<?=$btnBegin??''?><a href='b_battleCenter.php' target='_blank' class='open-window commandButton <?=$btnClass??""?> <?= $showSecret ? '' : 'disabled' ?>'>감 찰 부</a><?=$btnEnd??''?>
|
||||||
<?=$btnBegin??''?><a href='v_inheritPoint.php' class='commandButton <?=$btnClass??""?>'>유산 관리</a><?=$btnEnd??''?>
|
<?=$btnBegin??''?><a href='v_inheritPoint.php' class='commandButton <?=$btnClass??""?>'>유산 관리</a><?=$btnEnd??''?>
|
||||||
<?=$btnBegin??''?><a href='b_myPage.php' class='commandButton <?=$btnClass??""?>'>내 정보&설정</a><?=$btnEnd??''?>
|
<?=$btnBegin??''?><a href='b_myPage.php' class='commandButton <?=$btnClass??""?>'>내 정보&설정</a><?=$btnEnd??''?>
|
||||||
<?=$btnBegin??''?><a href='v_auction.php' target='_blank' class='open-window commandButton <?=$btnClass??""?>'>거 래 장</a><?=$btnEnd??''?>
|
<?=$splitBtnBegin??''?>
|
||||||
|
<?=$splitMainBegin??''?><a href='v_auction.php' target='_blank' class='open-window commandButton <?=$btnClass??""?>'>경 매 장</a><?=$splitMainEnd??''?>
|
||||||
|
<?=$splitZoneSign??''?>
|
||||||
|
<?=$splitZoneBegin??''?>
|
||||||
|
<?=$splitSubBtnBegin??''?><a href='v_auction.php' target='_blank' class='open-window commandButton <?=$btnSplitClass??''?>'>금/쌀 경매장</a><?=$splitSubBtnEnd??''?>
|
||||||
|
<?=$splitSubBtnBegin??''?><a href='v_auction.php?type=unique' target='_blank' class='open-window commandButton <?=$btnSplitClass??''?>'>유니크 경매장</a><?=$splitSubBtnEnd??''?>
|
||||||
|
<?=$splitZoneEnd??''?>
|
||||||
|
<?=$splitBtnEnd??''?>
|
||||||
<?=$btnBegin??''?><a href='b_betting.php' target='_blank' class='open-window <?=$btnClassForBetting??""?>'>베 팅 장</a><?=$btnEnd??''?>
|
<?=$btnBegin??''?><a href='b_betting.php' target='_blank' class='open-window <?=$btnClassForBetting??""?>'>베 팅 장</a><?=$btnEnd??''?>
|
||||||
@@ -22,9 +22,16 @@ import TopBackBar from "@/components/TopBackBar.vue";
|
|||||||
import BottomBar from "./components/BottomBar.vue";
|
import BottomBar from "./components/BottomBar.vue";
|
||||||
import AuctionResource from "@/components/AuctionResource.vue";
|
import AuctionResource from "@/components/AuctionResource.vue";
|
||||||
import AuctionUniqueItem from "@/components/AuctionUniqueItem.vue";
|
import AuctionUniqueItem from "@/components/AuctionUniqueItem.vue";
|
||||||
import { ref } from "vue";
|
import { toRef } from "vue";
|
||||||
|
|
||||||
const isResAuction = ref(true);
|
const props = defineProps({
|
||||||
|
isResAuction: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const isResAuction = toRef(props, 'isResAuction');
|
||||||
|
|
||||||
function tryReload() {
|
function tryReload() {
|
||||||
console.log('갱신');
|
console.log('갱신');
|
||||||
|
|||||||
+10
-1
@@ -6,9 +6,18 @@ import { auto500px } from "./util/auto500px";
|
|||||||
import { insertCustomCSS } from "./util/customCSS";
|
import { insertCustomCSS } from "./util/customCSS";
|
||||||
import { htmlReady } from "./util/htmlReady";
|
import { htmlReady } from "./util/htmlReady";
|
||||||
|
|
||||||
|
declare const staticValues: {
|
||||||
|
serverID: string,
|
||||||
|
turnterm: number,
|
||||||
|
serverNick: string,
|
||||||
|
isResAuction: boolean,
|
||||||
|
};
|
||||||
|
|
||||||
auto500px();
|
auto500px();
|
||||||
|
|
||||||
htmlReady(() => {
|
htmlReady(() => {
|
||||||
insertCustomCSS();
|
insertCustomCSS();
|
||||||
});
|
});
|
||||||
createApp(PageAuction).use(BootstrapVue3).use(BToastPlugin).mount('#app')
|
createApp(PageAuction, {
|
||||||
|
isResAuction: staticValues.isResAuction,
|
||||||
|
}).use(BootstrapVue3).use(BToastPlugin).mount('#app')
|
||||||
@@ -11,6 +11,8 @@ $userID = Session::getUserID();
|
|||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||||
|
|
||||||
|
$isResAuction = Util::getReq('type') !== 'unique';
|
||||||
|
|
||||||
$me = $db->queryFirstRow('SELECT no, nation, officer_level, permission, con, turntime, belong, penalty FROM general WHERE owner=%i', $userID);
|
$me = $db->queryFirstRow('SELECT no, nation, officer_level, permission, con, turntime, belong, penalty FROM general WHERE owner=%i', $userID);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -28,6 +30,7 @@ $me = $db->queryFirstRow('SELECT no, nation, officer_level, permission, con, tur
|
|||||||
'serverID' => UniqueConst::$serverID,
|
'serverID' => UniqueConst::$serverID,
|
||||||
'serverNick' => DB::prefix(),
|
'serverNick' => DB::prefix(),
|
||||||
'turnterm' => $gameStor->turnterm,
|
'turnterm' => $gameStor->turnterm,
|
||||||
|
'isResAuction' => $isResAuction,
|
||||||
]
|
]
|
||||||
]) ?>
|
]) ?>
|
||||||
<?= WebUtil::printDist('vue', 'v_auction', true) ?>
|
<?= WebUtil::printDist('vue', 'v_auction', true) ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user