Authored by weiqingting

调试

... ... @@ -61,12 +61,15 @@ module.exports={
}, function (error1, httpResponse1, rebody1) {
if (!error1 && httpResponse1.statusCode == 200) {
userInfo.menu = Utils.createrMenus(JSON.parse(rebody1).data);
console.log("调用菜单");
//调用权限
request({
url: Iaccount.allRight,
form: '[false]'
}, function (error2, httpResponse2, rebody2) {
if (!error2 && httpResponse2.statusCode == 200) {
console.log("调用权限");
userInfo.right = {};
JSON.parse(rebody2).data.forEach(function (data) {
if (data.platform_id == Iaccount.WEBSITE) {
... ... @@ -80,8 +83,8 @@ module.exports={
"x-user-id": userInfo.uid
}
}, function (error3, httpResponse3, rebody3) {
console.log("dianpu");
console.log(httpResponse3);
console.log("获取店铺");
console.log(rebody3);
if (!error3 && httpResponse3.statusCode == 200) {
userInfo.shopList = [];
if (JSON.parse(rebody3).data) {
... ...
... ... @@ -61,12 +61,15 @@ module.exports={
}, function (error1, httpResponse1, rebody1) {
if (!error1 && httpResponse1.statusCode == 200) {
userInfo.menu = Utils.createrMenus(JSON.parse(rebody1).data);
console.log("调用菜单");
//调用权限
request({
url: Iaccount.allRight,
form: '[false]'
}, function (error2, httpResponse2, rebody2) {
if (!error2 && httpResponse2.statusCode == 200) {
console.log("调用权限");
userInfo.right = {};
JSON.parse(rebody2).data.forEach(function (data) {
if (data.platform_id == Iaccount.WEBSITE) {
... ... @@ -80,8 +83,8 @@ module.exports={
"x-user-id": userInfo.uid
}
}, function (error3, httpResponse3, rebody3) {
console.log("dianpu");
console.log(httpResponse3);
console.log("获取店铺");
console.log(rebody3);
if (!error3 && httpResponse3.statusCode == 200) {
userInfo.shopList = [];
if (JSON.parse(rebody3).data) {
... ...