From 2f2f2e1294bb714d932587f23a2a2efb348fc0f2 Mon Sep 17 00:00:00 2001
From: xingyy <64720302+Concur-max@users.noreply.github.com>
Date: Mon, 17 Feb 2025 13:33:31 +0800
Subject: [PATCH] =?UTF-8?q?feat(auth):=20=E5=AE=9E=E7=8E=B0=E7=99=BB?=
=?UTF-8?q?=E5=BD=95=E5=92=8C=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81=E7=9A=84?=
=?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在登录页面添加对 fddCheck 的调用,处理特定的跳转逻辑
- 在实名认证页面添加路由查询参数处理,优化页面加载
- 优化直播室页面的代码结构,提高可读性
---
app/pages/liveRoom/index.client.vue | 16 +++++++++-------
app/pages/login/index.vue | 9 ++++++++-
app/pages/realAuth/index.vue | 15 +++++++++------
3 files changed, 26 insertions(+), 14 deletions(-)
diff --git a/app/pages/liveRoom/index.client.vue b/app/pages/liveRoom/index.client.vue
index 8a0c6d0..c35587b 100644
--- a/app/pages/liveRoom/index.client.vue
+++ b/app/pages/liveRoom/index.client.vue
@@ -9,11 +9,12 @@ import paymentResults from '@/pages/liveRoom/components/PaymentResults/index.vue
import paymentInput from '@/pages/liveRoom/components/PaymentInput/index.vue'
import {goodStore} from "@/stores/goods/index.js"
import {message} from "~/components/x-message/useMessage.js"
-import { showConfirmDialog } from 'vant';
+import {showConfirmDialog} from 'vant';
import {artworkBuy} from "@/api/goods/index.js"
import {useI18n} from 'vue-i18n'
+
const player = ref(null)
-const {quoteStatus, show, playerId, show1, auctionData, getSocketData, getLiveLink,fullLive} = liveStore()
+const {quoteStatus, show, playerId, show1, auctionData, getSocketData, getLiveLink, fullLive} = liveStore()
const pullLink = ref('')
@@ -51,12 +52,12 @@ const initializePlayer = async () => {
} catch (error) {
showConfirmDialog({
message: useI18n().t('live_room.error_mess'),
- showCancelButton:true
+ showCancelButton: true
}).then(() => {
location.reload()
// on close
- }) .catch(() => {
+ }).catch(() => {
// on cancel
})
console.error('播放器初始化失败:', error)
@@ -72,7 +73,7 @@ onBeforeUnmount(() => {
player.value?.dispose()
player.value = null
})
-watch(()=>fullLive.value, (newVal) => {
+watch(() => fullLive.value, (newVal) => {
if (newVal) {
getSocketData()
}
@@ -91,7 +92,7 @@ const goBuy = async () => {
const tipOpen = () => {
message.warning(useI18n().t('live_room.warn_mess'))
}
-const updateShow=()=>{
+const updateShow = () => {
}
@@ -118,7 +119,8 @@ const updateShow=()=>{