wesley.chen 7 лет назад
Родитель
Сommit
4295910d10

+ 1 - 0
Furniture/app.json

xqd
@@ -7,6 +7,7 @@
     "page/homePage/detail/detail",
     "page/homePage/detail/conment/conment",
     "page/login/login"
+   
   ],
   "window": {
     "navigationBarTextStyle": "black",

+ 3 - 3
Furniture/page/homePage/homePage.js

xqd xqd
@@ -61,9 +61,9 @@ Page({
       app.request({
       url: api.news_list,
         success: function (e) {
-        
+     
           that.setData({
-            news: e.data.news.data,
+            news: e.data.data,
           })
         }
       }),
@@ -72,7 +72,7 @@ Page({
         success: function (e) {
 
           that.setData({
-            goods: e.data.goods.data,
+            goods: e.data.data,
           })
         }
       })

+ 1 - 1
Furniture/page/login/login.js

xqd
@@ -43,7 +43,7 @@ Page({
             },
             success: function (e) {
               if (0 == e.status_code) {
-                wx.setStorageSync("access_token", e.data.token), wx.setStorageSync("user_info", e.data.userinfo);
+                wx.setStorageSync("access_token",'Bearer '+e.data.token), wx.setStorageSync("user_info", e.data.userinfo);
                 var t = wx.getStorageSync("login_pre_page");
                 t && t.route || wx.redirectTo({
                   url: "/pages/homePage/homePage"

+ 1 - 1
Furniture/project.config.json

xqd
@@ -12,7 +12,7 @@
 	},
 	"compileType": "miniprogram",
 	"libVersion": "2.2.0",
-	"appid": "wx6c4f3d16cf576f49",
+	"appid": "wx18494553a568fbd1",
 	"projectname": "%E5%AE%B6%E5%85%B7%E6%B1%87",
 	"condition": {
 		"search": {