stanley-king před 4 roky
rodič
revize
417983c547
2 změnil soubory, kde provedl 16 přidání a 9 odebrání
  1. 2 2
      config.js
  2. 14 7
      pages/index/index.js

+ 2 - 2
config.js

@@ -1,8 +1,8 @@
 // let api = "https://passport.lrlz.com/mobile/index.php";
 // let api = "http://www.xyzshops.cn/mobile/index.php";
 // let api = "http://192.168.1.200/mobile/index.php";
-let api = "https://www.xyzshops.cn/mobile/index.php";
-// let api = "http://www.xyzshops.cn/mobile/index.php";
+// let api = "https://www.xyzshops.cn/mobile/index.php";
+let api = "http://www.xyzshops.cn/mobile/index.php";
 
 function getReq(app, data, callback, method) {
   let options = {

+ 14 - 7
pages/index/index.js

@@ -50,7 +50,7 @@ Page({
       app.globalData.channel_num = options.channel
       console.log('options.channel:', options.channel)
     }
-    this.getDatas()
+    this.getDatas(1039)
   },
   freeBonus() {
     if (this.data.daliy_bonus) {
@@ -68,15 +68,22 @@ Page({
     // });
     let self = this;
     console.log('fromSource =' + fromSource)
+    // getReq(app,{
+    //   act: 'index',
+    //   op: 'mini_index',
+    //   page: 10,
+    //   curpage: 1,
+    //   from: fromSource
+    // }, 
     getReq(app,{
-      act: 'index',
-      op: 'mini_index',
-      page: 10,
-      curpage: 1,
-      from: fromSource
-    }, function (res) {
+      act: 'special',
+      op: 'index',
+      special_id:special_id
+    }, 
+    function (res) {
       wx.stopPullDownRefresh()
       if (res.code == 200) {
+        console.log(res)
         let prop_special = res.datas.special_list;
         let sent_down_special = prop_special.splice(0, 8);
         self.setData({