This commit is contained in:
2023-07-10 11:27:03 +08:00
parent d8560bd998
commit 6f7b65799c

View File

@@ -332,6 +332,7 @@ export default {
props: ["merchantId"],
data() {
return {
areaList:[],
bankValue:'',
cityList:[], // 银行代码JSON数据
showAdapayCorp:null,
@@ -662,7 +663,8 @@ export default {
console.log(this.dialogImageUrl);
},
areaCode(area){
let arr = this.options.find(item => item.cities[0].value == area)
let arr = this.areaList.find(item => item.value === area);
console.log("areaCode code:{}, value:{}", area, arr);
if (arr ==null){
return '一'
} else{
@@ -671,7 +673,9 @@ export default {
},
provCode(code){
let arr = this.options.find(item => item.value == code)
let arr = this.options.find(item => item.value === code);
this.areaList=arr.cities
console.log("provCode code:{}, value:{}", code, arr);
if (arr ==null){
return '一'
} else{
@@ -749,7 +753,10 @@ export default {
created() {
this.selectAdapayMember();
this.jsonHttp();
this.cityList = text.cityList
this.cityList = text.cityList;
this.provCode("6202");
this.areaCode("0062");
},
};
</script>