Commit f21510d2 by 梁建民

js

parent 145a2ec4
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</dd> </dd>
<dd class="inp-wrap boxsiz"> <dd class="inp-wrap boxsiz">
<label class="lineBlock va-m"><em>*</em>联系方式:</label> <label class="lineBlock va-m"><em>*</em>联系方式:</label>
<input type="button" @click="numberFlag=true" placeholder="请输入手机或电话号码" class="va-m inp" v-model="form.mobile" maxlength="11" onkeyup="this.value=this.value.replace(/\D/g,'')"> <input type="text" placeholder="请输入手机或电话号码" class="va-m inp" v-model="form.mobile" maxlength="11" onkeyup="this.value=this.value.replace(/\D/g,'')">
</dd> </dd>
<dd class="inp-wrap boxsiz" v-if="verifyCodeFlag"> <dd class="inp-wrap boxsiz" v-if="verifyCodeFlag">
<label class="lineBlock va-m"><em>*</em>短信验证:</label> <label class="lineBlock va-m"><em>*</em>短信验证:</label>
...@@ -200,7 +200,6 @@ ...@@ -200,7 +200,6 @@
</div> </div>
</div> </div>
</div> </div>
<van-number-keyboard :show="numberFlag" close-button-text="完成" @blur="numberFlag = false" theme="custom" extra-key="." @input="onInput" @delete="onDelete"/>
<van-loading type="spinner" color="#000" class="loading-background" v-if="loading"/> <van-loading type="spinner" color="#000" class="loading-background" v-if="loading"/>
</section> </section>
</template> </template>
...@@ -209,9 +208,9 @@ ...@@ -209,9 +208,9 @@
import Vue from 'vue'; import Vue from 'vue';
import {mapState} from 'vuex' import {mapState} from 'vuex'
import {Swipe, SwipeItem, NumberKeyboard, Loading} from 'vant'; import {Swipe, SwipeItem, Loading} from 'vant';
Vue.use(Swipe).use(SwipeItem).use(NumberKeyboard).use(Loading); Vue.use(Swipe).use(SwipeItem).use(Loading);
export default { export default {
name: 'supplier', name: 'supplier',
...@@ -292,7 +291,6 @@ ...@@ -292,7 +291,6 @@
}, },
mobileVal(val) { mobileVal(val) {
if (val.length >= 11) { if (val.length >= 11) {
console.log('aa')
this.verifyCodeFlag = true; this.verifyCodeFlag = true;
this.formError = false; this.formError = false;
this.$store.dispatch({ this.$store.dispatch({
...@@ -394,12 +392,6 @@ ...@@ -394,12 +392,6 @@
} }
} }
}, },
onInput(value) {
this.form.mobile = this.form.mobile + value;
},
onDelete(value) {
this.form.mobile = this.form.mobile.substring(0, this.form.mobile.length - 1);
},
goAnchor(type) { goAnchor(type) {
if (type === 1) { if (type === 1) {
var anchor = this.$el.querySelector('#join-btn'); var anchor = this.$el.querySelector('#join-btn');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment