Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
@@ -135,6 +135,13 @@
|
||||
<a href="#tabCity2" class="tab-link button">按城市等级</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-block content-block01 content dn" style="top:66px;z-index:100;" id="selectContainer">
|
||||
<div class="container" style="top:0;">
|
||||
<div class="city" style="width:100%;">
|
||||
<div class="city-list"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="tabCity1" class="tab active">
|
||||
<div class="content-block content-block01 content">
|
||||
@@ -1057,6 +1064,44 @@ $(".checkbox").on("click", function () {
|
||||
$(this).find("i").addClass("current");
|
||||
});
|
||||
|
||||
function req(city){
|
||||
//city=city.replace("<i></i>","")
|
||||
$("#input_city").val(city);
|
||||
//potenialIndex(city);
|
||||
}
|
||||
//城市选择
|
||||
//$("#cityCopy").html($('.tabs').html())
|
||||
var getAllCitys = function() {
|
||||
var list = new Array();
|
||||
$("#tabCity1 #cityContainer .city p").each(function(i, o) {
|
||||
list.push($(o).text());
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
var search = function(){
|
||||
var city = $("#citySearchInp").val();
|
||||
$("#selectContainer .city-list").empty();
|
||||
$("#selectContainer").show();
|
||||
var cityList = getAllCitys();
|
||||
for(var i=0;i<cityList.length;i++) {
|
||||
if(cityList[i].indexOf(city) != -1){
|
||||
$("#selectContainer .city-list").append("<p class='close-popup' onclick=\"req('"+cityList[i]+"')\">"+cityList[i]+"</p>");
|
||||
}
|
||||
}
|
||||
if(city == ""){
|
||||
$("#selectContainer").hide();
|
||||
}
|
||||
}
|
||||
|
||||
$("#citySearchInp").bind('input propertychange keyup', function() {
|
||||
search();
|
||||
});
|
||||
|
||||
$("#citySearchInp").bind('keyup', function() {
|
||||
search();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -106,8 +106,12 @@ mui.init({
|
||||
function logout() {
|
||||
localStorage.removeItem("user_token");
|
||||
localStorage.removeItem("user_token_add_time");
|
||||
back();
|
||||
//退出登录之前loading下个人中心
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
timer.start();
|
||||
}
|
||||
|
||||
function download(imgUrl) {
|
||||
var suffix = '/qun.png';
|
||||
var downLoader = plus.downloader.createDownload(imgUrl, {
|
||||
@@ -138,6 +142,26 @@ mui.plusReady(function() {
|
||||
});
|
||||
});
|
||||
|
||||
//退出登录等待两秒
|
||||
timer = {
|
||||
countdown:2,
|
||||
start:function(){
|
||||
countdown = 2
|
||||
timer.down()
|
||||
},
|
||||
down:function(){
|
||||
countdown --
|
||||
if(countdown <= 0){
|
||||
back();
|
||||
return;
|
||||
}else{
|
||||
setTimeout(timer.down, 1000)
|
||||
}
|
||||
},
|
||||
cancel:function(){
|
||||
countdown = 0
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -50,7 +50,7 @@
|
||||
<img src="../../images/headPortrait.png">
|
||||
<p><a class="button theme" href="#" onclick="gotoLogin()" >立即登录</a></p>
|
||||
</div>
|
||||
<div class="topic">
|
||||
<div class="topic" style="display: none;">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
@@ -76,7 +76,7 @@
|
||||
<a href="#" class="tab-link button active">房产(0)</a>
|
||||
<a href="#" class="tab-link button">关注(0)</a>
|
||||
<a href="#" class="tab-link button">收藏(0)</a>
|
||||
<a href="#" class="tab-link button">消息(0)</a>
|
||||
<a href="#" class="tab-link button" style="display: none;">消息(0)</a>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="" class="tab active">
|
||||
@@ -120,7 +120,7 @@
|
||||
<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
|
||||
<p id="user_mobile"><br><span class="tag"><!--<small>土豪</small>--></span></p>
|
||||
</div>
|
||||
<div class="topic">
|
||||
<div class="topic" style="display: none;">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
@@ -146,7 +146,7 @@
|
||||
<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>
|
||||
<a href="#tabList4" class="tab-link button">消息(2)</a>
|
||||
<a href="#tabList4" class="tab-link button" style="display: none;">消息(2)</a>
|
||||
</div>
|
||||
<div class="contentBox">
|
||||
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="100">
|
||||
@@ -186,7 +186,7 @@
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabList4" class="tab">
|
||||
<div id="tabList4" class="tab" style="display: none;">
|
||||
<div class="list-block media-list">
|
||||
<ul class="list-container">
|
||||
<li>
|
||||
@@ -411,10 +411,9 @@ function selectUserInfo(){
|
||||
}
|
||||
|
||||
function openSettingPage() {
|
||||
clicked('../setting/setting.html',true,false,{},{},function(){
|
||||
checkIsLogin();
|
||||
})
|
||||
clicked('../setting/setting.html',true,false,{},{},function(){})
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
checkIsLogin();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user