Commit 21f50f3f by wangjian

·1

parent 460d553a
......@@ -92,7 +92,6 @@
methods: {
getUserInfo() {
if (!this.$store.state.isLogin) {
this.$router.push('Login')
return
}
this.$net.get('/staff/detail').then(res => {
......
......@@ -124,8 +124,8 @@
this.currentPosition = e.detail.current + 1
},
buyNow(selectShop) {
if (!this.$store.state.hasLogin) {
this.$router.push('login')
if (!this.$store.state.isLogin) {
this.$router.push('Login')
return
}
// selectShop.goodsId = this.goodsData.spuResp.id;
......@@ -167,6 +167,10 @@
this.$wxCustomer()
},
goSubmit (e) {
if (!this.$store.state.isLogin) {
this.$router.push('Login')
return
}
console.log(e);
let goods = {
'num': e.goodsNum,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment