YZM 1 rok pred
rodič
commit
6bc14898d0
2 zmenil súbory, kde vykonal 19 pridanie a 2 odobranie
  1. 18 2
      pages/bianjigh/index.vue
  2. 1 0
      pages/dapei/index.vue

+ 18 - 2
pages/bianjigh/index.vue

@@ -86,7 +86,15 @@ export default {
 				}).then(res => {
 					if (res.data.code == 200) {
 						setTimeout(function(){
-							uni.navigateBack();
+							let pages = getCurrentPages(); // 当前页面
+							console.log(pages)
+							let beforePage = pages[pages.length - 2]; // 前一个页面
+							uni.navigateBack({
+								delta: 1,
+								success: function() {
+									beforePage.$vm.shuaxin()
+								}
+							});
 						},2000)
 						that.$refs.toast.show({model:'success',label:res.data.msg})
 					}else{
@@ -101,7 +109,15 @@ export default {
 				}).then(res => {
 					if (res.data.code == 200) {
 						setTimeout(function(){
-							uni.navigateBack();
+							let pages = getCurrentPages(); // 当前页面
+							console.log(pages)
+							let beforePage = pages[pages.length - 2]; // 前一个页面
+							uni.navigateBack({
+								delta: 1,
+								success: function() {
+									beforePage.$vm.shuaxin()
+								}
+							});
 						},2000)
 						that.$refs.toast.show({model:'success',label:res.data.msg})
 					}else{

+ 1 - 0
pages/dapei/index.vue

@@ -167,6 +167,7 @@ export default {
 			this.activeIndex1=0;
 			this.page=1;
 			this.getFl();
+			this.touFun();
 		},
 		fenlei(e){
 			var id=this.listflall[e].id;