注册手机号

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