|
|
@@ -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() {
|