From 5c9d7b89b291a41ed2ffd927e5cb644292d21a2d Mon Sep 17 00:00:00 2001
From: fuchao <2577131060@qq.com>
Date: Wed, 31 Dec 2025 16:40:30 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=9F=A5=E7=9C=8B?=
=?UTF-8?q?=E5=9B=BE=E4=B9=A6=E8=AF=A6=E6=83=85=E5=90=8E=E8=BF=94=E5=9B=9E?=
=?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=B1=8F=E5=B9=95=E5=AE=9A=E4=BD=8D=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=E3=80=81=E5=8F=8A=E9=80=89=E6=8B=A9=E7=9A=84=E5=9B=BE?=
=?UTF-8?q?=E4=B9=A6=E6=A0=87=E7=AD=BE=E8=BF=94=E5=9B=9E=E5=90=8E=E4=BC=9A?=
=?UTF-8?q?=E9=87=8D=E7=BD=AE=E9=80=89=E6=8B=A9=E7=AC=AC=E4=B8=80=E4=B8=AA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/baseUrl.js | 8 ++++----
manifest.json | 4 ++--
pages/peanut/home.vue | 22 +++++++++++++++-------
3 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/config/baseUrl.js b/config/baseUrl.js
index 112a8e5..e58b8b5 100644
--- a/config/baseUrl.js
+++ b/config/baseUrl.js
@@ -2,12 +2,12 @@ let baseUrl = "";
let socketUrl = "";
if (process.env.NODE_ENV === 'development') {
//开发环境
- // baseUrl = "https://api.nuttyreading.com/"; // 线上正式
- baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
+ baseUrl = "https://api.nuttyreading.com/"; // 线上正式
+ //baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
} else if (process.env.NODE_ENV === 'production') {
//生产环境
- // baseUrl = "https://api.nuttyreading.com/";
- baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
+ baseUrl = "https://api.nuttyreading.com/";
+ //baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
}
const courtConfig = {
//微信公众号APPID
diff --git a/manifest.json b/manifest.json
index 172b059..a7059df 100644
--- a/manifest.json
+++ b/manifest.json
@@ -13,8 +13,8 @@
}
],
"sassImplementationName" : "node-sass",
- "versionName" : "1.2.79",
- "versionCode" : 1279,
+ "versionName" : "1.2.81",
+ "versionCode" : 1281,
"app-plus" : {
"compatible" : {
"ignoreVersion" : true
diff --git a/pages/peanut/home.vue b/pages/peanut/home.vue
index f77c2e6..15d029b 100644
--- a/pages/peanut/home.vue
+++ b/pages/peanut/home.vue
@@ -120,13 +120,13 @@
- {{ item.title }}
-
{{ item.title }}
@@ -347,6 +347,8 @@
yxCurIndex: 0, // 当前营销标签序号
SystemInfoSync: {}, // 屏幕尺寸
newsList: [], // 播报新闻列表
+ catTagIndex: 0,
+ curChildrenIndex: 0
};
},
onPageScroll(e) {
@@ -471,7 +473,7 @@
},
requestAll() {
this.getUserInfo();
- this.tjProList = [];
+ // this.tjProList = [];
uni.hideTabBar();
// this.getData();
this.getTags();
@@ -584,9 +586,11 @@
if (this.catTagList[0].isLast == 1) {
this.getJtData(this.catTagList[0].id);
} else {
- this.childrenCatList = this.catTagList[0].children;
- this.curChildrenId = this.childrenCatList[0].id;
- this.getJtData(this.childrenCatList[0].id);
+ const currentCatTag = this.catTagList?.[this.catTagIndex];
+ this.childrenCatList = currentCatTag.children.length > 0 ? currentCatTag.children : currentCatTag;
+ this.curChildrenId = this.childrenCatList[this.curChildrenIndex]?.id || this.childrenCatList.id;
+ //this.getJtData(this.childrenCatList[this.curChildrenIndex]?.id);
+ this.getJtData(this.curChildrenId);
}
}
})
@@ -597,11 +601,13 @@
// 二级分类点击
childrenChange(item, index) {
// console.log(item,this.curChildrenId,'点击')
+ this.curChildrenIndex = index;
this.curChildrenId = this.childrenCatList[index].id;
this.getJtData(this.childrenCatList[index].id);
},
tabsChange(item, cindex) {
// this.tjProList = []
+ this.catTagIndex = cindex;
this.tabsid = item.id;
this.childrenCatList = [];
if (this.catTagList[cindex].isLast == 1) {
@@ -610,6 +616,7 @@
this.childrenCatList = this.catTagList[cindex].children;
this.curChildrenId = this.childrenCatList[0].id;
this.getJtData(this.childrenCatList[0].id);
+ this.curChildrenIndex = 0
}
// this.getJtData()
// if (this.tabsid == 15) {
@@ -1214,7 +1221,7 @@
color: #0e583a;
font-size: 34rpx;
line-height: 42rpx;
- padding: 5px 10px;
+ padding: 10rpx 0 14rpx 10rpx;
font-weight: bold;
display: block;
width: 100%;
@@ -1223,6 +1230,7 @@
overflow: hidden;
text-align: center;
letter-spacing: 10rpx;
+ width: 3.5em;
}
text:last-child {