diff --git a/exchange.html b/exchange.html
index eaf7d5e..7279080 100644
--- a/exchange.html
+++ b/exchange.html
@@ -28,7 +28,7 @@
-
+
@@ -51,18 +51,21 @@
-
是否为账号{{this.account}}兑换{{this.proname}}会员?
+
{{goodInfo.product_type===1?`是否为账号${this.account}兑换${this.proname}会员?`:'是否确认兑换?'}}
是否兑换{{this.proname}}会员?
确认兑换
@@ -222,12 +225,20 @@
successchangeBtnFn () {
window.location.replace(document.referrer);
},
+
//兑换商品
exchangeGoodsFn () {
if (goodsDetail.available != 1) {
- this.openErrorDialog(product_status(goodsDetail.available, goodsDetail));
- return;
+ return this.openErrorDialog(product_status(goodsDetail.available, goodsDetail));
}
+ /* 卡密商品直接兑换 */
+ if (this.goodInfo.product_type === 2) {
+ this.maskshow = true;
+ this.popboxshow = true;
+ this.popboxtype = '兑换';
+ return;
+ };
+
if (!this.account) {
this.openDialog('请输入兑换账号!');
return false;
diff --git a/homepage2_0.css b/homepage2_0.css
index 57cef72..d1ffe14 100644
--- a/homepage2_0.css
+++ b/homepage2_0.css
@@ -787,7 +787,7 @@ img.changegray {
#exchangePage .ipt-acc {
font-size: 0.15rem;
width: 100%;
- padding: 0.3rem 0;
+ padding: 0.2rem 0;
display: flex;
justify-content: space-between;
flex-direction: column;
@@ -879,6 +879,14 @@ img.changegray {
margin-bottom: 0.02rem;
}
+#exchangePage .ipt-acc .title {
+ font-size: 0.17rem;
+ font-weight: bold;
+ color: #0a0a0a;
+ margin-left: 0.12rem;
+ margin-bottom: 0.24rem;
+}
+
.suspensionDom {
width: 100%;
height: 100vh;