shish пре 3 година
родитељ
комит
de1e7bc833

+ 7 - 2
hdApp/src/admin/clear/info.vue

@@ -126,8 +126,11 @@ export default {
 		...mapGetters(["getLoginInfo"])
 	},
 	onShow(){
-		this.init()
+		this.beginLoad()
 	},
+	onLoad(){
+    	this.beginLoad()
+  	},
 	methods: {
 		notLogin(){
 			return false
@@ -159,7 +162,7 @@ export default {
 				cancel({id:info.id}).then(res=>{
 					if(res.code == 1){
 						that.$msg('取消成功')
-						that.init()
+						that.beginLoad()
 					}
 				})
 			})
@@ -189,6 +192,8 @@ export default {
 			uni.makePhoneCall({ phoneNumber: mobile })
 		},
 		init() {
+		},
+		beginLoad() {
 			let id = 0
 			if(this.option.id){
 				id = this.option.id

+ 8 - 1
hdApp/src/pagesPurchase/purDetails.vue

@@ -338,6 +338,10 @@ export default {
           }
         }
     }
+    this.beginInit()
+  },
+	onLoad(){
+    this.beginInit()
   },
   methods: {
 		copyWl(val){
@@ -394,7 +398,10 @@ export default {
         phoneNumber: mobile
       });
     },
-    init() {
+    init(){
+
+    },
+    beginInit() {
       let id = 0
       if(this.option.id){
         id = this.option.id

+ 6 - 3
hdApp/src/pagesPurchase/refundDetail.vue

@@ -66,10 +66,13 @@ export default {
 			this.initData().then(res => {
 				uni.stopPullDownRefresh()
 			})
-		},
+	},
+	onLoad(){
+    this.initData()
+  },
   methods: {
-    init() {
-      this.initData()
+    init(){
+
     },
     initData () {
       getRefundData({ id: this.option.id }).then(res => {