From 34add8d2263d3de0e221ddb511def60ad9b55199 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 10 Feb 2025 10:56:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(signature):=20=E6=B7=BB=E5=8A=A0=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E5=8A=9F=E8=83=BD=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增签名面板页面,用于用户签名 - 新增个人信息页面,用于填写个人相关资料- 新增协议页面,用于展示拍卖规则等协议内容 -优化直播页面竞拍结束提示逻辑 - 修复国家区域选择页面路由问题 - 优化个人主页下拉刷新功能 --- app/pages/countryRegion/index.vue | 7 ++- app/pages/profile/index.vue | 36 +++++++++--- app/pages/signature/panel/index.vue | 18 ++++++ app/pages/signature/personal-Info/index.vue | 64 +++++++++++++++++++++ app/pages/signature/protocol/index.vue | 40 +++++++++++++ app/stores/live/index.js | 33 +++++++++++ 6 files changed, 187 insertions(+), 11 deletions(-) create mode 100644 app/pages/signature/panel/index.vue create mode 100644 app/pages/signature/personal-Info/index.vue create mode 100644 app/pages/signature/protocol/index.vue diff --git a/app/pages/countryRegion/index.vue b/app/pages/countryRegion/index.vue index cba249c..d6dacf5 100644 --- a/app/pages/countryRegion/index.vue +++ b/app/pages/countryRegion/index.vue @@ -9,6 +9,7 @@ definePageMeta({ i18n: 'countryRegion.title', }) const router = useRouter() +console.log('router',router) const { t, locale } = useI18n() const value = ref(''); const alphabet = [ @@ -90,10 +91,10 @@ const searchCountry = computed(() => { }); const showIndexBar = computed(() => locale.value !== 'ja-JP') - +const route = useRoute() const handleCountrySelect = (country) => { - router.push({ - path: '/login', + router.replace({ + path: window.history.state.back, query: { zone: country.zone, countryName: country.displayName diff --git a/app/pages/profile/index.vue b/app/pages/profile/index.vue index 9a70b14..47c440e 100644 --- a/app/pages/profile/index.vue +++ b/app/pages/profile/index.vue @@ -3,6 +3,7 @@ import {userArtworks} from "@/api/goods/index.js"; import {authStore} from "@/stores/auth/index.js"; import xImage from '@/components/x-image/index.vue' import {goodStore} from "~/stores/goods/index.js"; +import {ref} from "vue"; definePageMeta({ layout: 'default', title: '我的', @@ -21,12 +22,11 @@ const groupAndSortByDate=(data)=> { acc[curr.userCreatedAt] = { userCreatedAt: curr.userCreatedAt, list: [] - }; + } } - acc[curr.userCreatedAt].list.push(curr); + acc[curr.userCreatedAt].list.push(curr) return acc; - }, {})) - .sort((a, b) => new Date(b.userCreatedAt) - new Date(a.userCreatedAt)); + }, {})).sort((a, b) => new Date(b.userCreatedAt) - new Date(a.userCreatedAt)); } const initData=async ()=>{ const res=await userArtworks({}) @@ -36,10 +36,17 @@ const initData=async ()=>{ } } const router = useRouter() - +const localState = ref({ + finished: false, + refreshing: false, + showDetail: false, + showHeight: '' +}) initData() const goPay=()=>{ - + router.push({ + path:'/signature/personal-Info' + }) } const goDetail=(item)=>{ router.push({ @@ -49,6 +56,16 @@ const goDetail=(item)=>{ } }) } +const onRefresh = async () => { + try { + localState.value.refreshing = true + localState.value.finished = false + const { finished } = await getArtworkList(true) + localState.value.finished = finished + } finally { + localState.value.refreshing = false + } +}