修复:查看图书详情后返回首页屏幕定位问题、及选择的图书标签返回后会重置选择第一个
This commit is contained in:
@@ -2,12 +2,12 @@ let baseUrl = "";
|
|||||||
let socketUrl = "";
|
let socketUrl = "";
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
//开发环境
|
//开发环境
|
||||||
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
||||||
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
//baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
||||||
} else if (process.env.NODE_ENV === 'production') {
|
} else if (process.env.NODE_ENV === 'production') {
|
||||||
//生产环境
|
//生产环境
|
||||||
// baseUrl = "https://api.nuttyreading.com/";
|
baseUrl = "https://api.nuttyreading.com/";
|
||||||
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
//baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
||||||
}
|
}
|
||||||
const courtConfig = {
|
const courtConfig = {
|
||||||
//微信公众号APPID
|
//微信公众号APPID
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"sassImplementationName" : "node-sass",
|
"sassImplementationName" : "node-sass",
|
||||||
"versionName" : "1.2.79",
|
"versionName" : "1.2.81",
|
||||||
"versionCode" : 1279,
|
"versionCode" : 1281,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
"ignoreVersion" : true
|
"ignoreVersion" : true
|
||||||
|
|||||||
@@ -120,13 +120,13 @@
|
|||||||
|
|
||||||
<scroll-view class="ProTabsBox">
|
<scroll-view class="ProTabsBox">
|
||||||
<view class="New_ProTabs flexbox">
|
<view class="New_ProTabs flexbox">
|
||||||
<text v-for="(item, index) in catTagList" :key="item.splId" :class="[tabsid == item.id ? 'cur' : '']"
|
<text v-for="(item, index) in catTagList" :key="item.splId" :class="[catTagIndex == index ? 'cur' : '']"
|
||||||
@click="tabsChange(item, index)">{{ item.title }}</text>
|
@click="tabsChange(item, index)">{{ item.title }}</text>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view class="children_cate_box" v-if="childrenCatList && childrenCatList.length > 0">
|
<view class="children_cate_box" v-if="childrenCatList && childrenCatList.length > 0">
|
||||||
<view class="children_cate flexbox">
|
<view class="children_cate flexbox">
|
||||||
<view @click="childrenChange(item, index)" :class="['item', curChildrenId == item.id ? 'cur' : '']"
|
<view @click="childrenChange(item, index)" :class="['item', curChildrenIndex == index ? 'cur' : '']"
|
||||||
v-for="(item, index) in childrenCatList" :key="item.id">
|
v-for="(item, index) in childrenCatList" :key="item.id">
|
||||||
<text>{{ item.title }}</text>
|
<text>{{ item.title }}</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -347,6 +347,8 @@
|
|||||||
yxCurIndex: 0, // 当前营销标签序号
|
yxCurIndex: 0, // 当前营销标签序号
|
||||||
SystemInfoSync: {}, // 屏幕尺寸
|
SystemInfoSync: {}, // 屏幕尺寸
|
||||||
newsList: [], // 播报新闻列表
|
newsList: [], // 播报新闻列表
|
||||||
|
catTagIndex: 0,
|
||||||
|
curChildrenIndex: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
@@ -471,7 +473,7 @@
|
|||||||
},
|
},
|
||||||
requestAll() {
|
requestAll() {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.tjProList = [];
|
// this.tjProList = [];
|
||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
// this.getData();
|
// this.getData();
|
||||||
this.getTags();
|
this.getTags();
|
||||||
@@ -584,9 +586,11 @@
|
|||||||
if (this.catTagList[0].isLast == 1) {
|
if (this.catTagList[0].isLast == 1) {
|
||||||
this.getJtData(this.catTagList[0].id);
|
this.getJtData(this.catTagList[0].id);
|
||||||
} else {
|
} else {
|
||||||
this.childrenCatList = this.catTagList[0].children;
|
const currentCatTag = this.catTagList?.[this.catTagIndex];
|
||||||
this.curChildrenId = this.childrenCatList[0].id;
|
this.childrenCatList = currentCatTag.children.length > 0 ? currentCatTag.children : currentCatTag;
|
||||||
this.getJtData(this.childrenCatList[0].id);
|
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) {
|
childrenChange(item, index) {
|
||||||
// console.log(item,this.curChildrenId,'点击')
|
// console.log(item,this.curChildrenId,'点击')
|
||||||
|
this.curChildrenIndex = index;
|
||||||
this.curChildrenId = this.childrenCatList[index].id;
|
this.curChildrenId = this.childrenCatList[index].id;
|
||||||
this.getJtData(this.childrenCatList[index].id);
|
this.getJtData(this.childrenCatList[index].id);
|
||||||
},
|
},
|
||||||
tabsChange(item, cindex) {
|
tabsChange(item, cindex) {
|
||||||
// this.tjProList = []
|
// this.tjProList = []
|
||||||
|
this.catTagIndex = cindex;
|
||||||
this.tabsid = item.id;
|
this.tabsid = item.id;
|
||||||
this.childrenCatList = [];
|
this.childrenCatList = [];
|
||||||
if (this.catTagList[cindex].isLast == 1) {
|
if (this.catTagList[cindex].isLast == 1) {
|
||||||
@@ -610,6 +616,7 @@
|
|||||||
this.childrenCatList = this.catTagList[cindex].children;
|
this.childrenCatList = this.catTagList[cindex].children;
|
||||||
this.curChildrenId = this.childrenCatList[0].id;
|
this.curChildrenId = this.childrenCatList[0].id;
|
||||||
this.getJtData(this.childrenCatList[0].id);
|
this.getJtData(this.childrenCatList[0].id);
|
||||||
|
this.curChildrenIndex = 0
|
||||||
}
|
}
|
||||||
// this.getJtData()
|
// this.getJtData()
|
||||||
// if (this.tabsid == 15) {
|
// if (this.tabsid == 15) {
|
||||||
@@ -1214,7 +1221,7 @@
|
|||||||
color: #0e583a;
|
color: #0e583a;
|
||||||
font-size: 34rpx;
|
font-size: 34rpx;
|
||||||
line-height: 42rpx;
|
line-height: 42rpx;
|
||||||
padding: 5px 10px;
|
padding: 10rpx 0 14rpx 10rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -1223,6 +1230,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
letter-spacing: 10rpx;
|
letter-spacing: 10rpx;
|
||||||
|
width: 3.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
text:last-child {
|
text:last-child {
|
||||||
|
|||||||
Reference in New Issue
Block a user