Commit 0206229e15b2c6cbe0b71042bf57ac70ea5f12b8

Authored by 刘淇
1 parent f7e9351e

登陆

common/common.js
@@ -31,7 +31,7 @@ const useraboutUs = serverUrl + "/business/h5/index/aboutUs"; @@ -31,7 +31,7 @@ const useraboutUs = serverUrl + "/business/h5/index/aboutUs";
31 // 31 //
32 const requestSign = function(inputData) { 32 const requestSign = function(inputData) {
33 33
34 - var jsonList = inputData; 34 + var jsonList = inputData || {};
35 jsonList.sign_type = "md5"; 35 jsonList.sign_type = "md5";
36 jsonList.app_id = "0eca8f5373ca4866aec2f8e9d9367104"; 36 jsonList.app_id = "0eca8f5373ca4866aec2f8e9d9367104";
37 jsonList.deviceInfo = "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E"; 37 jsonList.deviceInfo = "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E";
pages/index/index.vue
@@ -136,7 +136,7 @@ @@ -136,7 +136,7 @@
136 136
137 // 登陆成功 展示首页 137 // 登陆成功 展示首页
138 that.userIsLogin = false; 138 that.userIsLogin = false;
139 - 139 +
140 // 首页信息获取 接口 140 // 首页信息获取 接口
141 that.$myRequest({ 141 that.$myRequest({
142 url:that.$common.indexInfo, 142 url:that.$common.indexInfo,
@@ -146,7 +146,7 @@ @@ -146,7 +146,7 @@
146 console.log(res) 146 console.log(res)
147 var indexInfo = res.data; 147 var indexInfo = res.data;
148 console.log(indexInfo) 148 console.log(indexInfo)
149 - that.userName=indexInfo.indexInfo; 149 + that.userName=indexInfo.userName;
150 150
151 151
152 152