地区选择错误修复

master
gongfuxiang 2024-05-21 16:41:25 +08:00
parent 71da82b81e
commit 9fa9b61c00
2 changed files with 11 additions and 2 deletions

View File

@ -90,7 +90,7 @@
weixin_privacy_setting_timer: null,
// 0, 1
get_user_location_status: 1,
get_user_location_status: 0,
get_user_location_timer: null,
// 使0, 1线->->线 https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wx50b5593e81dd937a

View File

@ -717,7 +717,16 @@
region_picker_show: false,
});
},
region_event(address1, address2, address3) {
region_event(address1, address2, address3) {
if((address1 || null) == null) {
address1 = {};
}
if((address2 || null) == null) {
address2 = {};
}
if((address3 || null) == null) {
address3 = {};
}
this.setData({
province_id: address1.id || null,
city_id: address2.id || null,