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"
-})
+