shish 3 лет назад
Родитель
Сommit
b67313493a
2 измененных файлов с 14 добавлено и 2 удалено
  1. 5 2
      hdApp/src/admin/home/workbench.vue
  2. 9 0
      hdApp/src/pagesPurchase/pb.vue

+ 5 - 2
hdApp/src/admin/home/workbench.vue

@@ -288,6 +288,11 @@ export default {
       if(this.backAction == 'login'){
       if(this.backAction == 'login'){
         this.init()
         this.init()
       }
       }
+      if(this.backAction == 'cacelMask'){
+        console.log(this.backAction)
+        this.init()
+        this.backAction = ''
+      }
 
 
       if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
       if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
           if(!this.$util.isEmpty(this.loginInfo.onlyCg)){
           if(!this.$util.isEmpty(this.loginInfo.onlyCg)){
@@ -327,8 +332,6 @@ export default {
             that.suggest()
             that.suggest()
           }
           }
           if(res.tapIndex == 2){
           if(res.tapIndex == 2){
-            that.$msg("开发中")
-            return false
             that.$util.pageTo({url:'/pagesPurchase/open'})
             that.$util.pageTo({url:'/pagesPurchase/open'})
           }
           }
         }
         }

+ 9 - 0
hdApp/src/pagesPurchase/pb.vue

@@ -58,6 +58,15 @@ export default {
       uni.stopPullDownRefresh();
       uni.stopPullDownRefresh();
     })
     })
   },
   },
+  onUnload(){
+
+    //返回上一页带参数
+    let pages = getCurrentPages();
+    let prevPage = pages[ pages.length - 2 ];
+    //修改上一页data里面的xjData
+    prevPage.$vm.backAction = 'cacelMask'
+
+  },
   methods: {
   methods: {
     recover(ghs){
     recover(ghs){
       let that = this
       let that = this