diff --git a/common/common.js b/common/common.js index 0c46f8e..d7fabaa 100644 --- a/common/common.js +++ b/common/common.js @@ -31,7 +31,7 @@ const useraboutUs = serverUrl + "/business/h5/index/aboutUs"; // const requestSign = function(inputData) { - var jsonList = inputData; + var jsonList = inputData || {}; jsonList.sign_type = "md5"; jsonList.app_id = "0eca8f5373ca4866aec2f8e9d9367104"; jsonList.deviceInfo = "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E"; diff --git a/pages/index/index.vue b/pages/index/index.vue index 9187036..f540125 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -136,7 +136,7 @@ // 登陆成功 展示首页 that.userIsLogin = false; - + // 首页信息获取 接口 that.$myRequest({ url:that.$common.indexInfo, @@ -146,7 +146,7 @@ console.log(res) var indexInfo = res.data; console.log(indexInfo) - that.userName=indexInfo.indexInfo; + that.userName=indexInfo.userName;