Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div id="baseInfo" class="list-block">
|
||||
<div id="baseInfo" class="list-block mb05">
|
||||
<base-info-component></base-info-component>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -15,10 +15,8 @@
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
|
||||
|
||||
<style>
|
||||
.list-block ul:before{height:0;}
|
||||
.priceRecovery + .list-block ul:after{height:0;}
|
||||
.theme {
|
||||
background-color: #F18D00;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -27,7 +25,7 @@
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
@@ -89,7 +87,7 @@
|
||||
<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block media-list">
|
||||
<div class="list-block media-list mb05">
|
||||
<ul>
|
||||
<li>
|
||||
<div class="item-content">
|
||||
|
||||
@@ -1267,7 +1267,23 @@ function onPlusReady(){
|
||||
$("#input_city").val("上海");
|
||||
$(".nowCity").text("上海");
|
||||
}
|
||||
getRequestId();
|
||||
}
|
||||
|
||||
// 生成请求ID,防止重复提交
|
||||
var requestId = "";
|
||||
function getRequestId() {
|
||||
axios.get("/rest/index/id")
|
||||
.then(function (response) {
|
||||
if(response.data.status){
|
||||
requestId = response.data.data;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
/* 弹出城市选择页面 */
|
||||
$(document).on("click",".open-about01", function () {
|
||||
$.popup(".popup-about01");
|
||||
@@ -1828,7 +1844,7 @@ function checkIsLogin(){
|
||||
function addEvaluation(){
|
||||
var data={};
|
||||
if(type==0){
|
||||
data={cityDisplay: $("#input_city").val(),
|
||||
data={id:requestId,cityDisplay: $("#input_city").val(),
|
||||
region:$("input[name=region]").val(),
|
||||
district:$("#input_address").val(),
|
||||
address:$("input[name=address]").val(),
|
||||
@@ -1844,7 +1860,7 @@ function addEvaluation(){
|
||||
lastRentDate:$("#input_time03").val(),
|
||||
houseStatus:0}
|
||||
}else{
|
||||
data={cityDisplay: $("#input_city").val(),
|
||||
data={id:requestId,cityDisplay: $("#input_city").val(),
|
||||
region:$("input[name=region]").val(),
|
||||
district:$("#input_address").val(),
|
||||
address:$("input[name=address]").val(),
|
||||
@@ -1863,7 +1879,9 @@ function addEvaluation(){
|
||||
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},function(){
|
||||
getRequestId();
|
||||
})
|
||||
}else{
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast(response.data.message);
|
||||
@@ -1874,6 +1892,7 @@ function addEvaluation(){
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/* 信息输入弹窗 */
|
||||
$(document).on('click','.open-modal', function () {
|
||||
$.modal({
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/city.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<h1 class="title">我的房产</h1>
|
||||
</header>
|
||||
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50">
|
||||
<div class="card cardPrice cardPrice01" id="houseInfo">
|
||||
<div class="card cardPrice cardPrice01" id="houseInfo" v-cloak>
|
||||
<div class="card-header">
|
||||
<span>房产总值</span>
|
||||
<a class="button theme" href="#" onclick="gotoAddHouse()">添加房产</a>
|
||||
|
||||
@@ -144,16 +144,17 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
|
||||
<script>
|
||||
/*var lat = 31.2221;
|
||||
var lng = 121.359204;
|
||||
var city = "上海";
|
||||
var address="广顺小区";
|
||||
var travelTime=20;
|
||||
var minAvgPrice=50000;
|
||||
var maxAvgPrice=80000;
|
||||
/*var lat = 39.946147;
|
||||
var lng = 116.107604;
|
||||
var city = "北京";
|
||||
var address="门头沟区";
|
||||
var travelTime=30;
|
||||
var minAvgPrice=54545;
|
||||
var maxAvgPrice=66666;
|
||||
var areaTag=3;
|
||||
var tag="近地铁_公交多_买菜做饭_商超便利_爱逛街_在外面吃_近医疗_近幼儿园_近小学_近中学";
|
||||
var orderBy=0;*/
|
||||
var orderBy=0;
|
||||
init();*/
|
||||
var lat;
|
||||
var lng;
|
||||
var city;
|
||||
@@ -503,7 +504,7 @@ function addItems(number, lastIndex) {
|
||||
}
|
||||
}
|
||||
html += '<li onclick="openDistWindow(\''+dataObj[i].city+'\',\''+dataObj[i].district+'\',\''+dataObj[i].name+'\')">'+
|
||||
'<a class=external item-content>'+
|
||||
'<a class="external item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-title-row"><div class="item-title">'+dataObj[i].name+'</div><div class="item-after"><em>¥'+dataObj[i].avgPrice+'元/㎡</em></div></div>'+
|
||||
'<div class="item-title-row"><div class="item-title"><i class="icon icon-address03"></i><small>'+dataObj[i].city+dataObj[i].district+dataObj[i].address+'</small></div>'+
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
|
||||
@@ -151,8 +151,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/library/RichMarker/1.2/src/RichMarker_min.js "></script>
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/RichMarker_min.js "></script>
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/city.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
@@ -104,7 +104,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
html,body{height:auto;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -120,18 +122,19 @@ function openView() {
|
||||
clicked(BASE_PATH + '/user/agreement',true)
|
||||
}
|
||||
|
||||
var originalHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
||||
window.onresize=function(){
|
||||
//软键盘弹起与隐藏 都会引起窗口的高度发生变化
|
||||
var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
||||
if(resizeHeight*1<originalHeight*1){ //resizeHeight<originalHeight证明窗口被挤压了
|
||||
if(window.viewsPage=="codeSms"){
|
||||
plus.webview.currentWebview().setStyle({
|
||||
height:originalHeight
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
/* 防止软键盘弹出所引起的定位问题 */
|
||||
var winHeight = $(window).height(); // 获取当前页面高度
|
||||
$(window).resize(function(){
|
||||
var thisHeight = $(this).height();
|
||||
if(winHeight - thisHeight > 50){
|
||||
//当软键盘弹出,在这里面操作
|
||||
$(".loginMode").hide();
|
||||
}else{
|
||||
//当软键盘收起,在此处操作
|
||||
$(".loginMode").show();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -162,17 +162,19 @@ new Vue({
|
||||
}
|
||||
});
|
||||
|
||||
var originalHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
||||
window.onresize=function(){
|
||||
//软键盘弹起与隐藏 都会引起窗口的高度发生变化
|
||||
var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
||||
if(resizeHeight*1<originalHeight*1){ //resizeHeight<originalHeight证明窗口被挤压了
|
||||
plus.webview.currentWebview().setStyle({
|
||||
height:originalHeight
|
||||
});
|
||||
/* 防止软键盘弹出所引起的定位问题 */
|
||||
var winHeight = $(window).height(); // 获取当前页面高度
|
||||
$(window).resize(function(){
|
||||
var thisHeight = $(this).height();
|
||||
if(winHeight - thisHeight > 50){
|
||||
//当软键盘弹出,在这里面操作
|
||||
$(".loginMode").hide();
|
||||
}else{
|
||||
//当软键盘收起,在此处操作
|
||||
$(".loginMode").show();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="buttons-tab fixed-tab theme" data-offset="44" id="tab">
|
||||
<div class="buttons-tab fixed-tab theme" data-offset="44" id="tab" v-cloak>
|
||||
<a href="#tabList1" class="tab-link button active">房产({{mh_num}})</a>
|
||||
<a href="#tabList2" class="tab-link button">关注({{mf_num}})</a>
|
||||
<a href="#tabList3" class="tab-link button">收藏({{mc_num}})</a>
|
||||
|
||||
Reference in New Issue
Block a user