12.25 UI调整

This commit is contained in:
尚政杰
2025-12-25 16:07:01 +08:00
parent e24b4000fb
commit 091c1372fd
52 changed files with 350 additions and 328 deletions

View File

@@ -5,7 +5,7 @@
<view class="topC fixed" :style="'top:'+navH+'px;'">
<view class="searchC flex" >
<image class="icon" src="/static/icon/home/conceptCenter/search.png" mode="widthFix"></image>
<input class="flex1" type="text" v-model="keywords" placeholder="搜索股票/话题..." placeholder-style="color:#eeeeee"/>
<input class="flex1" type="text" v-model="keywords" placeholder="搜索股票/话题..." placeholder-style="color:#eeeeee" confirm-type="search" @confirm="clickSearch()"/>
</view>
<view class="screenC flex">
<block v-for="(item,index) in screenCategoryList" :key="index">
@@ -20,12 +20,12 @@
<view class="timeCategoryC">
<view :class="'item '+(selectTimeCategory==index?'select':'')" v-for="(item,index) in timeCategoryList" :key="index" @click="clickTimeCategoryItem(index)">{{item.name}}</view>
</view>
<scroll-view scroll-x :scroll-left="topScrollLeft" class="topCategoryC" id="topCategory">
<!-- <scroll-view scroll-x :scroll-left="topScrollLeft" class="topCategoryC" id="topCategory">
<view :class="'item relative '+(selectTopCategory==index?'select':'')" v-for="(item,index) in stockCategoryList" :key="index" @click="clickTopCategoryItem($event,index)">
{{item.primary_sector}}
<view class="line absolute"></view>
</view>
</scroll-view>
</scroll-view> -->
<!-- <scroll-view v-if="stockCategoryList.length>0&&stockCategoryList[selectTopCategory].sub_sectors.length>0" scroll-x :scroll-left="secondScrollLeft" class="secondCategoryC" id="secondCategory">
<view :class="'item '+(selectSecondCategory==index?'select':'')" v-for="(item,index) in stockCategoryList[selectTopCategory].sub_sectors" :key="index" @click="clickSecondCategoryItem($event,index)">
{{item}}
@@ -382,8 +382,7 @@
},
onLoad() {
this.contentTop = this.navH + (70+74)/750*this.windowWidth
this.listTop = this.contentTop + (22+80+72)/750*this.windowWidth
this.sortListTop = this.navH + (22+80+80)/750*this.windowWidth
this.listTop = this.contentTop + (22+72)/750*this.windowWidth
this.generateDateListData()
Promise.all([this.getEventFilterListData(),this.getIndustryCategoryListData(),this.getStockCategoryListData()]).then(res=>{
this.getEventListData()
@@ -392,15 +391,15 @@
})
},
onReady() {
uni.createSelectorQuery().select('#topCategory').boundingClientRect(rect=>{
this.topScrollWidth = Math.round(rect.width)
}).exec()
uni.createSelectorQuery().select('#secondCategory').boundingClientRect(rect=>{
if(rect)
{
this.secondScrollWidth = Math.round(rect.width)
}
}).exec()
// uni.createSelectorQuery().select('#topCategory').boundingClientRect(rect=>{
// this.topScrollWidth = Math.round(rect.width)
// }).exec()
// uni.createSelectorQuery().select('#secondCategory').boundingClientRect(rect=>{
// if(rect)
// {
// this.secondScrollWidth = Math.round(rect.width)
// }
// }).exec()
},
methods: {
/**
@@ -1213,6 +1212,7 @@ page
input
{
height: 100%;
color: white;
}
}
.screenC