zhaoxiaohai 3 年之前
父節點
當前提交
311dcbfb6c
共有 2 個文件被更改,包括 3 次插入9 次删除
  1. 2 8
      packageA/project/index.js
  2. 1 1
      packageA/project/index.wxml

+ 2 - 8
packageA/project/index.js

@@ -11,11 +11,11 @@ Page({
             width: "",
             id: "1"
         }, {
-            label: "创建时间",
+            label: "排序",
             icon: "icon-shengxu",
             color: "",
             width: "",
-            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 - 1
packageA/project/index.wxml

@@ -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>