diff --git a/coupon/lookCard.html b/coupon/lookCard.html
index f6ac130..13ee90c 100644
--- a/coupon/lookCard.html
+++ b/coupon/lookCard.html
@@ -45,7 +45,11 @@
复制卡号
- 卡密正在生成中,请稍后刷新再查看
+
+
{{cardData.status===3?'卡密兑换失败,请重新兑换':'卡密正在生成中,请稍后刷新再查看'}}
+
重新兑换
+
点击刷新
+
密码:
@@ -57,7 +61,11 @@
复制密码
-
卡密正在生成中,请稍后刷新再查看
+
+
{{cardData.status===3?'卡密兑换失败,请重新兑换':'卡密正在生成中,请稍后刷新再查看'}}
+
重新兑换
+
点击刷新
+
@@ -71,7 +79,11 @@
复制卡密
- 卡密正在生成中,请稍后刷新再查看
+
+
{{cardData.status===3?'卡密兑换失败,请重新兑换':'卡密正在生成中,请稍后刷新再查看'}}
+
重新兑换
+
点击刷新
+
@@ -98,13 +110,7 @@
created () {
- const orderNumber = localStorage.getItem('orderNumber');
- /* 获取卡密详情 */
- req.axiosGet(`/key/order/detail/${orderNumber}`).then(res => {
- if (res.code == 200) {
- this.cardData = res.data;
- }
- });
+ this.getInfo();
},
methods: {
@@ -119,6 +125,16 @@
this.openDialog('复制成功');
},
+ getInfo () {
+ const orderNumber = localStorage.getItem('orderNumber');
+ /* 获取卡密详情 */
+ req.axiosGet(`/key/order/detail/${orderNumber}`).then(res => {
+ if (res.code == 200) {
+ this.cardData = res.data;
+ }
+ });
+ },
+
// 单条弹框
openDialog (tip) {