wangfukang 2 years ago
parent
commit
4231659559
  1. 4
      utils/global.js

4
utils/global.js

@ -79,8 +79,7 @@ export function getArea(str) {
} else if (_district != -1) { //有行政区
area.province = str.substring(0, _district + 3)
un_pro_str = str.substr(_district + 3);
} else if (_city != -1) { //有市
console.log("市",_city)
} else if (_city != -1) { //有市
area.province = str.substring(0, _city + 1)
let deviceType
uni.getSystemInfo({
@ -94,7 +93,6 @@ export function getArea(str) {
}else{
un_pro_str = str
}
console.log("市例",un_pro_str)
}

Loading…
Cancel
Save