|
@@ -189,6 +189,7 @@
|
|
|
this.$router.push({path: '/address/list', query: {need_goBack: true}});
|
|
|
},
|
|
|
onBridgeReady(){
|
|
|
+ this.$store.commit('updateLoadingStatus', {isLoading: true});
|
|
|
let goods_id = this.$route.query["goods_id"];
|
|
|
let goods_num = this.$route.query['num'];
|
|
|
let iscart = this.$route.query["iscart"];
|
|
@@ -198,6 +199,7 @@
|
|
|
let offpay_hash_batch = this.datas['payinfo'].offpay_hash_batch;
|
|
|
let address_id = this.store_address ? this.store_address.aid : this.datas['address'].address_id;
|
|
|
this.$http.jsonp(Api.stepSecond(cart_id, goods_id, goods_num, address_id, 0, vat_hash, offpay_hash, offpay_hash_batch),{_timeout:5000}).then(function (res) {
|
|
|
+ this.$store.commit('updateLoadingStatus', {isLoading: false});
|
|
|
if (res.status == 200 && res.body.code == 200) {
|
|
|
let param = res.body.datas.param.data;
|
|
|
WeixinJSBridge.invoke(
|
|
@@ -216,6 +218,7 @@
|
|
|
}
|
|
|
);
|
|
|
} else {
|
|
|
+ this.$store.commit('updateLoadingStatus', {isLoading: false});
|
|
|
let msg;
|
|
|
if (res.status != 200) {
|
|
|
msg = "网络错误!";
|
|
@@ -233,7 +236,8 @@
|
|
|
type: 'text',
|
|
|
text: "网络错误",
|
|
|
position: 'middle'
|
|
|
- })
|
|
|
+ });
|
|
|
+ this.$store.commit('updateLoadingStatus', {isLoading: false});
|
|
|
});
|
|
|
}
|
|
|
},
|