YOUFANG
This commit is contained in:
@@ -142,119 +142,127 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||||
<script>
|
<script>
|
||||||
var houseStatus = ""
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
var hid = '104631167348637696';
|
function onPlusReady(){
|
||||||
var house_info = new Vue({
|
var self = plus.webview.currentWebview();
|
||||||
el:'#house_info',
|
var hid = self.hid;
|
||||||
data:{
|
init();
|
||||||
name:"",
|
var houseStatus = ""
|
||||||
city_region:"",
|
// hid = '104631167348637696';
|
||||||
house_type:""
|
var house_info = new Vue({
|
||||||
}
|
el:'#house_info',
|
||||||
})
|
data:{
|
||||||
var house_price = new Vue({
|
name:"",
|
||||||
el:"#house_price",
|
city_region:"",
|
||||||
data:{
|
house_type:""
|
||||||
total_price:"",
|
}
|
||||||
avg_price:"",
|
})
|
||||||
percentage_30:"",
|
var house_price = new Vue({
|
||||||
arrow:"",
|
el:"#house_price",
|
||||||
city:"",
|
data:{
|
||||||
compare_word:"",
|
total_price:"",
|
||||||
compare_money:"",
|
avg_price:"",
|
||||||
words:""
|
percentage_30:"",
|
||||||
}
|
arrow:"",
|
||||||
})
|
city:"",
|
||||||
// var evaluate_msg = new Vue({
|
compare_word:"",
|
||||||
// el:"#evaluate_msg",
|
compare_money:"",
|
||||||
// data:{
|
words:""
|
||||||
// evaluate_percent:"",
|
}
|
||||||
// evaluate_words:"",
|
})
|
||||||
// arrow:"",
|
// var evaluate_msg = new Vue({
|
||||||
// msg:""
|
// el:"#evaluate_msg",
|
||||||
// }
|
// data:{
|
||||||
// })
|
// evaluate_percent:"",
|
||||||
|
// evaluate_words:"",
|
||||||
|
// arrow:"",
|
||||||
var price_feedback = new Vue({
|
// msg:""
|
||||||
el:"#price_feedback",
|
// }
|
||||||
data:{
|
// })
|
||||||
|
|
||||||
},
|
|
||||||
methods:{
|
var price_feedback = new Vue({
|
||||||
feedback:function(i,event){
|
el:"#price_feedback",
|
||||||
if($(event.target).hasClass("theme")){
|
data:{
|
||||||
return;
|
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
feedback:function(i,event){
|
||||||
|
if($(event.target).hasClass("theme")){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//return;
|
||||||
|
axios.post("/rest/evaluate/feedBack",{
|
||||||
|
hid:hid,
|
||||||
|
reason:i
|
||||||
|
}).then(function(response){
|
||||||
|
|
||||||
|
}).catch(function(error){console.log(error)})
|
||||||
}
|
}
|
||||||
//return;
|
|
||||||
axios.post("/rest/evaluate/feedBack",{
|
|
||||||
hid:hid,
|
|
||||||
reason:i
|
|
||||||
}).then(function(response){
|
|
||||||
|
|
||||||
}).catch(function(error){console.log(error)})
|
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
|
axios.get("/rest/evaluate/queryHouseInfo",{
|
||||||
|
params:{id : hid}
|
||||||
|
}).then(function(response){
|
||||||
|
if(response.data.status){
|
||||||
|
h = response.data.data
|
||||||
|
house_info.name = h.name
|
||||||
|
house_info.city_region = h.city+"-"+h.region
|
||||||
|
house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"m ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
|
||||||
|
house_price.total_price = h.totalPrice==0?"暂无":(h.totalPrice/10000).toFixed(0)
|
||||||
|
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice
|
||||||
|
house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
|
||||||
|
if(h.oneMonthUpDownRange<0){
|
||||||
|
house_price.arrow="icon icon-arrow-green"
|
||||||
|
house_price.percentage_30=-h.oneMonthUpDownRange
|
||||||
|
}else if(h.oneMonthUpDownRange>0){
|
||||||
|
house_price.arrow="icon icon-arrow-red"
|
||||||
|
house_price.percentage_30=h.oneMonthUpDownRange
|
||||||
|
}else{
|
||||||
|
house_price.percentage_30="暂无"
|
||||||
|
}
|
||||||
|
house_price.city=h.city
|
||||||
|
if(h.compareMoney<0){
|
||||||
|
house_price.compare_word="低"
|
||||||
|
house_price.words="元"
|
||||||
|
house_price.compare_money=-h.compareMoney
|
||||||
|
}else if(h.compareMoney>0){
|
||||||
|
house_price.compare_word="高"
|
||||||
|
house_price.words="元"
|
||||||
|
house_price.compare_money=h.compareMoney
|
||||||
|
}else{
|
||||||
|
house_price.compare_money="相等"
|
||||||
|
}
|
||||||
|
// if(h.evaluatePercent<0){
|
||||||
|
// evaluate_msg.evaluate_words="下跌概率"
|
||||||
|
// evaluate_msg.arrow="icon icon-arrow-green"
|
||||||
|
// evaluate_msg.evaluate_percent=-h.evaluatePercent
|
||||||
|
// }else if(h.evaluatePercent>0){
|
||||||
|
// evaluate_msg.evaluate_words="上涨概率"
|
||||||
|
// evaluate_msg.arrow="icon icon-arrow-red"
|
||||||
|
// evaluate_msg.evaluate_percent=h.evaluatePercent
|
||||||
|
// }else{
|
||||||
|
// evaluate_msg.evaluate_words="暂无"
|
||||||
|
// }
|
||||||
|
// evaluate_msg.msg=h.evaluateMsg
|
||||||
|
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
||||||
|
loadingChart(h.city,h.region,h.name,2)
|
||||||
|
//按照时间范围加载数据
|
||||||
|
$(".avgPriceTrend a").click(function(){
|
||||||
|
var type = $(this).attr("data-id");
|
||||||
|
$(".avgPriceTrend a").removeClass("active")
|
||||||
|
$(this).addClass('active');
|
||||||
|
loadingChart(h.city,h.region,h.name,type);
|
||||||
|
});
|
||||||
|
houseStatus = h.houseStatus;
|
||||||
|
}
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
axios.get("/rest/evaluate/queryHouseInfo",{
|
|
||||||
params:{id : hid}
|
|
||||||
}).then(function(response){
|
|
||||||
if(response.data.status){
|
|
||||||
h = response.data.data
|
|
||||||
house_info.name = h.name
|
|
||||||
house_info.city_region = h.city+"-"+h.region
|
|
||||||
house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"m ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
|
|
||||||
house_price.total_price = h.totalPrice==0?"暂无":(h.totalPrice/10000).toFixed(0)
|
|
||||||
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice
|
|
||||||
house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
|
|
||||||
if(h.oneMonthUpDownRange<0){
|
|
||||||
house_price.arrow="icon icon-arrow-green"
|
|
||||||
house_price.percentage_30=-h.oneMonthUpDownRange
|
|
||||||
}else if(h.oneMonthUpDownRange>0){
|
|
||||||
house_price.arrow="icon icon-arrow-red"
|
|
||||||
house_price.percentage_30=h.oneMonthUpDownRange
|
|
||||||
}else{
|
|
||||||
house_price.percentage_30="暂无"
|
|
||||||
}
|
|
||||||
house_price.city=h.city
|
|
||||||
if(h.compareMoney<0){
|
|
||||||
house_price.compare_word="低"
|
|
||||||
house_price.words="元"
|
|
||||||
house_price.compare_money=-h.compareMoney
|
|
||||||
}else if(h.compareMoney>0){
|
|
||||||
house_price.compare_word="高"
|
|
||||||
house_price.words="元"
|
|
||||||
house_price.compare_money=h.compareMoney
|
|
||||||
}else{
|
|
||||||
house_price.compare_money="相等"
|
|
||||||
}
|
|
||||||
// if(h.evaluatePercent<0){
|
|
||||||
// evaluate_msg.evaluate_words="下跌概率"
|
|
||||||
// evaluate_msg.arrow="icon icon-arrow-green"
|
|
||||||
// evaluate_msg.evaluate_percent=-h.evaluatePercent
|
|
||||||
// }else if(h.evaluatePercent>0){
|
|
||||||
// evaluate_msg.evaluate_words="上涨概率"
|
|
||||||
// evaluate_msg.arrow="icon icon-arrow-red"
|
|
||||||
// evaluate_msg.evaluate_percent=h.evaluatePercent
|
|
||||||
// }else{
|
|
||||||
// evaluate_msg.evaluate_words="暂无"
|
|
||||||
// }
|
|
||||||
// evaluate_msg.msg=h.evaluateMsg
|
|
||||||
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
|
||||||
loadingChart(h.city,h.region,h.name,2)
|
|
||||||
//按照时间范围加载数据
|
|
||||||
$(".avgPriceTrend a").click(function(){
|
|
||||||
var type = $(this).attr("data-id");
|
|
||||||
$(".avgPriceTrend a").removeClass("active")
|
|
||||||
$(this).addClass('active');
|
|
||||||
loadingChart(h.city,h.region,h.name,type);
|
|
||||||
});
|
|
||||||
houseStatus = h.houseStatus;
|
|
||||||
}
|
|
||||||
}).catch(function(error){
|
|
||||||
console.log(error)
|
|
||||||
})
|
|
||||||
|
|
||||||
//添加管理AJAX请求
|
//添加管理AJAX请求
|
||||||
function addManagement(id, houseStatus, liveStatus){
|
function addManagement(id, houseStatus, liveStatus){
|
||||||
|
|||||||
Reference in New Issue
Block a user