fix: 优化结构
This commit is contained in:
parent
b2e72fe82c
commit
74cc6988c8
|
@ -51,9 +51,10 @@
|
||||||
<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"> -->
|
||||||
|
@ -66,14 +67,15 @@
|
||||||
<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>
|
||||||
</template>
|
</div>
|
||||||
|
|
||||||
<template v-else>
|
<div v-else 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>
|
||||||
<template v-if="goodInfo.product_type===1||goodInfo.product_type===2&&goodInfo.card_show==1">
|
<template v-if="goodInfo.product_type===1||goodInfo.product_type===2&&goodInfo.card_show==1">
|
||||||
<p v-if="acctype=='tel'"><span>账号:</span><input :type="acctype"
|
<p v-if="acctype=='tel'"><span>账号:</span><input :type="acctype"
|
||||||
onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1"
|
onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1"
|
||||||
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen"
|
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen" v-model="account"
|
||||||
v-model="account" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p>
|
:placeholder="placeholder" @focus="(e)=>focusFn(e)"></p>
|
||||||
<p v-if="acctype=='tel'"><span>再次输入:</span> <input :type="acctype"
|
<p v-if="acctype=='tel'"><span>再次输入:</span> <input :type="acctype"
|
||||||
onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1"
|
onkeyup="this.value=this.value.replace(/\D/g,'')" :disabled="goodsDetail.available!=1"
|
||||||
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen"
|
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen"
|
||||||
|
@ -83,8 +85,6 @@
|
||||||
<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="reaccount"
|
||||||
:disabled="goodsDetail.available!=1" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p>
|
:disabled="goodsDetail.available!=1" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue