diff --git a/exchange.html b/exchange.html
index 9fc726a..c414f3f 100644
--- a/exchange.html
+++ b/exchange.html
@@ -29,6 +29,8 @@
+
+
@@ -90,6 +92,11 @@
+
+
+
{
+ if (res.code == 200) {
+ localStorage.setItem('cardProductDetail', JSON.stringify(res.data));
+ window.location.replace('./coupon/lookCard.html');
+ } else {
+ this.openErrorDialog(res.message);
+ }
+ });
},
//兑换商品
@@ -319,19 +344,26 @@
self.popboxshow = false;
req.axiosPost('/key/usage', data).then(res => {
if (res.code == 200) {
+ this.popboxtype = '成功';
sessionStorage.setItem('lastid', self.goodInfo.product_id);
- // 查询订单接口
+
if (this.goodInfo.product_type === 2) {
if (this.goodInfo.card_show == 2) {
- this.successTip = '兑换成功,请到页面左下角"订单"(订单列表处)查看卡密信息!';
+ this.loading = true;
+ this.order_number = res.data.order_number;
+ this.successTip = '兑换成功!';
+ setTimeout(() => {
+ this.popboxshow = true;
+ this.loading = false;
+ }, 3000);
} else {
this.successTip = '兑换成功,请到注意查收手机短信!';
+ this.popboxshow = true;
}
} else {
this.successTip = '兑换成功,到账信息请关注官方APP!';
+ this.popboxshow = true;
}
- this.popboxtype = '成功';
- this.popboxshow = true;
} else {
this.openErrorDialog(res.message);