zx 3 years ago
parent 99cdedb451
commit b5d1008b5a

@ -119,7 +119,12 @@ Page({
this.getData();
},
changeWeiJi(event) {this.setData({ sCrisis: event.detail });this.getData()},
iTimeTypeByChange(event) {this.setData({ iTimeType: event.detail });this.getData()},
iTimeTypeChange(event) {
this.setData({
iTimeType: this.data.iTimeType == 1?0:1,
});
this.getData()
},
changeTime(result) {
this.setData({
sTimeType: result.detail.sTimeType,

@ -40,12 +40,14 @@
</view>
</van-dropdown-item>
<van-dropdown-item id="back" title="更多筛选">
<view style="margin: 16rpx 32rpx 16rpx 32rpx;">
<view>排序方式</view>
<van-radio-group value="{{ iTimeType }}" bind:change="iTimeTypeByChange">
<van-radio name="0"><view style="margin: 12rpx;">发布时间</view></van-radio>
<van-radio name="1"><view style="margin: 12rpx;">入库时间</view></van-radio>
</van-radio-group>
<view style="margin: 0rpx 32rpx 32rpx 32rpx;">
<view style="margin-top: 32rpx">排序方式</view>
<view class="filter">
<view wx:if="{{iTimeType == 0}}" class="more-item-active">发布时间</view>
<view wx:else bindtap="iTimeTypeChange" class="more-item">发布时间</view>
<view wx:if="{{iTimeType == 1}}" class="more-item-active">入库时间</view>
<view wx:else bindtap="iTimeTypeChange" class="more-item">入库时间</view>
</view>
</view>
</van-dropdown-item>
</van-dropdown-menu>

@ -35,4 +35,30 @@
font-weight: 400;
color: #999999;
margin: 18rpx 32rpx 0 32rpx;
}
/* 筛选项 */
.filter {
display: flex;
flex-wrap: wrap;
width: 100%;
}
.more-item {
width: 296rpx;
height: 72rpx;
margin: 16rpx;
background: #F9F9F9;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #111111;
}
.more-item-active {
width: 296rpx;
height: 72rpx;
margin: 16rpx;
background: #F0F5FF;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #0084FF;
}

@ -71,7 +71,12 @@ Component({
changeSource(event) {this.setData({ sQuDao: event.detail });this.getData()},
changeQingGan(event) {this.setData({ sQingGan: event.detail });this.getData()},
changeWeiJi(event) {this.setData({ sCrisis: event.detail });this.getData()},
iTimeTypeByChange(event) {this.setData({iTimeType: event.detail});this.getData()},
iTimeTypeChange(event) {
this.setData({
iTimeType: this.data.iTimeType == 1?0:1,
});
this.getData()
},
toEventDetail(e) {
let id = e.currentTarget.dataset.id._id;
wx.navigateTo({

@ -30,12 +30,14 @@
</view>
</van-dropdown-item>
<van-dropdown-item id="back" title="更多筛选">
<view style="padding: 16rpx 32rpx 16rpx 32rpx;">
<view>排序方式</view>
<van-radio-group value="{{ iTimeType }}" bind:change="iTimeTypeByChange">
<van-radio name="0"><view style="margin: 12rpx;">发布时间</view></van-radio>
<van-radio name="1"><view style="margin: 12rpx;">入库时间</view></van-radio>
</van-radio-group>
<view style="margin: 0rpx 32rpx 32rpx 32rpx;">
<view style="margin-top: 32rpx">排序方式</view>
<view class="filter">
<view wx:if="{{iTimeType == 0}}" class="more-item-active">发布时间</view>
<view wx:else bindtap="iTimeTypeChange" class="more-item">发布时间</view>
<view wx:if="{{iTimeType == 1}}" class="more-item-active">入库时间</view>
<view wx:else bindtap="iTimeTypeChange" class="more-item">入库时间</view>
</view>
</view>
</van-dropdown-item>
</van-dropdown-menu>

@ -36,4 +36,30 @@
color: #999999;
margin-top: 18rpx;
margin: 0 32rpx 0 32rpx;
}
/* 筛选项 */
.filter {
display: flex;
flex-wrap: wrap;
width: 100%;
}
.more-item {
width: 296rpx;
height: 72rpx;
margin: 16rpx;
background: #F9F9F9;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #111111;
}
.more-item-active {
width: 296rpx;
height: 72rpx;
margin: 16rpx;
background: #F0F5FF;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #0084FF;
}

@ -113,7 +113,12 @@ Page({
this.getData();
},
changeWeiJi(event) {this.setData({ sCrisis: event.detail });this.getData()},
iTimeTypeByChange(event) {this.setData({ iTimeType: event.detail });this.getData()},
iTimeTypeChange(event) {
this.setData({
iTimeType: this.data.iTimeType == 1?0:1,
});
this.getData()
},
changeTime(result) {
this.setData({
sTimeType: result.detail.sTimeType,

@ -40,12 +40,14 @@
</view>
</van-dropdown-item>
<van-dropdown-item id="back" title="更多筛选">
<view style="padding: 16rpx 32rpx 16rpx 32rpx;">
<view>排序方式</view>
<van-radio-group value="{{ iTimeType }}" bind:change="iTimeTypeByChange">
<van-radio name="0"><view style="margin: 12rpx;">发布时间</view></van-radio>
<van-radio name="1"><view style="margin: 12rpx;">入库时间</view></van-radio>
</van-radio-group>
<view style="margin: 0rpx 32rpx 32rpx 32rpx;">
<view style="margin-top: 32rpx">排序方式</view>
<view class="filter">
<view wx:if="{{iTimeType == 0}}" class="more-item-active">发布时间</view>
<view wx:else bindtap="iTimeTypeChange" class="more-item">发布时间</view>
<view wx:if="{{iTimeType == 1}}" class="more-item-active">入库时间</view>
<view wx:else bindtap="iTimeTypeChange" class="more-item">入库时间</view>
</view>
</view>
</van-dropdown-item>
</van-dropdown-menu>

@ -35,4 +35,30 @@
font-weight: 400;
color: #999999;
margin: 18rpx 32rpx 0 32rpx
}
/* 筛选项 */
.filter {
display: flex;
flex-wrap: wrap;
width: 100%;
}
.more-item {
width: 296rpx;
height: 72rpx;
margin: 16rpx;
background: #F9F9F9;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #111111;
}
.more-item-active {
width: 296rpx;
height: 72rpx;
margin: 16rpx;
background: #F0F5FF;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #0084FF;
}

@ -257,19 +257,19 @@ Page({
},
iGroupByChange(event) {
this.setData({
iGroupBy: event.detail
iGroupBy: this.data.iGroupBy == 1?0:1,
});
this.getData()
},
iTimeTypeChange(event) {
this.setData({
iTimeType: event.detail
iTimeType: this.data.iTimeType == 1?0:1,
});
this.getData()
},
listTypeChange(event) {
this.setData({
listType: event.detail
listType: this.data.listType == 1?0:1,
});
this.getData()
},

@ -57,23 +57,29 @@
</view>
</van-dropdown-item>
<van-dropdown-item id="back" title="更多筛选">
<view style="margin: 32rpx;">
<view style="margin: 32rpx 32rpx 0 32rpx;">
<view>去重方式</view>
<van-radio-group value="{{ iGroupBy }}" bind:change="iGroupByChange">
<van-radio name="0">不去重</van-radio>
<van-radio name="1">相似度去重</van-radio>
</van-radio-group>
<view class="filter">
<view wx:if="{{iGroupBy == 0}}" class="more-item-active">不去重</view>
<view wx:else bindtap="iGroupByChange" class="more-item">不去重</view>
<view wx:if="{{iGroupBy == 1}}" class="more-item-active">相似度去重</view>
<view wx:else bindtap="iGroupByChange" class="more-item">相似度去重</view>
</view>
</view>
<view style="margin: 0rpx 32rpx 32rpx 32rpx;">
<view>排序方式</view>
<van-radio-group value="{{ listType }}" bind:change="listTypeChange">
<van-radio name="0">默认</van-radio>
<van-radio name="1">影响力倒序</van-radio>
</van-radio-group>
<van-radio-group value="{{ iTimeType }}" bind:change="iTimeTypeByChange">
<van-radio name="0">发布时间</van-radio>
<van-radio name="1">入库时间</van-radio>
</van-radio-group>
<view class="filter">
<view wx:if="{{listType == 0}}" class="more-item-active">默认</view>
<view wx:else bindtap="listTypeChange" class="more-item">默认</view>
<view wx:if="{{listType == 1}}" class="more-item-active">影响力倒序</view>
<view wx:else bindtap="listTypeChange" class="more-item">影响力倒序</view>
</view>
<view class="filter">
<view wx:if="{{iTimeType == 0}}" class="more-item-active">发布时间</view>
<view wx:else bindtap="iTimeTypeChange" class="more-item">发布时间</view>
<view wx:if="{{iTimeType == 1}}" class="more-item-active">入库时间</view>
<view wx:else bindtap="iTimeTypeChange" class="more-item">入库时间</view>
</view>
</view>
</van-dropdown-item>
</van-dropdown-menu>

@ -61,4 +61,50 @@
.top-time .van-checkbox{
display: inline-block !important;
margin-bottom: -3px
}
/* 筛选项 */
.filter {
display: flex;
flex-wrap: wrap;
width: 100%;
}
.filter-item {
width: 208rpx;
height: 72rpx;
margin: 16rpx;
background: #F9F9F9;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #111111;
}
.filter-item-active {
width: 208rpx;
height: 72rpx;
margin: 16rpx;
background: #F0F5FF;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #0084FF;
}
.more-item {
width: 296rpx;
height: 72rpx;
margin: 16rpx;
background: #F9F9F9;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #111111;
}
.more-item-active {
width: 296rpx;
height: 72rpx;
margin: 16rpx;
background: #F0F5FF;
text-align: center;
line-height: 72rpx;
font-size: 12px;
color: #0084FF;
}
Loading…
Cancel
Save