Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
@@ -142,10 +142,10 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
// document.addEventListener('plusready', onPlusReady, false);
|
||||
// function onPlusReady(){
|
||||
// var self = plus.webview.currentWebview();
|
||||
// var hid = self.hid;
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
var hid = self.hid;
|
||||
var houseStatus = ""
|
||||
hid = '104631167348637696';
|
||||
var house_info = new Vue({
|
||||
@@ -183,14 +183,13 @@ $.config = {router: false}
|
||||
var price_feedback = new Vue({
|
||||
el:"#price_feedback",
|
||||
data:{
|
||||
isShow:"none"
|
||||
isShow:"display"
|
||||
},
|
||||
methods:{
|
||||
feedback:function(i,event){
|
||||
if($(event.target).hasClass("theme")){
|
||||
return;
|
||||
}
|
||||
//return;
|
||||
axios.post("/rest/evaluate/feedBack",{
|
||||
hid:hid,
|
||||
reason:i
|
||||
@@ -199,11 +198,19 @@ $.config = {router: false}
|
||||
$("#price_feedback").hide();
|
||||
}).catch(function(error){console.log(error)})
|
||||
},
|
||||
feedbackable:function(){
|
||||
|
||||
isFeedback:function(){
|
||||
axios.get("/rest/evaluate/isFeedBack",{params:{
|
||||
id:hid
|
||||
}}).then(function(response){
|
||||
if(response.data.status){
|
||||
if(1==response.data.data){
|
||||
price_feedback.isShow="none"
|
||||
}
|
||||
}
|
||||
}).catch(function(error){console.log(error)})
|
||||
}
|
||||
},mounted(){
|
||||
|
||||
},mounted:function(){
|
||||
this.isFeedback();
|
||||
}
|
||||
})
|
||||
|
||||
@@ -266,7 +273,7 @@ $.config = {router: false}
|
||||
console.log(error)
|
||||
})
|
||||
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
//添加管理AJAX请求
|
||||
@@ -281,6 +288,9 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
window.location.reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseList.html').reload();
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
@@ -306,6 +316,7 @@ $(".content-block .button").on("click", function () {
|
||||
|
||||
/* 房产用途 */
|
||||
$(document).on('click','.open-vertical-modal', function () {
|
||||
var houseStatus = 0;
|
||||
$.modal({
|
||||
title: '房产用途',
|
||||
verticalButtons: true,
|
||||
|
||||
@@ -498,7 +498,6 @@ $.config = {router: false}
|
||||
coordsType:'bd09ll'
|
||||
}
|
||||
);
|
||||
alert(city)
|
||||
var myFocus = new Vue({
|
||||
el:"#myFocus"
|
||||
})
|
||||
@@ -613,7 +612,6 @@ $.config = {router: false}
|
||||
}
|
||||
})
|
||||
.then(function (response) {
|
||||
console.log(response.data.data)
|
||||
//0:涨幅排行 1:潜力排行 2:均价排行
|
||||
new Vue({
|
||||
el: '#countryRank',
|
||||
|
||||
@@ -104,16 +104,6 @@ $.config = {router: false}
|
||||
//调用mui.init方法
|
||||
$.init()
|
||||
|
||||
//判断是否登录
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
$('#dataList').hide();
|
||||
$('#noData').show();
|
||||
}else{
|
||||
selectEvaluateList();
|
||||
}
|
||||
}
|
||||
|
||||
/* 房产用途 */
|
||||
$(document).on('click','.open-vertical-modal', function () {
|
||||
//获取对应<li>栏目存储的houseinfo id
|
||||
@@ -167,7 +157,6 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
//查询房产评估列表AJAX请求
|
||||
function selectEvaluateList(){
|
||||
//先清空列表
|
||||
@@ -178,18 +167,17 @@ function selectEvaluateList(){
|
||||
params: {}
|
||||
}).then(function (response) {
|
||||
var resultsMap = response.data.data;
|
||||
var results = resultsMap.houseInfoList;
|
||||
if(resultsMap.houseInfoList.length==0){
|
||||
if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){
|
||||
$('#dataList').hide();
|
||||
$('#noData').show();
|
||||
}else{
|
||||
$('#dataList').show();
|
||||
$('#noData').hide();
|
||||
var results = resultsMap.houseInfoList;
|
||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
||||
//构造数据列表
|
||||
htmlContent = constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent);
|
||||
|
||||
//动态追加内容
|
||||
$('.list-block ul').html(htmlContent);
|
||||
//添加loading等待效果
|
||||
@@ -260,16 +248,20 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
||||
return htmlContent;
|
||||
}
|
||||
|
||||
//界面加载
|
||||
$(document).ready(function () {
|
||||
checkIsLogin();
|
||||
});
|
||||
|
||||
function openaddWindow(){
|
||||
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||
})
|
||||
}
|
||||
|
||||
//判断是否登录
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
$('#dataList').hide();
|
||||
$('#noData').show();
|
||||
}else{
|
||||
selectEvaluateList();
|
||||
}
|
||||
}
|
||||
checkIsLogin()
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user