|
@@ -121,7 +121,7 @@
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
//审核按钮
|
|
@@ -154,9 +154,24 @@
|
|
|
mask: true,
|
|
|
duration: 2000
|
|
|
});
|
|
|
- setTimeout(function() {
|
|
|
- uni.navigateBack();
|
|
|
- }, 2000);
|
|
|
+ let homeType = false;
|
|
|
+ let list = getCurrentPages();
|
|
|
+ for(let i=0;i<list.length;i++){
|
|
|
+ if(list[i].route.indexOf('home') != -1){
|
|
|
+ homeType = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(homeType){
|
|
|
+ setTimeout(function() {
|
|
|
+ uni.navigateBack();
|
|
|
+ }, 2000);
|
|
|
+ }else{
|
|
|
+ setTimeout(function() {
|
|
|
+ uni.reLaunch({
|
|
|
+ url: '/pages/views/home/home',
|
|
|
+ });
|
|
|
+ }, 2000);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
},
|