🦀️ fix: 修复bug
This commit is contained in:
parent
b073b6e0f1
commit
d931085bee
|
@ -230,7 +230,6 @@
|
||||||
};
|
};
|
||||||
req.axiosPost("/key/usage", data)
|
req.axiosPost("/key/usage", data)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
sessionStorage.setItem("lastid", self.goodInfo.product_id);
|
sessionStorage.setItem("lastid", self.goodInfo.product_id);
|
||||||
this.orderId = res.data.order_number;
|
this.orderId = res.data.order_number;
|
||||||
|
@ -248,6 +247,7 @@
|
||||||
if (this.goodInfo.entity.is_webview == 1) {
|
if (this.goodInfo.entity.is_webview == 1) {
|
||||||
this.publicCollection(res.data.order_number);
|
this.publicCollection(res.data.order_number);
|
||||||
} else {
|
} else {
|
||||||
|
this.loading = false;
|
||||||
//唤起微信福利官小程序
|
//唤起微信福利官小程序
|
||||||
window.location.replace(res.data.redirect_url);
|
window.location.replace(res.data.redirect_url);
|
||||||
}
|
}
|
||||||
|
@ -281,6 +281,7 @@
|
||||||
};
|
};
|
||||||
req.axiosPost("/voucher/grant", params)
|
req.axiosPost("/voucher/grant", params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
this.loading = false;
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.openErrorDialog('领取成功');
|
this.openErrorDialog('领取成功');
|
||||||
this.goodInfo.available = 9;
|
this.goodInfo.available = 9;
|
||||||
|
|
Loading…
Reference in New Issue