This commit is contained in:
2018-05-07 12:33:23 +08:00
parent baf45f310f
commit e77d1d606b
6 changed files with 41 additions and 16 deletions
+29 -4
View File
@@ -1353,10 +1353,21 @@ document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() {
var self = plus.webview.currentWebview();
hsId = self.hsId
// alert("index:"+hsId);
houseId = self.houseId
if(hsId){
//如果是修改置换建议,则默认将值填入
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
updateChangeSubtation(hsId);
}
if(houseId){
//小区报告页带入
fillHouseInfo(houseId);
}
}
//修改置换建议填充默认值
function updateChangeSubtation(hsId){
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
params:{
hsId:hsId
}
@@ -1398,7 +1409,22 @@ function onPlusReady() {
}).catch(function (error) {
console.log(error);
});
}
}
function fillHouseInfo(houseId){
axios.get(BASE_PATH + "/rest/index/loadHouse",{
params:{
houseId:houseId
}
}).then(function (response) {
var data = response.data.data;
if(data){
addBaseHouseInfo(data);
baseInfo.houseId = hs.houseId
}
}).catch(function (error) {
console.log(error);
});
}
//填充房产价格信息
@@ -1819,7 +1845,6 @@ $("#citySearchInp").bind('keyup', function() {
});
function openAddHouse(){
alert("ssss")
clicked('/views/house/add.html',true,false,{},{});
}
+1 -2
View File
@@ -399,8 +399,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() {
});
function updateChangeHouse(){
alert(hsId);
clicked('views/changeHouse/index.html',true,false,{},{hsId:hsId});
clicked('/views/changeHouse/index.html',true,false,{},{hsId:hsId});
}
</script>