找回代码

This commit is contained in:
2018-04-28 18:49:01 +08:00
parent 9c7c9d8af4
commit f691435ef9
2 changed files with 47 additions and 96 deletions
+15 -10
View File
@@ -31,7 +31,7 @@
<div class="page-group">
<div class="page page-current">
<header class="bar bar-nav barBorder">
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
<span class="icon icon-left"></span>
</button>
<h1 class="title">我要置换</h1>
@@ -63,7 +63,7 @@
<div class="item-title-row">
<div class="item-title">置换房产</div>
<div class="item-after">
<input type="text" id="input_house01" class="textAlignRight" placeholder="+添加房产">
<input type="text" id="input_house01" class="textAlignRight" placeholder="+添加房产" onclick="openAddHouse()">
</div>
</div>
</div>
@@ -273,7 +273,7 @@
</li>
<li>
<a href="01_index02_loanEvaluation04_inputInfo.html" class="item-link item-content">
<a onclick="openAddHouse()" class="item-link item-content">
<div class="item-media"><img src="../../images/addHouse.png" style="width:1.8rem;"></div>
<div class="item-inner" style="margin-left:0.55rem;">
<div class="item-subtitle">
@@ -1255,7 +1255,7 @@ $.config = {router: false}
<script>
var dCity = "上海"
var hsId = "196310294262185984"
var hsId = ""
var baseInfo = new Vue({
el: '#step1',
data:{
@@ -1349,10 +1349,10 @@ var step2Vue = new Vue({
}
})
//document.addEventListener('plusready', onPlusReady, false);
//function onPlusReady() {
// var self = plus.webview.currentWebview();
// hsId = self.hsId
document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() {
var self = plus.webview.currentWebview();
hsId = self.hsId
if(hsId){
//如果是修改置换建议,则默认将值填入
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
@@ -1398,7 +1398,7 @@ var step2Vue = new Vue({
console.log(error);
});
}
//}
}
//填充房产价格信息
function addBaseHouseInfo(obj){
@@ -1761,7 +1761,7 @@ $("#getSuggest_btn").click(function(){
axios.post(BASE_PATH + "/rest/changeHouse/add", datas).then(function (response) {
var hsId = response.data.data;
if(hsId){
clicked('views/changeHouse/result.html',true,false,{},{hsId:hsId});
clicked('/views/changeHouse/result.html',true,false,{},{hsId:hsId});
}
$.hideIndicator();
@@ -1817,6 +1817,11 @@ $("#citySearchInp").bind('keyup', function() {
search();
});
function openAddHouse(){
alert("ssss")
clicked('/views/house/add.html',true,false,{},{});
}
</script>
</body>