1.4 修改概念中心日期默认传值
This commit is contained in:
@@ -124,15 +124,15 @@
|
||||
</view>
|
||||
<view class="commentLikeNumC flex">
|
||||
<view class="item">
|
||||
<image class="icon" src="/static/icon/home/browser.png" mode="widthFix"></image>
|
||||
<image class="icon" src="/static/icon/home/eventDetails/like.png" mode="widthFix"></image>
|
||||
<view>{{eventDetails.view_count}}</view>
|
||||
</view>
|
||||
<view class="item" @click="clickComment()">
|
||||
<image class="icon" src="/static/icon/home/comment.png" mode="widthFix"></image>
|
||||
<image class="icon" src="/static/icon/home/eventDetails/comment.png" mode="widthFix"></image>
|
||||
<view>{{eventDetails.post_count}}</view>
|
||||
</view>
|
||||
<view class="item" @click="clickFollow()">
|
||||
<image class="icon" src="/static/icon/home/follow.png" mode="widthFix"></image>
|
||||
<image class="icon" src="/static/icon/home/eventDetails/collect.png" mode="widthFix"></image>
|
||||
<view>{{eventDetails.follower_count}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
<view v-if="index<screenCategoryList.length-1" class="flex1"></view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="timeCategoryC">
|
||||
<view :class="'item '+(selectTimeCategory==index?'select':'')" v-for="(item,index) in timeCategoryList" :key="index" @click="clickTimeCategoryItem(index)">{{item.name}}</view>
|
||||
<view class="timeCategoryC flex">
|
||||
<view :class="'item flex1 '+(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">
|
||||
<view :class="'item relative '+(selectTopCategory==index?'select':'')" v-for="(item,index) in stockCategoryList" :key="index" @click="clickTopCategoryItem($event,index)">
|
||||
@@ -73,12 +73,16 @@
|
||||
<image class="icon" src="/static/icon/home/browser.png" mode="widthFix"></image>
|
||||
<text>{{item.view_count}}</text>
|
||||
</view>
|
||||
<view class="toolItem flex" @click.stop="clickFollowEvent(item.id)">
|
||||
<image class="icon" src="/static/icon/home/like.png" mode="widthFix"></image>
|
||||
<text>{{item.follower_count}}</text>
|
||||
</view>
|
||||
<view class="toolItem flex">
|
||||
<image class="icon" src="/static/icon/home/comment.png" mode="widthFix"></image>
|
||||
<text>{{item.post_count}}</text>
|
||||
</view>
|
||||
<view class="toolItem flex" @click.stop="clickFollowEvent(item.id)">
|
||||
<image class="icon" src="/static/icon/home/follow.png" mode="widthFix"></image>
|
||||
<image class="icon" src="/static/icon/home/collect.png" mode="widthFix"></image>
|
||||
<text>{{item.follower_count}}</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -88,7 +92,7 @@
|
||||
</scroll-view>
|
||||
<uni-popup ref="screenPopup" type="top">
|
||||
<view class="screenPopup" :style="'padding-top:'+menuTop+'px;'">
|
||||
<view class="navC flex" :style="'height:'+menuH+'px;'">
|
||||
<view class="navC flex" :style="'height:'+menuH+'px;'" @click="clickCancel()">
|
||||
<image class="icon" src="/static/icon/backBlack.png" mode="widthFix"></image>
|
||||
<view class="title">筛选</view>
|
||||
</view>
|
||||
@@ -209,7 +213,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="selectScreenCategory!=3" class="btnC flex">
|
||||
<view class="cancel btn flex1" @click="clickCancel()">取消</view>
|
||||
<view class="cancel btn flex1" @click="clickReset()">重置</view>
|
||||
<view class="certain btn flex1" @click="clickCertain()">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -243,10 +247,6 @@
|
||||
{
|
||||
icon:'/static/icon/home/eventLevel.png',
|
||||
title:'事件等级',
|
||||
},
|
||||
{
|
||||
icon:'/static/icon/home/sort.png',
|
||||
title:'最新排序',
|
||||
}],
|
||||
keywords:'', //关键词
|
||||
timeCategoryList:[],
|
||||
@@ -487,7 +487,7 @@
|
||||
clickSortListItem(item)
|
||||
{
|
||||
this.selectSortKey = item.key
|
||||
this.$refs['screenPopup'].close()
|
||||
this.clickCancel()
|
||||
this.clickSearch()
|
||||
},
|
||||
/**
|
||||
@@ -501,9 +501,37 @@
|
||||
/**
|
||||
* 点击筛选弹窗取消
|
||||
*/
|
||||
clickCancel()
|
||||
clickCancel()
|
||||
{
|
||||
this.$refs["screenPopup"].close()
|
||||
this.$refs['screenPopup'].close()
|
||||
},
|
||||
/**
|
||||
* 点击筛选弹窗重置
|
||||
*/
|
||||
clickReset()
|
||||
{
|
||||
if (this.selectScreenCategory == 0) {
|
||||
//时间筛选
|
||||
this.selectQuickTimeIndex = -1;
|
||||
this.startDateStr = this.endDateStr = ''
|
||||
}else if (this.selectScreenCategory == 1) {
|
||||
//行业筛选
|
||||
this.industryKeywords = ''
|
||||
this.searchResultList = []
|
||||
this.selectIndustryTopCategory = 0
|
||||
this.selectIndustrySecondCategory = 0
|
||||
this.selectIndustryThirdCategory = 0
|
||||
this.searchIndustryTopCategory = 0
|
||||
this.searchIndustrySecondCategory = 0
|
||||
this.searchIndustryThirdCategory = 0
|
||||
}else if (this.selectScreenCategory == 2) {
|
||||
//事件等级
|
||||
for (let item of this.importanceList) {
|
||||
item.select = false
|
||||
}
|
||||
}
|
||||
this.clickCancel()
|
||||
this.clickSearch()
|
||||
},
|
||||
/**
|
||||
* 点击筛选弹窗确定
|
||||
@@ -865,24 +893,7 @@
|
||||
if(res.code==200)
|
||||
{
|
||||
resolve(1)
|
||||
let timeList = [...res.data.sort_options]
|
||||
this.timeCategoryList = timeList.splice(0,2)
|
||||
let sortList = [...res.data.sort_options]
|
||||
for (let item of sortList) {
|
||||
if(item.name=='最新')
|
||||
{
|
||||
item.icon = '/static/icon/home/new.png'
|
||||
}
|
||||
if(item.name=='热门')
|
||||
{
|
||||
item.icon = '/static/icon/home/hot.png'
|
||||
}
|
||||
if(item.name=='收益率')
|
||||
{
|
||||
item.icon = '/static/icon/home/yield.png'
|
||||
}
|
||||
}
|
||||
this.sortTypeList = res.data.sort_options.slice(0,3)
|
||||
this.timeCategoryList = res.data.sort_options
|
||||
this.importanceList = res.data.importance_options
|
||||
this.importanceList.unshift({desc: "全部",key: "all",name: "全部"})
|
||||
}else
|
||||
@@ -1262,11 +1273,10 @@ page
|
||||
margin-top: 10rpx;
|
||||
.item
|
||||
{
|
||||
display: inline-block;
|
||||
padding: 0 26rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 32rpx;
|
||||
color: #CCCDD1;
|
||||
text-align: center;
|
||||
}
|
||||
.item.select
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user