|
@@ -202,8 +202,9 @@
|
|
|
this.openBuyPopup(true);
|
|
|
},
|
|
|
check_submit(quantity,goods_id){
|
|
|
- this.$store.commit('updateLoadingStatus', {isLoading: true});
|
|
|
+ this.showPopup=false;
|
|
|
if(this.isCart) {
|
|
|
+ this.$store.commit('updateLoadingStatus', {isLoading: true});
|
|
|
this.$http.jsonp(Api.shoppingCartAdd(quantity,goods_id),{_timeout:5000}).then(function(res){
|
|
|
this.$store.commit('updateLoadingStatus', {isLoading: false});
|
|
|
if(res.body.code == 200) {
|
|
@@ -227,11 +228,12 @@
|
|
|
type: 'text',
|
|
|
text: "网络错误",
|
|
|
position: 'middle'
|
|
|
- })
|
|
|
+ });
|
|
|
+ this.$store.commit('updateLoadingStatus', {isLoading: false});
|
|
|
})
|
|
|
}
|
|
|
else {
|
|
|
- this.$router.push({path:'/confirm_order',query:{goods_id:goods_id,iscart:0,num:this.goodsNumber}})
|
|
|
+ this.$router.push({path:'/confirm_order',query:{goods_id:goods_id,iscart:0,num:this.goodsNumber}});
|
|
|
}
|
|
|
},
|
|
|
goods_num_handle(type,goods_storage,act_type){
|