{{ userInfo.username }}
@@ -384,6 +384,23 @@ export default {
showSwitchtab(false)
showSwitchCamera(false)
}
+
+ // 处理返回按钮
+ const handleBack = () => {
+ // 检查是否从 Portal 跳转过来
+ const urlParams = new URLSearchParams(window.location.search)
+ const from = urlParams.get('from')
+ const returnUrl = urlParams.get('returnUrl')
+
+ if (from === 'portal' && returnUrl) {
+ // 返回到 Portal
+ window.location.href = decodeURIComponent(returnUrl)
+ } else {
+ // 返回到游戏大厅
+ router.replace({ name: routerStack.value })
+ }
+ }
+
// 显示快捷换台列表
const showSwitchtab = (type) => {
store.commit("app/standbyTime")
@@ -1210,6 +1227,7 @@ export default {
offCamera,
toggleAplayer,
clearChip,
+ handleBack,
cancelChip,
showMenu,
showSetFree,
@@ -1502,4 +1520,33 @@ $gold: #c5a059;
}
}
}
+
+/* 竖屏模式下,路单区域平铺全屏 */
+@media screen and (orientation: portrait) {
+ .play .view {
+ .wayView {
+ width: 100% !important;
+ max-width: 100% !important;
+ height: 250px !important;
+ min-height: 250px !important;
+ margin: 0 !important;
+ padding: 0 !important;
+ left: 0 !important;
+ right: 0 !important;
+ display: flex !important;
+ flex-direction: row !important;
+
+ .pokerView {
+ order: 1 !important;
+ flex: none !important;
+ width: 200px !important;
+ }
+
+ .playway {
+ order: 2 !important;
+ flex: 1 !important;
+ }
+ }
+ }
+}