From c89b80e4eb4d2d976ba5ac85197aa3dce09fb364 Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Wed, 17 Dec 2025 11:16:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?UI=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新.env.development和config/index.ts中的API地址配置 优化LoginPopup、RankListMini和minihome页面的UI组件布局和样式 在minihome页面添加banner标题和优化tab切换效果 --- .env.development | 4 +- src/components/RankListMini.vue | 22 +++++++++-- src/components/loginPopup/index.vue | 26 +++++++++++-- src/config/index.ts | 5 +-- src/pages/login/indexMini.vue | 14 ++++++- src/pages/minihome/index.vue | 60 ++++++++++++++++++++++++++--- 6 files changed, 112 insertions(+), 19 deletions(-) diff --git a/.env.development b/.env.development index e1b8ebd..c0a4311 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ ENV = development # VITE_API_URL = http://123.60.153.169:8040/apih5 # VITE_API_URL = https://4155gf93ll13.vicp.fun/apih5 # VITE_API_URL = http://123.60.79.143:8041/apih5 -# VITE_API_URL =http://ukfba3.natappfree.cc/apih5 -VITE_API_URL = https://cankao.cs.com.cn/apih5 +VITE_API_URL = http://192.168.3.38:8040/apih5 +# VITE_API_URL = https://cankao.cs.com.cn/apih5 VITE_API_DATAV_URL = https://cankao.cs.com.cn/zzck_datav \ No newline at end of file diff --git a/src/components/RankListMini.vue b/src/components/RankListMini.vue index 17c6684..c4289e2 100644 --- a/src/components/RankListMini.vue +++ b/src/components/RankListMini.vue @@ -32,19 +32,32 @@ - + {{ item.viewCount }} - + {{ item.likeCount }} - + {{ item.shareCount }} - + + 海外独家资讯内容,登录后可查阅全文 @@ -84,6 +97,7 @@ watch( watch( () => props.newsList, (newValue, oldValue) => { + isLogin.value = uni.getStorageSync("token"); rankListLocal.value = []; props.newsList.forEach((item, index) => { if (!isExp.value && index > 9) { diff --git a/src/components/loginPopup/index.vue b/src/components/loginPopup/index.vue index 7ee592e..b791071 100644 --- a/src/components/loginPopup/index.vue +++ b/src/components/loginPopup/index.vue @@ -1,6 +1,14 @@ @@ -177,6 +186,7 @@ const handlePopupClose = () => { // 登录成功回调 const handlePopupSuccessCallback = () => { LoginShow.value = false; + // emit("onChange"); uni.navigateBack({}); }; diff --git a/src/pages/minihome/index.vue b/src/pages/minihome/index.vue index 5421dad..fc3754a 100644 --- a/src/pages/minihome/index.vue +++ b/src/pages/minihome/index.vue @@ -48,8 +48,12 @@ --> - + + + + +