|
@@ -42,6 +42,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])
|
|
|
}
|
|
|
}
|
|
@@ -186,6 +187,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])
|
|
|
}
|
|
|
}
|
|
@@ -277,6 +279,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])
|
|
|
}
|
|
|
}
|
|
@@ -319,6 +322,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])
|
|
|
}
|
|
|
}
|
|
@@ -375,6 +379,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]
|