Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
@@ -777,6 +777,15 @@ input::-webkit-input-placeholder{
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-home03{background:url(../images/icon-home03.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-home04{background:url(../images/icon-home04.png) no-repeat center center;background-size:100%;}
|
||||
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-personal01{background:url(../images/icon-personal01.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-personal02{background:url(../images/icon-personal02.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-personal03{background:url(../images/icon-personal03.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-personal04{background:url(../images/icon-personal04.png) no-repeat center center;background-size:100%;}
|
||||
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-evaluation01{background:url(../images/icon-evaluation01.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-evaluation02{background:url(../images/icon-evaluation02.png) no-repeat center center;background-size:100%;}
|
||||
.topic .topicContent .topicContent_center.home div .icon.icon-evaluation03{background:url(../images/icon-evaluation03.png) no-repeat center center;background-size:100%;}
|
||||
|
||||
.topic .topicContent .topicContent_center01 div{width:29.333333333333332%;background:#fbfbfb;border:solid 1px #eee;border-radius:0.2rem;padding:0.3rem 0;}
|
||||
.topic .topicContent .topicContent_center01 div:first-child{border-left:solid 1px #eee;}
|
||||
.topic .topicContent .topicContent_center01 div em{display:block;color:#EB5F34;font-size:0.75rem;}
|
||||
@@ -1003,7 +1012,7 @@ input::-webkit-input-placeholder{
|
||||
.icon-house01{width:50px;height:80px;background:url(../images/icon-house01.png) no-repeat center center;background-size:100%;position:absolute;left:58%;bottom:50%;z-index:10500;}
|
||||
|
||||
/* 我的 */
|
||||
.iconBox{width:100%;overflow:hidden;padding:0.5rem 0;}
|
||||
/*.iconBox{width:100%;overflow:hidden;padding:0.5rem 0;}
|
||||
.iconBox a{float:right;margin-right:0.75rem;}
|
||||
.icon-message{width:20px;height:20px;background:url(../images/icon-message.png) no-repeat center center;background-size:100%;position:relative;}
|
||||
.icon-message-new{width:7px;height:7px;background:url(../images/icon-message-new.png) no-repeat center center;background-size:100%;position:absolute;top:1px;right:-3px;}
|
||||
@@ -1019,7 +1028,25 @@ input::-webkit-input-placeholder{
|
||||
.topBg01 a{color:#fff;text-decoration:underline;}
|
||||
.topBg01 img{float:left;width:20%;margin-right:0.5rem;}
|
||||
.topBg01 p{float:left;margin:0;margin-top:0.2rem;}
|
||||
.topBg01 .icon-right{position:absolute;right:0.6rem;top:2.1rem;}
|
||||
.topBg01 .icon-right{position:absolute;right:0.6rem;top:2.1rem;}*/
|
||||
|
||||
/* 我的 */
|
||||
.icon-message{width:20px;height:20px;background:url(../images/icon-message.png) no-repeat center center;background-size:100%;position:relative;}
|
||||
.icon-message-new{width:7px;height:7px;background:url(../images/icon-message-new.png) no-repeat center center;background-size:100%;position:absolute;top:1px;right:-3px;}
|
||||
.icon-set{width:20px;height:20px;background:url(../images/icon-set.png) no-repeat center center;background-size:100%;}
|
||||
.icon-message01{width:24px;height:24px;background:url(../images/icon-message01.png) no-repeat center center;background-size:85%;margin-top:-2.2rem;}
|
||||
.message01-new .icon-message01{width:24px;height:16px;background:url(../images/icon-message01-new.png) no-repeat center center;background-size:100%;margin-top:-2.5rem;}
|
||||
.list-block .message01 .item-title{white-space:normal;text-overflow:-o-ellipsis-lastline;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#666;}
|
||||
.list-block .message01-new .item-title{color:#333;font-weight:bold;}
|
||||
.list-block .message01 .item-subtitle{margin-top:0.5rem;}
|
||||
.contentText{background:#fff;}
|
||||
|
||||
.topBg01{width:100%;background:url(../images/topBg.png) no-repeat center top;background-size:100%;border-bottom:solid 1px #e7e7e7;padding:1.2rem 0.75rem;padding-bottom:0;color:#fff;overflow:hidden;position:relative;}
|
||||
.topBg01 img{width:3rem;height:3rem;margin:0 auto;margin-top:0.6rem;}
|
||||
.topBg01 p{font-size:0.7rem;color:#333;text-align:center;margin-top:0.6rem;}
|
||||
.topBg01 p .button{width:4rem;margin:0 auto;}
|
||||
|
||||
.tabs .noData img{width:30%;margin:0 auto;margin-top:3rem;}
|
||||
|
||||
/* 出错页面 */
|
||||
.contentError{padding-top:30%;background:none;}
|
||||
|
||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 569 B |
|
After Width: | Height: | Size: 579 B |
|
After Width: | Height: | Size: 575 B |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 7.1 KiB |
@@ -75,10 +75,18 @@ $("#login_btn").on("click", function () {
|
||||
var resData = response.data;
|
||||
if (resData.status) {
|
||||
// 用户登录成功的TOKEN
|
||||
var token = resData.data;
|
||||
localStorage.setItem("user_token", token);
|
||||
var data = resData.data;
|
||||
localStorage.setItem("user_token", data.token);
|
||||
$.toast(resData.message);
|
||||
back();
|
||||
if (data.firstLogin) {
|
||||
// 显示设置密码页面
|
||||
clicked('../user/updatePass.html',true,false,{},{},function(){
|
||||
back();
|
||||
})
|
||||
} else {
|
||||
back();
|
||||
}
|
||||
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
|
||||
@@ -48,74 +48,48 @@ function userinfo(a){
|
||||
var accessToken = a.authResult.access_token;
|
||||
var unionid = a.userInfo.unionid;
|
||||
var headImg = a.userInfo.headimgurl;
|
||||
wxLogin(openid,unionid,accessToken,nickname,headImg,"weixin")
|
||||
login(openid, unionid, accessToken, nickname, headImg, "weixin", "/rest/user/wxLogin")
|
||||
}else if(a.id=='qq'){
|
||||
var nickname=a.userInfo.nickname;
|
||||
var nickname= a.userInfo.nickname;
|
||||
var openid = a.authResult.openid;
|
||||
var accessToken = a.authResult.access_token;
|
||||
var headImg = a.userInfo.headimgurl;
|
||||
qqLogin(openid,accessToken,nickname,headImg,"qq")
|
||||
var unionid = "";
|
||||
login(openid, unionid, accessToken, nickname, headImg, "qq", "/rest/user/qqLogin")
|
||||
}else{
|
||||
//微博信息获取
|
||||
var nickname=a.userInfo.name||a.userInfo.screen_name;
|
||||
var openid = a.authResult.openid;
|
||||
var nickname = a.userInfo.name||a.userInfo.screen_name;
|
||||
var openid = a.authResult.uid;
|
||||
var accessToken = a.authResult.access_token;
|
||||
var headImg = a.userInfo.profile_image_url;
|
||||
var uid = a.authResult.uid
|
||||
weiboLogin(openid,accessToken,nickname,headImg,"sinaweibo")
|
||||
var headImg = a.userInfo.headimgurl;
|
||||
var uid = a.authResult.uid;
|
||||
var unionid = "";
|
||||
login(openid, unionid, accessToken, nickname, headImg, "sinaweibo", "/rest/user/sinaweiboLogin")
|
||||
}
|
||||
|
||||
},function(e){
|
||||
$.toast("获取微信用户信息失败:["+e.code+"]:"+e.message);
|
||||
$.toast("获取用户信息失败:["+e.code+"]:"+e.message);
|
||||
});
|
||||
}
|
||||
|
||||
function wxLogin(openid, unionid, accessToken, nickname, headImg,loginFrom) {
|
||||
axios.post("/rest/user/wxLogin", {loginFrom:loginFrom,openid:openid, unionid:unionid, accessToken: accessToken, nickname:nickname,headImg:headImg})
|
||||
function login(openid, unionid, accessToken, nickname, headImg, loginFrom, uri) {
|
||||
axios.post(uri, {loginFrom:loginFrom,openid:openid, unionid:unionid, accessToken: accessToken, nickname:nickname,headImg:headImg})
|
||||
.then(function (response) {
|
||||
$.hidePreloader();
|
||||
if(response.data.status){
|
||||
if("no"==response.data.message){
|
||||
var resData = response.data;
|
||||
if(resData.status){
|
||||
if(resData.data == ""){
|
||||
//跳转绑定手机号码页面
|
||||
console.log(response.data.message)
|
||||
clicked('../user/bindingMobile.html',true,false,{},{loginFrom:loginFrom,openid:openid, unionid:unionid, accessToken: accessToken, nickname:nickname,headImg:headImg},function(){
|
||||
back();
|
||||
})
|
||||
}else{
|
||||
|
||||
localStorage.setItem("user_token", resData.data);
|
||||
back();
|
||||
}
|
||||
}else{
|
||||
//登录失败
|
||||
$.toast(response.data.data)
|
||||
}
|
||||
})
|
||||
}
|
||||
function qqLogin(openid, accessToken, nickname, headImg,loginFrom) {
|
||||
axios.post("/rest/user/qqLogin", {loginFrom:loginFrom,openid:openid, accessToken: accessToken, nickname:nickname,headImg:headImg})
|
||||
.then(function (response) {
|
||||
$.hidePreloader();
|
||||
if(response.data.status){
|
||||
if("no"==response.data.message){
|
||||
//跳转绑定手机号码页面
|
||||
}else{
|
||||
|
||||
}
|
||||
}else{
|
||||
//登录失败
|
||||
$.toast(response.data.data)
|
||||
}
|
||||
})
|
||||
}
|
||||
function weiboLogin(openid, accessToken, nickname, headImg,loginFrom) {
|
||||
axios.post("/rest/user/sinaweiboLogin", {loginFrom:loginFrom,openid:openid, accessToken: accessToken, nickname:nickname,headImg:headImg})
|
||||
.then(function (response) {
|
||||
$.hidePreloader();
|
||||
if(response.data.status){
|
||||
if("no"==response.data.message){
|
||||
//跳转绑定手机号码页面
|
||||
}else{
|
||||
|
||||
}
|
||||
}else{
|
||||
//登录失败
|
||||
$.toast(response.data.data)
|
||||
$.toast(resData.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
var tab = new Vue({
|
||||
el:"#tab",
|
||||
data:{
|
||||
mf_num:"0"
|
||||
}
|
||||
})
|
||||
|
||||
$("#mf_ul").empty();
|
||||
$.init()
|
||||
//加载flag
|
||||
var mf_loading = false;
|
||||
//最多可加载的条目
|
||||
var mf_maxItems = 100;
|
||||
//上次加载的序号小区
|
||||
var mf_lastIndex = 0;
|
||||
//每次加载添加多少条目
|
||||
var mf_itemsPerLoad = 8;
|
||||
var mf_curpage = 1;
|
||||
var mf_totalCount = 0;
|
||||
function addEstate(number, lastIndex) {
|
||||
mf_curpage = mf_lastIndex/mf_itemsPerLoad + 1;
|
||||
axios.get("/myCollection/loadCollections",{params:{pageSize:mf_itemsPerLoad,page:mf_curpage}}).then(function(response){
|
||||
data = response.data;
|
||||
//data = eval( '(' + data + ')' );
|
||||
if(data['results']==null || data['results'].length==0) {
|
||||
$('#loadTip1').remove();
|
||||
$('.infinite-scroll-bottom #tab1').html("<div class='noData'><img src='../images/noData.png'><p>您还没有关注小区</p></div>");
|
||||
return;
|
||||
}
|
||||
mf_totalCount = data.totalCount;
|
||||
tab.mf_num = mf_totalCount;
|
||||
// 生成新条目的HTML
|
||||
var html = '';
|
||||
$.each(data['results'], function(i){
|
||||
var tag = this.tag;
|
||||
var tagStr = "";
|
||||
if(tag){
|
||||
var tags = tag.split("_")
|
||||
for(var j=0;j<tags.length;j++){
|
||||
if(j<3){
|
||||
var tag = tags[j];
|
||||
tagStr = tagStr + '<small>'+tag+'</small>';
|
||||
}
|
||||
}
|
||||
}
|
||||
var starStr = ''
|
||||
var index = this.index;
|
||||
if(index==0){
|
||||
var starStr = '暂无'
|
||||
}else{
|
||||
var totalHalfStar = Math.round(Math.round(index/5)/2) //总半星
|
||||
var starNum = Math.floor(totalHalfStar/2)
|
||||
var halfStarNum = totalHalfStar%2
|
||||
var noneStarNum = 5-starNum-halfStarNum
|
||||
for(i=0;i<starNum;i++){
|
||||
starStr+='<i class="icon icon-star01"></i>'
|
||||
}
|
||||
for(i=0;i<halfStarNum;i++){
|
||||
starStr+='<i class="icon icon-star02"></i>'
|
||||
}
|
||||
for(i=0;i<noneStarNum;i++){
|
||||
starStr+='<i class="icon icon-star"></i>'
|
||||
}
|
||||
}
|
||||
|
||||
html+= '<li>'+
|
||||
'<a onclick="clicked(\'${basePath}/district/details?city='+this.city+'®ion='+this.region+'&name='+this.name+'\',true)" class="item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-title-row">'+
|
||||
'<div class="item-title">'+this.name+'</div>'+
|
||||
'<div class="item-after">¥'+(this.avgPrice?this.avgPrice+ '元/㎡':'暂无')+'</div>'+
|
||||
'</div>'+
|
||||
'<div class="item-title-row">'+
|
||||
'<div class="item-title"><i class="icon icon-address03"></i><small>'+(this.address?(this.city+this.region+this.address):'')+'</small></div>'+
|
||||
'<div class="item-after"><span>'+(this.distance?"距您"+this.distance+"m":"暂无")+'</span></div>'+
|
||||
'</div>'+
|
||||
'<div class="item-subtitle">'+
|
||||
'<div>潜力指数: <span class="star">'+starStr+'</span></div>'+
|
||||
'<div>近30天涨跌幅: <em class="down">'+(this.oneMonthUpDownRange?(this.oneMonthUpDownRange>0?(this.oneMonthUpDownRange+'%<i class="icon icon-arrow-red"></i>'):(this.oneMonthUpDownRange<0?(-this.oneMonthUpDownRange+'%<i class="icon icon-arrow-green"></i>'):this.oneMonthUpDownRange+"%")):"暂无")+'</em></div>'+
|
||||
'</div>'+
|
||||
'<div class="item-subtitle"><span class="tag">'+tagStr+'</span></div>'+
|
||||
'</div>'+
|
||||
'</a>'+
|
||||
'</li>';
|
||||
});
|
||||
// 添加新条目
|
||||
$('#mf_ul').append(html);
|
||||
if(mf_totalCount<=mf_itemsPerLoad){
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
// $.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').remove();
|
||||
}
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
console.log(1)
|
||||
}
|
||||
|
||||
//预先加载8条
|
||||
addEstate(mf_itemsPerLoad, 0);
|
||||
|
||||
|
||||
|
||||
//注册'infinite'事件处理函数
|
||||
$(document).on('infinite', '.infinite-scroll',function() {
|
||||
console.log(1)
|
||||
if($("#tabList2").hasClass("active"))
|
||||
{
|
||||
// 如果正在加载,则退出
|
||||
if (mf_loading) return;
|
||||
// 设置flag
|
||||
mf_loading = true;
|
||||
// 模拟1s的加载过程
|
||||
setTimeout(function() {
|
||||
// 重置加载flag
|
||||
mf_loading = false;
|
||||
// 更新最后加载的序号
|
||||
mf_lastIndex = $('#mf_ul').find('li').length;
|
||||
if (mf_lastIndex >= mf_totalCount) {
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
// $.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').remove();
|
||||
return;
|
||||
}
|
||||
// 添加新条目
|
||||
addEstate(mf_itemsPerLoad, $('#mf_ul').find('li').length);
|
||||
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||
// $.refreshScroller();
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@@ -18,12 +18,18 @@
|
||||
<span class="mui-icon iconfont icon-tab01"></span>
|
||||
<span class="mui-tab-label">首页</span>
|
||||
</a>
|
||||
|
||||
<a class="mui-tab-item" id="quotations">
|
||||
<span class="mui-icon iconfont icon-tab02"></span>
|
||||
<span class="mui-tab-label">行情</span>
|
||||
</a>
|
||||
|
||||
<a class="mui-tab-item" id="selfInfo">
|
||||
<a class="mui-tab-item" id="evaluation" href="views/evaluate/evaluateList.html">
|
||||
<span class="mui-icon iconfont icon-tab03"></span>
|
||||
<span class="mui-tab-label">评估</span>
|
||||
</a>
|
||||
|
||||
<a class="mui-tab-item" id="selfInfo" href="views/user/userInfo.html">
|
||||
<span class="mui-icon iconfont icon-tab04"></span>
|
||||
<span class="mui-tab-label">我的</span>
|
||||
</a>
|
||||
@@ -34,10 +40,10 @@
|
||||
<script src="js/push-common.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index');
|
||||
document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
|
||||
//document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
|
||||
//mui初始化
|
||||
mui.init();
|
||||
var subpages = ['yfindex.html', BASE_PATH + '/quotations/index', BASE_PATH +'/selfInfo/index'];
|
||||
var subpages = ['yfindex.html', BASE_PATH + '/quotations/index', 'views/evaluate/evaluateList.html', 'views/user/userInfo.html'];
|
||||
var subpage_style = {
|
||||
top: '0',
|
||||
bottom: '50px',
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"icons": {
|
||||
"144": "icon.png"
|
||||
},
|
||||
"launch_path": "/views/user/bindingMobile.html",/*应用的入口页面,默认为根目录下的index.html;支持网络地址,必须以http://或https://开头*/
|
||||
"launch_path": "main.html",/*应用的入口页面,默认为根目录下的index.html;支持网络地址,必须以http://或https://开头*/
|
||||
"developer": {
|
||||
"name": "",/*开发者名称*/
|
||||
"email": "",/*开发者邮箱地址*/
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
Vue.component('my-component', {
|
||||
template: `
|
||||
<div class="head">
|
||||
<h1 @click="show">ddd{{message}}</h1>
|
||||
</div>
|
||||
`,
|
||||
data: function(){
|
||||
return {message: 'helloa'}
|
||||
},
|
||||
methods: {
|
||||
show() {
|
||||
alert();
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="example">
|
||||
<my-component></my-component>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/vue.js" ></script>
|
||||
<script type="text/javascript" src="component.js" ></script>
|
||||
<script>
|
||||
// 创建根实例
|
||||
new Vue({
|
||||
el: '#example'
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -96,7 +96,7 @@
|
||||
<div class="item-inner" style="padding:0.75rem 0;">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title" style="width:65%;overflow:visible;white-space:normal;font-size:0.75rem;">加入"我的房产",随时掌握房产价值变化</div>
|
||||
<div class="item-after"><a class="add add01 button theme open-vertical-modal">立即添加</a></div>
|
||||
<div class="item-after"><a class="add add01 button theme open-vertical-modal" id="addHouse">立即添加</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -141,6 +141,8 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script>
|
||||
var houseStatus = ""
|
||||
var hid = '104631167348637696';
|
||||
var house_info = new Vue({
|
||||
el:'#house_info',
|
||||
data:{
|
||||
@@ -171,7 +173,7 @@ $.config = {router: false}
|
||||
msg:""
|
||||
}
|
||||
})
|
||||
var hid = '104631167348637696';
|
||||
|
||||
|
||||
var price_feedback = new Vue({
|
||||
el:"#price_feedback",
|
||||
@@ -183,7 +185,7 @@ $.config = {router: false}
|
||||
if($(event.target).hasClass("theme")){
|
||||
return;
|
||||
}
|
||||
return;
|
||||
//return;
|
||||
axios.post("/rest/evaluate/feedBack",{
|
||||
hid:hid,
|
||||
reason:i
|
||||
@@ -238,7 +240,7 @@ $.config = {router: false}
|
||||
evaluate_msg.evaluate_words="暂无"
|
||||
}
|
||||
evaluate_msg.msg=h.evaluateMsg
|
||||
$("#img").attr("src","http://192.168.10.161:8084/img/"+h.imgId);
|
||||
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
||||
loadingChart(h.city,h.region,h.name,2)
|
||||
//按照时间范围加载数据
|
||||
$(".avgPriceTrend a").click(function(){
|
||||
@@ -247,10 +249,31 @@ $.config = {router: false}
|
||||
$(this).addClass('active');
|
||||
loadingChart(h.city,h.region,h.name,type);
|
||||
});
|
||||
houseStatus = h.houseStatus;
|
||||
}
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
|
||||
//添加管理AJAX请求
|
||||
function addManagement(id, houseStatus, liveStatus){
|
||||
axios.post(BASE_PATH + "/rest/evaluate/addManagement",
|
||||
{
|
||||
id: id,
|
||||
houseStatus: houseStatus,
|
||||
liveStatus: liveStatus
|
||||
}).then(function (response) {
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
window.location.reload();
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
@@ -276,19 +299,19 @@ $(document).on('click','.open-vertical-modal', function () {
|
||||
{
|
||||
text: '自住',
|
||||
onClick: function() {
|
||||
window.location.href = "01_index01_myHouse01_index.html";
|
||||
addManagement(hid, houseStatus, "自住");
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '出租',
|
||||
onClick: function() {
|
||||
window.location.href = "01_index01_myHouse01_index.html";
|
||||
addManagement(hid, houseStatus, "自住");
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '空置',
|
||||
onClick: function() {
|
||||
window.location.href = "01_index01_myHouse01_index.html";
|
||||
addManagement(hid, houseStatus, "自住");
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>我的房产</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
.cardPrice01 .card-footer span:nth-child(2){text-align:center;}
|
||||
.list-block ul:before{height:0;}
|
||||
.icon-houseLevel{width:0.8rem;height:0.75rem;background:url(../../images/icon-houseLevel.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:-0.1rem;}
|
||||
.cardPrice01 .card-content{background:url(../../images/cardBg01.png) no-repeat center bottom;background-size:100%;}
|
||||
|
||||
.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;}
|
||||
.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
|
||||
.list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;}
|
||||
.list-block .item-title em{font-size:0.8rem;color:#EB5F34;}
|
||||
.list-block .item-title .tag small{font-size:80%;color:#F5A100;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<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>
|
||||
<h1 class="title">我的房产</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="card cardPrice cardPrice01">
|
||||
<div class="card-header">
|
||||
<span>房产总值</span>
|
||||
<a class="button theme" href="#">添加房产</a>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">5000<span>万</span></div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<span>
|
||||
<em><strong>11.84</strong>%<i class="icon icon-arrow-red"></i></em>
|
||||
<label>近1年涨跌幅</label>
|
||||
</span>
|
||||
<span>
|
||||
<em><strong>41.45</strong>万<i class="icon icon-arrow-red"></i></em>
|
||||
<label>近1年升值额</label>
|
||||
</span>
|
||||
<span>
|
||||
<em><strong>12</strong><i class="icon icon-arrow-red"></i></em>
|
||||
<label>资产排名</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#" class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">龙盛佳苑 <em>391万</em><span class="tag"><small>空置</small></span></div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<div>近30天涨跌幅: <em class="down">3.37%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>下跌概率: <em class="down">12%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>抵押可贷额度: <em style="color:#EB5F34;">391万</em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a class="add alert-text-title"><i class="icon icon-houseLevel"></i>公寓</a>
|
||||
<a class="button theme add add01 add01a" href="#">立即申请</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">龙盛佳苑 <em>391万</em><span class="tag"><small>空置</small></span></div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<div>近30天涨跌幅: <em class="down">3.37%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>下跌概率: <em class="down">12%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>抵押可贷额度: <em style="color:#EB5F34;">391万</em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a class="add alert-text-title"><i class="icon icon-houseLevel"></i>公寓</a>
|
||||
<a class="button theme add add01 add01a" href="#">立即申请</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">龙盛佳苑 <em>391万</em><span class="tag"><small>空置</small></span></div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<div>近30天涨跌幅: <em class="down">3.37%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>下跌概率: <em class="down">12%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>抵押可贷额度: <em style="color:#EB5F34;">391万</em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a class="add alert-text-title"><i class="icon icon-houseLevel"></i>公寓</a>
|
||||
<a class="button theme add add01 add01a" href="#">立即申请</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
|
||||
<script>
|
||||
//初始化init
|
||||
$.init();
|
||||
|
||||
/* 说明-房产等级 */
|
||||
$(document).on('click','.alert-text-title', function () {
|
||||
$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,288 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>我的关注</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<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/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-blue.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<!-- <button class="button button-link button-nav pull-right open-popover">
|
||||
<span class="icon icon-path"></span>
|
||||
</button> -->
|
||||
<h1 class="title">我的关注</h1>
|
||||
</header>
|
||||
<div class="bar bar-header-secondary">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tab1" class="tab-link button active">小区</a>
|
||||
<a href="#tab2" class="tab-link button">城市</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content contentSuggest infinite-scroll infinite-scroll-bottom" data-distance="50">
|
||||
<div class="tabs">
|
||||
<div id="tab1" class="tab active">
|
||||
<div class="content-block content-block01">
|
||||
<div class="list-block media-list">
|
||||
<ul class="list-container" id="ulTab1">
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 加载提示符 -->
|
||||
<div id="loadTip1" class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tab2" class="tab">
|
||||
<div class="content-block content-block01">
|
||||
<div class="list-block media-list">
|
||||
<ul class="list-container" id="ulTab2">
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 加载提示符 -->
|
||||
<div id="loadTip2" class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#include "/customMenu.html" />
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
jQuery = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type='text/javascript' src='../../js/light7.js?version=${version!}' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/cn.js?version=${version!}" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/common.js?version=${version!}"></script>
|
||||
<script src="../../config.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<#include "/monitor/monitor.html">
|
||||
<script type="text/javascript">
|
||||
$("#ulTab1").empty();
|
||||
$("#ulTab2").empty();
|
||||
//$.init()
|
||||
//加载flag
|
||||
var loading = false;
|
||||
//最多可加载的条目
|
||||
var maxItems = 100;
|
||||
|
||||
//上次加载的序号小区
|
||||
var lastIndex = 0;
|
||||
//上次加载的序号城市
|
||||
var lastIndex2 = 0;
|
||||
|
||||
//每次加载添加多少条目
|
||||
var itemsPerLoad = 8;
|
||||
var itemsPerLoadCity = 20;
|
||||
var url = "loadCollections?pageSize="+itemsPerLoad;
|
||||
var urlCity = "loadCityCollections?pageSize="+itemsPerLoadCity;
|
||||
var curpage = 1;
|
||||
var curpageCity = 1;
|
||||
var totalCount = 0;
|
||||
var tatalCountCity = 0;
|
||||
|
||||
function addEstate(number, lastIndex) {
|
||||
|
||||
curpage = lastIndex/itemsPerLoad + 1;
|
||||
|
||||
|
||||
axios.get("/myCollection/loadCollections",{params:{pageSize:itemsPerLoad,page:curpage}}).then(function(response){
|
||||
data = response.data;
|
||||
//data = eval( '(' + data + ')' );
|
||||
if(data['results']==null || data['results'].length==0) {
|
||||
$('#loadTip1').remove();
|
||||
$('.infinite-scroll-bottom #tab1').html("<div class='noData'><img src='../images/noData.png'><p>您还没有关注小区</p></div>");
|
||||
return;
|
||||
}
|
||||
totalCount = data.totalCount;
|
||||
// 生成新条目的HTML
|
||||
var html = '';
|
||||
$.each(data['results'], function(i){
|
||||
var tag = this.tag;
|
||||
var tagStr = "";
|
||||
if(tag){
|
||||
var tags = tag.split("_")
|
||||
for(var j=0;j<tags.length;j++){
|
||||
if(j<3){
|
||||
var tag = tags[j];
|
||||
|
||||
tagStr = tagStr + '<small class="small01">'+tag+'</small>';
|
||||
}
|
||||
}
|
||||
}
|
||||
//'<div class="item-after"><em>'+(this.minPrice?this.minPrice:'')+'万-'+(this.maxPrice?this.maxPrice:'')+'万</em></div>'+
|
||||
var priceStr = this.minPrice+'万-'+this.maxPrice+'万';
|
||||
if(this.minPrice==null||this.minPrice==0||this.maxPrice==null||this.maxPrice==0){
|
||||
priceStr="暂无数据";
|
||||
}
|
||||
html+= '<li>'+
|
||||
'<a onclick="clicked(\'${basePath}/district/details?city='+this.city+'®ion='+this.region+'&name='+this.name+'\',true)" class="item-link item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-title-row">'+
|
||||
'<div class="item-title">'+this.name+'</div>'+
|
||||
'<div class="item-after">¥'+(this.avgPrice?this.avgPrice:'')+ '元/㎡</div>'+
|
||||
'</div>'+
|
||||
'<div class="item-title-row">'+
|
||||
'<div class="item-title"><small>'+(this.address?(this.city+this.region+this.address):'')+'</small></div>'+
|
||||
'</div>'+
|
||||
'<div class="item-subtitle row">'+
|
||||
'<div class="col-50">潜力指数: <em class="em01">68</em></div>'+
|
||||
'<div class="col-50">涨跌幅: <em class="up">↑24.96%</em></div>'+
|
||||
'<div class="col-100">租金回报率: <em class="em02">2.08%</em></div>'+
|
||||
'</div>'+
|
||||
'<div class="item-subtitle">'+tagStr+'</div>'+
|
||||
'</div>'+
|
||||
'</a>'+
|
||||
'</li>';
|
||||
});
|
||||
|
||||
// 添加新条目
|
||||
$('#ulTab1').append(html);
|
||||
|
||||
if(totalCount<=itemsPerLoad){
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
// $.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').remove();
|
||||
}
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
}
|
||||
|
||||
function addCity(number, lastIndex){
|
||||
curpageCity = lastIndex2/itemsPerLoadCity + 1;
|
||||
|
||||
axios.get("/myCollection/loadCityCollections",{params:{pageSize:itemsPerLoadCity,page:curpageCity}}).then(function(response){
|
||||
data = response.data;
|
||||
//data = eval( '(' + data + ')' );
|
||||
if(data['results']==null || data['results'].length==0) {
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
//$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip2').remove();
|
||||
$('.infinite-scroll-bottom #tab2').html("<div class='noData'><img src='../../images/noData.png'><p>您还没有关注城市</p></div>");
|
||||
return;
|
||||
}
|
||||
totalCountCity = data.totalCount;
|
||||
// 生成新条目的HTML
|
||||
var html = '';
|
||||
$.each(data['results'], function(i){
|
||||
avgPriceStr = '¥'+this.avgPrice+' 元/㎡';
|
||||
if(this.avgPrice==null||this.avgPrice==0){
|
||||
avgPriceStr="暂无数据";
|
||||
}
|
||||
html += '<li>'+
|
||||
'<a href="../quotations/building?cityName='+this.city+'" class="item-link item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-title-row">'+
|
||||
'<div class="item-title">'+this.city+'</div>'+
|
||||
'<div class="item-after">'+avgPriceStr+'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</a>'+
|
||||
'</li>' ;
|
||||
});
|
||||
|
||||
// 添加新条目
|
||||
$('#ulTab2').append(html);
|
||||
if(totalCountCity<=itemsPerLoadCity){
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
//$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip2').remove();
|
||||
}
|
||||
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
}
|
||||
//预先加载8条
|
||||
addEstate(itemsPerLoad, 0);
|
||||
addCity(itemsPerLoadCity, 0);
|
||||
|
||||
//注册'infinite'事件处理函数
|
||||
$(document).on('infinite', '.infinite-scroll-bottom',function() {
|
||||
if($("#tab1").hasClass("active"))
|
||||
{
|
||||
// 如果正在加载,则退出
|
||||
if (loading) return;
|
||||
// 设置flag
|
||||
loading = true;
|
||||
// 模拟1s的加载过程
|
||||
setTimeout(function() {
|
||||
// 重置加载flag
|
||||
loading = false;
|
||||
// 更新最后加载的序号
|
||||
lastIndex = $('#ulTab1').find('li').length;
|
||||
if (lastIndex >= totalCount) {
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
// $.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').remove();
|
||||
return;
|
||||
}
|
||||
// 添加新条目
|
||||
addEstate(itemsPerLoad, $('#ulTab1').find('li').length);
|
||||
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||
// $.refreshScroller();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
if($("#tab2").hasClass("active"))
|
||||
{
|
||||
// 如果正在加载,则退出
|
||||
if (loading) return;
|
||||
// 设置flag
|
||||
loading = true;
|
||||
// 模拟1s的加载过程
|
||||
setTimeout(function() {
|
||||
// 重置加载flag
|
||||
loading = false;
|
||||
// 更新最后加载的序号
|
||||
lastIndexCity = $('#ulTab2').find('li').length;
|
||||
if (lastIndexCity >= totalCountCity) {
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
// $.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip2').remove();
|
||||
return;
|
||||
}
|
||||
|
||||
// 添加新条目
|
||||
addCity(itemsPerLoad, $('#ulTab2').find('li').length);
|
||||
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||
// $.refreshScroller();
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -10,7 +10,6 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/mui.min.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
|
||||
@@ -222,7 +222,7 @@ function numberConver(thumbsUpCount){
|
||||
|
||||
function isCollect(){
|
||||
axios.post("/rest/news/checkCollect",{newsId : id}).then(function (response) {
|
||||
var msg = response.data.data
|
||||
var msg = response.data.data;
|
||||
if(msg){
|
||||
$(".collection").addClass("collection02")
|
||||
$(".collection i").addClass("icon-collection02")
|
||||
@@ -491,8 +491,9 @@ $(".praise").on("click", function () {
|
||||
|
||||
//收藏
|
||||
$(".collection").on("click", function () {
|
||||
//doCollect();
|
||||
collect();
|
||||
//localStorage.removeItem("user_token");
|
||||
doCollect();
|
||||
//collect();
|
||||
});
|
||||
function doCollect() {
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<div class="page-group" id="app">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<button class="button button-link button-nav pull-left" onclick="back()">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">绑定账号</h1>
|
||||
@@ -85,6 +85,7 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/plus.info.js" ></script>
|
||||
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||
<script>
|
||||
|
||||
timer = {
|
||||
@@ -110,11 +111,18 @@ timer = {
|
||||
}
|
||||
}
|
||||
|
||||
new Vue({
|
||||
var vue = new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
mobile:'',
|
||||
smsCode:''
|
||||
mobile:'', // 手机号码
|
||||
smsCode:'', // 短信验证码
|
||||
loginFrom:'', // 登录类型(weixin,qq,sinaweibo)
|
||||
openid:'', // 微信ID
|
||||
unionid:'', // 微信unionid,
|
||||
accessToken: '',// 微信授权token
|
||||
nickname:'', // 微信昵称
|
||||
headImg:'', // 微信头像
|
||||
deviceId:'' // 设备ID
|
||||
},
|
||||
methods: {
|
||||
// 手机号码检查
|
||||
@@ -169,12 +177,26 @@ new Vue({
|
||||
binding: function() {
|
||||
if (this.checkMobile() && this.checkSmsCode()) {
|
||||
axios.post("/rest/user/bindMobile", {
|
||||
mobile:this.mobile, smsCode:this.smsCode, province:province, city:city, region:region, pushClientId:getPushInfo()
|
||||
mobile:this.mobile,
|
||||
smsCode:this.smsCode,
|
||||
province:province,
|
||||
city:city,
|
||||
region:region,
|
||||
pushClientId:getPushInfo(),
|
||||
loginFrom:this.loginFrom,
|
||||
openid:this.openid,
|
||||
unionid:this.unionid,
|
||||
accessToken:this.accessToken,
|
||||
nickname:this.nickname,
|
||||
headImg:this.headImg,
|
||||
deviceId:this.deviceId
|
||||
})
|
||||
.then(function (response) {
|
||||
var resData = response.data;
|
||||
if (resData.status) {
|
||||
$.toast(resData.message);
|
||||
localStorage.setItem("user_token", resData.data);
|
||||
back();
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
@@ -187,6 +209,19 @@ new Vue({
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
vue.$data.loginFrom = self.loginFrom;
|
||||
vue.$data.openid = self.openid;
|
||||
vue.$data.unionid = self.unionid;
|
||||
vue.$data.accessToken = self.accessToken;
|
||||
vue.$data.nickname = self.nickname;
|
||||
vue.$data.headImg = self.headImg;
|
||||
vue.$data.deviceId = plus.device.uuid;
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</div>
|
||||
<p class="agreement">
|
||||
<a class="check"><img class="checkImg" src="../../images/checkImg02.png" id="check"></a>
|
||||
我已阅读并接受<a href="05_mine05_set03_agreement.html">《服务协议》</a>
|
||||
我已阅读并接受<a onclick="openView()">《服务协议》</a>
|
||||
</p>
|
||||
<div class="content-block loginBox">
|
||||
<p><a class="button button-big button-fill theme" id="login_btn">登录</a></p>
|
||||
@@ -114,7 +114,9 @@ $(".check").on("click", function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
function openView() {
|
||||
clicked(BASE_PATH + '/user/agreement',true)
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -66,9 +66,9 @@
|
||||
<span>第三方登录</span>
|
||||
</p>
|
||||
<p>
|
||||
<a href="05_mine00_login04_set.html" class="icon icon-loginMode01"></a>
|
||||
<a href="05_mine00_login04_set.html" class="icon icon-loginMode02"></a>
|
||||
<a href="05_mine00_login04_set.html" class="icon icon-loginMode03"></a>
|
||||
<a class="icon icon-loginMode01" id="wxLogin" onclick="loginInfo('weixin')"></a>
|
||||
<a class="icon icon-loginMode02" id="qqLogin" onclick="loginInfo('sinaweibo')"></a>
|
||||
<a class="icon icon-loginMode03" id="qqLogin" onclick="loginInfo('qq')"></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -94,7 +94,7 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/plus.info.js" ></script>
|
||||
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||
|
||||
<script type="text/javascript" src="../../js/login/thirdLogin.js" ></script>
|
||||
<script>
|
||||
|
||||
new Vue({
|
||||
@@ -132,6 +132,7 @@ new Vue({
|
||||
var token = resData.data;
|
||||
localStorage.setItem("user_token", token);
|
||||
$.toast(resData.message);
|
||||
back();
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="page-group" id="app">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<button class="button button-link button-nav pull-left" onclick="back()">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">设置密码</h1>
|
||||
@@ -59,7 +59,7 @@
|
||||
</div>
|
||||
<div class="content-block loginBox">
|
||||
<p><a class="button button-big button-fill theme" @click="updatePass">确认</a></p>
|
||||
<p><a href="05_mine01_index.html">跳过</a></p>
|
||||
<p><a onclick="back()">跳过</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -82,6 +82,7 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -119,6 +120,7 @@ new Vue({
|
||||
var resData = response.data;
|
||||
if (resData.status) {
|
||||
$.toast(resData.message);
|
||||
back();
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,250 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>个人中心</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
.topic .topicContent .topicContent_center.home div .icon{width:42px;height:42px;}
|
||||
.topic .topicContent .topicContent_center.home div span{font-size:0.7rem;color:#666;}
|
||||
.buttons-tab .button{font-size:0.75rem;color:#999;line-height:2.5rem;height:2.5rem;}
|
||||
.list-block ul:before{height:0;}
|
||||
.cardInfo:first-child{border-top:none;}
|
||||
.page > header.bar{position:static;padding-left:0.75rem;padding-right:0.75rem;background:#fff;}
|
||||
.page > header.barBorder{border-bottom:solid 0px #e7e7e7;}
|
||||
.page > header.bar.theme{background:#F18D00;}
|
||||
.bar-nav.theme .icon.icon-left{color:#fff;}
|
||||
.icon-houseLevel{width:0.8rem;height:0.75rem;background:url(../../images/icon-houseLevel.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:-0.1rem;}
|
||||
.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;}
|
||||
.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
|
||||
.list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;}
|
||||
.list-block .item-title em{font-size:0.8rem;color:#EB5F34;}
|
||||
.list-block .item-title .tag small{font-size:80%;color:#F5A100;}
|
||||
.tabs .tab{position:relative;}
|
||||
.pstion{position:absolute;top:0;height:524px;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav theme barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<button class="button button-link button-nav pull-right" onclick="clicked(BASE_PATH+'/user/setting',true)">
|
||||
<span class="icon icon-set"></span>
|
||||
</button>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="topBg01">
|
||||
<img src="../../images/headPortrait.png">
|
||||
<p>137****6586<br><span class="tag"><small>土豪</small></span></p>
|
||||
</div>
|
||||
<div class="topic">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home">
|
||||
<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal02"></i>
|
||||
<span>算税费</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='#'">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>贷款评估</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="icon icon-personal04"></i>
|
||||
<span>算房贷</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="buttons-tab fixed-tab theme" data-offset="44" id="tab">
|
||||
<a href="#tabList1" class="tab-link button active">房产(3)</a>
|
||||
<a href="#tabList2" class="tab-link button">关注({{mf_num}})</a>
|
||||
<a href="#tabList3" class="tab-link button">收藏(2)</a>
|
||||
<a href="#tabList4" class="tab-link button">消息(2)</a>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="tabList1" class="tab active">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#" class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">龙盛佳苑 <em>391万</em><span class="tag"><small>空置</small></span></div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<div>近30天涨跌幅: <em class="down">3.37%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>下跌概率: <em class="down">12%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>抵押可贷额度: <em style="color:#EB5F34;">391万</em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a class="add alert-text-title"><i class="icon icon-houseLevel"></i>公寓</a>
|
||||
<a class="button theme add add01 add01a" href="">立即申请</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">龙盛佳苑 <em>391万</em><span class="tag"><small>空置</small></span></div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<div>近30天涨跌幅: <em class="down">3.37%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>下跌概率: <em class="down">12%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>抵押可贷额度: <em style="color:#EB5F34;">391万</em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a class="add alert-text-title"><i class="icon icon-houseLevel"></i>公寓</a>
|
||||
<a class="button theme add add01 add01a" href="">立即申请</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">龙盛佳苑 <em>391万</em><span class="tag"><small>空置</small></span></div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<div>近30天涨跌幅: <em class="down">3.37%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>下跌概率: <em class="down">12%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div>抵押可贷额度: <em style="color:#EB5F34;">391万</em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a class="add alert-text-title"><i class="icon icon-houseLevel"></i>公寓</a>
|
||||
<a class="button theme add add01 add01a" href="">立即申请</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tabList2" class="tab">
|
||||
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="100">
|
||||
<div class="list-block media-list">
|
||||
<ul class="list-container" id="mf_ul">
|
||||
</ul>
|
||||
</div>
|
||||
<div id="loadTip1" class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabList3" class="tab">
|
||||
<div class="card cardInfo cardInfo01">
|
||||
<div class="card-header">限购先售的时间,适合买房吗?</div>
|
||||
<img src="../../images/cardInfoImg01.png">
|
||||
<div class="card-footer">
|
||||
<span><i class="icon icon-eye-orange"></i>2022人<i class="icon icon-comments-orange"></i>1245条</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card cardInfo cardInfo02">
|
||||
<div class="card-content">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">经济适用房该如何出售</div>
|
||||
</div>
|
||||
<div class="item-subtitle"><font>市场上有不同种类的房源待售,经济适用房作为保障性住房的一种,政府对此非常重视。</font></div>
|
||||
<div class="item-subtitle">
|
||||
<span><i class="icon icon-eye-orange"></i>2022人<i class="icon icon-comments-orange"></i>1245条</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-media">
|
||||
<img src="../../images/cardInfoImg05.png">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabList4" class="tab">
|
||||
<div class="list-block media-list">
|
||||
<ul class="list-container">
|
||||
<li>
|
||||
<a href="#" class="item-content message01 message01-new">
|
||||
<div class="item-media"><i class="icon icon-message01"></i></div>
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">楼市降温这么明显,为什么降价的房子还是这么少?楼市降温这么明显,为什么降价的房子还是这么少?</div>
|
||||
</div>
|
||||
<div class="item-subtitle">2017-11-30 10:10</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="item-content message01">
|
||||
<div class="item-media"><i class="icon icon-message01"></i></div>
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">楼市降温这么明显,为什么降价的房子还是这么少?楼市降温这么明显,为什么降价的房子还是这么少?</div>
|
||||
</div>
|
||||
<div class="item-subtitle">2017-11-30 10:10</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
|
||||
<script type="text/javascript" src="myFocus.js" charset="utf-8"></script>
|
||||
<script>
|
||||
/* 说明-房产等级 */
|
||||
$(document).on('click','.alert-text-title', function () {
|
||||
$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
|
||||
});
|
||||
|
||||
/* 点击资讯跳转到资讯详情页 */
|
||||
$(".cardInfo01,.cardInfo02").on("click", function(){
|
||||
window.location.href = "#";
|
||||
});
|
||||
|
||||
//$(document).on("pageInit", function() {
|
||||
// $('.buttons-tab').fixedTab({offset:325});
|
||||
// });
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||