Merge branch 'YOUFANGAPP1.1.1' of http://192.168.0.27/dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -1353,9 +1353,21 @@ document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
hsId = self.hsId
|
||||
houseId = self.houseId
|
||||
if(hsId){
|
||||
//如果是修改置换建议,则默认将值填入
|
||||
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
|
||||
updateChangeSubtation(hsId);
|
||||
}
|
||||
|
||||
if(houseId){
|
||||
//小区报告页带入
|
||||
fillHouseInfo(houseId);
|
||||
}
|
||||
|
||||
}
|
||||
//修改置换建议填充默认值
|
||||
function updateChangeSubtation(hsId){
|
||||
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
|
||||
params:{
|
||||
hsId:hsId
|
||||
}
|
||||
@@ -1397,7 +1409,22 @@ function onPlusReady() {
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fillHouseInfo(houseId){
|
||||
axios.get(BASE_PATH + "/rest/index/loadHouse",{
|
||||
params:{
|
||||
houseId:houseId
|
||||
}
|
||||
}).then(function (response) {
|
||||
var data = response.data.data;
|
||||
if(data){
|
||||
addBaseHouseInfo(data);
|
||||
baseInfo.houseId = hs.houseId
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
//填充房产价格信息
|
||||
@@ -1818,7 +1845,6 @@ $("#citySearchInp").bind('keyup', function() {
|
||||
});
|
||||
|
||||
function openAddHouse(){
|
||||
alert("ssss")
|
||||
clicked('/views/house/add.html',true,false,{},{});
|
||||
}
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
<div class="noData">
|
||||
<img src="../../images/noData.png">
|
||||
<p>抱歉,没有找到适合您的小区</p>
|
||||
<a click="updateChangeHouse()">修改置换需求</a>
|
||||
<a onclick="updateChangeHouse()">修改置换需求</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -399,7 +399,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() {
|
||||
});
|
||||
|
||||
function updateChangeHouse(){
|
||||
clicked('views/changeHouse/index.html',true,false,{},{hsId:hsId});
|
||||
clicked('/views/changeHouse/index.html',true,false,{},{hsId:hsId});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -303,5 +303,6 @@ function addSubstitution(sr, hs, house){
|
||||
// <a <#if advertisement.link?? && advertisement.link?length gt 0>onclick="openUrl('${basePath}/message/openView?url=${basePath}/mad/adUrlLoad?adid=${advertisement.id!?c}')"</#if> ><#if advertisement.content??>${advertisement.content!}</#if><i class="icon icon-right icon-right01"></i></a></p>
|
||||
// </#if>
|
||||
$("#suggestDiv").text(s);
|
||||
$("#suggestDiv").show();
|
||||
}
|
||||
|
||||
|
||||
@@ -57,13 +57,13 @@
|
||||
<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" onclick="shareHref()">
|
||||
<button class="button button-link button-nav pull-right open-popover" onclick="share()">
|
||||
<span class="icon icon-share"></span>
|
||||
</button>
|
||||
<h1 class="title">{{name}}</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="topBg topBg02" id="suggestDiv">
|
||||
<div class="topBg topBg02 dn" id="suggestDiv">
|
||||
<p>购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为<em>587-717万</em>。<br><a href="">查看详情<i class="icon icon-right icon-right01"></i></a></p>
|
||||
</div>
|
||||
|
||||
@@ -329,6 +329,14 @@ function onPlusReady() {
|
||||
|
||||
sharehrefTitle = self.name;
|
||||
|
||||
//查看小区
|
||||
var eventType = "openDistrictDetailClick";
|
||||
var dataMap = {};
|
||||
dataMap["city"]=city;
|
||||
dataMap["region"]=region;
|
||||
dataMap["name"]=name;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
// 创建根实例
|
||||
baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
@@ -396,7 +404,17 @@ function loadMap(){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function share(){
|
||||
var eventType = "shareDistrictClick";
|
||||
var dataMap = {};
|
||||
dataMap["city"]=city;
|
||||
dataMap["region"]=region;
|
||||
dataMap["name"]=name;
|
||||
dataMap["type"]="districtDetail";
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
shareHref();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<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" onclick="shareHref()">
|
||||
<button class="button button-link button-nav pull-right open-popover" onclick="share()">
|
||||
<span class="icon icon-share"></span>
|
||||
</button>
|
||||
<h1 class="title">评估报告</h1>
|
||||
@@ -151,11 +151,11 @@ $.config = {router: false}
|
||||
var sharehrefDes = "小区详情介绍!";
|
||||
var shareId='';
|
||||
var picUrl = '../../img/default_share.png';
|
||||
|
||||
var hid = "";
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
var hid = self.hid;
|
||||
hid = self.hid;
|
||||
var houseStatus = ""
|
||||
|
||||
shareUrl = shareUrl+"hid="+hid;
|
||||
@@ -202,6 +202,13 @@ $.config = {router: false}
|
||||
},
|
||||
methods:{
|
||||
feedback:function(i,event){
|
||||
|
||||
var eventType = "priceFeedbackClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=hid
|
||||
dataMap["reason"]=i
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
if($(event.target).hasClass("theme")){
|
||||
return;
|
||||
}
|
||||
@@ -357,6 +364,12 @@ $.config = {router: false}
|
||||
|
||||
//添加管理AJAX请求
|
||||
function addManagement(id, houseStatus, liveStatus){
|
||||
var eventType = "addManageClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=id;
|
||||
dataMap["liveStatus"]=liveStatus;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
axios.post(BASE_PATH + "/rest/evaluate/addManagement",
|
||||
{
|
||||
id: id,
|
||||
@@ -547,6 +560,17 @@ function openaddWindow(){
|
||||
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||
})
|
||||
}
|
||||
|
||||
function share(){
|
||||
var eventType = "shareEvaluateClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=hid;
|
||||
dataMap["type"]="evaluate";
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
shareHref();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block">
|
||||
<p><button id="evaluation_btn" class="button button-big button-fill theme" id="evaluation_btn" style="width:100%">提交评估</button></p>
|
||||
<p><button id="evaluation_btn" class="button button-big button-fill theme" style="width:100%">提交评估</button></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1580,7 +1580,18 @@ $("#input_floor").picker({
|
||||
textAlign: 'center',
|
||||
values: getfloorHeight()
|
||||
}
|
||||
]
|
||||
],onOpen:function(p){
|
||||
//
|
||||
var input_floor = $("#input_floor").val();
|
||||
var num = input_floor.replace(/第/g,"").replace(/层/g,"").replace(/共/g,"").split(" ");
|
||||
if(num[0]!=null &&num[0]!=undefined){
|
||||
p.cols[0].setValue('第'+num[0]+'层')
|
||||
}
|
||||
if(num[1]!=null &&num[1]!=undefined){
|
||||
p.cols[1].setValue('共'+num[1]+'层')
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
/* 选择-目前状态 */
|
||||
@@ -1891,6 +1902,9 @@ function addEvaluation(){
|
||||
area:$("#input_area").val(),
|
||||
houseStatus:1}
|
||||
}
|
||||
var eventType = "evaluateSubmitClick";
|
||||
saveBehaviorLog(eventType,data); //保存用户点击事件
|
||||
|
||||
axios.get("/rest/index/checkEvalPrice", {
|
||||
params: data
|
||||
})
|
||||
|
||||
@@ -626,15 +626,32 @@ function gotoLoanApply(){
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: ""},function(){})
|
||||
}
|
||||
function gotoRentManager(){
|
||||
clicked('/views/rent/rentManager.html',true,false,{},{houseId: houseId},function(){})
|
||||
|
||||
var eventType = "rentManageClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=houseId;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
clicked('/views/rent/rentManager.html',true,false,{},{houseId: houseId},function(){})
|
||||
}
|
||||
|
||||
//出售分析
|
||||
function gotoSaleAnalysis(){
|
||||
var eventType = "saleAnalysisClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=houseId;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
clicked('/views/saleAnalysis/saleAnalysis.html',true,false,{},{houseId: houseId, city: oriCity, region: oriRegion, name: oriName},function(){})
|
||||
}
|
||||
|
||||
function gotoChangeHouse(){
|
||||
|
||||
var eventType = "changeHouseClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=houseId;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
clicked('/views/changeHouse/index.html',true,false,{},{houseId: houseId},function(){})
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<!--<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" id="shareButton" onclick="shareHref()">
|
||||
<button class="button button-link button-nav pull-right" id="shareButton" onclick="share()">
|
||||
<span class="icon icon-share"></span>
|
||||
</button>
|
||||
<h1 class="title">房产行情</h1>
|
||||
@@ -151,7 +151,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic" id="hotCityVue">
|
||||
<div class="topic" id="hotCityVue" v-cloak>
|
||||
<div class="topicTitle">房产热点城市</div>
|
||||
<div class="topicContent cityImgBox row">
|
||||
<div class="col-33" v-for="(city,index) in hotCitys" @click="openHotCity(index)">
|
||||
@@ -1502,15 +1502,24 @@ $("a[href='#tabQuotation1'],a[href='#tabQuotation0']").click(function(){
|
||||
$("#tabCityDiv a").removeClass("active");
|
||||
$("#contentTabDiv > .tab").removeClass("active");
|
||||
$("#cityInfo").hide()
|
||||
|
||||
var eventType = "changeHotCityClick";
|
||||
var dataMap = {};
|
||||
dataMap["city"]=$(this).text();
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
})
|
||||
|
||||
|
||||
|
||||
function clickCity(val){
|
||||
var eventType = "changeHotCityClick";
|
||||
var dataMap = {};
|
||||
dataMap["city"]=val;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
shareUrl = BASE_PATH+"/house/cityShare?city="+val;
|
||||
$("#shareButton").show();
|
||||
city = val;
|
||||
|
||||
plus.nativeUI.showWaiting();
|
||||
$("#cityInfo").show()
|
||||
$("#tabCityDiv a").removeClass("active");
|
||||
@@ -1532,7 +1541,7 @@ function clickCity(val){
|
||||
|
||||
$("#trendDiv a").removeClass("active")
|
||||
$("#trendDiv a[v='2']").addClass("active")// 默认走势显示半年
|
||||
|
||||
|
||||
$("#tabQuotation1").removeClass("active");
|
||||
$("#tabQuotation0").removeClass("active");
|
||||
plus.nativeUI.closeWaiting();
|
||||
@@ -1610,6 +1619,11 @@ function addFocus(city){
|
||||
}
|
||||
})
|
||||
}else{
|
||||
var eventType = "addHotCityClick";
|
||||
var dataMap = {};
|
||||
dataMap["city"]=city;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city,type:0}}).then(function(response){
|
||||
if(response.data.status){
|
||||
reloadMyFocus()
|
||||
@@ -1636,11 +1650,21 @@ function addFocus(city){
|
||||
}
|
||||
|
||||
function hotCity(city){
|
||||
|
||||
|
||||
clicked('../house/cityDetail.html',true,false,{},{city:city},function(){
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function share(){
|
||||
var eventType = "shareHotCityClick";
|
||||
var dataMap = {};
|
||||
dataMap["city"]=$("#tabCityDiv .active").text();
|
||||
dataMap["type"]="hotCity";
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
shareHref();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -387,6 +387,12 @@ $(document).on("click",".confirm-ok", function () {
|
||||
//获取删除的房产id
|
||||
var id = $(this).attr("id");
|
||||
$.confirm("确定删除?", function () {
|
||||
|
||||
var eventType = "deleteHouseClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=id;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus",
|
||||
{
|
||||
id: id
|
||||
|
||||
@@ -147,6 +147,11 @@ $(document).on("click",".confirm-ok", function () {
|
||||
//获取删除的房产id
|
||||
var id = $(this).attr("id");
|
||||
$.confirm("确定删除?", function () {
|
||||
var eventType = "delateEvaluateClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=id;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus",
|
||||
{
|
||||
id: id
|
||||
@@ -302,6 +307,10 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
||||
|
||||
//立即评估
|
||||
function openaddWindow(){
|
||||
var eventType = "evaluateClick";
|
||||
var dataMap = {};
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||
})
|
||||
}
|
||||
|
||||
@@ -64,8 +64,10 @@
|
||||
<div class="col-10">{{index+1}}</div>
|
||||
<div class="col-25">{{info.region}}</div>
|
||||
<div class="col-33">{{info.avgPrice}}元/㎡</div>
|
||||
<div class="col-25" v-if="info.oneMonthUpDownRange > 0"><em class="up">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-red"></i></em></div>
|
||||
<div class="col-25" v-if="info.oneMonthUpDownRange < 0"><em class="down">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-green"></i></em></div>
|
||||
|
||||
<div class="col-25" v-if="info.oneMonthUpDownRange && info.oneMonthUpDownRange >= 0"><em class="up">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-red"></i></em></div>
|
||||
<div class="col-25" v-else-if="info.oneMonthUpDownRange && info.oneMonthUpDownRange < 0"><em class="down">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-green"></i></em></div>
|
||||
<div class="col-25" v-else><em>暂无</em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
@@ -137,7 +139,11 @@ $.config = {router: false}
|
||||
if(msg!=null && msg.length>0){
|
||||
for(var i in msg){
|
||||
var da = msg[i]
|
||||
da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
|
||||
if(da.oneMonthUpDownRange){
|
||||
da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
regionsInfoVue.$data.regionInfos = msg;
|
||||
}else{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title id="title"></title>
|
||||
<title id="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">
|
||||
|
||||
@@ -120,6 +120,7 @@ function logout() {
|
||||
//plus.webview.getWebviewById('yfindex.html').reload();
|
||||
localStorage.removeItem("user_token");
|
||||
localStorage.removeItem("user_token_add_time");
|
||||
localStorage.removeItem("user_id");
|
||||
//退出登录之前loading下个人中心
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
|
||||
@@ -200,6 +200,7 @@ var vue = new Vue({
|
||||
$.toast(resData.message);
|
||||
localStorage.setItem("user_token", resData.data.token);
|
||||
localStorage.setItem("user_token_add_time", new Date().getTime());
|
||||
localStorage.setItem("user_id", resData.data.uid);
|
||||
back();
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
|
||||
@@ -136,9 +136,10 @@ new Vue({
|
||||
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);
|
||||
localStorage.setItem("user_token_add_time", new Date().getTime());
|
||||
localStorage.setItem("user_id", data.uid)
|
||||
$.toast(resData.message);
|
||||
back();
|
||||
} else {
|
||||
|
||||
@@ -54,7 +54,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 homeBox" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home homeWin">
|
||||
<div>
|
||||
@@ -127,7 +127,7 @@
|
||||
<div class="topic">
|
||||
<div class="topicContent homeBox" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home homeWin" id="toolList">
|
||||
<div>
|
||||
<!--<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
</div>
|
||||
@@ -142,9 +142,9 @@
|
||||
<div>
|
||||
<i class="icon icon-personal04"></i>
|
||||
<span>算房贷</span>
|
||||
</div>
|
||||
</div>-->
|
||||
<div v-for="(t,index) in merchantTools">
|
||||
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url)">
|
||||
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url,userId,t.id)">
|
||||
<span>{{t.toolName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -227,7 +227,7 @@ $.config = {router: false}
|
||||
<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/sm01.js" charset="utf-8"></script>
|
||||
<!--<script type="text/javascript" src="../../js/sm01.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>
|
||||
@@ -262,20 +262,7 @@ var tab = new Vue({
|
||||
mm_num:"0"
|
||||
}
|
||||
})
|
||||
var toolList = new Vue({
|
||||
el:"#toolList",
|
||||
data:{
|
||||
merchantTools:[]
|
||||
},
|
||||
methods:{
|
||||
goto:function(url){
|
||||
// alert(url)
|
||||
if (url != null && url != "") {
|
||||
clicked('../webview_embed.html', true,false,{},{url:url})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
//判断是否登录
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
@@ -350,7 +337,8 @@ $(document).on('infinite', '.infinite-scroll',function() {
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
//$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').remove();
|
||||
//$('#loadTip1').remove();
|
||||
$('#loadTip1').hide();
|
||||
return;
|
||||
}
|
||||
//控制查询下一页的数据
|
||||
@@ -466,7 +454,8 @@ $(document).on("click",".confirm-ok", function () {
|
||||
$.toast(response.data.data);
|
||||
//删除后,如果需要调用checkIsLogin,需要所有的参数初始化
|
||||
//checkIsLogin();
|
||||
window.location.reload();
|
||||
//window.location.reload();
|
||||
initMyHouseParams();
|
||||
//删除房产会影响个人中心房产列表, 刷新
|
||||
/*if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
@@ -482,6 +471,24 @@ $(document).on("click",".confirm-ok", function () {
|
||||
$(".modal-text").css("text-align","center");
|
||||
});
|
||||
|
||||
//初始化分页参数, 防止回调时候重新请求出错
|
||||
function initMyHouseParams(){
|
||||
mh_loading = false;
|
||||
mh_page = undefined;
|
||||
var mh_pageSize = undefined;
|
||||
var mh_totalPages = undefined;
|
||||
var mh_totalRecords = undefined;
|
||||
var mh_lastIndex = undefined;
|
||||
var mh_itemsPerLoad = undefined;
|
||||
var mh_maxItems = 100;
|
||||
//清空构造的container
|
||||
$('#myhouse').html('');
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').show();
|
||||
//加载我的房产
|
||||
selectHouseInfoList();
|
||||
}
|
||||
|
||||
function openSettingPage() {
|
||||
clicked('../setting/setting.html',true,false,{},{},function(){})
|
||||
}
|
||||
@@ -489,10 +496,38 @@ function openSettingPage() {
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
|
||||
function onPlusReady(){
|
||||
var toolList = new Vue({
|
||||
el:"#toolList",
|
||||
data:{
|
||||
merchantTools:[],
|
||||
userId:""
|
||||
},
|
||||
methods:{
|
||||
goto:function(url,userId,id){
|
||||
var deviceId = plus.device.uuid;
|
||||
if(url.indexOf("?")>0){
|
||||
url+=("&uid="+userId+"&deviceId="+deviceId)
|
||||
}else{
|
||||
url+=("?uid="+userId+"&deviceId="+deviceId)
|
||||
}
|
||||
if (url != null && url != "") {
|
||||
if(id!=null){
|
||||
axios.post(BASE_PATH + "/rest/usertool/merchantToolClick",{id:id}).then(function(response){
|
||||
}).catch(function(error){
|
||||
});
|
||||
}
|
||||
clicked('../webview_embed.html', true,false,{},{url:url})
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
axios.get(BASE_PATH + "/rest/usertool/merchantToolList",{params:{position:0}}).then(function(response){
|
||||
toolList.merchantTools = response.data.data;
|
||||
toolList.merchantTools = response.data.data.list;
|
||||
toolList.userId = response.data.data.uid;
|
||||
/* 获取homeWin div个数并计算homeWin宽度 */
|
||||
$(".homeWin").css("width",(90*(4+response.data.data.length))+"px");
|
||||
var original = 0;//公积金查询等个数
|
||||
$(".homeWin").css("width",(90*(original+response.data.data.list.length))+"px");
|
||||
// var html = "";
|
||||
// for(var i=0;i<toolList.length;i++){
|
||||
// html += (i%4==0?'':'<div class="swiper-slide">')+
|
||||
@@ -514,6 +549,24 @@ function onPlusReady(){
|
||||
checkIsLogin();
|
||||
}
|
||||
|
||||
$("a[href='#tabList1'],a[href='#tabList2'],a[href='#tabList3']").click(function(){
|
||||
var eventType = "";
|
||||
var type = $(this).text();
|
||||
if(type.indexOf("房产") >= 0){
|
||||
eventType = "userInfo_manageHouseClick";
|
||||
}else if(type.indexOf("关注") >= 0){
|
||||
eventType = "userInfo_attentionClick";
|
||||
}else if(type.indexOf("收藏") >= 0){
|
||||
eventType = "userInfo_collectClick";
|
||||
}
|
||||
saveLog(eventType)
|
||||
})
|
||||
|
||||
function saveLog(eventType){
|
||||
var dataMap = {};
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
}
|
||||
saveLog("userInfo_manageHouseClick");//默认第一次会调到该方法
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user