aa
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="add add01 button theme" href="03_evaluation02_inputInfo.html">再估一套</a>
|
||||
<a class="add add01 button theme" onclick="openaddWindow()">再估一套</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -475,6 +475,10 @@ function showChat(categories, series) {
|
||||
}
|
||||
})
|
||||
}
|
||||
function openaddWindow(){
|
||||
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1248,8 +1248,8 @@ $.config = {router: false}
|
||||
<script>
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
var houseStatus; //= "186182250936643584";
|
||||
var type = 1;
|
||||
//扩展API加载完毕,现在可以正常调用扩展API
|
||||
var type = 1;
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
type = self.type; //type为1时是我的房产
|
||||
@@ -1258,7 +1258,6 @@ function onPlusReady(){
|
||||
}else{
|
||||
$("#liveStatusDiv").hide();
|
||||
}
|
||||
$("#liveStatusDiv").show();
|
||||
houseStatus = 0;
|
||||
var city_map = localStorage.getItem("init_city");
|
||||
if(city_map){
|
||||
@@ -1765,7 +1764,7 @@ $("#evaluation_btn").on("click", function () {
|
||||
}
|
||||
})
|
||||
.then(function (response) {
|
||||
if(response.data.data.success){
|
||||
if(response.data.data && response.data.data.success){
|
||||
var district = response.data.data
|
||||
$("#input_city").val(district.city)
|
||||
$("input[name='address']").val(district.address)
|
||||
@@ -1776,7 +1775,7 @@ $("#evaluation_btn").on("click", function () {
|
||||
}else{
|
||||
// $("#nextBtn").attr("disabled", false)
|
||||
console.log("error");
|
||||
$.toast(result.message)
|
||||
$.toast(response.data.message)
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
@@ -1830,20 +1829,13 @@ function addEvaluation(){
|
||||
houseStatus:1}
|
||||
}
|
||||
axios.get("/rest/index/checkEvalPrice", {
|
||||
params: {
|
||||
cityDisplay: $("#input_city").val(),
|
||||
region:$("input[name=region]").val(),
|
||||
district:$("#input_address").val(),
|
||||
address:$("input[name=address]").val(),
|
||||
estateType:$("#input_houseType").val(),
|
||||
loudongName:$("#input_building").val(),
|
||||
floorName:$("#input_floor").val(),
|
||||
area:$("#input_area").val()
|
||||
}
|
||||
params: data
|
||||
})
|
||||
.then(function (response) {
|
||||
if(response.data.data!=null && response.data.data.success){
|
||||
var id = response.data.data.id;
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id})
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
|
||||
@@ -266,9 +266,7 @@ $(document).ready(function () {
|
||||
});
|
||||
|
||||
function openaddWindow(){
|
||||
clicked('/views/house/add.html',true,false,{},{},function(){
|
||||
window.location.reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user