手动领取_手机号不可改

This commit is contained in:
zhangguoping 2024-10-10 15:45:16 +08:00
parent c9a035db55
commit 7595f922df
2 changed files with 14 additions and 10 deletions

View File

@ -58,7 +58,7 @@
<p> <p>
<span>账号:</span> <span>账号:</span>
<input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')" <input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')"
:disabled="goodsDetail.available!=1" :disabled="goodsDetail.available!=1 || !!goodsDetail.account"
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="11" v-model="account" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="11" v-model="account"
placeholder="请输入手机号" @focus="(e)=>focusFn(e)"> placeholder="请输入手机号" @focus="(e)=>focusFn(e)">
</p> </p>
@ -77,17 +77,17 @@
<!-- 非E卡 --> <!-- 非E卡 -->
<template v-else> <template v-else>
<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 || !!goodsDetail.account"
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen"
v-model="account" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p> v-model="account" :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 || !!goodsDetail.account"
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen"
v-model="reaccount" 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="account" <p v-if="acctype!='tel'"><span>账号:</span> <input :type="acctype" :maxlength="maxlen" v-model="account"
:disabled="goodsDetail.available!=1" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p> :disabled="goodsDetail.available!=1 || !!goodsDetail.account" :placeholder="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="reaccount"
:disabled="goodsDetail.available!=1" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p> :disabled="goodsDetail.available!=1 || !!goodsDetail.account" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p>
</template> </template>
</template> </template>
</div> </div>
@ -198,6 +198,8 @@
this.ftcolor = detailsConfig.font_color; this.ftcolor = detailsConfig.font_color;
this.describe = detailsConfig.describe; this.describe = detailsConfig.describe;
goodsDetail = JSON.parse(sessionStorage.getItem('goodsInfo'));//商品详情 goodsDetail = JSON.parse(sessionStorage.getItem('goodsInfo'));//商品详情
this.account = goodsDetail.account;
this.reaccount = goodsDetail.account;
this.goodsDetail = goodsDetail;//商品详情 this.goodsDetail = goodsDetail;//商品详情
let goodsInform = goodsDetail.entity; //商品信息 let goodsInform = goodsDetail.entity; //商品信息
this.goodInfo = goodsInform; this.goodInfo = goodsInform;

View File

@ -85,7 +85,7 @@
<p> <p>
<span>账号:</span> <span>账号:</span>
<input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')" <input :type="acctype" onkeyup="this.value=this.value.replace(/\D/g,'')"
:disabled="goodsDetail.available!=1" :disabled="goodsDetail.available!=1 || !!goodsDetail.account"
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="11" v-model="account" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="11" v-model="account"
placeholder="请输入手机号" @focus="(e)=>focusFn(e)"> placeholder="请输入手机号" @focus="(e)=>focusFn(e)">
</p> </p>
@ -104,17 +104,17 @@
<!-- 非E卡 --> <!-- 非E卡 -->
<template v-else> <template v-else>
<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 || !!goodsDetail.account"
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen"
v-model="account" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p> v-model="account" :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 || !!goodsDetail.account"
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" :maxlength="maxlen"
v-model="reaccount" 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="account" <p v-if="acctype!='tel'"><span>账号:</span> <input :type="acctype" :maxlength="maxlen" v-model="account"
:disabled="goodsDetail.available!=1" :placeholder="placeholder" @focus="(e)=>focusFn(e)"></p> :disabled="goodsDetail.available!=1 || !!goodsDetail.account" :placeholder="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="reaccount"
:disabled="goodsDetail.available!=1" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p> :disabled="goodsDetail.available!=1 || !!goodsDetail.account" placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p>
</template> </template>
</template> </template>
</div> </div>
@ -227,6 +227,8 @@
this.ftcolor = detailsConfig.font_color; this.ftcolor = detailsConfig.font_color;
this.describe = detailsConfig.describe; this.describe = detailsConfig.describe;
goodsDetail = JSON.parse(sessionStorage.getItem('goodsInfo'));//商品详情 goodsDetail = JSON.parse(sessionStorage.getItem('goodsInfo'));//商品详情
this.account = goodsDetail.account;
this.reaccount = goodsDetail.account;
this.goodsDetail = goodsDetail;//商品详情 this.goodsDetail = goodsDetail;//商品详情
let goodsInform = goodsDetail.entity; //商品信息 let goodsInform = goodsDetail.entity; //商品信息
this.goodInfo = goodsInform; this.goodInfo = goodsInform;