diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index 3ea3402..8ce27a1 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -24,7 +24,7 @@ 行情 - + 评估 @@ -48,20 +48,11 @@ localStorage.removeItem("user_token"); localStorage.removeItem("user_token_add_time"); } - var evaluateMenu="" - if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { - //没有登录 - evaluateMenu = 'views/house/add_noData.html'; - }else{ - //登录成功 - evaluateMenu = 'views/evaluate/evaluateList.html'; - } - document.getElementById("evaluate").setAttribute("href", evaluateMenu); document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index'); //document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index'); //mui初始化 mui.init(); - var subpages = ['yfindex.html', BASE_PATH + '/quotations/index', evaluateMenu, 'views/user/userInfo.html']; + var subpages = ['yfindex.html', BASE_PATH + '/quotations/index', 'views/house/houseManageList.html', 'views/user/userInfo.html']; var subpage_style = { top: '0', bottom: '50px', diff --git a/fangija-zsyf/views/evaluate/evaluateList.html b/fangija-zsyf/views/evaluate/evaluateList.html index 7c86037..84286cf 100644 --- a/fangija-zsyf/views/evaluate/evaluateList.html +++ b/fangija-zsyf/views/evaluate/evaluateList.html @@ -36,9 +36,9 @@
- +

房产评估

diff --git a/fangija-zsyf/views/house/add.html b/fangija-zsyf/views/house/add.html index 6a4162f..11884c6 100644 --- a/fangija-zsyf/views/house/add.html +++ b/fangija-zsyf/views/house/add.html @@ -1553,7 +1553,8 @@ $("#evaluation_btn").on("click", function () { $("input[name='name']").val(district.name) $("input[name='region']").val(district.region) $("#input_city").val(district.city) - addEvaluation(); + + }else{ // $("#nextBtn").attr("disabled", false) console.log("error"); @@ -1565,6 +1566,17 @@ $("#evaluation_btn").on("click", function () { }); }); +//判断是否登录 +//var loginFlag=false; +function checkIsLogin(){ + if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ + clicked('/views/user/passLogin.html',true,false,{},{},function(){ + //checkIsLogin(); + }) + }else{ + addEvaluation(); + } +} function addEvaluation(){ axios.get("/rest/index/checkEvalPrice", { @@ -1582,13 +1594,7 @@ function addEvaluation(){ .then(function (response) { if(response.data.data!=null && response.data.data.success){ var id = response.data.data.id; - mui.openWindow({ - url: 'detail.html', - id:'detail.html', - extras:{ - id:id - } - }); + clicked('detail.html',true,false,{},{id:id}) }else{ $.toast(response.data.message); } @@ -1596,39 +1602,6 @@ function addEvaluation(){ .catch(function (error) { console.log(error); }); - - - /*$.ajax({ - url:"${basePath}/fsh/checkEvalPrice", - dataType:'json', - data:$("form").serialize(), - success:function (data) { - console.log() - var str = "/house/add?city="+$("#input_city").val()+"®ion="+$("input[name=region]").val()+"&name="+$("#input_address").val()+"&address="+$("input[name=address]").val()+"&estateType="+$("#input_houseType").val()+"&building="+$("#input_building").val()+"&floors="+$("#input_floor").val()+"&area="+$("#input_area").val(); - if(data.success){ - $.showIndicator(); - window.location.href="${basePath}/house/doEvaluation?id="+data.id+"&backUrl=${backUrl!}"; - }else{ - if (data.data == 0){ - $.toast(data.message); - var sstr = "${basePath}/user/smsLogin"; - console.log(sstr); - //window.location.href = sstr; - clicked(sstr,true); - } - if(data.message!=undefined && data.message!=""){ - $.hidePreloader(); - $.toast(data.message); - }else{ - $.hidePreloader(); - $.toast("该地址不支持估价!"); - } - } - }, - error:function () { - $.toast("估价失败请重试!") - } - })*/ } /* 信息输入弹窗 */ diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 40fe97a..9908f9e 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -1882,7 +1882,12 @@ $.config = {router: false} - + + - -var myFocus = new Vue({ - el:"#myFocus" -}) + \ No newline at end of file diff --git a/fangija-zsyf/views/house/houseManageList.html b/fangija-zsyf/views/house/houseManageList.html new file mode 100644 index 0000000..357d42a --- /dev/null +++ b/fangija-zsyf/views/house/houseManageList.html @@ -0,0 +1,272 @@ + + + + + +房产评估 + + + + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fangija-zsyf/views/house/new_file.js b/fangija-zsyf/views/house/new_file.js index e322e09..7468f95 100644 --- a/fangija-zsyf/views/house/new_file.js +++ b/fangija-zsyf/views/house/new_file.js @@ -44,12 +44,10 @@ Vue.component('my_focus',{ }, methods:{ loadMyFocus:function(){ - axios.get("/rest/quotations/userCollectCityInfo", { - params: { - } - }).then(function(response){ - myFocusDatas.myFocusList = response.data.data.results + axios.get("/rest/quotations/userCollectCityInfo").then(function(response){ + myFocusDatas.myFocusList = response.data.data }).catch(function(error){ + alert(error); console.log(error) }) } @@ -60,14 +58,14 @@ Vue.component('my_focus',{ }) //我的关注 -var myFocus = new Vue({ - el:"#myFocus", - data:{ - myfocusList:[{num:1,city:"test1",avgPrice:"123",percent:"",ranking:"1"}, - {num:2,city:"test2",avgPrice:"321",percent:"6.6",ranking:"2"} - ] - } -}) +//var myFocus = new Vue({ +// el:"#myFocus", +// data:{ +// myfocusList:[{num:1,city:"test1",avgPrice:"123",percent:"",ranking:"1"}, +// {num:2,city:"test2",avgPrice:"321",percent:"6.6",ranking:"2"} +// ] +// } +//}) //涨幅榜 var tabCityRanking1 = new Vue({ diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index 177df31..746dfa2 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -93,15 +93,15 @@
-
+
房产管理
-
+
我的房产
-
+
智能选房
@@ -2609,6 +2609,9 @@ function openNewsView(newId) { $("#visitCount_"+newId).text(count+'人'); } } +function openNewView(viewHtml) { + clicked(viewHtml,true,false,{},{}) +} function openIntelligentHouseView() { clicked('views/intelligentHouse/index.html',true,false,{},{}) }