shish před 2 týdny
rodič
revize
2b8755d24e
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      mallApp/src/pages/item/item.vue

+ 4 - 4
mallApp/src/pages/item/item.vue

@@ -208,9 +208,6 @@ export default {
 		};
 	},
 	onPullDownRefresh() {
-		this.init().then(res => {
-			uni.stopPullDownRefresh();
-		});
 	},
 	computed: {
     	...mapGetters({ loginInfo:"getLoginInfo" })
@@ -306,7 +303,7 @@ export default {
 			return `超出限购${info.currentBuyNum + info.exceedNum}份`
 		},
 		loginSuccess() {
-			this.initData()
+			this.getBaseInfo()
 		},
 		//去特殊品种页,如小菊等
 		goToSpecialVariety(info){
@@ -339,6 +336,9 @@ export default {
       		this.$util.pageTo({url: "/pages/item/detail?id="+item.id+"&account="+account+'&hdId='+realHdId})
 		},
 		init(){
+			this.getBaseInfo()
+		},
+		getBaseInfo(){
 			this.init = false
 
 			if(this.option.hdId && Number(this.option.hdId) > 0){