dever 5 years ago
parent
commit
c30c364bb0
4 changed files with 6 additions and 5 deletions
  1. 3 3
      app.json
  2. 1 1
      dever/config.js
  3. 1 0
      dever/package/network.js
  4. 1 1
      template/home/index.js

+ 3 - 3
app.json

@@ -24,19 +24,19 @@
         "pagePath": "template/home/index",
         "iconPath": "/static/img/tabbar/basics.png",
         "selectedIconPath": "/static/img/tabbar/basics_cur.png",
-        "text": "基础"
+        "text": "发现"
       },
       {
         "pagePath": "template/pay/index",
         "iconPath": "/static/img/tabbar/component.png",
         "selectedIconPath": "/static/img/tabbar/component_cur.png",
-        "text": "组件"
+        "text": "祝福"
       },
       {
         "pagePath": "template/carts/index",
         "iconPath": "/static/img/tabbar/plugin.png",
         "selectedIconPath": "/static/img/tabbar/plugin_cur.png",
-        "text": "扩展"
+        "text": "我的"
       }
     ]
   },

+ 1 - 1
dever/config.js

@@ -4,7 +4,7 @@ var config =
     host : 
     {
         // 主域名
-        'main': 'http://192.168.33.10/leek/product/?l='
+        'main': 'http://192.168.33.10/sharepic/content/?l='
     },
 
     // 项目id

+ 1 - 0
dever/package/network.js

@@ -18,6 +18,7 @@ function request(self, url, param, callback, method, header)
       return self.dever.package('analog').data(self.dever, types, param, callback);
     }
     self.set('loading', true);
+    param.json = 1;
     wx.request(
     {
         url: url,

+ 1 - 1
template/home/index.js

@@ -8,7 +8,7 @@ config.load = function()
   var self = this;
   var success = function(data, res)
   {
-      self.dever.setList(self, data.product);
+      self.setList(self, data.product);
   };
   //self.request('main.api.home', {}, {success: success});
 };