diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js index 8eb91d9..be7f94d 100644 --- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js @@ -27,8 +27,8 @@ Vue.component('city_increase_ranking',{ '{{!ci.oneMonthUpDownRange||ci.oneMonthUpDownRange==""?"暂无":Math.abs(100*ci.oneMonthUpDownRange).toFixed(2)+"%"}}'+ ''+ '
'+ - '关注'+ - '取消'+ + '关注'+ + '取消'+ '
'+ ''+ ''+ @@ -47,14 +47,18 @@ Vue.component('city_increase_ranking',{ console.log(error) }) }, - follow:function(city){ + follow:function(city,event){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); }).catch(function(error){ console.log(error) }) }, - abolish:function(city){ + abolish:function(city,event){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); }).catch(function(error){ console.log(error) }) diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js index 377b2c3..0ffe245 100644 --- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js @@ -33,8 +33,8 @@ Vue.component('city_potential_ranking',{ ''+ ''+ '
'+ - '关注'+ - '取消'+ + '关注'+ + '取消'+ '
'+ ''+ ''+ @@ -48,7 +48,6 @@ Vue.component('city_potential_ranking',{ methods:{ loadCityPotentialRanking:function(){ axios.get("/rest/quotations/potentialUpTopInfos").then(function(response){ -// alert(1) list = response.data.data; $(list).each(function(i){ var index = this.index; @@ -66,14 +65,20 @@ Vue.component('city_potential_ranking',{ console.log(error) }) }, - follow:function(city){ + follow:function(city,event){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); + loadCityPotentialRanking() }).catch(function(error){ console.log(error) }) }, - abolish:function(city){ + abolish:function(city,event){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); + loadCityPotentialRanking() }).catch(function(error){ console.log(error) }) diff --git a/fangija-zsyf/views/component/myFocusComponent.js b/fangija-zsyf/views/component/myFocusComponent.js index cbf3222..551a754 100644 --- a/fangija-zsyf/views/component/myFocusComponent.js +++ b/fangija-zsyf/views/component/myFocusComponent.js @@ -26,7 +26,7 @@ Vue.component('my_focus',{ '
{{mf.city}}
'+ '
{{!mf.cityTopMonthAvgPrice||mf.cityTopMonthAvgPrice==""?"暂无":""+mf.cityTopMonthAvgPrice+"元/㎡"}}
'+ '
'+ - '{{!mf.oneMonthUpDownRange||mf.oneMonthUpDownRange==""?"暂无":Math.abs(mf.oneMonthUpDownRange*100).toFixed(2)+"%"}}'+ + '{{!mf.oneMonthUpDownRange||mf.oneMonthUpDownRange==""?"暂无":Math.abs(mf.oneMonthUpDownRange*100).toFixed(2)+"%"}}'+ '
'+ '
'+ '{{mf.rangeLevel}}'+ @@ -50,14 +50,13 @@ Vue.component('my_focus',{ }else{ axios.get("/rest/quotations/userCollectCityInfo").then(function(response){ if(response.data.data.length==0){ - alert("aa"); $("#myFocusFirstPage").hide(); $("#myFocus").hide(); }else{ myFocusDatas.myFocusList = response.data.data; } }).catch(function(error){ - console.log(error) + console.log(error) }) } } diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index 130164f..68849d4 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -47,7 +47,7 @@
- 再估一套 + 再估一套 @@ -81,7 +81,7 @@ --> -
+

您的反馈很重要,是我们努力的动力

@@ -142,13 +142,12 @@ $.config = {router: false} diff --git a/fangija-zsyf/views/house/add.html b/fangija-zsyf/views/house/add.html index 5d2191f..4817c7f 100644 --- a/fangija-zsyf/views/house/add.html +++ b/fangija-zsyf/views/house/add.html @@ -1248,8 +1248,8 @@ $.config = {router: false} diff --git a/fangija-zsyf/views/house/houseManageList.html b/fangija-zsyf/views/house/houseManageList.html index 812b9e9..4f192d4 100644 --- a/fangija-zsyf/views/house/houseManageList.html +++ b/fangija-zsyf/views/house/houseManageList.html @@ -104,16 +104,6 @@ $.config = {router: false} //调用mui.init方法 $.init() -//判断是否登录 -function checkIsLogin(){ - if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ - $('#dataList').hide(); - $('#noData').show(); - }else{ - selectEvaluateList(); - } -} - /* 房产用途 */ $(document).on('click','.open-vertical-modal', function () { //获取对应
  • 栏目存储的houseinfo id @@ -167,7 +157,6 @@ function addManagement(id, houseStatus, liveStatus){ console.log(error); }); } - //查询房产评估列表AJAX请求 function selectEvaluateList(){ //先清空列表 @@ -178,18 +167,17 @@ function selectEvaluateList(){ params: {} }).then(function (response) { var resultsMap = response.data.data; - var results = resultsMap.houseInfoList; - if(resultsMap.houseInfoList.length==0){ + if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){ $('#dataList').hide(); $('#noData').show(); }else{ $('#dataList').show(); $('#noData').hide(); + var results = resultsMap.houseInfoList; var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap; var cityAvgPriceMap = resultsMap.cityAvgPriceMap; //构造数据列表 htmlContent = constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent); - //动态追加内容 $('.list-block ul').html(htmlContent); //添加loading等待效果 @@ -260,18 +248,20 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap return htmlContent; } -//界面加载 -$(document).ready(function () { - checkIsLogin(); -}); - function openaddWindow(){ - clicked('/views/house/add.html',true,false,{},{},function(){ - window.location.reload(); - plus.webview.getWebviewById('views/user/userInfo.html').reload(); + clicked('/views/house/add.html',true,false,{},{type:1},function(){ }) } - +//判断是否登录 +function checkIsLogin(){ + if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ + $('#dataList').hide(); + $('#noData').show(); + }else{ + selectEvaluateList(); + } +} +checkIsLogin() diff --git a/fangija-zsyf/views/setting/about.html b/fangija-zsyf/views/setting/about.html new file mode 100644 index 0000000..c729736 --- /dev/null +++ b/fangija-zsyf/views/setting/about.html @@ -0,0 +1,90 @@ + + + + + +关于我们 + + + + + + + + + + + + + + +
    +
    +
    + +

    关于我们

    +
    +
    + + +
    +

    V1.1
    上海估家网络科技有限公司

    +

    +
    +
    +
    +
    + + + + + + + + +<#include "/monitor/monitor.html"> + + \ No newline at end of file diff --git a/fangija-zsyf/views/setting/setting.html b/fangija-zsyf/views/setting/setting.html new file mode 100644 index 0000000..37377ad --- /dev/null +++ b/fangija-zsyf/views/setting/setting.html @@ -0,0 +1,101 @@ + + + + + +管理设置 + + + + + + + + + + + + + + +
    +
    +
    + +

    管理设置1

    +
    +
    + +
    +

    微信交流群

    + +

    扫码加入

    +

    商务合作QQ:275525147

    +

    退出登录

    +
    +
    +
    +
    + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index 2840d4d..f66dc9a 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -41,7 +41,7 @@ - @@ -110,7 +110,7 @@ -