mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化代码
This commit is contained in:
parent
b7d9125215
commit
f5a933336c
@ -37,8 +37,7 @@
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.get('chooseFloor',
|
||||
'list',
|
||||
vc.http.apiGet('/floor.queryFloors',
|
||||
param,
|
||||
function(json){
|
||||
var _floorInfo = JSON.parse(json);
|
||||
|
||||
@ -36,11 +36,10 @@
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.get('chooseUnit',
|
||||
'list',
|
||||
vc.http.apiGet('/unit.queryUnits',
|
||||
param,
|
||||
function(json){
|
||||
var _unitInfo = JSON.parse(json);
|
||||
let _unitInfo = JSON.parse(json);
|
||||
vc.component.chooseUnitInfo.units = _unitInfo;
|
||||
},function(){
|
||||
console.log('请求失败处理');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user