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