|
|
@@ -43,6 +43,7 @@ function getapps() {
|
|
|
let i = paths.findIndex(k => k.name == s.meta.title);
|
|
|
if (i != -1) {
|
|
|
paths[i].index = i;
|
|
|
+ paths[i].appName = s.name;
|
|
|
list.push(paths[i])
|
|
|
}
|
|
|
}
|
|
|
@@ -188,6 +189,7 @@ function getcrm() {
|
|
|
let i = paths.findIndex(k => k.name == s.meta.title);
|
|
|
if (i != -1) {
|
|
|
paths[i].index = i;
|
|
|
+ paths[i].appName = s.name;
|
|
|
list.push(paths[i])
|
|
|
}
|
|
|
}
|
|
|
@@ -279,6 +281,7 @@ function getedd() {
|
|
|
let i = paths.findIndex(k => k.name == s.meta.title);
|
|
|
if (i != -1) {
|
|
|
paths[i].index = i;
|
|
|
+ paths[i].appName = s.name;
|
|
|
list.push(paths[i])
|
|
|
}
|
|
|
}
|
|
|
@@ -321,6 +324,7 @@ function geteservice() {
|
|
|
let i = paths.findIndex(k => k.name == s.meta.title);
|
|
|
if (i != -1) {
|
|
|
paths[i].index = i;
|
|
|
+ paths[i].appName = s.name;
|
|
|
list.push(paths[i])
|
|
|
}
|
|
|
}
|
|
|
@@ -377,6 +381,12 @@ function dye(list) {
|
|
|
bColor: "#F4FAEF",
|
|
|
}];
|
|
|
return list.map((v, i) => {
|
|
|
+ if (getApp().globalData.http.appName && v.appName == getApp().globalData.http.appName) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: v.path
|
|
|
+ })
|
|
|
+ delete getApp().globalData.http.appName
|
|
|
+ }
|
|
|
return {
|
|
|
...v,
|
|
|
...colorList[i > colorList.length - 1 ? i - colorList.length : i]
|