From 6474bfcfbab6929b6b010c7ac30a35c8004123d3 Mon Sep 17 00:00:00 2001 From: anonymous Date: Tue, 28 Jan 2025 10:55:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +- env/.env | 3 - env/.env.development | 3 + env/.env.production | 3 + pages.config.ts | 16 +- src/components/Avatar.vue | 7 +- src/components/WithdrawalTaxPopup.vue | 56 ++++++ src/hooks/useCaptcha.ts | 19 +- src/interceptors/request.ts | 2 +- src/pages-sub/asset-detail/index.vue | 17 +- src/pages-sub/equity-withdrawal/index.vue | 94 +++++++++ src/pages-sub/lottery/index.vue | 166 +++++----------- src/pages-sub/my-room-certificate/index.vue | 38 ++++ src/pages-sub/room-certificate/index.vue | 38 ++++ src/pages-sub/room-mail/index.vue | 45 +++++ src/pages-sub/room-transfer/index.vue | 114 +++++++++++ src/pages-sub/withdrawal/index.vue | 55 ++++-- src/pages.json | 67 +++++-- src/pages/edit-password/index.vue | 2 +- src/pages/index/index.vue | 86 +++------ src/pages/invest/index.vue | 151 +++++---------- src/pages/invite/index.vue | 34 ++-- src/pages/login/index.vue | 34 ++-- src/pages/my/index.vue | 178 +++++++++++------- src/pages/register/index.vue | 73 ++++--- src/service/index.ts | 8 +- src/static/images/assets-bg.jpg | Bin 29868 -> 31230 bytes src/static/images/home/bg.jpg | Bin 21487 -> 75037 bytes src/static/images/home/notice-bg.jpg | Bin 10737 -> 15767 bytes src/static/images/invest/bg.jpg | Bin 0 -> 84022 bytes src/static/images/login-bg.jpg | Bin 0 -> 86965 bytes src/static/images/lottery-bg.jpg | Bin 0 -> 163365 bytes src/static/images/my/common-icon-5.png | Bin 1246 -> 1406 bytes src/static/images/my/common-icon-6.png | Bin 951 -> 1119 bytes src/static/images/my/common-icon-7.png | Bin 867 -> 892 bytes src/static/images/my/common-icon-8.png | Bin 1288 -> 1397 bytes src/static/images/my/my-bg.jpg | Bin 43376 -> 53315 bytes src/static/images/my/myEquity.png | Bin 0 -> 8929 bytes src/static/images/my/myFlowSubsidy.png | Bin 0 -> 9558 bytes src/static/images/page-sub/invite-bg.jpg | Bin 752098 -> 109674 bytes .../red-real-estate-certificate/example.jpg | Bin 0 -> 379896 bytes .../images/page-sub/withdrawal/main-bg.jpg | Bin 0 -> 22596 bytes src/static/tabbar/homeHL.png | Bin 2574 -> 1292 bytes src/static/tabbar/houseHL.png | Bin 2502 -> 1111 bytes src/static/tabbar/investHL.png | Bin 4008 -> 1592 bytes src/static/tabbar/personalHL.png | Bin 4088 -> 1566 bytes src/types/uni-pages.d.ts | 7 +- src/typings.ts | 2 +- src/utils/http.ts | 26 ++- uno.config.ts | 4 +- 50 files changed, 838 insertions(+), 520 deletions(-) create mode 100644 src/components/WithdrawalTaxPopup.vue create mode 100644 src/pages-sub/equity-withdrawal/index.vue create mode 100644 src/pages-sub/my-room-certificate/index.vue create mode 100644 src/pages-sub/room-certificate/index.vue create mode 100644 src/pages-sub/room-mail/index.vue create mode 100644 src/pages-sub/room-transfer/index.vue create mode 100644 src/static/images/invest/bg.jpg create mode 100644 src/static/images/login-bg.jpg create mode 100644 src/static/images/lottery-bg.jpg create mode 100644 src/static/images/my/myEquity.png create mode 100644 src/static/images/my/myFlowSubsidy.png create mode 100644 src/static/images/page-sub/red-real-estate-certificate/example.jpg create mode 100644 src/static/images/page-sub/withdrawal/main-bg.jpg diff --git a/README.md b/README.md index a4430d4..445cb52 100644 --- a/README.md +++ b/README.md @@ -1,9 +1 @@ -

- - - -

- -

- x-4 -

