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