3a39e0dc by simon

1.样式调优

2.省市区三语
1 parent f6af18f2
......@@ -25,7 +25,7 @@
<div class="ipt-wrap-linear">
<div class="down-arrow"></div>
<div class="cont">
<el-select class="ipt" v-model="data.mobileAreaCode" :placeholder="$t('policyChangeContact.form.InternationalArea')" @change="checkNationsPhoneCode">
<el-select class="ipt sel" v-model="data.mobileAreaCode" :placeholder="$t('policyChangeContact.form.InternationalArea')" @change="checkNationsPhoneCode">
<el-option v-for="(item, index) in nationsPhoneCodeList" :key="index" :label="item.n" :value="item.n"></el-option>
</el-select>
</div>
......@@ -59,7 +59,7 @@
<div class="ipt-wrap-linear">
<div class="down-arrow"></div>
<div class="cont">
<el-select class="ipt" v-model="data.countryId" :placeholder="$t('policyChangeContact.form.Nation')" @change="onChangeNations">
<el-select class="ipt sel" v-model="data.countryId" :placeholder="$t('policyChangeContact.form.Nation')" @change="onChangeNations">
<el-option v-for="(item, index) in nationsList" :key="index" :label="item.n" :value="item.v"></el-option>
</el-select>
</div>
......@@ -75,7 +75,7 @@
<div class="ipt-wrap-linear">
<div class="down-arrow"></div>
<div class="cont">
<el-select class="ipt" v-model="data.provinceId" :placeholder="$t('policyChangeContact.form.Province')" @change="onChangeProvince">
<el-select class="ipt sel" v-model="data.provinceId" :placeholder="$t('policyChangeContact.form.Province')" @change="onChangeProvince">
<el-option v-for="(item, index) in provinceList" :key="index" :label="item.n" :value="item.v"></el-option>
</el-select>
</div>
......@@ -90,7 +90,7 @@
<div class="ipt-wrap-linear">
<div class="down-arrow"></div>
<div class="cont">
<el-select class="ipt" v-model="data.cityId" :placeholder="$t('policyChangeContact.form.City')" @change="checkCity">
<el-select class="ipt sel" v-model="data.cityId" :placeholder="$t('policyChangeContact.form.City')" @change="checkCity">
<el-option v-for="(item, index) in cityList" :key="index" :label="item.n" :value="item.v"></el-option>
</el-select>
</div>
......
......@@ -129,6 +129,12 @@
letter-spacing: 1.1px;
}
}
.sel{
padding: 0 48px 0 24px;
// @include ellipsis;
}
::-webkit-input-placeholder {
color: rgba(102, 102, 102, 0.5);
}
......
......@@ -3890,21 +3890,25 @@ export function getCnProvinceList(lan) {
switch (lan) {
case "zh":
data.n = element.ZH_NAME;
break;
case "en":
data.n = element.EN_NAME;
break;
default:
data.n = element.TC_NAME;
break;
}
result.push(data)
result.push(data);
});
return result;
}
// 获取根据省ID中国大陆城市
export function getCityList(lan,PROVINCE_ID) {
export function getCityList(lan, PROVINCE_ID) {
let result = [];
console.log("lan:", lan);
cnCityList.forEach(element => {
if(element.PROVINCE_ID == PROVINCE_ID){
if (element.PROVINCE_ID == PROVINCE_ID) {
let data = {
v: element.CITY_ID,
n: ""
......@@ -3912,12 +3916,15 @@ export function getCityList(lan,PROVINCE_ID) {
switch (lan) {
case "zh":
data.n = element.ZH_NAME;
break;
case "en":
data.n = element.EN_NAME;
break;
default:
data.n = element.TC_NAME;
break;
}
result.push(data)
result.push(data);
}
});
return result;
......