mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
update and not done for env
This commit is contained in:
parent
b278ccffdd
commit
e9d69ada1d
@ -4,8 +4,8 @@
|
||||
* add by wuxw 2019-12-28
|
||||
*/
|
||||
// 服务器域名
|
||||
const baseUrl = 'https://app.demo.winqi.cn/';
|
||||
//const baseUrl = '/';
|
||||
// const baseUrl = 'https://app.demo.winqi.cn/';
|
||||
const baseUrl = '/';
|
||||
const hcBaseUrl = 'https://hc.demo.winqi.cn'; // 登录接口
|
||||
|
||||
const loginUrl = baseUrl + 'app/loginProperty';
|
||||
@ -14,7 +14,7 @@ const GetNoticeListUrl = baseUrl + 'app/api.queryNotices'; //报修接口
|
||||
|
||||
const listMyEnteredCommunitys = baseUrl + 'app/community.listMyEnteredCommunitys'; //查看员工小区
|
||||
|
||||
const listOwnerRepairs = baseUrl + 'app/ownerRepair.listOwnerRepairs'; //家庭成员
|
||||
const listOwnerRepairs = baseUrl + 'app/ownerRepair.listOwnerRepairs'; //维修
|
||||
|
||||
const queryStaffInfos = baseUrl + 'app/query.staff.infos'; //查询员工信息
|
||||
|
||||
|
||||
@ -46,12 +46,12 @@
|
||||
_tabSelect: function(_state) {
|
||||
this.state = _state;
|
||||
if(_state == '10002'){
|
||||
this._loadOrder();
|
||||
this._loadHisModify();
|
||||
}else{
|
||||
this._loadMyOrders();
|
||||
this._loadMyModify();
|
||||
}
|
||||
},
|
||||
_loadMyOrders:function(){
|
||||
__loadMyModify:function(){
|
||||
let _that = this;
|
||||
let _userInfo = this.java110Context.getUserInfo();
|
||||
let storeId = _userInfo.storeId;
|
||||
@ -94,8 +94,68 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
_loadHisModify:function(){
|
||||
//
|
||||
let _that = this;
|
||||
let _userInfo = this.java110Context.getUserInfo();
|
||||
let storeId = _userInfo.storeId;
|
||||
let _objData = {
|
||||
page: 1,
|
||||
row: 15,
|
||||
// storeId: storeId,
|
||||
// userId: _userInfo.userId,
|
||||
// process:'AUDIT',
|
||||
communityId:_that.java110Context.getCurrentCommunity().communityId
|
||||
};
|
||||
|
||||
this.java110Context.request({
|
||||
url: _that.java110Constant.url.listOwnerRepairs,
|
||||
header: _that.java110Context.getHeaders(),
|
||||
method: "GET",
|
||||
data: _objData, //动态数据
|
||||
success: function(res) {
|
||||
console.log("请求返回信息:", res);
|
||||
if (res.statusCode != 200) {
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:res.data
|
||||
});
|
||||
return;
|
||||
}
|
||||
console.debug("res.data=",res.data);
|
||||
let _data = res.data;
|
||||
_data.complaints.forEach(function(item){
|
||||
let dateStr = item.createTime;
|
||||
let _startTime = dateStr.replace(/\-/g, "/")
|
||||
let _date=new Date(_startTime);
|
||||
item.createTime = (_date.getMonth()+1) +'-'+_date.getDate();
|
||||
});
|
||||
_that.orders = _data.complaints;
|
||||
},
|
||||
fail: function(e) {
|
||||
wx.showToast({
|
||||
title: "服务器异常了",
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
_toAuditComplaintOrder:function(_item){
|
||||
console.log('_item',_item);
|
||||
wx.setStorageSync("_auditComplaint_"+_item.complaintId, _item);
|
||||
uni.navigateTo({
|
||||
url:"/pages/auditComplaintOrder/auditComplaintOrder?complaintId="+_item.complaintId
|
||||
});
|
||||
},
|
||||
_toAuditComplaintHistoryOrder:function(_item){
|
||||
console.log('_item',_item);
|
||||
uni.setStorageSync("_complaintOrderDetail_"+_item.complaintId, _item);
|
||||
uni.navigateTo({
|
||||
url:"/pages/complaintOrderDetail/complaintOrderDetail?complaintId="+_item.complaintId
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user