mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunityWeb
This commit is contained in:
commit
1743009972
8
app.js
8
app.js
@ -32,16 +32,16 @@ let opts = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
app.use('/callComponent', proxy('http://192.168.100.108:8008', opts));
|
// app.use('/callComponent', proxy('http://192.168.100.108:8008', opts));
|
||||||
app.use('/app', proxy('http://192.168.100.108:8008', opts));
|
// app.use('/app', proxy('http://192.168.100.108:8008', opts));
|
||||||
app.use('/ws', createProxyMiddleware({
|
app.use('/ws', createProxyMiddleware({
|
||||||
target: 'http://192.168.100.108:8008',
|
target: 'http://192.168.100.108:8008',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
ws: true
|
ws: true
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// app.use('/callComponent', proxy('http://127.0.0.1:8008', opts));
|
app.use('/callComponent', proxy('http://127.0.0.1:8008', opts));
|
||||||
// app.use('/app', proxy('http://127.0.0.1:8008', opts));
|
app.use('/app', proxy('http://127.0.0.1:8008', opts));
|
||||||
// app.use('/ws',proxy('http://127.0.0.1:8008',opts));
|
// app.use('/ws',proxy('http://127.0.0.1:8008',opts));
|
||||||
// app.use('/callComponent',proxy('http://192.168.1.106:8012',opts));
|
// app.use('/callComponent',proxy('http://192.168.1.106:8012',opts));
|
||||||
// app.use('/app',proxy('http://192.168.1.106:8012',opts));
|
// app.use('/app',proxy('http://192.168.1.106:8012',opts));
|
||||||
|
|||||||
@ -117,7 +117,7 @@
|
|||||||
vc.toast(vc.validate.errInfo);
|
vc.toast(vc.validate.errInfo);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vc.http.post('editCommunity', 'update', JSON.stringify(vc.component.editCommunityAreaInfo), {
|
vc.http.apiPost('/community.updateCommunity', JSON.stringify(vc.component.editCommunityAreaInfo), {
|
||||||
emulateJSON: true
|
emulateJSON: true
|
||||||
},
|
},
|
||||||
function (json, res) {
|
function (json, res) {
|
||||||
|
|||||||
@ -37,8 +37,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.get('chooseFloor',
|
vc.http.apiGet('/floor.queryFloors',
|
||||||
'list',
|
|
||||||
param,
|
param,
|
||||||
function(json){
|
function(json){
|
||||||
var _floorInfo = JSON.parse(json);
|
var _floorInfo = JSON.parse(json);
|
||||||
|
|||||||
@ -36,11 +36,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.get('chooseUnit',
|
vc.http.apiGet('/unit.queryUnits',
|
||||||
'list',
|
|
||||||
param,
|
param,
|
||||||
function(json){
|
function(json){
|
||||||
var _unitInfo = JSON.parse(json);
|
let _unitInfo = JSON.parse(json);
|
||||||
vc.component.chooseUnitInfo.units = _unitInfo;
|
vc.component.chooseUnitInfo.units = _unitInfo;
|
||||||
},function(){
|
},function(){
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user