|
|
|
@ -2,19 +2,6 @@ |
|
|
|
<v-page> |
|
|
|
<v-header :title="$t('auth.a1')"></v-header> |
|
|
|
<main class=" m-lg bg-panel-3 rounded-md p-x-md box-shadow"> |
|
|
|
<!-- 国籍 --> |
|
|
|
<view class="form-item border-b p-md m-b-md"> |
|
|
|
<view class="label m-b-xs">{{$t('auth.a7')}}</view> |
|
|
|
<view class="input color-light" > |
|
|
|
<v-picker :value="form.country_id" @change="selectCountry" :list="countryList" range-value="id" range-label="name"> |
|
|
|
<v-input disabled :value="activeCountry.name" :placeholder="$t('auth.a8')"> |
|
|
|
<template #right> |
|
|
|
<van-icon class="color-default" name="arrow" /> |
|
|
|
</template> |
|
|
|
</v-input> |
|
|
|
</v-picker> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 姓名 --> |
|
|
|
<view class="form-item border-b p-md m-b-md"> |
|
|
|
<view class="label m-b-xs">{{$t('auth.a9')}}</view> |
|
|
|
@ -78,6 +65,19 @@ |
|
|
|
<view class="input color-light"> |
|
|
|
<v-input v-model="form.postal_code" :placeholder="$t('auth.d10')"></v-input> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 国籍区号 --> |
|
|
|
<view class="form-item border-b p-md m-b-md"> |
|
|
|
<view class="label m-b-xs">{{$t('auth.SelectAreaCode')}}</view> |
|
|
|
<view class="input color-light" > |
|
|
|
<v-picker :value="form.country_id" @change="selectCountry" :list="countryList" range-value="id" range-label="name2"> |
|
|
|
<v-input disabled :value="activeCountry.name2" :placeholder="$t('auth.SelectAreaCode')"> |
|
|
|
<template #right> |
|
|
|
<van-icon class="color-default" name="arrow" /> |
|
|
|
</template> |
|
|
|
</v-input> |
|
|
|
</v-picker> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 电话 --> |
|
|
|
<view class="form-item border-b p-md m-b-md"> |
|
|
|
@ -159,7 +159,12 @@ export default { |
|
|
|
Member.getCountryCode() |
|
|
|
.then((res) => { |
|
|
|
console.info(res) |
|
|
|
this.countryList = res.data; |
|
|
|
this.countryList = res.data.map(item=>{ |
|
|
|
return { |
|
|
|
...item, |
|
|
|
name2: '+'+item.country_code+'('+item.name+')' |
|
|
|
} |
|
|
|
}); |
|
|
|
this.form.country_id = this.countryList[res.data.length-1].id; |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
|