shish 3 лет назад
Родитель
Сommit
bab015ff30

+ 0 - 7
ghsPad/src/mixins/globalMixins.js

@@ -86,13 +86,6 @@ export default {
       }
 		}
 
-	},
-	onShow(){
-		if (isLogin()&&!this.$util.isEmpty(this.getLoginInfo)) {
-			if (this.init) {
-				this.init()
-			}
-    }
 	},
 	methods: {
 	}

+ 4 - 1
ghsPad/src/pages/home/retail.vue

@@ -29,9 +29,12 @@ export default {
 	computed: {
 		...mapGetters(["getLoginInfo"])
 	},
+	onLoad(){
+		this.openRetail()
+	},
 	methods: {
 		init(){
-			this.openRetail()
+			
 		},
 		openRetail(){
 			let type = uni.getSystemInfoSync().platform

+ 5 - 2
hdPad/src/pages/home/pf.vue

@@ -30,11 +30,14 @@ export default {
 	computed: {
 		...mapGetters(["getLoginInfo"])
 	},
+	onLoad(){
+		this.openPf()
+	},
 	methods: {
 		init(){
-			this.openRetail()
+			
 		},
-		openRetail(){
+		openPf(){
 			let type = uni.getSystemInfoSync().platform
 			if(type == 'android'){
 				if (plus.runtime.isApplicationExist({pname: 'huahuibao.xhbsy'})) {