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