注册手机号

This commit is contained in:
luyuan 2020-11-11 10:28:47 +08:00
parent 6d410c2a03
commit 00a4dee4ec
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -28,12 +28,14 @@
@change="getquhao" @change="getquhao"
class="getcode" class="getcode"
style="width: 50%" style="width: 50%"
option-label-prop="label"
show-search show-search
> >
<a-select-option <a-select-option
v-for="(i, j) in quhaolist" v-for="(i, j) in quhaolist"
:key="j" :key="j"
:value="i.name + '+' + i.code" :value="i.name + '+' + i.code"
:label="'+' + i.code"
> >
{{ i.name }}+{{ i.code }} {{ i.name }}+{{ i.code }}
</a-select-option> </a-select-option>
@ -394,6 +396,13 @@ export default defineComponent({
function navto(url: string) { function navto(url: string) {
router.push(url); router.push(url);
} }
function getquhao(e?: any){
console.log(e)
phone.value.quhao = e.toString()
phone.value.quhao = phone.value.quhao.split("+")[1];
}
return { return {
formLayout, formLayout,
getcode, getcode,
@ -408,6 +417,7 @@ export default defineComponent({
navto, navto,
lan, lan,
quhaolist, quhaolist,
getquhao
}; };
}, },
}); });