@@ -11,11 +11,11 @@ Page({
width: "",
id: "1"
}, {
- label: "创建时间",
+ label: "排序",
icon: "icon-shengxu",
color: "",
- id: "3"
+ id: "sort"
label: "筛选",
icon: "icon-shaixuan",
@@ -269,12 +269,6 @@ Page({
})
break;
- case '3':
- this.setData({
- 'content.sort[0].reversed': this.data.content.sort[0].reversed == 0 ? 1 : 0
- });
- this.getList(true)
- break;
}
},
classClose() {
@@ -1,4 +1,4 @@
-<Yl_nav search list='{{navList}}' bind:onClick='navClick' bindonSearch="onSearch" />
+<Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
<!-- 显示类型 -->
<van-action-sheet show="{{ classShow }}" actions="{{ classActions }}" cancel-text="取消" bind:cancel="classClose" bind:select="classSelect" />
<view class="total">共{{content.total}}个</view>