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

@@ -6,10 +6,12 @@
<view class="eventIntroC">
<view class="categoryTitleC">
<view class="category">{{eventDetails.event_type}}</view>
<text class="title">{{eventDetails.event_title}}</text>
<text class="title" @longpress="copyEventTitle()">{{eventDetails.event_title}}</text>
</view>
<view class="eventTime">{{eventDetails.event_created_at.substr(0,16)}}</view>
<view class="eventContent">{{eventDetails.event_desc}}<text class="ai">AI合成</text></view>
<view class="eventContent">
<text user-select>{{eventDetails.event_desc}}<text class="ai">AI合成</text></text>
</view>
<view class="riskTips">
风险提示解析内容由价值前沿人工采集整理自新闻公告研报等公开信息团队辛苦编写未经许可严禁转载本产品内容内容均不构成投资建议请投资者注意风险独立审慎决策
</view>
@@ -195,7 +197,7 @@
</view>
</view>
</uni-popup>
<uni-popup ref="expectScorePopup" type="top" mask-background-color="transparent">
<uni-popup ref="expectScorePopup" type="top" mask-background-color="transparent" :animation="false">
<view class="expectScorePopup relative" :style="'margin-top:'+scoreTop+'px;'">
<image class="arrow absolute" src="/static/icon/home/sortArrow.png" mode="widthFix"></image>
<view class="tips">
@@ -396,6 +398,19 @@
},
methods: {
/**
* 复制标题
*/
copyEventTitle() {
uni.setClipboardData({
data:this.eventDetails.event_title,
success() {
uni.showToast({
title:'复制成功'
})
}
})
},
async init() {
// chart 图表实例不能存在data里
let that = this
@@ -793,6 +808,7 @@ page
line-height: 1.1rem;
}
}
.eventTime
{
margin: 20rpx 25rpx 0;
@@ -803,6 +819,7 @@ page
.eventContent
{
margin: 18rpx 27rpx 0;
word-break: break-all;
font-size: 24rpx;
font-weight: 500;
color: #71675D;
@@ -898,7 +915,7 @@ page
line-height: 1.2rem;
.ai
{
color: #EC3440;
color: #CCCDD1;
}
}
}

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