Commit 21f50f3f by wangjian

·1

parent 460d553a
...@@ -92,7 +92,6 @@ ...@@ -92,7 +92,6 @@
methods: { methods: {
getUserInfo() { getUserInfo() {
if (!this.$store.state.isLogin) { if (!this.$store.state.isLogin) {
this.$router.push('Login')
return return
} }
this.$net.get('/staff/detail').then(res => { this.$net.get('/staff/detail').then(res => {
......
...@@ -124,8 +124,8 @@ ...@@ -124,8 +124,8 @@
this.currentPosition = e.detail.current + 1 this.currentPosition = e.detail.current + 1
}, },
buyNow(selectShop) { buyNow(selectShop) {
if (!this.$store.state.hasLogin) { if (!this.$store.state.isLogin) {
this.$router.push('login') this.$router.push('Login')
return return
} }
// selectShop.goodsId = this.goodsData.spuResp.id; // selectShop.goodsId = this.goodsData.spuResp.id;
...@@ -167,6 +167,10 @@ ...@@ -167,6 +167,10 @@
this.$wxCustomer() this.$wxCustomer()
}, },
goSubmit (e) { goSubmit (e) {
if (!this.$store.state.isLogin) {
this.$router.push('Login')
return
}
console.log(e); console.log(e);
let goods = { let goods = {
'num': e.goodsNum, '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