xjc %!s(int64=3) %!d(string=hai) anos
pai
achega
28b1cdd1e3
Modificáronse 2 ficheiros con 7 adicións e 4 borrados
  1. 6 3
      pages/list/list.js
  2. 1 1
      pages/rank/rank.wxml

+ 6 - 3
pages/list/list.js

@@ -12,7 +12,8 @@ Page({
     order1:1,
     order1:1,
     order2: 1,
     order2: 1,
     order_by:'',
     order_by:'',
-    list:[]
+    list:[],
+    date:''
   },
   },
 
 
   /**
   /**
@@ -20,7 +21,8 @@ Page({
    */
    */
   onLoad: function (options) {
   onLoad: function (options) {
     this.setData({
     this.setData({
-      id: options.id
+      id: options.id,
+      date:options.stock_date
     })
     })
     this.getData();
     this.getData();
   },
   },
@@ -29,7 +31,8 @@ Page({
       id: this.data.id,
       id: this.data.id,
       page: this.data.page,
       page: this.data.page,
       page_size:20,
       page_size:20,
-      order_by: this.data.order_by
+      order_by: this.data.order_by,
+      stock_date:this.data.date
     }
     }
     
     
     const list = this.data.list;
     const list = this.data.list;

+ 1 - 1
pages/rank/rank.wxml

@@ -29,7 +29,7 @@
 <view class="list" wx:for="{{datas.groups}}" >
 <view class="list" wx:for="{{datas.groups}}" >
     <view class="title">
     <view class="title">
         {{item.name}} <text>({{item.players_num}}人)</text>
         {{item.name}} <text>({{item.players_num}}人)</text>
-        <navigator url="../list/list?id={{item.id}}">
+        <navigator url="../list/list?id={{item.id}}&stock_date={{date}}">
           查看更多  <image mode="widthFix" src="../../images/right_icon.png"></image>
           查看更多  <image mode="widthFix" src="../../images/right_icon.png"></image>
         </navigator>
         </navigator>
     </view> 
     </view>