diff --git a/manifest.json b/manifest.json index 03f7ca4..4872e97 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "曲阳金隅EHS", "appid" : "__UNI__B00D419", "description" : "曲阳金隅EHS", - "versionName" : "1.01.02", - "versionCode" : 10102, + "versionName" : "1.01.03", + "versionCode" : 10103, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/home/home_.vue b/pages/home/home_.vue index 35ed424..b3857b7 100644 --- a/pages/home/home_.vue +++ b/pages/home/home_.vue @@ -125,8 +125,8 @@ // #endif }, onShow() { - debugger; - console.log(this.vuex_perm) + // debugger; + // console.log(this.vuex_perm) if(this.vuex_user.type==='visitor'){ this.limitedVisit = true; }else{ @@ -180,7 +180,7 @@ }) }, goIntoTargetPage(type) { - debugger; + // debugger; if(this.limitedVisit==true){ }else{ if (type == "daiban") { diff --git a/pages/login/login_.vue b/pages/login/login_.vue index d05eaa1..f7214d0 100644 --- a/pages/login/login_.vue +++ b/pages/login/login_.vue @@ -437,9 +437,7 @@ obj.children = []; arr.push(obj) }) - let userRange0 = that.resetData(arr); - var useArr = userRange0[0].children; - + var useArr = that.resetData(arr); for (let i=0;i ((res[v.id] = v), res), {}); //Object let arr = []; for (let item of posts) { - if (item.parentId == null) { - arr.push(item); - continue; - } - let parent = obj[item.parentId]; - parent.children = parent.children ? parent.children : []; - parent.children.push(item); + console.log(item) + if (item.parentId == null||item.parentId=="1561653664806998016") { + arr.push(item); + continue; + }else{ + let parent = obj[item.parentId]; + if(obj[item.parentId]!==undefined){ + parent.children = parent.children ? parent.children : []; + parent.children.push(item); + }else{} + } } return arr; },