+x-6 docs diff --git a/env/.env b/env/.env index 6304ef7..c959206 100644 --- a/env/.env +++ b/env/.env @@ -7,9 +7,6 @@ VITE_WX_APPID = 'wxa2abb91f64032a2b' # h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base VITE_APP_PUBLIC_BASE=/ -VITE_SERVER_BASEURL = 'https://api.qmbz.cc' -VITE_UPLOAD_BASEURL = 'https://api.qmbz.cc/api/common/upload' - # h5是否需要配置代理 VITE_APP_PROXY=false VITE_APP_PROXY_PREFIX = '/api' diff --git a/env/.env.development b/env/.env.development index 04fa273..21199c6 100644 --- a/env/.env.development +++ b/env/.env.development @@ -4,3 +4,6 @@ NODE_ENV = 'development' VITE_DELETE_CONSOLE = false # 是否开启sourcemap VITE_SHOW_SOURCEMAP = true + +VITE_SERVER_BASEURL = 'https://hugo-x6.yhdmit.com' +VITE_UPLOAD_BASEURL = 'https://hugo-x6.yhdmit.com/api/common/upload' diff --git a/env/.env.production b/env/.env.production index 8a1b50c..2c82505 100644 --- a/env/.env.production +++ b/env/.env.production @@ -4,3 +4,6 @@ NODE_ENV = 'development' VITE_DELETE_CONSOLE = true # 是否开启sourcemap VITE_SHOW_SOURCEMAP = false + +VITE_SERVER_BASEURL = 'https://api.qmbz.cc' +VITE_UPLOAD_BASEURL = 'https://api.qmbz.cc/api/common/upload' diff --git a/pages.config.ts b/pages.config.ts index 4755d34..0841c64 100644 --- a/pages.config.ts +++ b/pages.config.ts @@ -18,7 +18,7 @@ export default defineUniPages({ }, tabBar: { color: '#999999', - selectedColor: '#0E57A2', + selectedColor: '#BE805A', backgroundColor: '#ffffff', borderStyle: '#E7E7E7', height: '56px', @@ -32,17 +32,17 @@ export default defineUniPages({ pagePath: 'pages/index/index', text: '首页', }, - { - iconPath: 'static/tabbar/invest.png', - selectedIconPath: 'static/tabbar/investHL.png', - pagePath: 'pages/invest/index', - text: '保障', - }, { iconPath: 'static/tabbar/house.png', selectedIconPath: 'static/tabbar/houseHL.png', pagePath: 'pages/invite/index', - text: '社区', + text: '邀请好友', + }, + { + iconPath: 'static/tabbar/invest.png', + selectedIconPath: 'static/tabbar/investHL.png', + pagePath: 'pages/invest/index', + text: '房产集团', }, { iconPath: 'static/tabbar/personal.png', diff --git a/src/components/Avatar.vue b/src/components/Avatar.vue index d4987b7..8d94a0d 100644 --- a/src/components/Avatar.vue +++ b/src/components/Avatar.vue @@ -10,12 +10,7 @@ defineProps({ + + diff --git a/src/hooks/useCaptcha.ts b/src/hooks/useCaptcha.ts index 12b8375..dcb95b1 100644 --- a/src/hooks/useCaptcha.ts +++ b/src/hooks/useCaptcha.ts @@ -1,15 +1,16 @@ -const baseUrl = import.meta.env.VITE_SERVER_BASEURL -export const useCaptcha = () => { - const t = ref(Date.now()) +import { getCaptchaAPI } from '@/service' - const codeUrl = computed(() => { - return baseUrl + '/api/index/captcha?t=' + t.value - }) - const refreshCode = () => { - t.value = Date.now() +export const useCaptcha = () => { + const codeUrl = ref('') + const codeKey = ref('') + + const refreshCode = async () => { + const res = await getCaptchaAPI() + codeUrl.value = res.data.img + codeKey.value = res.data.key } onMounted(() => { refreshCode() }) - return { codeUrl, t, refreshCode } + return { codeUrl, codeKey, refreshCode } } diff --git a/src/interceptors/request.ts b/src/interceptors/request.ts index e5f1be5..46ef70f 100644 --- a/src/interceptors/request.ts +++ b/src/interceptors/request.ts @@ -52,7 +52,7 @@ const httpInterceptor = { // 3. 添加 token 请求头标识 const userStore = useUserStore() if (userStore.token) { - options.header.token = userStore.token + options.header.Authorization = `Bearer ${userStore.token}` } }, } diff --git a/src/pages-sub/asset-detail/index.vue b/src/pages-sub/asset-detail/index.vue index dc88dfb..0c4347d 100644 --- a/src/pages-sub/asset-detail/index.vue +++ b/src/pages-sub/asset-detail/index.vue @@ -1,9 +1,8 @@ { style: { - navigationBarTitleText: '资金明细', + navigationBarTitleText: '股权流量提现明细', navigationBarBackgroundColor: '#fff', - navigationStyle: 'custom', }, } @@ -18,7 +17,6 @@ const { list: assetList } = useListPageRequest(getMyAssetAPI) diff --git a/src/pages.json b/src/pages.json index 15a5497..cf1e19f 100644 --- a/src/pages.json +++ b/src/pages.json @@ -15,7 +15,7 @@ }, "tabBar": { "color": "#999999", - "selectedColor": "#0E57A2", + "selectedColor": "#BE805A", "backgroundColor": "#ffffff", "borderStyle": "#E7E7E7", "height": "56px", @@ -29,17 +29,17 @@ "pagePath": "pages/index/index", "text": "首页" }, - { - "iconPath": "static/tabbar/invest.png", - "selectedIconPath": "static/tabbar/investHL.png", - "pagePath": "pages/invest/index", - "text": "保障" - }, { "iconPath": "static/tabbar/house.png", "selectedIconPath": "static/tabbar/houseHL.png", "pagePath": "pages/invite/index", - "text": "社区" + "text": "邀请好友" + }, + { + "iconPath": "static/tabbar/invest.png", + "selectedIconPath": "static/tabbar/investHL.png", + "pagePath": "pages/invest/index", + "text": "房产集团" }, { "iconPath": "static/tabbar/personal.png", @@ -55,7 +55,7 @@ "type": "home", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "首页" + "navigationBarTitleText": "云房产" } }, { @@ -72,14 +72,14 @@ "type": "page", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "保障" + "navigationBarTitleText": "房产集团" } }, { "path": "pages/invite/index", "type": "page", "style": { - "navigationBarTitleText": "社区", + "navigationBarTitleText": "邀请福利", "navigationBarBackgroundColor": "#fff", "navigationStyle": "custom" } @@ -128,9 +128,8 @@ "path": "asset-detail/index", "type": "page", "style": { - "navigationBarTitleText": "资金明细", - "navigationBarBackgroundColor": "#fff", - "navigationStyle": "custom" + "navigationBarTitleText": "股权流量提现明细", + "navigationBarBackgroundColor": "#fff" } }, { @@ -148,6 +147,14 @@ "navigationBarTitleText": "分包页面 标题" } }, + { + "path": "equity-withdrawal/index", + "type": "page", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "股权提现" + } + }, { "path": "hot-news/index", "type": "page", @@ -201,11 +208,18 @@ "path": "lottery/index", "type": "page", "style": { - "navigationBarTitleText": "转盘抽奖", + "navigationBarTitleText": "抽奖", "navigationBarBackgroundColor": "#fff", "navigationStyle": "custom" } }, + { + "path": "my-room-certificate/index", + "type": "page", + "style": { + "navigationBarTitleText": "我的房产" + } + }, { "path": "news/index", "type": "page", @@ -239,6 +253,27 @@ "navigationBarBackgroundColor": "#fff" } }, + { + "path": "room-certificate/index", + "type": "page", + "style": { + "navigationBarTitleText": "红本房产证" + } + }, + { + "path": "room-mail/index", + "type": "page", + "style": { + "navigationBarTitleText": "房本邮寄" + } + }, + { + "path": "room-transfer/index", + "type": "page", + "style": { + "navigationBarTitleText": "房产过户" + } + }, { "path": "team/index", "type": "page", @@ -253,7 +288,7 @@ "type": "page", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "提现" + "navigationBarTitleText": "流量提现" } }, { diff --git a/src/pages/edit-password/index.vue b/src/pages/edit-password/index.vue index db0093f..1028bd1 100644 --- a/src/pages/edit-password/index.vue +++ b/src/pages/edit-password/index.vue @@ -116,7 +116,7 @@ onLoad(() => { .login-container { box-sizing: border-box; min-height: 100vh; - background-image: url('@/static/images/login-bg.png'); + background-image: url('@/static/images/login-bg.jpg'); background-repeat: no-repeat; background-size: cover; } diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 1b99df7..f9c9b9e 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -3,91 +3,49 @@ { style: { navigationStyle: 'custom', - navigationBarTitleText: '首页', + navigationBarTitleText: '云房产', }, }