From ab97edab5cbb3da162eca825cfc0d263e0e86656 Mon Sep 17 00:00:00 2001 From: ctw Date: Thu, 11 Dec 2025 11:49:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E5=B7=B2=E7=9F=A5?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/chat-store/configStore.js | 66 ++++----- src/pages.json | 14 ++ src/pages/home/detail.vue | 4 +- src/pages/profile/about.vue | 9 +- src/pages/profile/face-verify.vue | 147 +++++++++++++-------- src/pages/profile/recharge.vue | 4 +- src/pages/profile/setting.vue | 8 +- src/pages/profile/upload-album.vue | 6 +- src/pages/profile/use-ablum.ts | 5 +- src/pages/profile/view-record.vue | 97 +++++++------- src/pages/tabbar/components/user-ablum.vue | 4 + src/pages/tabbar/profile.vue | 13 +- src/sheep/api/member/recent.ts | 12 ++ src/static/logo.png | Bin 4023 -> 13269 bytes 15 files changed, 240 insertions(+), 151 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5a528eaa..f087ea1a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -93,7 +93,7 @@ promises.push(this.friendStore.loadFriend()); promises.push(this.groupStore.loadGroup()); promises.push(this.chatStore.loadChat()); - promises.push(this.configStore.loadConfig()); + // promises.push(this.configStore.loadConfig()); return Promise.all(promises); }); }, diff --git a/src/chat-store/configStore.js b/src/chat-store/configStore.js index 00488187..0537d82d 100644 --- a/src/chat-store/configStore.js +++ b/src/chat-store/configStore.js @@ -1,36 +1,36 @@ import { defineStore } from 'pinia'; -import http from '../common/request' +import http from '../common/request'; export default defineStore('configStore', { - state: () => { - return { - appInit: false, - webrtc: {} - } - }, - actions: { - setConfig(config) { - this.webrtc = config.webrtc; - }, - setAppInit(appInit) { - this.appInit = appInit; - }, - clear() { - this.webrtc = {}; - }, - loadConfig() { - return new Promise((resolve, reject) => { - http({ - url: '/system/config', - method: 'GET' - }).then((config) => { - console.log("系统配置", config) - this.setConfig(config); - resolve(); - }).catch((res) => { - reject(res); - }); - }) - } - } -}) \ No newline at end of file + state: () => { + return { + appInit: false, + webrtc: {}, + }; + }, + actions: { + setConfig(config) { + this.webrtc = config.webrtc; + }, + setAppInit(appInit) { + this.appInit = appInit; + }, + clear() { + this.webrtc = {}; + }, + loadConfig() { + // return new Promise((resolve, reject) => { + // http({ + // url: '/system/config', + // method: 'GET' + // }).then((config) => { + // console.log("系统配置", config) + // this.setConfig(config); + // resolve(); + // }).catch((res) => { + // reject(res); + // }); + // }) + }, + }, +}); diff --git a/src/pages.json b/src/pages.json index 95166eed..16a9ad3b 100644 --- a/src/pages.json +++ b/src/pages.json @@ -133,6 +133,20 @@ "navigationBarTitleText": "我的", "navigationStyle": "custom" } + }, + { + "path": "pages/wechat-tabbar/index", + "style": { + "navigationBarTitleText": "邀请福利", + "navigationStyle": "custom" + } + }, + { + "path": "pages/wechat-tabbar/me", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } } // #endif ], diff --git a/src/pages/home/detail.vue b/src/pages/home/detail.vue index 8c1119d9..cabb3001 100644 --- a/src/pages/home/detail.vue +++ b/src/pages/home/detail.vue @@ -18,8 +18,8 @@ v-if="userDetail?.member?.memberId" class="py-1 px-2 text-xs bg-color-theme-dark rounded-full mr-3" > - {{ userDetail.member?.memberCity ? userDetail.member?.memberCity + ' · ' : '' }} - {{ userDetail.distance?.toFixed(2) }}km + {{ userDetail.member.memberCity ? userDetail.member.memberCity + ' · ' : '' }} + {{ userDetail.distance ? userDetail.distance.toFixed(2) + 'km' : '' }} diff --git a/src/pages/profile/about.vue b/src/pages/profile/about.vue index a1c8fe52..8234c494 100644 --- a/src/pages/profile/about.vue +++ b/src/pages/profile/about.vue @@ -8,11 +8,16 @@ - + + + 荷塘月色 + + + - + diff --git a/src/pages/profile/face-verify.vue b/src/pages/profile/face-verify.vue index cf652a21..219a23c5 100644 --- a/src/pages/profile/face-verify.vue +++ b/src/pages/profile/face-verify.vue @@ -17,6 +17,7 @@ + @@ -57,7 +58,7 @@