fix: 优化结构

This commit is contained in:
zhangds 2024-02-29 15:23:34 +08:00
parent b2e72fe82c
commit 74cc6988c8
1 changed files with 31 additions and 31 deletions

View File

@ -51,40 +51,40 @@
<div class="swiper-pagination"></div> <div class="swiper-pagination"></div>
</div> </div>
</div> </div>
<div class="ipt-acc" style="position: relative;z-index: 99;">
<div v-if="goodsDetail.available!=1" @click="bindAvailable" class="ipt-acc"
style="position: relative;z-index: 99;">
<h4 class="title" v-if="goodInfo.product_type===2&&goodInfo.card_show==2">{{goodInfo.product_name}}</h4> <h4 class="title" v-if="goodInfo.product_type===2&&goodInfo.card_show==2">{{goodInfo.product_name}}</h4>
<template v-if="goodsDetail.available!=1" @click="bindAvailable"> <p>
<p> <span>账号:</span>
<span>账号:</span> <!-- <input type="text" :placeholder="placeholder"> -->
<!-- <input type="text" :placeholder="placeholder"> --> <span class="j-input"
<span class="j-input" style="color: #ccc;height:0.32rem;padding-right: 0.1rem;line-height: 0.32rem;display: inline-block;width: 80%;">{{placeholder}}</span>
style="color: #ccc;height:0.32rem;padding-right: 0.1rem;line-height: 0.32rem;display: inline-block;width: 80%;">{{placeholder}}</span> </p>
</p> <p>
<p> <span>再次输入:</span>
<span>再次输入:</span> <!-- <input type="text" :placeholder="placeholder"> -->
<!-- <input type="text" :placeholder="placeholder"> --> <span class="j-input"
<span class="j-input" style="color: #ccc;height:0.32rem;padding-right: 0.1rem;line-height: 0.32rem;display: inline-block;width: 80%;">{{placeholder}}</span>
style="color: #ccc;height:0.32rem;padding-right: 0.1rem;line-height: 0.32rem;display: inline-block;width: 80%;">{{placeholder}}</span> </p>
</p> </div>
</template>
<template v-else> <div v-else class="ipt-acc" style="position: relative;z-index: 99;">
<template v-if="goodInfo.product_type===1||goodInfo.product_type===2&&goodInfo.card_show==1"> <h4 class="title" v-if="goodInfo.product_type===2&&goodInfo.card_show==2">{{goodInfo.product_name}}</h4>
<p v-if="acctype=='tel'"><span>账号:</span><input :type="acctype" <template v-if="goodInfo.product_type===1||goodInfo.product_type===2&&goodInfo.card_show==1">
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" onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1"
v-model="account" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p> 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" onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1"
v-model="reaccount" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p> onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen"
<p v-if="acctype!='tel'"><span>账号:</span> <input :type="acctype" :maxlength="maxlen" v-model="account" v-model="reaccount" 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="account"
<p v-if="acctype!='tel'"><span>再次输入:</span><input :type="acctype" :maxlength="maxlen" v-model="reaccount" :disabled="goodsDetail.available!=1" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p>
:disabled="goodsDetail.available!=1" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p> <p v-if="acctype!='tel'"><span>再次输入:</span><input :type="acctype" :maxlength="maxlen" v-model="reaccount"
</template> :disabled="goodsDetail.available!=1" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p>
</template> </template>
</div> </div>