12.25 UI调整
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
<navBar leftText="投资日历" :hideNavBg="true" :hideBack="true"></navBar>
|
||||
<view class="searchC fixed flex" :style="'top:'+navH+'px;'">
|
||||
<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:#94989A"/>
|
||||
<input class="flex1" type="text" v-model="keywords" placeholder="搜索股票/话题..." placeholder-style="color:#94989A" confirm-type="search" @confirm="clickSearch()"/>
|
||||
</view>
|
||||
<scroll-view scroll-y class="contentC fixed" :style="'top:'+contentTop+'px;'" refresher-enabled :refresher-triggered="isRefreshing" @refresherrefresh="pullDownRefresh()" @scrolltolower="loadMoreData()">
|
||||
<view class="calendarC">
|
||||
<view class="todayC flex" >
|
||||
<view class="todayDateC flex" @click="clickSelectMonth()">
|
||||
<view class="date">{{selectDate}}</view>
|
||||
<image class="icon" src="/static/icon/invest/calendar.png" mode="widthFix"></image>
|
||||
<!-- <image class="icon" src="/static/icon/invest/calendar.png" mode="widthFix"></image> -->
|
||||
</view>
|
||||
<view class="flex1"></view>
|
||||
<view class="today" @click="clickTodayDate()">今</view>
|
||||
@@ -86,12 +86,12 @@
|
||||
<view class="tabC">
|
||||
<view :class="'item '+(selectTab==index?'select':'')" v-for="(item,index) in tabList" :key="index" @click="clickTabItem(index)">{{item}}</view>
|
||||
</view>
|
||||
<scroll-view scroll-x class="topCategoryC">
|
||||
<!-- <scroll-view scroll-x class="topCategoryC">
|
||||
<view :class="'item relative '+(selectTopCategory==index?'select':'')" v-for="(item,index) in stockCategoryList" :key="index" @click="clickTopCategoryItem(index)">
|
||||
{{item.primary_sector}}
|
||||
<view v-if="selectTopCategory==index" class="line absolute"></view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</scroll-view> -->
|
||||
<view v-if="selectTab==0" class="eventList">
|
||||
<view class="item" v-for="(item,index) in eventList" :key="index" @click="clickEventItem(item.id)">
|
||||
<view class="timeStarFollowC flex">
|
||||
@@ -120,7 +120,7 @@
|
||||
<view class="percentItem" v-for="(citem,cindex) in item.related_concepts" :key="cindex">
|
||||
{{citem.name}}
|
||||
<zui-progress-circle :position="citem.score" :range="[270,630]" :size="26" :ring-width="2" :texture="['#F3C368','#E3E3E3']">
|
||||
<view class="num">{{citem.score*100}}%</view>
|
||||
<view class="num">{{accMul(citem.score,100)}}%</view>
|
||||
</zui-progress-circle>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -182,7 +182,7 @@
|
||||
<script>
|
||||
import { inject } from 'vue'
|
||||
import { stockCategoryList, calendarEventList, calendarDataList, calendarEventCount, } from '@/request/api'
|
||||
import { getLocaleHourMinute, replaceAnswerLabel } from '@/utils/util'
|
||||
import { accMul, getLocaleHourMinute, replaceAnswerLabel } from '@/utils/util'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -215,7 +215,8 @@
|
||||
page:1,
|
||||
loadAll:false,
|
||||
getLocaleHourMinute:getLocaleHourMinute,
|
||||
replaceAnswerLabel:replaceAnswerLabel
|
||||
replaceAnswerLabel:replaceAnswerLabel,
|
||||
accMul:accMul
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -301,7 +302,7 @@
|
||||
}
|
||||
this.calendarDateList = calendarDateList
|
||||
this.monthDateList = calendarDateList[this.selectMonthIndex]
|
||||
this.listTop = this.contentTop + (68+40+96+74+70+74+22)/750*inject('windowWidth')
|
||||
this.listTop = this.contentTop + (68+40+96+74+70+22)/750*inject('windowWidth')
|
||||
Promise.all([this.getStockCategoryListData(),this.getCurrentMonthEventCountData()]).then(res=>{
|
||||
this.getEventListData()
|
||||
}).catch(error=>{
|
||||
@@ -614,6 +615,7 @@ page
|
||||
input
|
||||
{
|
||||
height: 100%;
|
||||
color: white;
|
||||
}
|
||||
.line
|
||||
{
|
||||
@@ -646,7 +648,7 @@ page
|
||||
{
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #CCCDD1;
|
||||
color: #3D3D3D;
|
||||
.icon
|
||||
{
|
||||
margin-left: 16rpx;
|
||||
|
||||
Reference in New Issue
Block a user