shish 3 lat temu
rodzic
commit
bbda50b42b

+ 1 - 1
hdApp/src/admin/ghsProduct/components/buy-foot.vue

@@ -23,7 +23,7 @@ export default {
         isShare:{
 			type:Boolean,
 			default: false
-		},
+		}
     },
 	methods: {
 		buy() {

+ 20 - 2
hdApp/src/admin/ghsProduct/detail.vue

@@ -79,14 +79,28 @@ export default {
       loginShow: false,
       showShare: false,
       isShare:true,
-			pageType: "cg"
+		pageType: "cg",
+      notOpenShop:true
     };
   },
   onLoad(option) {},
   mounted() {},
   computed: {
-    ...mapGetters({ shopUser: "getShopUser" })
+    ...mapGetters({ shopUser: "getShopUser",loginInfo: "getLoginInfo" })
   },
+	watch: {
+		loginInfo: {
+			deep: true,
+			handler: function(val) {
+				if(this.$util.isEmpty(val)){
+					this.notOpenShop = true
+				}else{
+					this.notOpenShop = false
+				}
+			},
+			immediate:true
+		}
+	},
   methods: {
     nextFn(num){
       let customData = {...this.productInfo,bigCount: Number(num),smallCount:0,itemPrice:this.productInfo.price,bigPrice:this.productInfo.price,smallPrice:0}
@@ -150,6 +164,10 @@ export default {
       this.buyNum = e.value;
     },
     showPopup() {
+        if(this.notOpenShop == true){
+          this.$msg('你还没有注册哦')
+          return false;
+        }
         this.popupShow = true
     },
     hidePopup() {