💊 fix: 修复bug

This commit is contained in:
wangsongsole 2023-08-11 10:41:14 +08:00
parent 51bf88b980
commit ee32956617
2 changed files with 37 additions and 18 deletions

View File

@ -28,7 +28,7 @@
</script> </script>
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/js/swiper.min.js"></script> <script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/js/swiper.min.js"></script>
<link href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/css/swiper.min.css" rel="stylesheet"> <link href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/css/swiper.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/homepage2_0.css"> <link rel="stylesheet" href="./homepage2_0.css">
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api2_0.js"></script> <script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api2_0.js"></script>
</head> </head>
@ -51,18 +51,21 @@
</div> </div>
</div> </div>
<div class="ipt-acc" style="position: relative;z-index: 99;" @click="bindAvailable"> <div class="ipt-acc" style="position: relative;z-index: 99;" @click="bindAvailable">
<p v-if="acctype=='tel'"><span>账号:</span><input :type="acctype" <h4 class="title" v-if="goodInfo.product_type===2">{{goodInfo.product_name}}</h4>
onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1" <template v-if="goodInfo.product_type===1">
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen" v-model="account" <p v-if="acctype=='tel'"><span>账号:</span><input :type="acctype"
:placeholder="placeholder" @focus="(e)=>focusFn(e)"></p> onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1"
<p v-if="acctype=='tel'"><span>再次输入:</span> <input :type="acctype" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen" v-model="account"
onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p>
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen" v-model="reaccount" <p v-if="acctype=='tel'"><span>再次输入:</span> <input :type="acctype"
placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p> onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1"
<p v-if="acctype!='tel'"><span>账号:</span> <input :type="acctype" :maxlength="maxlen" v-model="account" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen"
:disabled="goodsDetail.available!=1" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p> v-model="reaccount" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p>
<p v-if="acctype!='tel'"><span>再次输入:</span><input :type="acctype" :maxlength="maxlen" v-model="reaccount" <p v-if="acctype!='tel'"><span>账号:</span> <input :type="acctype" :maxlength="maxlen" v-model="account"
:disabled="goodsDetail.available!=1" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p> :disabled="goodsDetail.available!=1" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p>
<p v-if="acctype!='tel'"><span>再次输入:</span><input :type="acctype" :maxlength="maxlen" v-model="reaccount"
:disabled="goodsDetail.available!=1" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p>
</template>
</div> </div>
<div class="bottom" id="bottom" v-show="describe.type||detailUrl"> <div class="bottom" id="bottom" v-show="describe.type||detailUrl">
<img :src="detailUrl" v-show="detailUrl"> <img :src="detailUrl" v-show="detailUrl">
@ -76,7 +79,7 @@
<p>订单</p> <p>订单</p>
</div> </div>
<button class="exchange-btn" <button class="exchange-btn"
:style="{'background': exchangeOpen?bgcolor:'#D7D7D7','color':exchangeOpen?ftcolor:'#333'}" :style="{'background': (exchangeOpen||goodInfo.product_type===2)?bgcolor:'#D7D7D7','color':(exchangeOpen||goodInfo.product_type===2)?ftcolor:'#333'}"
@click="exchangeGoodsFn">立即兑换</button> @click="exchangeGoodsFn">立即兑换</button>
</div> </div>
</div> </div>
@ -101,7 +104,7 @@
<!-- 询问 --> <!-- 询问 -->
<div class="popboxshow" v-if="popboxshow&&popboxtype=='兑换'" :class="popboxshow?'active':''"> <div class="popboxshow" v-if="popboxshow&&popboxtype=='兑换'" :class="popboxshow?'active':''">
<div> <div>
<p v-if="acctype=='tel'">是否为账号{{this.account}}兑换{{this.proname}}会员?</p> <p v-if="acctype=='tel'">{{goodInfo.product_type===1?`是否为账号${this.account}兑换${this.proname}会员?`:'是否确认兑换?'}}</p>
<p v-if="acctype=='text'">是否兑换{{this.proname}}会员?</p> <p v-if="acctype=='text'">是否兑换{{this.proname}}会员?</p>
<span @click="surexchangeBtn">确认兑换</span> <span @click="surexchangeBtn">确认兑换</span>
</div> </div>
@ -222,12 +225,20 @@
successchangeBtnFn () { successchangeBtnFn () {
window.location.replace(document.referrer); window.location.replace(document.referrer);
}, },
//兑换商品 //兑换商品
exchangeGoodsFn () { exchangeGoodsFn () {
if (goodsDetail.available != 1) { if (goodsDetail.available != 1) {
this.openErrorDialog(product_status(goodsDetail.available, goodsDetail)); return this.openErrorDialog(product_status(goodsDetail.available, goodsDetail));
return;
} }
/* 卡密商品直接兑换 */
if (this.goodInfo.product_type === 2) {
this.maskshow = true;
this.popboxshow = true;
this.popboxtype = '兑换';
return;
};
if (!this.account) { if (!this.account) {
this.openDialog('请输入兑换账号!'); this.openDialog('请输入兑换账号!');
return false; return false;

View File

@ -787,7 +787,7 @@ img.changegray {
#exchangePage .ipt-acc { #exchangePage .ipt-acc {
font-size: 0.15rem; font-size: 0.15rem;
width: 100%; width: 100%;
padding: 0.3rem 0; padding: 0.2rem 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-direction: column; flex-direction: column;
@ -879,6 +879,14 @@ img.changegray {
margin-bottom: 0.02rem; 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 { .suspensionDom {
width: 100%; width: 100%;
height: 100vh; height: 100vh;