|
|
|
@ -1,6 +1,7 @@ |
|
|
|
// subpages/house/pages/housePortrait/housePortrait.js
|
|
|
|
import api from "../../../../utils/api" |
|
|
|
import { getComplainList, getShengList, getPunchRecord, getShequList, getshijianList, getxuqiuList, getfuwuList, getMultiLogList } from "../../../../utils/businessRecords.js"; |
|
|
|
const app = getApp() |
|
|
|
Page({ |
|
|
|
|
|
|
|
/** |
|
|
|
@ -8,7 +9,7 @@ Page({ |
|
|
|
*/ |
|
|
|
data: { |
|
|
|
houseId: '', |
|
|
|
detail: {}, |
|
|
|
detail: null, |
|
|
|
logs: [], |
|
|
|
residIds: [], |
|
|
|
ywData: {}, |
|
|
|
@ -20,10 +21,13 @@ Page({ |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
onLoad(options) { |
|
|
|
this.setData({ |
|
|
|
houseId: options.resiId, |
|
|
|
}) |
|
|
|
this.getData() |
|
|
|
if( options.resiId){ |
|
|
|
this.setData({ |
|
|
|
houseId: options.resiId, |
|
|
|
agencyLevel: app.globalData.user.level |
|
|
|
}) |
|
|
|
this.getData() |
|
|
|
} |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
api.getClearHouseDeatilById(this.data.houseId).then((res) => { |
|
|
|
@ -47,8 +51,51 @@ Page({ |
|
|
|
this.setData({ |
|
|
|
detail: null, |
|
|
|
}); |
|
|
|
if(error.code != 0){ |
|
|
|
wx.showToast({ |
|
|
|
title: error.msg, |
|
|
|
icon:'none', |
|
|
|
duration:3000, |
|
|
|
success:function(){ |
|
|
|
setTimeout(()=>{ |
|
|
|
wx.navigateBack({ |
|
|
|
delta: 1 |
|
|
|
}) |
|
|
|
},3000) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
toEvent() { |
|
|
|
let obj = { |
|
|
|
resiId: this.data.detail.residentId, |
|
|
|
resiMobile: this.data.detail.ownerPhone, |
|
|
|
resiName: this.data.detail.ownerName |
|
|
|
} |
|
|
|
wx.setStorageSync('resiDetail', obj) |
|
|
|
wx.navigateTo({ |
|
|
|
url: '/subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck', |
|
|
|
}) |
|
|
|
}, |
|
|
|
handelTopunchCard(){ |
|
|
|
wx.navigateTo({ |
|
|
|
url: '/subpages/searchResult/pages/punchCard/punchCard?resiId=' + this.data.detail.residentId, |
|
|
|
}) |
|
|
|
}, |
|
|
|
toWebView() { |
|
|
|
if (app.globalData.questionnaireUrl) { |
|
|
|
wx.navigateTo({ |
|
|
|
url: '/pages/webView/webView?url=' + app.globalData.questionnaireUrl, |
|
|
|
}) |
|
|
|
} else { |
|
|
|
wx.showToast({ |
|
|
|
icon: "none", |
|
|
|
title: '未创建满意度调查问卷', |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
handelClickAddResi(){ |
|
|
|
wx.navigateTo({ |
|
|
|
url: `/subpages/addResi/pages/addResi/addResi?type=add&grid=${this.data.detail.gridId}&neighborHoodId=${this.data.detail.neighborHoodId}&buildingId=${this.data.detail.buildingId}&buildingUnitId=${this.data.detail.buildingUnitId}&doorId=${this.data.detail.id}`, |
|
|
|
@ -271,7 +318,6 @@ Page({ |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
ywVisible: true |
|
|
|
}) |
|
|
|
|