Compare commits
125 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b2710f3f72 | |||
| 78c447ae5d | |||
| ebbfefdc92 | |||
| 96dcb56299 | |||
| f082b90f07 | |||
| b2894f51b0 | |||
| 4d8454482a | |||
| 2470321fc7 | |||
| 2c6601a191 | |||
| d167f11735 | |||
| 6935210868 | |||
| cc6a8d56ad | |||
| 97274ce7b2 | |||
| 3406e7cc80 | |||
| 60126977f9 | |||
| 1e9b31421e | |||
| ae8b39be92 | |||
| 6c2a5ba73d | |||
| 4430677ee5 | |||
| cd4c2370b0 | |||
| df6546aaf1 | |||
| 68dae3d448 | |||
| 22ab0623f4 | |||
| ba2a967b7e | |||
| 5a37f2056b | |||
| 10068f7bb2 | |||
| f6f16e8976 | |||
| 7eaa5c0e31 | |||
| 4aafba8b8b | |||
| 43808a73af | |||
| 92b2320a5a | |||
| e5908f8995 | |||
| 0870abf76f | |||
| e5e4775c52 | |||
| ff5d645b48 | |||
| 970302a1bb | |||
| af3430db07 | |||
| 2ae669abb1 | |||
| 8bdb72b8e7 | |||
| 8f0b69f6fc | |||
| fcebe75c47 | |||
| b82d4541a2 | |||
| 729ff06b8d | |||
| f450080e86 | |||
| b35cb66077 | |||
| 3fa03eb778 | |||
| 30d53b1f3f | |||
| a0a64f9af6 | |||
| 3d59a57d2c | |||
| 3f0a0013f0 | |||
| d14079c880 | |||
| f3d9ef19e0 | |||
| 7351b4695a | |||
| b2b4fd2825 | |||
| 8b4e517fca | |||
| a8693975ea | |||
| 854b11ed43 | |||
| fd9843b914 | |||
| c901a0a25e | |||
| 2ebc5162f5 | |||
| ac54918c75 | |||
| 4fd63752e3 | |||
| 13aaa16f15 | |||
| d7119d0582 | |||
| 0caef39c53 | |||
| cd3a815a33 | |||
| 1e682025c9 | |||
| 436a477b88 | |||
| ce346f710c | |||
| f033ba52e9 | |||
| eeddd19c10 | |||
| 9b59d99c7e | |||
| f917d4ac09 | |||
| 28dbe98576 | |||
| b5ea3a98c8 | |||
| 7eb2c58df6 | |||
| ee9667649b | |||
| 906d1e76bf | |||
| 2bd6d06878 | |||
| 96048dc1e0 | |||
| 8426068758 | |||
| a4853fec6d | |||
| 24a85233cc | |||
| 3b53109d4e | |||
| f72d786abd | |||
| df58f48a8c | |||
| 550c1e7ff1 | |||
| c7a311917d | |||
| 8793de53f9 | |||
| edeb39ed78 | |||
| ad12dcaad4 | |||
| 7f1e57f56c | |||
| 9ab9c13e05 | |||
| e4cc63e7ea | |||
| 1ccce7e52b | |||
| 1c993f8c68 | |||
| 56ef503144 | |||
| 19daef3837 | |||
| 0e4511cf65 | |||
| 53a259c8c1 | |||
| cdec789d51 | |||
| ca3fa3faee | |||
| e24124d41d | |||
| 7057593d75 | |||
| fafdb93ec8 | |||
| 99a631039d | |||
| aa581d4f65 | |||
| 7cbb1e23e7 | |||
| 1e7f1d0d8e | |||
| 08d2619e1c | |||
| 0c8cafe403 | |||
| d64482bb82 | |||
| 57e3a16d9c | |||
| 46ec4a506d | |||
| 46ff32c596 | |||
| 6f075e3aa1 | |||
| d8bc2aa402 | |||
| 2586361e54 | |||
| dd13cd1c7d | |||
| fc701a2f60 | |||
| 80ea7540c3 | |||
| 12bdbc1bf4 | |||
| 7a282fca6d | |||
| 16a74fc1a9 | |||
| 71e896601d |
@@ -1,9 +1,9 @@
|
|||||||
/**服务端地址**/
|
/**服务端地址**/
|
||||||
var BASE_PATH = "http://youfang.fangjia.com";
|
//var BASE_PATH = "http://youfang.fangjia.com";
|
||||||
//var BASE_PATH = "http://192.168.10.128:8084";
|
//var BASE_PATH = "http://192.168.10.128:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.164:8084";
|
//var BASE_PATH = "http://192.168.10.164:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.53:8084";
|
//var BASE_PATH = "http://192.168.10.53:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.47:8086";
|
var BASE_PATH = "http://192.168.10.47:8086";
|
||||||
//var BASE_PATH = "http://192.168.10.161:8084";
|
//var BASE_PATH = "http://192.168.10.161:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.170:8084";
|
//var BASE_PATH = "http://192.168.10.170:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.171:8084";
|
//var BASE_PATH = "http://192.168.10.171:8084";
|
||||||
|
|||||||
@@ -7,15 +7,20 @@ ul li{list-style:none;}
|
|||||||
img{display:block;}
|
img{display:block;}
|
||||||
a{color:#F18D00;}
|
a{color:#F18D00;}
|
||||||
a:active{color:#F18D00;}
|
a:active{color:#F18D00;}
|
||||||
|
input{line-height:inherit;}
|
||||||
em{font-style:normal;color:#333;}
|
em{font-style:normal;color:#333;}
|
||||||
/*
|
/*
|
||||||
em.up{color:#EB5F34;}
|
em.up{color:#EB5F34;}
|
||||||
em.down{color:#88D053;}
|
em.down{color:#88D053;}
|
||||||
*/
|
*/
|
||||||
::../../images{display:none;}
|
::-webkit-scrollbar{display:none;}
|
||||||
|
.bt{border-top:solid 0.5rem #f3f3f3;}
|
||||||
|
.bb{border-bottom:solid 0.5rem #f3f3f3;}
|
||||||
|
.tac{text-align:center;}
|
||||||
.dn{display:none;}
|
.dn{display:none;}
|
||||||
.di{display:inline;}
|
.di{display:inline;}
|
||||||
|
|
||||||
|
.page,.page-group{background:#f3f3f3;}
|
||||||
.content{background:#fff;color:#333;z-index:1;}
|
.content{background:#fff;color:#333;z-index:1;}
|
||||||
.content.f3{background:#f3f3f3;}
|
.content.f3{background:#f3f3f3;}
|
||||||
.popup{background:#f3f3f3;}
|
.popup{background:#f3f3f3;}
|
||||||
@@ -275,7 +280,7 @@ em.down{color:#88D053;}
|
|||||||
.list-block .item-subtitle div em i{width:7px;height:10px;margin-left:0.2rem;}
|
.list-block .item-subtitle div em i{width:7px;height:10px;margin-left:0.2rem;}
|
||||||
.list-block .item-subtitle div label{display:block;font-size:0.7rem;color:#666;text-align:center;max-width:100%;}
|
.list-block .item-subtitle div label{display:block;font-size:0.7rem;color:#666;text-align:center;max-width:100%;}
|
||||||
.list-block .item-subtitle div p{margin-bottom:0;}
|
.list-block .item-subtitle div p{margin-bottom:0;}
|
||||||
.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;}
|
.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0.5rem;}
|
||||||
.list-block .item-subtitle div.price em{font-size:0.8rem;color:#EB5F34;}
|
.list-block .item-subtitle div.price em{font-size:0.8rem;color:#EB5F34;}
|
||||||
.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;}
|
.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;}
|
||||||
.list-block .item-subtitle div.priceBox01 em{display:block;color:#333;}
|
.list-block .item-subtitle div.priceBox01 em{display:block;color:#333;}
|
||||||
@@ -293,9 +298,9 @@ em.down{color:#88D053;}
|
|||||||
.list-block .item-inner .item-media{width:1.2rem;height:1.2rem;float:left;margin-right:0.2rem;}
|
.list-block .item-inner .item-media{width:1.2rem;height:1.2rem;float:left;margin-right:0.2rem;}
|
||||||
.list-block .item-inner .item-media img{width:100%;}
|
.list-block .item-inner .item-media img{width: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 .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 1.25rem;}
|
||||||
.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
|
.list-block .add01{padding:0 0.5rem;top:1rem;right:0.75rem;}
|
||||||
.list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;}
|
.list-block .add01a{top:inherit;bottom:0.75rem;right:1.25rem;}
|
||||||
.list-block .delete{width:1.5rem;height:1.55rem;background:url(../images/delete.png) no-repeat center center;background-size:100%;position:absolute;top:-1px;right:0;}
|
.list-block .delete{width:1.5rem;height:1.55rem;background:url(../images/delete.png) no-repeat center center;background-size:100%;position:absolute;top:-1px;right:0;}
|
||||||
.starBox{position:absolute;top:0.6rem;right:1.25rem;font-size:0.7rem;color:#666;text-align:right;}
|
.starBox{position:absolute;top:0.6rem;right:1.25rem;font-size:0.7rem;color:#666;text-align:right;}
|
||||||
.starBox .star{display:block;}
|
.starBox .star{display:block;}
|
||||||
@@ -324,8 +329,9 @@ em.down{color:#88D053;}
|
|||||||
.content-padded + .newCss ul{padding-bottom:0;}
|
.content-padded + .newCss ul{padding-bottom:0;}
|
||||||
|
|
||||||
.list-block .item-content label.label-checkbox{float:left;padding-left:0;}
|
.list-block .item-content label.label-checkbox{float:left;padding-left:0;}
|
||||||
|
.list-block .item-content label.label-checkbox:last-child{margin-left:0.8rem;}
|
||||||
.list-block .item-content label.label-checkbox .item-media{width:auto;height:auto;padding:0;margin:0;}
|
.list-block .item-content label.label-checkbox .item-media{width:auto;height:auto;padding:0;margin:0;}
|
||||||
label.label-checkbox i.icon-form-checkbox{margin-right:0.5rem;}
|
label.label-checkbox i.icon-form-checkbox{margin-right:0.3rem;}
|
||||||
label.label-checkbox i.current{background:url(../images/checkImg.png) no-repeat center center #F18D00;background-size:0.55rem;border:none;}
|
label.label-checkbox i.current{background:url(../images/checkImg.png) no-repeat center center #F18D00;background-size:0.55rem;border:none;}
|
||||||
.item-media i.check{width:24px;height:24px;border-radius:1.1rem;border:solid 1px #c7c7cc;margin:0;}
|
.item-media i.check{width:24px;height:24px;border-radius:1.1rem;border:solid 1px #c7c7cc;margin:0;}
|
||||||
.item-media i.checked{background:url(../images/checkImg.png) no-repeat center center #F18D00;border:solid 1px #F18D00;background-size:0.55rem;}
|
.item-media i.checked{background:url(../images/checkImg.png) no-repeat center center #F18D00;border:solid 1px #F18D00;background-size:0.55rem;}
|
||||||
@@ -443,7 +449,7 @@ input::-webkit-input-placeholder{
|
|||||||
.cardPrice01{border-bottom:solid 0.5rem #f3f3f3;}
|
.cardPrice01{border-bottom:solid 0.5rem #f3f3f3;}
|
||||||
.cardPrice01 .card-content{background:url(../images/cardBg01.png) no-repeat center bottom;background-size:100%;}
|
.cardPrice01 .card-content{background:url(../images/cardBg01.png) no-repeat center bottom;background-size:100%;}
|
||||||
.cardPrice01 .card-content-inner{padding-top:0.5rem;padding-bottom:4rem;}
|
.cardPrice01 .card-content-inner{padding-top:0.5rem;padding-bottom:4rem;}
|
||||||
.cardPrice01 .card-footer{width:100%;padding:0 0.75rem;background:none;position:absolute;bottom:0;}
|
.cardPrice01 .card-footer{width:100%;padding:0 0.75rem;background:none;position:absolute;bottom:0.3rem;}
|
||||||
.cardPrice01 .card-footer span{width:50%;border-right:none;text-align:left;}
|
.cardPrice01 .card-footer span{width:50%;border-right:none;text-align:left;}
|
||||||
.cardPrice01 .card-footer span:last-child{text-align:right;}
|
.cardPrice01 .card-footer span:last-child{text-align:right;}
|
||||||
|
|
||||||
@@ -464,7 +470,7 @@ input::-webkit-input-placeholder{
|
|||||||
.cardNearby .card-footer{font-size:0.65rem;color:#999;min-height:1.5rem;margin-top:-0.2rem;}
|
.cardNearby .card-footer{font-size:0.65rem;color:#999;min-height:1.5rem;margin-top:-0.2rem;}
|
||||||
|
|
||||||
.cardNearbyBox01{background:none;margin-top:-0.5rem;}
|
.cardNearbyBox01{background:none;margin-top:-0.5rem;}
|
||||||
.cardNearbyBox01 .cardNearby../../images{margin-bottom:0.25rem;}
|
.cardNearbyBox01 .cardNearbyWin{margin-bottom:0.25rem;}
|
||||||
.cardNearbyBox01 .cardNearby{border:solid 1px #e7e7e7;}
|
.cardNearbyBox01 .cardNearby{border:solid 1px #e7e7e7;}
|
||||||
.cardNearbyBox01 .cardNearby .card-header{padding-top:0.25rem;line-height:1.2rem;}
|
.cardNearbyBox01 .cardNearby .card-header{padding-top:0.25rem;line-height:1.2rem;}
|
||||||
|
|
||||||
@@ -497,13 +503,6 @@ input::-webkit-input-placeholder{
|
|||||||
.cardInfo01a .card-footer span strong{font-size:0.75rem;color:#333;font-weight:normal;}
|
.cardInfo01a .card-footer span strong{font-size:0.75rem;color:#333;font-weight:normal;}
|
||||||
|
|
||||||
.tag small{height:0.9rem;border:solid 1px #FFD038;border-radius:2px;padding:0 5px;font-size:80%;color:#F5A100;line-height:0.9rem;margin-left:0.2rem;display:inline-block;}
|
.tag small{height:0.9rem;border:solid 1px #FFD038;border-radius:2px;padding:0 5px;font-size:80%;color:#F5A100;line-height:0.9rem;margin-left:0.2rem;display:inline-block;}
|
||||||
/*
|
|
||||||
.tag small:nth-child(1){background:#E7F2FF;color:#76A5DD;margin-left:0;}
|
|
||||||
.tag small:nth-child(2){background:#E6F9E6;color:#6FBA6F;}
|
|
||||||
.tag small:nth-child(3){background:#FDF3DD;color:#E8AF27;}
|
|
||||||
.tag small:nth-child(4){background:#FDE9E2;color:#DD7B57;}
|
|
||||||
.tag small:nth-child(5){background:#F5EFFF;color:#A585D6;}
|
|
||||||
*/
|
|
||||||
|
|
||||||
.cardInfo01b .card-footer span{font-size:0.7rem;color:#999;display:inline-block;width:100%;word-wrap:break-word;white-space:normal;}
|
.cardInfo01b .card-footer span{font-size:0.7rem;color:#999;display:inline-block;width:100%;word-wrap:break-word;white-space:normal;}
|
||||||
|
|
||||||
@@ -531,6 +530,9 @@ input::-webkit-input-placeholder{
|
|||||||
.cardInfo03 .card-content-inner div.vote02 label{color:#8698F0;text-align:left;}
|
.cardInfo03 .card-content-inner div.vote02 label{color:#8698F0;text-align:left;}
|
||||||
.cardInfo03 .card-content-inner em{font-size:1rem;color:#F18D00;text-align:center;line-height:45px;position:absolute;left:48%;}
|
.cardInfo03 .card-content-inner em{font-size:1rem;color:#F18D00;text-align:center;line-height:45px;position:absolute;left:48%;}
|
||||||
|
|
||||||
|
.cardInfo01 .cardInfoPlaceholder{width:100%;height:180px;background:url(../images/cardInfoPlaceholderImg.png) no-repeat center center;background-size:20%;border:solid 1px #e7e7e7;}
|
||||||
|
.cardInfo02 .cardInfoPlaceholder{width:6.5rem;height:5.2rem;background:url(../images/cardInfoPlaceholderImg.png) no-repeat center center;background-size:30%;border:solid 1px #e7e7e7;}
|
||||||
|
|
||||||
.icon-eye-white{width:0.89rem;height:0.57rem;background:url(../images/icon-eye-white.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;}
|
.icon-eye-white{width:0.89rem;height:0.57rem;background:url(../images/icon-eye-white.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;}
|
||||||
.icon-eye-grey{width:0.85rem;height:0.6rem;background:url(../images/icon-eye-grey.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;}
|
.icon-eye-grey{width:0.85rem;height:0.6rem;background:url(../images/icon-eye-grey.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;}
|
||||||
.icon-eye-orange{width:0.7rem;height:0.5rem;background:url(../images/icon-eye-orange.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;}
|
.icon-eye-orange{width:0.7rem;height:0.5rem;background:url(../images/icon-eye-orange.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;}
|
||||||
@@ -546,7 +548,8 @@ input::-webkit-input-placeholder{
|
|||||||
/* 资讯 */
|
/* 资讯 */
|
||||||
.content-padded{margin:0.75rem;}
|
.content-padded{margin:0.75rem;}
|
||||||
.content-padded h1{font-size:1.1rem;line-height:1.6rem;letter-spacing:0.11rem;}
|
.content-padded h1{font-size:1.1rem;line-height:1.6rem;letter-spacing:0.11rem;}
|
||||||
.content-padded p{font-size:0.8rem;line-height:1.5rem;letter-spacing:0.06rem;text-align:justify;clear:both;overflow:hidden;}
|
.content-padded p{font-size:0.8rem;color:#333;line-height:1.5rem;letter-spacing:0.06rem;text-align:justify;clear:both;overflow:hidden;}
|
||||||
|
.content-padded p span{margin-left:1rem;}
|
||||||
.content-padded p small{font-size:0.65rem;color:#999;line-height:0.9rem;letter-spacing:0.07rem;float:left;}
|
.content-padded p small{font-size:0.65rem;color:#999;line-height:0.9rem;letter-spacing:0.07rem;float:left;}
|
||||||
.content-padded img{width:100%;}
|
.content-padded img{width:100%;}
|
||||||
|
|
||||||
@@ -612,14 +615,14 @@ input::-webkit-input-placeholder{
|
|||||||
.top{width:100%;padding:0.75rem 0.5rem;border-bottom:solid 1px #e7e7e7;overflow:hidden;position:absolute;top:0;z-index:10;}
|
.top{width:100%;padding:0.75rem 0.5rem;border-bottom:solid 1px #e7e7e7;overflow:hidden;position:absolute;top:0;z-index:10;}
|
||||||
.top.bar{height:auto;}
|
.top.bar{height:auto;}
|
||||||
.top.bar ~ .content{top:66px;}
|
.top.bar ~ .content{top:66px;}
|
||||||
.top .searchBox{background:#EFEFEF;border-radius:0.25rem;overflow:hidden;padding:0.3rem 0;}
|
.top .icon{color:#b4b4b4;padding:0;}
|
||||||
.top .searchBox .cityChoice{float:left;margin-left:0.5rem;margin-right:0.5rem;}
|
.top .searchBox{background:#EFEFEF;border-radius:0.25rem;padding:0.3rem 0;position:relative;}
|
||||||
.top .searchBox .cityChoice a{color:#333;display:inline-block;}
|
.top .searchBox .cityChoice{width:24%;height:26px;margin-left:0.5rem;border-right:solid 1px #e0e0e0;position:absolute;left:0;z-index:100;}
|
||||||
.top .searchBox .cityChoice i{width:10px;height:5px;background:url(../images/arrow_select.png) no-repeat center center;background-size:100%;display:inline-block;vertical-align:middle;margin-left:0.2rem;}
|
.top .searchBox .cityChoice a{color:#333;line-height:20px;display:inline-block;vertical-align:middle;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
||||||
.top .searchBox span{float:left;border-left:solid 1px #e0e0e0;overflow:hidden;}
|
.top .searchBox .cityChoice i{font-size:0.5rem;right:-0.3rem;}
|
||||||
.top .searchBox span input{width:85%;background:none;padding-left:0.25rem;display:inline-block;vertical-align:text-bottom;border:none;font-size:0.7rem;}
|
.top .searchBox span{width:100%;height:26px;display:block;position:relative;}
|
||||||
.top .searchBox span i{width:16px;height:16px;background:url(../images/search.png) no-repeat left center;background-size:100%;display:inline-block;vertical-align:text-bottom;margin-left:0.3rem;}
|
.top .searchBox span i{font-size:0.9rem;left:34%;padding-left:0.2rem;}
|
||||||
.top .searchBox .cancel{float:right;color:#2db0fc;}
|
.top .searchBox span input{width:90%;background:none;border:none;padding-left:35%;display:inline-block;vertical-align:middle;line-height:20px;}
|
||||||
|
|
||||||
.top01{background:#fff;border-bottom:solid 1px #e7e7e7;padding:0 0.5rem;}
|
.top01{background:#fff;border-bottom:solid 1px #e7e7e7;padding:0 0.5rem;}
|
||||||
.top01 .searchBox{background:none;}
|
.top01 .searchBox{background:none;}
|
||||||
@@ -645,8 +648,9 @@ input::-webkit-input-placeholder{
|
|||||||
.popup .bar .searchbar .searchbar-cancel{line-height:36px;}
|
.popup .bar .searchbar .searchbar-cancel{line-height:36px;}
|
||||||
.popup .bar .searchbar .col-5{margin-left:1.5%;margin-right:2.5%;}
|
.popup .bar .searchbar .col-5{margin-left:1.5%;margin-right:2.5%;}
|
||||||
.popup .bar .searchbar .icon-left{padding:0;line-height:38px;color:#666;}
|
.popup .bar .searchbar .icon-left{padding:0;line-height:38px;color:#666;}
|
||||||
.popup .bar .searchbar .search-input input{height:36px;border:solid 1px #e6e6ea;}
|
.popup .bar .searchbar .search-input input{height:36px;line-height:36px;border:solid 1px #e6e6ea;}
|
||||||
.bar.bar-nav01{height:auto;overflow:hidden;padding-left:0.5rem;padding-right:0.5rem;}
|
.bar.bar-nav01{height:auto;overflow:hidden;padding-left:0.5rem;padding-right:0.5rem;}
|
||||||
|
.bar.bar-nav01 .title{margin-left:-0.5rem;}
|
||||||
.bar.bar-nav01 .button-link{color:#F18D00;}
|
.bar.bar-nav01 .button-link{color:#F18D00;}
|
||||||
|
|
||||||
/* 底部 */
|
/* 底部 */
|
||||||
@@ -863,8 +867,11 @@ input::-webkit-input-placeholder{
|
|||||||
#chart01{height:270px;}
|
#chart01{height:270px;}
|
||||||
#chart01a{height:270px;}
|
#chart01a{height:270px;}
|
||||||
.topic .topicTitle > div.icon01Box{overflow:hidden;float:none;display:inline-block;vertical-align:middle;margin-left:-0.5rem;}
|
.topic .topicTitle > div.icon01Box{overflow:hidden;float:none;display:inline-block;vertical-align:middle;margin-left:-0.5rem;}
|
||||||
.icon-chart01a{width:1.1rem;height:1rem;background:url(../images/icon-chart01a.png) no-repeat center center;background-size:45%;float:left;padding:0 1rem;}
|
.icon-chart01a{width:1.1rem;height:1rem;background:url(../images/icon-chart01a.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;}
|
||||||
.icon-chart01{width:1.1rem;height:1rem;background:url(../images/icon-chart01.png) no-repeat center center;background-size:45%;float:left;padding:0 1rem;}
|
.icon-chart01{width:1.1rem;height:1rem;background:url(../images/icon-chart01.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;}
|
||||||
|
|
||||||
|
.icon-chart01a-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01a_common.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;}
|
||||||
|
.icon-chart01-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01_common.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;}
|
||||||
|
|
||||||
.scoreBox{height:130px;position:relative;}
|
.scoreBox{height:130px;position:relative;}
|
||||||
.score{width:250px;height:250px;margin:0 auto;margin-top:1rem;}
|
.score{width:250px;height:250px;margin:0 auto;margin-top:1rem;}
|
||||||
@@ -887,7 +894,6 @@ input::-webkit-input-placeholder{
|
|||||||
|
|
||||||
.topic .topicTitle > div.content-block{padding:0;margin:0;position:absolute;top:0.6rem;right:0;z-index:100;}
|
.topic .topicTitle > div.content-block{padding:0;margin:0;position:absolute;top:0.6rem;right:0;z-index:100;}
|
||||||
.topic .date{text-align:right;font-size:0.75rem;color:#ccc;padding-right:0.75rem;margin:0;}
|
.topic .date{text-align:right;font-size:0.75rem;color:#ccc;padding-right:0.75rem;margin:0;}
|
||||||
.buttons-row .button{height:1.35rem;line-height:1.35rem;}
|
|
||||||
.buttons-row01 .button{border-radius:0.1rem;margin-left:0.5rem;padding:0;font-size:0.65rem;}
|
.buttons-row01 .button{border-radius:0.1rem;margin-left:0.5rem;padding:0;font-size:0.65rem;}
|
||||||
.buttons-row01 .button:first-child,.buttons-row01 .button:last-child{border-radius:0.1rem;}
|
.buttons-row01 .button:first-child,.buttons-row01 .button:last-child{border-radius:0.1rem;}
|
||||||
.buttons-row01a .button{width:22%;}
|
.buttons-row01a .button{width:22%;}
|
||||||
@@ -947,19 +953,31 @@ input::-webkit-input-placeholder{
|
|||||||
.cardCity01 .card-header label{font-size:1rem;color:#333;}
|
.cardCity01 .card-header label{font-size:1rem;color:#333;}
|
||||||
.cardCity01 .card-header .button{top:0.6rem;}
|
.cardCity01 .card-header .button{top:0.6rem;}
|
||||||
.cardCity01 .card-content-inner{padding-bottom:5rem;}
|
.cardCity01 .card-content-inner{padding-bottom:5rem;}
|
||||||
.cardCity01 .card-footer{bottom:1.5rem;}
|
.cardCity01 .card-footer{bottom:1rem;}
|
||||||
|
|
||||||
.list-block.media-list.cityList ul:before{height:0;}
|
.cardCity02{background:url(../images/rankingBg.png) no-repeat center 5rem;background-size:100%;padding:0 0.75rem;padding-top:2.5rem;padding-bottom:0.8rem;border-bottom:none;position:relative;}
|
||||||
.list-block.media-list.cityList ul:after{height:0;}
|
.cardCity02 .card-footer{background:rgba(255,255,255,0.7);border:solid 1px #e7e7e7;border-radius:0.4rem;padding-top:1.5rem;padding-bottom:0.5rem;bottom:0;}
|
||||||
.list-block.media-list.cityList .item-inner{padding-right:0;padding-top:0;padding-bottom:0;min-height:1.5rem;}
|
.cardCity02 .card-footer span{border-right:0;}
|
||||||
.list-block.media-list.cityList .item-inner:after{height:0;}
|
.cardCity02 .card-footer span em{color:#EB5F34;display:block;}
|
||||||
.list-block.media-list.cityList .item-subtitle{color:#333;}
|
.cardCity02 .card-footer span:nth-child(2) em{color:#333;}
|
||||||
.list-block.media-list.cityList ul li:nth-child(1) .item-subtitle{color:#999;}
|
.cardCity02 .card-footer img{width:3.65rem;position:absolute;top:-1.825rem;left:50%;margin-left:-1.825rem;}
|
||||||
.list-block.media-list.cityList .item-subtitle div:first-child{margin-left:0;}
|
|
||||||
.list-block.media-list.cityList .item-subtitle div.col-20:last-child em{color:#F18D00;}
|
.list-block.cityList ul:before{height:0;}
|
||||||
.list-block.media-list.cityList .item-subtitle div.col-20{position:relative;}
|
.list-block.cityList ul:after{height:0;}
|
||||||
.list-block.media-list.cityList .item-subtitle div.col-20 .button{width:auto;height:1.1rem;top:0;left:0;right:inherit;font-style:normal;line-height:1rem;}
|
.list-block.cityList ul.list-container{margin-bottom:0.5rem;}
|
||||||
.list-block.media-list.cityList .item-subtitle div.col-25 .star .icon{margin-right:0;}
|
.list-block.cityList .item-inner{padding-right:0;padding-top:0;padding-bottom:0;min-height:1.5rem;}
|
||||||
|
.list-block.cityList .item-inner:after{height:0;}
|
||||||
|
.list-block.cityList .item-subtitle{color:#333;}
|
||||||
|
.list-block.cityList ul li:nth-child(1) .item-subtitle div{color:#999;}
|
||||||
|
.list-block.cityList ul.list-container > div .item-subtitle div{color:#999;}
|
||||||
|
.list-block.cityList .item-subtitle div:first-child{margin-left:0;}
|
||||||
|
.list-block.cityList .item-subtitle div.col-20{position:relative;height:1.1rem;}
|
||||||
|
.list-block.cityList .item-subtitle div.col-20:last-child em{color:#F18D00;}
|
||||||
|
.list-block.cityList .item-subtitle div.col-20 .button{width:auto;height:1.1rem;top:0;left:0;right:inherit;font-style:normal;line-height:1rem;}
|
||||||
|
.list-block.cityList .item-subtitle div.col-25 .star .icon{margin-right:0;}
|
||||||
|
.list-block.cityList .item-subtitle div em{font-size:0.7rem;}
|
||||||
|
.list-block.cityList .item-subtitle div img{width:1rem;margin:0 auto;}
|
||||||
|
.list-block.cityList > p{font-size:0.7rem;color:#999;text-align:center;}
|
||||||
|
|
||||||
.list-block.dataList ul:before{height:0;}
|
.list-block.dataList ul:before{height:0;}
|
||||||
.list-block.dataList ul:after{height:0;}
|
.list-block.dataList ul:after{height:0;}
|
||||||
@@ -1002,19 +1020,12 @@ input::-webkit-input-placeholder{
|
|||||||
.cardRankingBox01 .cardRanking{width:33.33%;border:none;border-radius:0;margin:0;}
|
.cardRankingBox01 .cardRanking{width:33.33%;border:none;border-radius:0;margin:0;}
|
||||||
.cardRankingBox01 .cardRanking:last-child{border-right:none;}
|
.cardRankingBox01 .cardRanking:last-child{border-right:none;}
|
||||||
.cardRankingBox01 .cardRanking .card-header:first-child{border-right:none;padding:0;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;}
|
.cardRankingBox01 .cardRanking .card-header:first-child{border-right:none;padding:0;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;}
|
||||||
.cardRankingBox01 .cardRanking .card-header{border-right:solid 1px #e7e7e7;padding-top:0;}
|
.cardRankingBox01 .cardRanking .card-header{border-right:solid 1px #e7e7e7;padding-top:0;color:#333;}
|
||||||
.cardRankingBox01 .cardRanking .card-header em{font-size:0.85rem;color:#F18D00;margin-right:0.2rem;}
|
.cardRankingBox01 .cardRanking .card-header em{font-size:0.85rem;color:#F18D00;margin-right:0.2rem;}
|
||||||
.cardRankingBox01 .cardRanking .card-content-inner{color:#999;border-right:solid 1px #e7e7e7;}
|
.cardRankingBox01 .cardRanking .card-content-inner{color:#999;border-right:solid 1px #e7e7e7;}
|
||||||
.cardRankingBox01 .cardRanking .card-footer{padding:0;border-right:solid 1px #e7e7e7;}
|
.cardRankingBox01 .cardRanking .card-footer{padding:0;border-right:solid 1px #e7e7e7;}
|
||||||
.cardRankingBox01 .cardRanking .card-footer em{color:#EB5F34;}
|
.cardRankingBox01 .cardRanking .card-footer em{color:#EB5F34;}
|
||||||
|
|
||||||
/*
|
|
||||||
.swiper-container{height:auto;padding-bottom:0;}
|
|
||||||
.swiper-pagination-bullet{background:none;border:solid 1px #d7d7d7;opacity:1;}
|
|
||||||
.swiper-pagination-bullet-active{background:#F18D00;border:solid 1px #F18D00;}
|
|
||||||
.swiper-container-horizontal > .swiper-pagination{top:11.2rem;bottom:inherit;}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* 贷款 */
|
/* 贷款 */
|
||||||
.banner{width:100%;height:80px;background:url(../images/banner.png);background-size:100%;margin-bottom:0.5rem;}
|
.banner{width:100%;height:80px;background:url(../images/banner.png);background-size:100%;margin-bottom:0.5rem;}
|
||||||
.banner .content-block{padding:0 2rem;padding-top:1rem;}
|
.banner .content-block{padding:0 2rem;padding-top:1rem;}
|
||||||
@@ -1065,7 +1076,7 @@ input::-webkit-input-placeholder{
|
|||||||
.contentSuggest .noData a{text-decoration:underline;}
|
.contentSuggest .noData a{text-decoration:underline;}
|
||||||
.contentSuggest .noData a.button{text-decoration:none;}
|
.contentSuggest .noData a.button{text-decoration:none;}
|
||||||
|
|
||||||
.topBg02{background:#ecf6ff;border-bottom:solid 1px #e7e7e7;color:#333;text-align:justify;padding-top:1rem;margin-bottom:0.5rem;}
|
.topBg02{background:#fff;border-bottom:solid 1px #e7e7e7;color:#333;text-align:justify;padding-top:1rem;}
|
||||||
.topBg02 p{font-size:0.75rem;}
|
.topBg02 p{font-size:0.75rem;}
|
||||||
.topBg02 p label{color:#999;font-size:0.75rem;}
|
.topBg02 p label{color:#999;font-size:0.75rem;}
|
||||||
.topBg02 p em{color:#EB5F34;font-size:0.75rem;}
|
.topBg02 p em{color:#EB5F34;font-size:0.75rem;}
|
||||||
@@ -1138,9 +1149,11 @@ input::-webkit-input-placeholder{
|
|||||||
.contentText{background:#fff;}
|
.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{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 > 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{text-align:center;}
|
||||||
.topBg01 p .button{width:4rem;margin:0 auto;}
|
.topBg01 > p label{font-size:0.7rem;color:#333;display:block;margin-top:0.6rem;position:relative;}
|
||||||
|
.topBg01 > p label a{font-size:0.7rem;position:absolute;right:0;top:0;}
|
||||||
|
.topBg01 > p .button{width:4rem;margin:0 auto;}
|
||||||
|
|
||||||
.tabs .noData img{width:30%;margin:0 auto;margin-top:3rem;}
|
.tabs .noData img{width:30%;margin:0 auto;margin-top:3rem;}
|
||||||
|
|
||||||
@@ -1148,6 +1161,31 @@ input::-webkit-input-placeholder{
|
|||||||
.topic .topicContent .topicContent_center.homeWin{width:540px;overflow:hidden;}
|
.topic .topicContent .topicContent_center.homeWin{width:540px;overflow:hidden;}
|
||||||
.topic .topicContent .topicContent_center.homeWin div{width:90px;}
|
.topic .topicContent .topicContent_center.homeWin div{width:90px;}
|
||||||
|
|
||||||
|
/* 税费计算&房贷计算 */
|
||||||
|
.buttons-tab .button{color:#999;}
|
||||||
|
.cardReference{margin:0;padding-left:0.75rem;}
|
||||||
|
.cardReference div{padding-left:0;}
|
||||||
|
.cardReference div:before,.cardReference div:after{height:1px;}
|
||||||
|
.cardReference .card-header{font-size:0.75rem;}
|
||||||
|
.cardReference .card-footer{color:#333;}
|
||||||
|
.cardReference .card-footer span{font-size:0.75rem;color:#999;width:50%;}
|
||||||
|
.cardReference .card-footer span em{font-size:0.75rem;}
|
||||||
|
.cardReference + .content-block-title{font-size:0.6rem;}
|
||||||
|
.cardReference .chart{width:150px;height:150px;margin:0 auto;}
|
||||||
|
.legendBox p{margin:0.5rem 0;}
|
||||||
|
.legendBox p label{font-size:0.75rem;color:#999;text-align:right;display:inline-block;width:50%;}
|
||||||
|
.legendBox p label i{width:0.4rem;height:0.4rem;border-radius:100%;display:inline-block;margin-right:0.3rem;}
|
||||||
|
.legendBox p span{font-size:0.75rem;display:inline-block;width:50%;}
|
||||||
|
|
||||||
|
/* 分享 */
|
||||||
|
.shareBox{height:66px;padding-left:0;padding-right:0.5rem;border-top:solid 1px #e7e7e7;bottom:0;}
|
||||||
|
.shareBox ul:before{height:0;}
|
||||||
|
.shareBox .list-block .item-media img{width:2.3rem;height:2.3rem;}
|
||||||
|
.shareBox .list-block .item-title{font-size:0.75rem;line-height:1.2rem;}
|
||||||
|
.shareBox .list-block .item-title em{color:#F18D00;}
|
||||||
|
.shareBox .button{top:0.5rem;}
|
||||||
|
.shareBox .icon-close{width:10px;height:10px;background:url(../images/icon-close.png) no-repeat center center;background-size:100%;position:absolute;top:0.25rem;right:0.25rem;}
|
||||||
|
|
||||||
/* 出错页面 */
|
/* 出错页面 */
|
||||||
.contentError{padding-top:30%;}
|
.contentError{padding-top:30%;}
|
||||||
.contentError img{width:30%;margin:0 auto;}
|
.contentError img{width:30%;margin:0 auto;}
|
||||||
@@ -1362,11 +1400,15 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
|
|
||||||
/* 自适应 */
|
/* 自适应 */
|
||||||
@media(max-width:414px){
|
@media(max-width:414px){
|
||||||
|
.top .searchBox .cityChoice{width:24%;}
|
||||||
|
.top .searchBox span i{left:28%;}
|
||||||
|
.top .searchBox span input{padding-left:29%;}
|
||||||
.list-block .item-title span.c3a{max-width:220px;}
|
.list-block .item-title span.c3a{max-width:220px;}
|
||||||
.textAlignLeft{left:88px;}
|
.textAlignLeft{left:88px;}
|
||||||
.textAlignLeft01{left:110px;}
|
.textAlignLeft01{left:110px;}
|
||||||
label.spacing01{margin-right:41px;}
|
label.spacing01{margin-right:41px;}
|
||||||
label.spacing02{margin-right:42px;}
|
label.spacing02{margin-right:42px;}
|
||||||
|
small.spacing{letter-spacing:32px;}
|
||||||
small.spacing01a{margin-right:3.7px;}
|
small.spacing01a{margin-right:3.7px;}
|
||||||
.rangeNote span.span01{margin-right:8.5%;}
|
.rangeNote span.span01{margin-right:8.5%;}
|
||||||
.rangeNote span.span01a{margin-left:8%;}
|
.rangeNote span.span01a{margin-left:8%;}
|
||||||
@@ -1379,9 +1421,13 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
.guideBox02 .link{margin-top:17.7rem;}
|
.guideBox02 .link{margin-top:17.7rem;}
|
||||||
}
|
}
|
||||||
@media(max-width:375px){
|
@media(max-width:375px){
|
||||||
|
.top .searchBox .cityChoice{width:26%;}
|
||||||
|
.top .searchBox span i{left:29%;}
|
||||||
|
.top .searchBox span input{padding-left:30%;}
|
||||||
.list-block .item-title span.c3a{max-width:180px;}
|
.list-block .item-title span.c3a{max-width:180px;}
|
||||||
label.spacing01{margin-right:11px;}
|
label.spacing01{margin-right:11px;}
|
||||||
label.spacing02{margin-right:12px;}
|
label.spacing02{margin-right:12px;}
|
||||||
|
small.spacing{letter-spacing:28px;}
|
||||||
.rangeNote span.span01{margin-right:8.5%;}
|
.rangeNote span.span01{margin-right:8.5%;}
|
||||||
.rangeNote span.span01a{margin-left:9%;}
|
.rangeNote span.span01a{margin-left:9%;}
|
||||||
.rangeNote span.span02{margin-right:8%;}
|
.rangeNote span.span02{margin-right:8%;}
|
||||||
@@ -1390,6 +1436,10 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
.rangeNote span.span05{margin-right:13%;}
|
.rangeNote span.span05{margin-right:13%;}
|
||||||
}
|
}
|
||||||
@media(max-width:320px){
|
@media(max-width:320px){
|
||||||
|
.top .searchBox .cityChoice{width:30%;}
|
||||||
|
.top .searchBox span i{left:34%;}
|
||||||
|
.top .searchBox span input{padding-left:35%;}
|
||||||
|
.topic .topicTitle{font-size:0.75rem;}
|
||||||
.list-block .item-title span.c3a{max-width:112px;}
|
.list-block .item-title span.c3a{max-width:112px;}
|
||||||
.list-block .item-title label{max-width:100px;}
|
.list-block .item-title label{max-width:100px;}
|
||||||
label.spacing01{margin-right:11px;}
|
label.spacing01{margin-right:11px;}
|
||||||
@@ -1405,8 +1455,10 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
.cardInfo02 img{width:5rem;height:4rem;}
|
.cardInfo02 img{width:5rem;height:4rem;}
|
||||||
.cardInfo02 .item-subtitle{margin-top:0;}
|
.cardInfo02 .item-subtitle{margin-top:0;}
|
||||||
.cardCity .card-footer span em strong{font-size:0.9rem;}
|
.cardCity .card-footer span em strong{font-size:0.9rem;}
|
||||||
.list-block.media-list.cityList ul li:nth-child(1) .item-subtitle div{font-size:0.6rem;}
|
.list-block.cityList ul li:nth-child(1) .item-subtitle div{font-size:0.6rem;}
|
||||||
|
.list-block.cityList ul.list-container > div .item-subtitle div{font-size:0.6rem;}
|
||||||
.adBoxApp{width:88%;}
|
.adBoxApp{width:88%;}
|
||||||
|
.bar-nav01c + .picker-modal-inner .picker-items-col .picker-item{padding:0 5rem;}
|
||||||
}
|
}
|
||||||
@media(min-height:750px){
|
@media(min-height:750px){
|
||||||
.bar-tab{bottom:1.7rem;}
|
.bar-tab{bottom:1.7rem;}
|
||||||
@@ -1417,11 +1469,13 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
}
|
}
|
||||||
@media only screen and (-webkit-min-device-pixel-ratio:2){
|
@media only screen and (-webkit-min-device-pixel-ratio:2){
|
||||||
.list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
.list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
||||||
.buttons-tab:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
.bar:after,.buttons-tab:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
||||||
|
.card-header:after,.card-footer:before{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
||||||
}
|
}
|
||||||
@media only screen and (-webkit-min-device-pixel-ratio:3){
|
@media only screen and (-webkit-min-device-pixel-ratio:3){
|
||||||
.list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
.list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
||||||
.buttons-tab:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
.bar:after,.buttons-tab:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
||||||
|
.card-header:after,.card-footer:before{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -38,12 +38,31 @@
|
|||||||
<div class="content-block">
|
<div class="content-block">
|
||||||
<p>
|
<p>
|
||||||
<a onclick="plus.runtime.restart()" class="button button-big button-round theme">重启应用</a>
|
<a onclick="plus.runtime.restart()" class="button button-big button-round theme">重启应用</a>
|
||||||
<a onclick="back(),plus.nativeUI.closeWaiting();" class="button button-big button-round theme">返回刷新</a>
|
<a onclick="again()" class="button button-big button-round theme" id="bakBtn">返回刷新</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="js/common.js" ></script>
|
<script type="text/javascript" src="js/common.js" ></script>
|
||||||
|
<script>
|
||||||
|
var flag;
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
function onPlusReady() {
|
||||||
|
var self = plus.webview.currentWebview();
|
||||||
|
flag = self.flag;
|
||||||
|
if(flag == null) {
|
||||||
|
document.getElementById("bakBtn").setAttribute("style", "display: none;")
|
||||||
|
}
|
||||||
|
plus.nativeUI.closeWaiting();
|
||||||
|
}
|
||||||
|
|
||||||
|
function again(){
|
||||||
|
if(flag){
|
||||||
|
back();
|
||||||
|
plus.nativeUI.closeWaiting();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 594 B |
|
After Width: | Height: | Size: 920 B |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 18 KiB |
@@ -22,9 +22,10 @@ axios.interceptors.response.use(function (response) {
|
|||||||
return response;
|
return response;
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if(error=="Error: Network Error" || error.toString().indexOf('timeout') > -1){
|
if(error=="Error: Network Error" || error.toString().indexOf('timeout') > -1){
|
||||||
if(plus.webview.getWebviewById('error.html')==null){
|
if(plus.webview.getWebviewById('error.html')==null){
|
||||||
clicked('error.html',true,false,{},{},function(){
|
clicked('error.html',true,false,{},{flag:1},function(){
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
var colorList = ['#c23531', '#2f4554', '#61a0a8', '#d48265', '#91c7ae', '#749f83', '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3'];
|
var colorList = ['#c23531', '#2f4554', '#61a0a8', '#d48265', '#91c7ae', '#749f83', '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3'];
|
||||||
var labelFont = 'bold 12px Sans-serif';
|
var labelFont = 'bold 12px Sans-serif';
|
||||||
|
var date = new Date();
|
||||||
|
var year = date.getFullYear();
|
||||||
|
var month = date.getMonth()+1;
|
||||||
|
|
||||||
var dates;
|
var dates;
|
||||||
var data;
|
var data;
|
||||||
@@ -114,7 +117,8 @@ function clickLineChart(type){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 图表切换 */
|
/* 图表切换 */
|
||||||
function lineChart() {
|
|
||||||
|
/*function lineChart() {
|
||||||
mode = "kLine"
|
mode = "kLine"
|
||||||
$(".icon-chart01a").hide();
|
$(".icon-chart01a").hide();
|
||||||
$(".icon-chart01").show();
|
$(".icon-chart01").show();
|
||||||
@@ -135,7 +139,33 @@ function kLineChart() {
|
|||||||
$("#chart01a").show();
|
$("#chart01a").show();
|
||||||
$("#chart01").hide();
|
$("#chart01").hide();
|
||||||
loadLineData(city, region, name, type);
|
loadLineData(city, region, name, type);
|
||||||
};
|
};*/
|
||||||
|
|
||||||
|
$("body").delegate(".icon-chart01a-no", "click", function () {
|
||||||
|
$(this).addClass("icon-chart01a");
|
||||||
|
$(this).removeClass("icon-chart01a-no");
|
||||||
|
$(this).parent().find(".icon-chart01").addClass("icon-chart01-no")
|
||||||
|
$(this).parent().find("i").removeClass("icon-chart01")
|
||||||
|
mode = "line"
|
||||||
|
var type = $("#trendDiv1 a.active").attr("t-v");
|
||||||
|
$("#chart01a").show();
|
||||||
|
$("#chart01").hide();
|
||||||
|
loadLineData(city, region, name, type);
|
||||||
|
})
|
||||||
|
|
||||||
|
$("body").delegate(".icon-chart01-no", "click", function () {
|
||||||
|
|
||||||
|
$(this).addClass("icon-chart01");
|
||||||
|
$(this).removeClass("icon-chart01-no");
|
||||||
|
$(this).parent().find(".icon-chart01a").addClass("icon-chart01a-no")
|
||||||
|
$(this).parent().find("i").removeClass("icon-chart01a")
|
||||||
|
mode = "kLine"
|
||||||
|
var type = $("#trendDiv1 a.active").attr("t-v");
|
||||||
|
$("#chart01a").hide();
|
||||||
|
$("#chart01").show();
|
||||||
|
loadKLineData(city, region, name, type);
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
function showLoadRentTrends(type) {
|
function showLoadRentTrends(type) {
|
||||||
@@ -199,7 +229,16 @@ function doLoadKLineData(city, region, name, type){
|
|||||||
var counts = [];
|
var counts = [];
|
||||||
var times = []
|
var times = []
|
||||||
var haveCount = false;
|
var haveCount = false;
|
||||||
|
var curMonth;
|
||||||
|
if(month<10){
|
||||||
|
curMonth = year+"-0"+month;
|
||||||
|
}else{
|
||||||
|
curMonth = year+"-"+month;
|
||||||
|
}
|
||||||
for(var d in datas){
|
for(var d in datas){
|
||||||
|
if(d == curMonth){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
times.push(d);
|
times.push(d);
|
||||||
|
|
||||||
var prices = new Array();
|
var prices = new Array();
|
||||||
@@ -268,7 +307,6 @@ function showTrends(v){
|
|||||||
|
|
||||||
|
|
||||||
var option01 = {
|
var option01 = {
|
||||||
animation: false,
|
|
||||||
color: colorList,
|
color: colorList,
|
||||||
title: {
|
title: {
|
||||||
text: null,
|
text: null,
|
||||||
@@ -280,9 +318,6 @@ var option01 = {
|
|||||||
data: ['均价']
|
data: ['均价']
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
triggerOn: 'none',
|
|
||||||
transitionDuration: 0,
|
|
||||||
confine: true,
|
|
||||||
bordeRadius: 4,
|
bordeRadius: 4,
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
borderColor: '#333',
|
borderColor: '#333',
|
||||||
@@ -292,19 +327,21 @@ var option01 = {
|
|||||||
color: '#333'
|
color: '#333'
|
||||||
},
|
},
|
||||||
formatter: function (params) {
|
formatter: function (params) {
|
||||||
var res = params[0].seriesName + ' ' + params[0].name;
|
var res = params.seriesName + ' ' + params.name;
|
||||||
res += '<br/> 月初 : ' + params[0].value[1]+ '元/㎡';
|
var vals = params.value;
|
||||||
res += '<br/> 月末 : ' + params[0].value[2]+ '元/㎡';
|
if(vals == undefined){
|
||||||
res += '<br/> 最低 : ' + params[0].value[3]+ '元/㎡';
|
var obj = params[0];
|
||||||
res += '<br/> 最高 : ' + params[0].value[4]+ '元/㎡';
|
res = obj.seriesName + ' ' + obj.name;
|
||||||
return res;
|
vals = obj.value;
|
||||||
},
|
}
|
||||||
position: function (pos, params, el, elRect, size) {
|
if(vals){
|
||||||
var obj = {
|
res += '<br/> 月初 : ' + vals[1]+ '元/㎡';
|
||||||
top: 60
|
res += '<br/> 月末 : ' + vals[2]+ '元/㎡';
|
||||||
};
|
res += '<br/> 最低 : ' + vals[3]+ '元/㎡';
|
||||||
obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5;
|
res += '<br/> 最高 : ' + vals[4]+ '元/㎡';
|
||||||
return obj;
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
@@ -313,20 +350,10 @@ var option01 = {
|
|||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
dataZoom: [{
|
dataZoom: [{
|
||||||
type: 'slider',
|
|
||||||
xAxisIndex: [0, 1],
|
|
||||||
realtime: false,
|
|
||||||
start: 1,
|
|
||||||
end: 99,
|
|
||||||
top: 5,
|
|
||||||
height: 20,
|
|
||||||
handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
|
|
||||||
handleSize: '120%'
|
|
||||||
}, {
|
|
||||||
type: 'inside',
|
type: 'inside',
|
||||||
xAxisIndex: [0, 1],
|
xAxisIndex: [0, 1],
|
||||||
start: 40,
|
start: 1,
|
||||||
end: 70,
|
end: 99,
|
||||||
top: 30,
|
top: 30,
|
||||||
height: 20
|
height: 20
|
||||||
}],
|
}],
|
||||||
@@ -369,7 +396,7 @@ var option01 = {
|
|||||||
triggerTooltip: true,
|
triggerTooltip: true,
|
||||||
handle: {
|
handle: {
|
||||||
show: true,
|
show: true,
|
||||||
margin: -70,
|
margin: -90,
|
||||||
color: '#F18D00'
|
color: '#F18D00'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -412,7 +439,7 @@ var option01 = {
|
|||||||
grid: [{
|
grid: [{
|
||||||
left: 20,
|
left: 20,
|
||||||
right: 20,
|
right: 20,
|
||||||
top: 60,
|
top: 30,
|
||||||
height: 120
|
height: 120
|
||||||
}, {
|
}, {
|
||||||
left: 20,
|
left: 20,
|
||||||
@@ -763,7 +790,7 @@ function doLoadLineData(city, region, name, type){
|
|||||||
function showLineChart(times, datas){
|
function showLineChart(times, datas){
|
||||||
var option01b = {
|
var option01b = {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
triggerOn: 'none',
|
//triggerOn: 'none',
|
||||||
transitionDuration: 0,
|
transitionDuration: 0,
|
||||||
confine: true,
|
confine: true,
|
||||||
bordeRadius: 4,
|
bordeRadius: 4,
|
||||||
@@ -791,11 +818,11 @@ function showLineChart(times, datas){
|
|||||||
y: 10,
|
y: 10,
|
||||||
x2: 20,
|
x2: 20,
|
||||||
y2: 60,
|
y2: 60,
|
||||||
top: 60,
|
top: 30,
|
||||||
height: 120
|
height: 120
|
||||||
},
|
},
|
||||||
color: ['#78CDE6'],
|
color: ['#78CDE6'],
|
||||||
dataZoom: [{
|
/*dataZoom: [{
|
||||||
realtime: false,
|
realtime: false,
|
||||||
start: 1,
|
start: 1,
|
||||||
end: 99,
|
end: 99,
|
||||||
@@ -803,7 +830,7 @@ function showLineChart(times, datas){
|
|||||||
height: 20,
|
height: 20,
|
||||||
handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
|
handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
|
||||||
handleSize: '120%'
|
handleSize: '120%'
|
||||||
}],
|
}],*/
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
String.prototype.startWith=function(str){
|
||||||
|
var reg=new RegExp("^"+str);
|
||||||
|
return reg.test(this);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送处理业务逻辑
|
* 推送处理业务逻辑
|
||||||
* yinjihuan
|
* yinjihuan
|
||||||
@@ -27,53 +32,120 @@ document.addEventListener("plusready", function() {
|
|||||||
if (payload.type == "0") {
|
if (payload.type == "0") {
|
||||||
plus.ui.alert(title+"\n"+content);
|
plus.ui.alert(title+"\n"+content);
|
||||||
} else if (payload.type == "1") {
|
} else if (payload.type == "1") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
|
||||||
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
plus.nativeUI.confirm(content, function(e){
|
||||||
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
if (e.index==0) {
|
||||||
}else{
|
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||||
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||||
}
|
}else{
|
||||||
var targetTab = payload.url+".html";
|
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||||
var defaultTab = document.getElementById(targetTab);
|
}
|
||||||
//模拟首页点击
|
var targetTab = payload.url+".html";
|
||||||
mui.trigger(defaultTab, 'tap');
|
var defaultTab = document.getElementById(targetTab);
|
||||||
//切换选项卡高亮
|
//模拟首页点击
|
||||||
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
mui.trigger(defaultTab, 'tap');
|
||||||
if (defaultTab != current) {
|
//切换选项卡高亮
|
||||||
current.classList.remove('mui-active');
|
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||||
defaultTab.classList.add('mui-active');
|
if (defaultTab != current) {
|
||||||
|
current.classList.remove('mui-active');
|
||||||
|
defaultTab.classList.add('mui-active');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
}, title, ["查看","忽略"] );
|
||||||
|
|
||||||
|
|
||||||
} else if (payload.type == "2") {
|
} else if (payload.type == "2") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
if (payload.url.startWith("http")) {
|
||||||
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
|
||||||
});
|
plus.nativeUI.confirm(content, function(e){
|
||||||
|
if (e.index==0) {
|
||||||
|
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
||||||
|
}
|
||||||
|
}, title, ["查看","忽略"] );
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// 处理打开app中的二级页面,一级页面在type=1中已经处理了,如果有http的地址就是打开外部页面
|
||||||
|
// 否则就是打开app内部页面
|
||||||
|
plus.nativeUI.confirm(content, function(e){
|
||||||
|
if (e.index==0) {
|
||||||
|
var url = payload.url;
|
||||||
|
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||||
|
var openUrl = url.substring(0, sindex);
|
||||||
|
var paramStr = url.substring(sindex+1);
|
||||||
|
var jsonData = {};
|
||||||
|
var parray = paramStr.split('&')
|
||||||
|
for(var i=0;i<parray.length;i++){
|
||||||
|
var subArray = parray[i].split('=')
|
||||||
|
if(parray[i] != ""){
|
||||||
|
if(subArray.length > 0) {
|
||||||
|
jsonData[subArray[0]] = subArray[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
clicked(openUrl,true,false,{},jsonData)
|
||||||
|
}
|
||||||
|
}, title, ["查看","忽略"] );
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (payload.type == "0") {
|
if (payload.type == "0") {
|
||||||
plus.ui.alert(content);
|
plus.ui.alert(content);
|
||||||
} else if (payload.type == "1") {
|
} else if (payload.type == "1") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
plus.nativeUI.confirm(content, function(e){
|
||||||
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
if (e.index==0) {
|
||||||
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||||
}else{
|
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||||
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
}else{
|
||||||
}
|
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||||
var targetTab = payload.url+".html";
|
}
|
||||||
var defaultTab = document.getElementById(targetTab);
|
var targetTab = payload.url+".html";
|
||||||
//模拟首页点击
|
var defaultTab = document.getElementById(targetTab);
|
||||||
mui.trigger(defaultTab, 'tap');
|
//模拟首页点击
|
||||||
//切换选项卡高亮
|
mui.trigger(defaultTab, 'tap');
|
||||||
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
//切换选项卡高亮
|
||||||
if (defaultTab != current) {
|
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||||
current.classList.remove('mui-active');
|
if (defaultTab != current) {
|
||||||
defaultTab.classList.add('mui-active');
|
current.classList.remove('mui-active');
|
||||||
|
defaultTab.classList.add('mui-active');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
}, title, ["查看","忽略"] );
|
||||||
|
|
||||||
} else if (payload.type == "2") {
|
} else if (payload.type == "2") {
|
||||||
plus.ui.alert(content,function(){
|
if (payload.url.startWith("http")) {
|
||||||
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
|
||||||
});
|
plus.nativeUI.confirm(content, function(e){
|
||||||
|
if (e.index==0) {
|
||||||
|
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
||||||
|
}
|
||||||
|
}, title, ["查看","忽略"] );
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// 处理打开app中的二级页面,一级页面在type=1中已经处理了,如果有http的地址就是打开外部页面
|
||||||
|
// 否则就是打开app内部页面
|
||||||
|
plus.nativeUI.confirm(content, function(e){
|
||||||
|
if (e.index==0) {
|
||||||
|
var url = payload.url;
|
||||||
|
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||||
|
var openUrl = url.substring(0, sindex);
|
||||||
|
var paramStr = url.substring(sindex+1);
|
||||||
|
var jsonData = {};
|
||||||
|
var parray = paramStr.split('&')
|
||||||
|
for(var i=0;i<parray.length;i++){
|
||||||
|
var subArray = parray[i].split('=')
|
||||||
|
if(parray[i] != ""){
|
||||||
|
if(subArray.length > 0) {
|
||||||
|
jsonData[subArray[0]] = subArray[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
clicked(openUrl,true,false,{},jsonData)
|
||||||
|
}
|
||||||
|
}, title, ["查看","忽略"] );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,36 +165,54 @@ document.addEventListener("plusready", function() {
|
|||||||
if (payload.type == "0") {
|
if (payload.type == "0") {
|
||||||
plus.ui.alert(title+"\n"+content);
|
plus.ui.alert(title+"\n"+content);
|
||||||
} else if (payload.type == "1") {
|
} else if (payload.type == "1") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
|
||||||
if (payload.url == '/house/index') {
|
|
||||||
plus.webview.show('yfindex.html');
|
|
||||||
} else {
|
|
||||||
plus.webview.show(BASE_PATH + payload.url);
|
|
||||||
}
|
|
||||||
|
|
||||||
//切换选项卡高亮
|
plus.nativeUI.confirm(content, function(e){
|
||||||
var defaultTab = document.getElementById("defaultTab");
|
if (e.index==0) {
|
||||||
var quotations = document.getElementById("quotations");
|
if (payload.url == '/house/index') {
|
||||||
var selfInfo = document.getElementById("selfInfo");
|
plus.webview.show('yfindex.html');
|
||||||
defaultTab.classList.remove("mui-active");
|
} else {
|
||||||
quotations.classList.remove("mui-active");
|
plus.webview.show(BASE_PATH + payload.url);
|
||||||
selfInfo.classList.remove("mui-active");
|
}
|
||||||
if (payload.url == '/quotations/index') {
|
|
||||||
quotations.classList.add("mui-active");
|
//切换选项卡高亮
|
||||||
} else if(payload.url == '/selfInfo/index') {
|
var defaultTab = document.getElementById("defaultTab");
|
||||||
selfInfo.classList.add("mui-active");
|
var quotations = document.getElementById("quotations");
|
||||||
} else {
|
var selfInfo = document.getElementById("selfInfo");
|
||||||
defaultTab.classList.add("mui-active");
|
defaultTab.classList.remove("mui-active");
|
||||||
}
|
quotations.classList.remove("mui-active");
|
||||||
});
|
selfInfo.classList.remove("mui-active");
|
||||||
|
if (payload.url == '/quotations/index') {
|
||||||
|
quotations.classList.add("mui-active");
|
||||||
|
} else if(payload.url == '/selfInfo/index') {
|
||||||
|
selfInfo.classList.add("mui-active");
|
||||||
|
} else {
|
||||||
|
defaultTab.classList.add("mui-active");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, title, ["查看","忽略"] );
|
||||||
|
|
||||||
} else if (payload.type == "2") {
|
} else if (payload.type == "2") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
plus.nativeUI.confirm(content, function(e){
|
||||||
openUrl(BASE_PATH+'/message/openView?url='+payload.url);
|
if (e.index==0) {
|
||||||
});
|
var url = payload.url;
|
||||||
|
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||||
|
var openUrl = url.substring(0, sindex);
|
||||||
|
var paramStr = url.substring(sindex+1);
|
||||||
|
var jsonData = {};
|
||||||
|
var parray = paramStr.split('&')
|
||||||
|
for(var i=0;i<parray.length;i++){
|
||||||
|
var subArray = parray[i].split('=')
|
||||||
|
if(parray[i] != ""){
|
||||||
|
if(subArray.length > 0) {
|
||||||
|
jsonData[subArray[0]] = subArray[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
clicked(openUrl,true,false,{},jsonData)
|
||||||
|
}
|
||||||
|
}, title, ["查看","忽略"] );
|
||||||
|
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
function openUrl(url){
|
|
||||||
clicked(url,true);
|
|
||||||
}
|
|
||||||
@@ -477,6 +477,7 @@ function addUpChart(dataUp, num){
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
color: ['#EB5F34', '#e7e7e7'],
|
color: ['#EB5F34', '#e7e7e7'],
|
||||||
|
animation:false,
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: '小区上涨',
|
name: '小区上涨',
|
||||||
@@ -522,6 +523,7 @@ function addDownChart(dataDown){
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
color: ['#88D053', '#e7e7e7'],
|
color: ['#88D053', '#e7e7e7'],
|
||||||
|
animation:false,
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: '小区下跌',
|
name: '小区下跌',
|
||||||
@@ -641,6 +643,48 @@ function docollectCity(city, type){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//加载城市报告
|
||||||
|
function loadCityReport(city){
|
||||||
|
axios.get('/rest/quotations/loadCityReport',{params:{city:city}}).then(function(response){
|
||||||
|
if(response.status){
|
||||||
|
var cityReport = response.data.data;
|
||||||
|
cityInfoVue.cityReport = cityReport;
|
||||||
|
}
|
||||||
|
}).catch(function(error){console.log(error)});
|
||||||
|
|
||||||
|
}
|
||||||
|
//城市报告参数校验
|
||||||
|
function paramCheck(param){
|
||||||
|
if(typeof(param)=="undefined"||param==null||$.trim(param)==""){
|
||||||
|
return false
|
||||||
|
}else{
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//城市报告参数过滤
|
||||||
|
function paramFilter(param){
|
||||||
|
if(typeof(param)=="undefined"||param==null||$.trim(param)==""){
|
||||||
|
return "暂无"
|
||||||
|
}else{
|
||||||
|
return param
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//城市报告参数截取
|
||||||
|
function paramDivisionHead(param){
|
||||||
|
if(paramCheck(param)){
|
||||||
|
return param.substring(0,param.indexOf("(")==-1?param.indexOf("("):param.indexOf("("));
|
||||||
|
}else{
|
||||||
|
return "暂无"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//城市报告参数截取
|
||||||
|
function paramDivisionTail(param){
|
||||||
|
if(paramCheck(param)){
|
||||||
|
return param.substring(param.indexOf("(")==-1?param.indexOf("("):param.indexOf("("));
|
||||||
|
}else{
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ var versionInfo = function(){
|
|||||||
//下载后安装
|
//下载后安装
|
||||||
var downApp = function(){
|
var downApp = function(){
|
||||||
var url="http://app.fangjia.com/download/youfang.apk"; //下载文件地址
|
var url="http://app.fangjia.com/download/youfang.apk"; //下载文件地址
|
||||||
plus.nativeUI.showWaiting("下载apk文件...");
|
plus.nativeUI.showWaiting("版本更新中...");
|
||||||
var dtask = plus.downloader.createDownload( url, {}, function ( d, status ) {
|
var dtask = plus.downloader.createDownload( url, {}, function ( d, status ) {
|
||||||
if (status == 200) {
|
if (status == 200) {
|
||||||
//下载成功
|
//下载成功
|
||||||
|
|||||||
@@ -0,0 +1,66 @@
|
|||||||
|
//定义对象
|
||||||
|
var assetsLevel = new Vue({
|
||||||
|
el: '#assetsLevel',
|
||||||
|
data: {
|
||||||
|
level: "",//排名
|
||||||
|
name: "",//昵称(有昵称显示昵称,没昵称显示手机号)
|
||||||
|
assets: ""//总资产
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
//用户资产排名查询请求
|
||||||
|
function initAssetsLevelDetail(){
|
||||||
|
//清空ui下的li元素
|
||||||
|
$('.list-container').children("li").remove();
|
||||||
|
axios.get(BASE_PATH + "/rest/userAssetsLevel/list",
|
||||||
|
{
|
||||||
|
params: {}
|
||||||
|
}).then(function (response) {
|
||||||
|
var resultsMap = response.data.data;
|
||||||
|
var resultList = resultsMap.userAssetsLevelList;
|
||||||
|
var userAssetsLevel = resultsMap.userAssetsLevel;
|
||||||
|
//父页面已经判断处理, 这里不用考虑数据不存在的情况
|
||||||
|
if(resultList != null && resultList.length > 0){
|
||||||
|
addItems(resultList, userAssetsLevel);
|
||||||
|
}
|
||||||
|
//数据加载完成隐藏loading效果
|
||||||
|
$('#loading').hide();
|
||||||
|
$('#pageContent').show();
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 分页构造数据 */
|
||||||
|
function addItems(resultList, userAssetsLevel) {
|
||||||
|
var htmlContent = "";
|
||||||
|
//控制个人部分显示
|
||||||
|
assetsLevel.level = userAssetsLevel.level;
|
||||||
|
assetsLevel.name = userAssetsLevel.name;
|
||||||
|
assetsLevel.assets = userAssetsLevel.assets;
|
||||||
|
for(var i in resultList) {
|
||||||
|
var result = resultList[i];
|
||||||
|
htmlContent += "<li><a class='item-content'><div class='item-inner'>";
|
||||||
|
htmlContent += "<div class='item-subtitle row'><div class='col-20 tac'>";
|
||||||
|
if(i == 0){
|
||||||
|
htmlContent += "<img src='../../images/rankingImg01a.png'></div>";
|
||||||
|
}else if(i == 1){
|
||||||
|
htmlContent += "<img src='../../images/rankingImg02a.png'></div>";
|
||||||
|
}else if(i == 2){
|
||||||
|
htmlContent += "<img src='../../images/rankingImg03a.png'></div>";
|
||||||
|
}else{
|
||||||
|
htmlContent += Number(i)+1+"</div>";
|
||||||
|
}
|
||||||
|
htmlContent += "<div class='col-40'>"+result.name+"</div>";
|
||||||
|
htmlContent += "<div class='col-40'>"+result.assets+"万元</div>";
|
||||||
|
htmlContent += "</div></div></a></li>";
|
||||||
|
}
|
||||||
|
$('.list-container').append(htmlContent);
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
|
||||||
|
function onPlusReady(){
|
||||||
|
//初始化数据
|
||||||
|
initAssetsLevelDetail();
|
||||||
|
}
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
String.prototype.startWith=function(str){
|
||||||
|
var reg=new RegExp("^"+str);
|
||||||
|
return reg.test(this);
|
||||||
|
}
|
||||||
|
|
||||||
//加载flag
|
//加载flag
|
||||||
var mm_loading = false;
|
var mm_loading = false;
|
||||||
//最多可加载的条目
|
//最多可加载的条目
|
||||||
@@ -97,7 +102,28 @@ function messageGoto(_this,operation,operationPage,mid){
|
|||||||
}
|
}
|
||||||
if(operation==2){
|
if(operation==2){
|
||||||
if (operationPage != null && operationPage != "") {
|
if (operationPage != null && operationPage != "") {
|
||||||
clicked('../webview_embed.html', true,false,{},{url:operationPage})
|
if (operationPage.startWith("http")) {
|
||||||
|
clicked('../webview_embed.html', true,false,{},{url:operationPage})
|
||||||
|
} else {
|
||||||
|
// 处理打开app中的二级页面,一级页面在type=1中已经处理了,如果有http的地址就是打开外部页面
|
||||||
|
// 否则就是打开app内部页面
|
||||||
|
var url = operationPage;
|
||||||
|
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||||
|
var openUrl = url.substring(0, sindex);
|
||||||
|
var paramStr = url.substring(sindex+1);
|
||||||
|
var jsonData = {};
|
||||||
|
var parray = paramStr.split('&')
|
||||||
|
for(var i=0;i<parray.length;i++){
|
||||||
|
var subArray = parray[i].split('=')
|
||||||
|
if(parray[i] != ""){
|
||||||
|
if(subArray.length > 0) {
|
||||||
|
jsonData[subArray[0]] = subArray[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
clicked(openUrl,true,false,{},jsonData)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<style>
|
<style>
|
||||||
.mui-bar-tab{background:#fff;box-shadow:none;}
|
.mui-bar-tab{background:#fff;box-shadow:none;}
|
||||||
.mui-bar-tab .mui-tab-item{border-top:solid 1px #e7e7e7;}
|
.mui-bar-tab .mui-tab-item{border-top:solid 1px #e7e7e7;}
|
||||||
.mui-bar-tab .mui-tab-item .mui-icon{font-size:1.4rem;color:#C3C0BC;}
|
.mui-bar-tab .mui-tab-item .mui-icon{font-size:1.1rem;color:#C3C0BC;}
|
||||||
.mui-bar-tab .mui-tab-item.mui-active .mui-icon{color:#F18D00;}
|
.mui-bar-tab .mui-tab-item.mui-active .mui-icon{color:#F18D00;}
|
||||||
.mui-bar-tab .mui-tab-item .mui-icon~.mui-tab-label{color:#C3C0BC;}
|
.mui-bar-tab .mui-tab-item .mui-icon~.mui-tab-label{color:#C3C0BC;}
|
||||||
.mui-bar-tab .mui-tab-item.mui-active .mui-icon~.mui-tab-label{color:#F18D00;}
|
.mui-bar-tab .mui-tab-item.mui-active .mui-icon~.mui-tab-label{color:#F18D00;}
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
"id": "H5693FF3D",/*应用的标识,创建应用时自动生成,勿手动修改*/
|
"id": "H5693FF3D",/*应用的标识,创建应用时自动生成,勿手动修改*/
|
||||||
"name": "有房",/*应用名称,程序桌面图标名称*/
|
"name": "有房",/*应用名称,程序桌面图标名称*/
|
||||||
"version": {
|
"version": {
|
||||||
"name": "1.2.1",/*应用版本名称*/
|
"name": "1.1.12",/*应用版本名称*/
|
||||||
"code": "20110"
|
"code": "20111"
|
||||||
},
|
},
|
||||||
"description": "有房,围绕房产提供全方位数据分析的房产及金融服务平台,通过个性化的智能推荐,定制专属的个人投资或购房计划,多维度管理自有房产并提供房产融资通道。",/*应用描述信息*/
|
"description": "有房,围绕房产提供全方位数据分析的房产及金融服务平台,通过个性化的智能推荐,定制专属的个人投资或购房计划,多维度管理自有房产并提供房产融资通道。",/*应用描述信息*/
|
||||||
"icons": {
|
"icons": {
|
||||||
@@ -1708,7 +1708,8 @@
|
|||||||
"views/district/detail.html",
|
"views/district/detail.html",
|
||||||
"views/user/codeSms.html",
|
"views/user/codeSms.html",
|
||||||
"views/house/cityDetail.html",
|
"views/house/cityDetail.html",
|
||||||
"views/user/passLogin.html"
|
"views/user/passLogin.html",
|
||||||
|
"views/house/cityRankingPotential.html"
|
||||||
],
|
],
|
||||||
"priority": 0
|
"priority": 0
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,186 @@
|
|||||||
|
<!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-orange.css">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="page-group">
|
||||||
|
<div class="page page-current" id="regionRank">
|
||||||
|
<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>
|
||||||
|
<button class="button button-link button-nav pull-right" onclick="share()">
|
||||||
|
<span class="icon icon-share"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="title">区域均价排名</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50">
|
||||||
|
<div class="card cardPrice cardCity cardCity02">
|
||||||
|
<div class="card-footer">
|
||||||
|
<span>
|
||||||
|
<em><strong>{{avgPrice}}</strong>元/㎡</em>
|
||||||
|
<label>{{month}}月均价</label>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
<em><strong>{{region}}</strong></em>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
<em>
|
||||||
|
<strong>{{oneMonthUpDownRange}}</strong>%
|
||||||
|
<i v-if="oneMonthUpDownRange >= 0" class="icon icon-arrow-red"></i>
|
||||||
|
<i v-if="oneMonthUpDownRange < 0" class="icon icon-arrow-green"></i>
|
||||||
|
</em>
|
||||||
|
<label>近30天涨跌幅</label>
|
||||||
|
</span>
|
||||||
|
<img src="../../images/rankingCup04.png">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="list-block media-list cityList">
|
||||||
|
<ul class="list-container">
|
||||||
|
<div class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">排名</div>
|
||||||
|
<div class="col-25">区域</div>
|
||||||
|
<div class="col-33">{{month}}月均价</div>
|
||||||
|
<div class="col-25">近30天涨跌幅</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<li v-for="(info,index) in regionInfos">
|
||||||
|
<a class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac" v-if="index > 2">{{index+1}}</div>
|
||||||
|
<div class="col-15 tac" v-if="index <= 2"><img :src="'../../images/rankingImg0' + (index+1)+'a.png'"></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-else-if="info.oneMonthUpDownRange<0">
|
||||||
|
<em class="down">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-green"></i></em>
|
||||||
|
</div>
|
||||||
|
<div class="col-25" v-else>
|
||||||
|
<em class="up">暂无</em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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/vue.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||||
|
<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' charset='utf-8'></script>
|
||||||
|
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var shareUrl = BASE_PATH+"/house/regionRankShare?";
|
||||||
|
var sharehrefTitle = "区域均价排名";
|
||||||
|
var sharehrefDes = "区域均价排名!";
|
||||||
|
var shareId='';
|
||||||
|
var picUrl = '_www/images/default_share.png';
|
||||||
|
|
||||||
|
var date = new Date();
|
||||||
|
var month = date.getMonth()+1;
|
||||||
|
var regionsRankVue = new Vue({
|
||||||
|
el: '#regionRank',
|
||||||
|
data: {
|
||||||
|
city:"",
|
||||||
|
month:month,
|
||||||
|
region:"",
|
||||||
|
avgPrice:"",
|
||||||
|
oneMonthUpDownRange:"",
|
||||||
|
regionInfos : []
|
||||||
|
}
|
||||||
|
});
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
function onPlusReady() {
|
||||||
|
var self = plus.webview.currentWebview();
|
||||||
|
var city = self.city
|
||||||
|
shareUrl = shareUrl+"city="+city;
|
||||||
|
//更新分享服务
|
||||||
|
updateSerivces();
|
||||||
|
|
||||||
|
regionsRankVue.$data.city = city;
|
||||||
|
loadRegionRank(city);
|
||||||
|
}
|
||||||
|
|
||||||
|
//loadRegionInfo("上海");
|
||||||
|
function loadRegionRank(city){
|
||||||
|
axios.get("/rest/quotations/regionInfos",{
|
||||||
|
params:{
|
||||||
|
city : city
|
||||||
|
}
|
||||||
|
}).then(function (response) {
|
||||||
|
var msg = response.data.data;
|
||||||
|
if(response.data.status){
|
||||||
|
if(msg!=null && msg.length>0){
|
||||||
|
for(var i in msg){
|
||||||
|
var da = msg[i]
|
||||||
|
da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
|
||||||
|
}
|
||||||
|
regionsRankVue.$data.region = msg[0].region;
|
||||||
|
regionsRankVue.$data.avgPrice = msg[0].avgPrice;
|
||||||
|
regionsRankVue.$data.oneMonthUpDownRange = msg[0].oneMonthUpDownRange == "" ? "暂无" : msg[0].oneMonthUpDownRange;
|
||||||
|
regionsRankVue.$data.regionInfos = msg;
|
||||||
|
}else{
|
||||||
|
//控制显示无数据效果
|
||||||
|
//$('#hasDataDiv').hide();
|
||||||
|
//$('#noDataDiv').show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function share(){
|
||||||
|
/*var eventType = "shareEvaluateClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=hid;
|
||||||
|
dataMap["type"]="evaluate";
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件*/
|
||||||
|
|
||||||
|
shareHref();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -124,8 +124,8 @@
|
|||||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
||||||
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
||||||
<div class="icon01Box">
|
<div class="icon01Box">
|
||||||
<i class="icon icon-chart01a" onclick="lineChart()"></i>
|
<i class="icon icon-chart01a" ></i>
|
||||||
<i class="icon icon-chart01 dn" onclick="kLineChart()"></i>
|
<i class="icon icon-chart01-no"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-block" id="trendDiv1">
|
<div class="content-block" id="trendDiv1">
|
||||||
<div class="buttons-row theme">
|
<div class="buttons-row theme">
|
||||||
@@ -285,7 +285,7 @@ $.config = {router: false}
|
|||||||
var address;
|
var address;
|
||||||
var tags;
|
var tags;
|
||||||
var baseInfo;
|
var baseInfo;
|
||||||
|
var rid;
|
||||||
var shareUrl = BASE_PATH+"/district/districtDetail?";
|
var shareUrl = BASE_PATH+"/district/districtDetail?";
|
||||||
var sharehrefTitle = "小区名";
|
var sharehrefTitle = "小区名";
|
||||||
var sharehrefDes = "小区详情介绍!";
|
var sharehrefDes = "小区详情介绍!";
|
||||||
@@ -334,7 +334,7 @@ function onPlusReady() {
|
|||||||
shareUrl = shareUrl+"city="+self.city+"®ion="+self.region+"&name="+self.name;
|
shareUrl = shareUrl+"city="+self.city+"®ion="+self.region+"&name="+self.name;
|
||||||
|
|
||||||
sharehrefTitle = self.name;
|
sharehrefTitle = self.name;
|
||||||
|
|
||||||
//查看小区
|
//查看小区
|
||||||
var eventType = "openDistrictDetailClick";
|
var eventType = "openDistrictDetailClick";
|
||||||
var dataMap = {};
|
var dataMap = {};
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
<div class="chart" id="price_chart"></div>
|
<div class="chart" id="price_chart"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="topic">
|
<div class="topic">
|
||||||
<div class="topicTitle">热门小区</div>
|
<div class="topicTitle">热门小区</div>
|
||||||
<div class="topicContent" style="padding:0;">
|
<div class="topicContent" style="padding:0;">
|
||||||
@@ -166,7 +166,8 @@ function onPlusReady() {
|
|||||||
month:month,
|
month:month,
|
||||||
collecd:false,
|
collecd:false,
|
||||||
nears:[],
|
nears:[],
|
||||||
myCityMap : []
|
myCityMap : [],
|
||||||
|
cityReport: []
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
cityInfoVue.$data.city = city;
|
cityInfoVue.$data.city = city;
|
||||||
@@ -175,7 +176,6 @@ function onPlusReady() {
|
|||||||
loadUpOrDown(city);
|
loadUpOrDown(city);
|
||||||
loadHotDistrict(city)
|
loadHotDistrict(city)
|
||||||
loadCityPricesAndCounts(city)
|
loadCityPricesAndCounts(city)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,238 @@
|
|||||||
|
<!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-orange.css">
|
||||||
|
<style>
|
||||||
|
.list-block.cityList > p {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</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>
|
||||||
|
<button class="button button-link button-nav pull-right" onclick="share()">
|
||||||
|
<span class="icon icon-share"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="title">全国下跌列表</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50">
|
||||||
|
<div class="list-block media-list cityList" style="margin-top:0.8rem;" id="tableList">
|
||||||
|
<ul class="list-container">
|
||||||
|
<div class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">排名</div>
|
||||||
|
<div class="col-25">城市</div>
|
||||||
|
<div class="col-33">{{month}}月均价</div>
|
||||||
|
<div class="col-25">{{month}}月跌幅</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<li v-for="item in list">
|
||||||
|
<a class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">{{item.rangeLevel}}</div>
|
||||||
|
<div class="col-25">{{item.city}}</div>
|
||||||
|
<div class="col-33">{{item.avgPrice}}元/㎡</div>
|
||||||
|
<div class="col-25">
|
||||||
|
<em class="up">{{Math.abs(item.markup*100).toFixed(2)}}%<i class="icon icon-arrow-green"></i></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p v-if="end">没有更多数据</p>
|
||||||
|
<p v-else>上拉查看更多排名</p>
|
||||||
|
</div>
|
||||||
|
<!-- 加载提示符 -->
|
||||||
|
<div class="infinite-scroll-preloader">
|
||||||
|
<div class="preloader"></div>
|
||||||
|
</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/light7.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../config.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></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="../../js/log/log_stat.js" ></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var date = new Date();
|
||||||
|
var month = date.getMonth()+1+'月';
|
||||||
|
|
||||||
|
var shareUrl = BASE_PATH+"/quotations/cityDownRanking";
|
||||||
|
var sharehrefTitle = "全国下跌列表";
|
||||||
|
var sharehrefDes = "全国下跌列表!";
|
||||||
|
var shareId='';
|
||||||
|
var picUrl = '_www/images/default_share.png';
|
||||||
|
var hid = "";
|
||||||
|
|
||||||
|
var pageBean=new Vue({
|
||||||
|
data:{
|
||||||
|
pageNo:2,
|
||||||
|
pageSize:10
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var tableList = new Vue({
|
||||||
|
el: '#tableList',
|
||||||
|
data: {
|
||||||
|
month : month,
|
||||||
|
end : false,
|
||||||
|
list:[]
|
||||||
|
}/*,
|
||||||
|
methods: {
|
||||||
|
menu:function() {
|
||||||
|
if(this.end){
|
||||||
|
console.log("已显示全部");
|
||||||
|
this.end = true;
|
||||||
|
}else{
|
||||||
|
axios.get("/rest/quotations/queryMarkDownTopByPage", {params:{pageNo:pageBean.pageNo,pageSize:pageBean.pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
this.end = response.data.data.end;
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
//pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted:function() {
|
||||||
|
window.addEventListener('scroll', this.menu());
|
||||||
|
}*/
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
function onPlusReady(){
|
||||||
|
var self = plus.webview.currentWebview();
|
||||||
|
hid = self.hid;
|
||||||
|
updateSerivces();
|
||||||
|
/*axios.get("/rest/quotations/queryMarkDownTopByPage", {params:{pageNo:pageBean.pageNo,pageSize:pageBean.pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
tableList.month = month;
|
||||||
|
tableList.end = response.data.data.end;
|
||||||
|
tableList.list = response.data.data.list;
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});*/
|
||||||
|
}
|
||||||
|
|
||||||
|
function share(){
|
||||||
|
var eventType = "shareCityDownRankingClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=hid;
|
||||||
|
dataMap["type"]="house";
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
shareHref();
|
||||||
|
}
|
||||||
|
|
||||||
|
//排行页面底部无限加载事件
|
||||||
|
$.init();
|
||||||
|
$(function() {
|
||||||
|
// 加载flag
|
||||||
|
var loading = false;
|
||||||
|
// 最多可加载的条目
|
||||||
|
var maxItems = 366;
|
||||||
|
|
||||||
|
// 每次加载添加多少条目
|
||||||
|
var itemsPerLoad = 10;
|
||||||
|
|
||||||
|
function addItems(pageNo,pageSize){
|
||||||
|
axios.get("/rest/quotations/queryMarkDownTopByPage", {params:{pageNo:pageNo,pageSize:pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
tableList.end = response.data.data.end;
|
||||||
|
if(pageNo>1){
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
}else{
|
||||||
|
tableList.list = response.data.data.list;
|
||||||
|
}
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//预先加载10条
|
||||||
|
addItems(1, 20);
|
||||||
|
|
||||||
|
// 上次加载的序号
|
||||||
|
var lastIndex = 10;
|
||||||
|
|
||||||
|
|
||||||
|
// 注册'infinite'事件处理函数
|
||||||
|
$(document).on('infinite', '.infinite-scroll-bottom',function() {
|
||||||
|
// 如果正在加载,则退出
|
||||||
|
if (loading) return;
|
||||||
|
|
||||||
|
// 设置flag
|
||||||
|
loading = true;
|
||||||
|
|
||||||
|
// 模拟1s的加载过程
|
||||||
|
setTimeout(function() {
|
||||||
|
// 重置加载flag
|
||||||
|
loading = false;
|
||||||
|
|
||||||
|
if(tableList.end){
|
||||||
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
|
// 删除加载提示符
|
||||||
|
$('.infinite-scroll-preloader').remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加新条目
|
||||||
|
addItems(pageBean.pageNo, pageBean.pageSize);
|
||||||
|
// 更新最后加载的序号
|
||||||
|
lastIndex = $('.list-block.cityList ul li').length;
|
||||||
|
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||||
|
$.refreshScroller();
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,269 @@
|
|||||||
|
<!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-orange.css">
|
||||||
|
<style>
|
||||||
|
.list-block.cityList > p {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.list-block.cityList .item-subtitle div img {
|
||||||
|
width: 1rem;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
</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>
|
||||||
|
<button class="button button-link button-nav pull-right" onclick="share()">
|
||||||
|
<span class="icon icon-share"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="title">城市涨幅排行</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50" id="tableList">
|
||||||
|
<div class="card cardPrice cardCity cardCity02">
|
||||||
|
<div class="card-footer">
|
||||||
|
<span>
|
||||||
|
<em><strong>{{avgPrice}}</strong>元/㎡</em>
|
||||||
|
<label>{{month}}月均价</label>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
<em><strong>{{city}}</strong></em>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
<em><strong>{{Math.abs(markup*100).toFixed(2)}}</strong>%<i class="icon icon-arrow-red"></i></em>
|
||||||
|
<label>近30天涨幅</label>
|
||||||
|
</span>
|
||||||
|
<img src="../../images/rankingCup01.png">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="list-block media-list cityList">
|
||||||
|
<ul class="list-container">
|
||||||
|
<div class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">排名</div>
|
||||||
|
<div class="col-25">城市</div>
|
||||||
|
<div class="col-33">{{month}}月均价</div>
|
||||||
|
<div class="col-25">近30天涨幅</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<li v-for="item in list">
|
||||||
|
<a class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">
|
||||||
|
<img v-if="item.rangeLevel==1" src="../../images/rankingImg01a.png">
|
||||||
|
<img v-else-if="item.rangeLevel==2" src="../../images/rankingImg02a.png">
|
||||||
|
<img v-else-if="item.rangeLevel==3" src="../../images/rankingImg03a.png">
|
||||||
|
<div v-else>{{item.rangeLevel}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-25">{{item.city}}</div>
|
||||||
|
<div class="col-33">{{item.avgPrice}}元/㎡</div>
|
||||||
|
<div class="col-25" v-if="item.markup>=0">
|
||||||
|
<em class="up">{{Math.abs(item.markup*100).toFixed(2)}}%<i class="icon icon-arrow-red"></i></em>
|
||||||
|
</div>
|
||||||
|
<div class="col-25" v-else>
|
||||||
|
<em class="up">{{Math.abs(item.markup*100).toFixed(2)}}%<i class="icon icon-arrow-green"></i></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p v-if="end">没有更多数据</p>
|
||||||
|
<p v-else>上拉查看更多排名</p>
|
||||||
|
<!-- <p>没有更多数据</p>-->
|
||||||
|
</div>
|
||||||
|
<!-- 加载提示符 -->
|
||||||
|
<div class="infinite-scroll-preloader">
|
||||||
|
<div class="preloader"></div>
|
||||||
|
</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/light7.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../config.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></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="../../js/log/log_stat.js" ></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var date = new Date();
|
||||||
|
var month = date.getMonth()+1+'月';
|
||||||
|
|
||||||
|
var date = new Date();
|
||||||
|
var month = date.getMonth()+1+'月';
|
||||||
|
|
||||||
|
var shareUrl = BASE_PATH+"/quotations/cityRanking";
|
||||||
|
var sharehrefTitle = "城市涨幅排行";
|
||||||
|
var sharehrefDes = "城市涨幅排行!";
|
||||||
|
var shareId='';
|
||||||
|
var picUrl = '_www/images/default_share.png';
|
||||||
|
var hid = "";
|
||||||
|
|
||||||
|
var pageBean=new Vue({
|
||||||
|
data:{
|
||||||
|
pageNo:2,
|
||||||
|
pageSize:10
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var tableList = new Vue({
|
||||||
|
el: '#tableList',
|
||||||
|
data: {
|
||||||
|
month : month,
|
||||||
|
end : false,
|
||||||
|
avgPrice:6.5,
|
||||||
|
city:'上海',
|
||||||
|
markup:9.0,
|
||||||
|
list:[]
|
||||||
|
}/*,
|
||||||
|
methods: {
|
||||||
|
menu:function() {
|
||||||
|
if(this.end){
|
||||||
|
console.log("已显示全部");
|
||||||
|
this.end = true;
|
||||||
|
}else{
|
||||||
|
axios.get("/rest/quotations/queryMarkUpTopByPage", {params:{pageNo:pageBean.pageNo,pageSize:pageBean.pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
this.end = response.data.data.end;
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
if(pageBean.pageNo=1){
|
||||||
|
tableList.avgPrice = response.data.data.list[0].avgPrice;
|
||||||
|
tableList.city = response.data.data.list[0].city;
|
||||||
|
tableList.markup = response.data.data.list[0].markup;
|
||||||
|
}
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted:function() {
|
||||||
|
window.addEventListener('scroll', this.menu());
|
||||||
|
}*/
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
function onPlusReady(){
|
||||||
|
var self = plus.webview.currentWebview();
|
||||||
|
hid = self.hid;
|
||||||
|
updateSerivces();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function share(){
|
||||||
|
var eventType = "shareCityRankingClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=hid;
|
||||||
|
dataMap["type"]="house";
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
shareHref();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//排行页面底部无限加载事件
|
||||||
|
$.init();
|
||||||
|
$(function() {
|
||||||
|
// 加载flag
|
||||||
|
var loading = false;
|
||||||
|
// 最多可加载的条目
|
||||||
|
var maxItems = 366;
|
||||||
|
|
||||||
|
// 每次加载添加多少条目
|
||||||
|
var itemsPerLoad = 10;
|
||||||
|
|
||||||
|
function addItems(pageNo,pageSize){
|
||||||
|
axios.get("/rest/quotations/queryMarkUpTopByPage", {params:{pageNo:pageNo,pageSize:pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
tableList.end = response.data.data.end;
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
if(pageNo==1){
|
||||||
|
tableList.avgPrice = response.data.data.list[0].avgPrice;
|
||||||
|
tableList.city = response.data.data.list[0].city;
|
||||||
|
tableList.markup = response.data.data.list[0].markup;
|
||||||
|
}
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//预先加载10条
|
||||||
|
addItems(1, 20);
|
||||||
|
// 上次加载的序号
|
||||||
|
var lastIndex = 10;
|
||||||
|
|
||||||
|
|
||||||
|
// 注册'infinite'事件处理函数
|
||||||
|
$(document).on('infinite', '.infinite-scroll-bottom',function() {
|
||||||
|
|
||||||
|
// 如果正在加载,则退出
|
||||||
|
if (loading) return;
|
||||||
|
|
||||||
|
// 设置flag
|
||||||
|
loading = true;
|
||||||
|
|
||||||
|
// 模拟1s的加载过程
|
||||||
|
setTimeout(function() {
|
||||||
|
// 重置加载flag
|
||||||
|
loading = false;
|
||||||
|
|
||||||
|
if(tableList.end){
|
||||||
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
|
// 删除加载提示符
|
||||||
|
$('.infinite-scroll-preloader').remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新最后加载的序号
|
||||||
|
addItems(pageBean.pageNo, pageBean.pageSize);
|
||||||
|
lastIndex = $('.list-block.cityList ul li').length;
|
||||||
|
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||||
|
$.refreshScroller();
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,276 @@
|
|||||||
|
<!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-orange.css">
|
||||||
|
<style>
|
||||||
|
.list-block.cityList > p {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.list-block.cityList .item-subtitle div img {
|
||||||
|
width: 1rem;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
</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>
|
||||||
|
<button class="button button-link button-nav pull-right" onclick="share()">
|
||||||
|
<span class="icon icon-share"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="title">城市均价排行</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50" id="tableList">
|
||||||
|
<div class="card cardPrice cardCity cardCity02">
|
||||||
|
<div class="card-footer">
|
||||||
|
<span>
|
||||||
|
<em><strong>{{avgPrice}}</strong>元/㎡</em>
|
||||||
|
<label>{{month}}月均价</label>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
<em><strong>{{city}}</strong></em>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<em>
|
||||||
|
<strong>{{Math.abs(markup*100).toFixed(2)}}</strong>%
|
||||||
|
<i v-if="markup>=0" class="icon icon-arrow-red">
|
||||||
|
</i>
|
||||||
|
<i v-else class="icon icon-arrow-green">
|
||||||
|
</i>
|
||||||
|
</em>
|
||||||
|
<label>近30天涨跌幅</label>
|
||||||
|
</span>
|
||||||
|
<img src="../../images/rankingCup03.png">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="list-block media-list cityList">
|
||||||
|
<ul class="list-container">
|
||||||
|
<div class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">排名</div>
|
||||||
|
<div class="col-25">城市</div>
|
||||||
|
<div class="col-33">{{month}}月均价</div>
|
||||||
|
<div class="col-25">近30天涨跌幅</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<li v-for="item in list">
|
||||||
|
<a class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">
|
||||||
|
<img v-if="item.rangeLevel==1" src="../../images/rankingImg01a.png">
|
||||||
|
<img v-else-if="item.rangeLevel==2" src="../../images/rankingImg02a.png">
|
||||||
|
<img v-else-if="item.rangeLevel==3" src="../../images/rankingImg03a.png">
|
||||||
|
<div v-else>{{item.rangeLevel}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-25">{{item.city}}</div>
|
||||||
|
<div class="col-33">{{item.avgPrice}}元/㎡</div>
|
||||||
|
<div class="col-25" v-if="item.markup>=0">
|
||||||
|
<em class="up">{{Math.abs(item.markup*100).toFixed(2)}}%<i class="icon icon-arrow-red"></i></em>
|
||||||
|
</div>
|
||||||
|
<div class="col-25" v-else>
|
||||||
|
<em class="up">{{Math.abs(item.markup*100).toFixed(2)}}%<i class="icon icon-arrow-green"></i></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p v-if="end">没有更多数据</p>
|
||||||
|
<p v-else>上拉查看更多排名</p>
|
||||||
|
<!-- <p>没有更多数据</p>-->
|
||||||
|
</div>
|
||||||
|
<!-- 加载提示符 -->
|
||||||
|
<div class="infinite-scroll-preloader">
|
||||||
|
<div class="preloader"></div>
|
||||||
|
</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/light7.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../config.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></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="../../js/log/log_stat.js" ></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var date = new Date();
|
||||||
|
var month = date.getMonth()+1+'月';
|
||||||
|
|
||||||
|
var date = new Date();
|
||||||
|
var month = date.getMonth()+1+'月';
|
||||||
|
|
||||||
|
var shareUrl = BASE_PATH+"/quotations/cityRankingAvgPrice";
|
||||||
|
var sharehrefTitle = "城市均价排行";
|
||||||
|
var sharehrefDes = "城市均价排行!";
|
||||||
|
var shareId='';
|
||||||
|
var picUrl = '_www/images/default_share.png';
|
||||||
|
var hid = "";
|
||||||
|
|
||||||
|
var pageBean=new Vue({
|
||||||
|
data:{
|
||||||
|
pageNo:2,
|
||||||
|
pageSize:10
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var tableList = new Vue({
|
||||||
|
el: '#tableList',
|
||||||
|
data: {
|
||||||
|
month : month,
|
||||||
|
end : false,
|
||||||
|
avgPrice:6.5,
|
||||||
|
city:'上海',
|
||||||
|
markup:9.0,
|
||||||
|
list:[]
|
||||||
|
}/*,
|
||||||
|
methods: {
|
||||||
|
menu:function() {
|
||||||
|
if(this.end){
|
||||||
|
console.log("已显示全部");
|
||||||
|
this.end = true;
|
||||||
|
}else{
|
||||||
|
axios.get("/rest/quotations/queryAvgPrice", {params:{pageNo:pageBean.pageNo,pageSize:pageBean.pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
this.end = response.data.data.end;
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
if(pageBean.pageNo=1){
|
||||||
|
tableList.avgPrice = response.data.data.list[0].avgPrice;
|
||||||
|
tableList.city = response.data.data.list[0].city;
|
||||||
|
tableList.markup = response.data.data.list[0].markup;
|
||||||
|
}
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted:function() {
|
||||||
|
window.addEventListener('scroll', this.menu());
|
||||||
|
}*/
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
function onPlusReady(){
|
||||||
|
var self = plus.webview.currentWebview();
|
||||||
|
hid = self.hid;
|
||||||
|
updateSerivces();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function share(){
|
||||||
|
var eventType = "shareCityRankingClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=hid;
|
||||||
|
dataMap["type"]="house";
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
shareHref();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//排行页面底部无限加载事件
|
||||||
|
$.init();
|
||||||
|
$(function() {
|
||||||
|
// 加载flag
|
||||||
|
var loading = false;
|
||||||
|
// 最多可加载的条目
|
||||||
|
var maxItems = 366;
|
||||||
|
|
||||||
|
// 每次加载添加多少条目
|
||||||
|
var itemsPerLoad = 10;
|
||||||
|
|
||||||
|
function addItems(pageNo,pageSize){
|
||||||
|
axios.get("/rest/quotations/queryAvgPrice", {params:{pageNo:pageNo,pageSize:pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
tableList.end = response.data.data.end;
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
if(pageNo==1){
|
||||||
|
tableList.avgPrice = response.data.data.list[0].avgPrice;
|
||||||
|
tableList.city = response.data.data.list[0].city;
|
||||||
|
tableList.markup = response.data.data.list[0].markup;
|
||||||
|
}
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//预先加载10条
|
||||||
|
addItems(1, 20);
|
||||||
|
// 上次加载的序号
|
||||||
|
var lastIndex = 10;
|
||||||
|
|
||||||
|
|
||||||
|
// 注册'infinite'事件处理函数
|
||||||
|
$(document).on('infinite', '.infinite-scroll-bottom',function() {
|
||||||
|
|
||||||
|
// 如果正在加载,则退出
|
||||||
|
if (loading) return;
|
||||||
|
|
||||||
|
// 设置flag
|
||||||
|
loading = true;
|
||||||
|
|
||||||
|
// 模拟1s的加载过程
|
||||||
|
setTimeout(function() {
|
||||||
|
// 重置加载flag
|
||||||
|
loading = false;
|
||||||
|
|
||||||
|
if(tableList.end){
|
||||||
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
|
// 删除加载提示符
|
||||||
|
$('.infinite-scroll-preloader').remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新最后加载的序号
|
||||||
|
addItems(pageBean.pageNo, pageBean.pageSize);
|
||||||
|
lastIndex = $('.list-block.cityList ul li').length;
|
||||||
|
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||||
|
$.refreshScroller();
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,292 @@
|
|||||||
|
<!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-orange.css">
|
||||||
|
<style>
|
||||||
|
.list-block.cityList > p {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.list-block.cityList .item-subtitle div img {
|
||||||
|
width: 1rem;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.list-block.cityList .item-subtitle div.col-25:last-child{width:23%;}
|
||||||
|
</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>
|
||||||
|
<button class="button button-link button-nav pull-right" onclick="share()">
|
||||||
|
<span class="icon icon-share"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="title">城市潜力排行</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50" id="tableList">
|
||||||
|
<div class="card cardPrice cardCity cardCity02">
|
||||||
|
<div class="card-footer">
|
||||||
|
<span>
|
||||||
|
<em><strong>{{avgPrice}}</strong>元/㎡</em>
|
||||||
|
<label>{{month}}月均价</label>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
<em><strong>{{city}}</strong></em>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
<em>
|
||||||
|
<span class="star">
|
||||||
|
<i v-if="index>0&&index<15" class="icon icon-star02"></i>
|
||||||
|
<i v-if="index>=15" class="icon icon-star01"></i>
|
||||||
|
<i v-if="index>20&&index<35" class="icon icon-star02"></i>
|
||||||
|
<i v-if="index>=35" class="icon icon-star01"></i>
|
||||||
|
<i v-if="index>40&&index<55" class="icon icon-star02"></i>
|
||||||
|
<i v-if="index>=55" class="icon icon-star01"></i>
|
||||||
|
<i v-if="index>60&&index<75" class="icon icon-star02"></i>
|
||||||
|
<i v-if="index>=75" class="icon icon-star01"></i>
|
||||||
|
<i v-if="index>80&&index<95" class="icon icon-star02"></i>
|
||||||
|
<i v-if="index>=95" class="icon icon-star01"></i>
|
||||||
|
</span>
|
||||||
|
</em>
|
||||||
|
<label>潜力指数</label>
|
||||||
|
</span>
|
||||||
|
<img src="../../images/rankingCup02.png">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="list-block media-list cityList">
|
||||||
|
<ul class="list-container">
|
||||||
|
<div class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">排名</div>
|
||||||
|
<div class="col-25">城市</div>
|
||||||
|
<div class="col-33">{{month}}月均价</div>
|
||||||
|
<div class="col-25">潜力指数</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<li v-for="item in list">
|
||||||
|
<a class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">
|
||||||
|
<img v-if="item.rangeLevel==1" src="../../images/rankingImg01a.png">
|
||||||
|
<img v-else-if="item.rangeLevel==2" src="../../images/rankingImg02a.png">
|
||||||
|
<img v-else-if="item.rangeLevel==3" src="../../images/rankingImg03a.png">
|
||||||
|
<div v-else>{{item.rangeLevel}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-25">{{item.city}}</div>
|
||||||
|
<div class="col-33" v-if="item.avgPrice && item.avgPrice >0">{{item.avgPrice}}元/㎡</div>
|
||||||
|
<div class="col-33" v-else>暂无</div>
|
||||||
|
<div class="col-25">
|
||||||
|
<span class="star">
|
||||||
|
<i v-if="item.index>0&&item.index<15" class="icon icon-star02"></i>
|
||||||
|
<i v-if="item.index>=15" class="icon icon-star01"></i>
|
||||||
|
<i v-if="item.index>20&&item.index<35" class="icon icon-star02"></i>
|
||||||
|
<i v-if="item.index>=35" class="icon icon-star01"></i>
|
||||||
|
<i v-if="item.index>40&&item.index<55" class="icon icon-star02"></i>
|
||||||
|
<i v-if="item.index>=55" class="icon icon-star01"></i>
|
||||||
|
<i v-if="item.index>60&&item.index<75" class="icon icon-star02"></i>
|
||||||
|
<i v-if="item.index>=75" class="icon icon-star01"></i>
|
||||||
|
<i v-if="item.index>80&&item.index<95" class="icon icon-star02"></i>
|
||||||
|
<i v-if="item.index>=95" class="icon icon-star01"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p v-if="end">没有更多数据</p>
|
||||||
|
<p v-else>上拉查看更多排名</p>
|
||||||
|
<!-- <p>没有更多数据</p>-->
|
||||||
|
</div>
|
||||||
|
<!-- 加载提示符 -->
|
||||||
|
<div class="infinite-scroll-preloader">
|
||||||
|
<div class="preloader"></div>
|
||||||
|
</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/light7.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../config.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></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="../../js/log/log_stat.js" ></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var date = new Date();
|
||||||
|
var month = date.getMonth()+1+'月';
|
||||||
|
|
||||||
|
var date = new Date();
|
||||||
|
var month = date.getMonth()+1+'月';
|
||||||
|
|
||||||
|
var shareUrl = BASE_PATH+"/quotations/cityRankingPotential";
|
||||||
|
var sharehrefTitle = "城市潜力排行";
|
||||||
|
var sharehrefDes = "城市潜力排行!";
|
||||||
|
var shareId='';
|
||||||
|
var picUrl = '_www/images/default_share.png';
|
||||||
|
var hid = "";
|
||||||
|
|
||||||
|
var pageBean=new Vue({
|
||||||
|
data:{
|
||||||
|
pageNo:2,
|
||||||
|
pageSize:10
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var tableList = new Vue({
|
||||||
|
el: '#tableList',
|
||||||
|
data: {
|
||||||
|
month : month,
|
||||||
|
end : false,
|
||||||
|
avgPrice:6.5,
|
||||||
|
city:'上海',
|
||||||
|
index:100,
|
||||||
|
list:[]
|
||||||
|
}/*,
|
||||||
|
methods: {
|
||||||
|
menu:function() {
|
||||||
|
if(this.end){
|
||||||
|
console.log("已显示全部");
|
||||||
|
this.end = true;
|
||||||
|
}else{
|
||||||
|
axios.get("/rest/quotations/queryPotential", {params:{pageNo:pageBean.pageNo,pageSize:pageBean.pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
this.end = response.data.data.end;
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
if(pageBean.pageNo=1){
|
||||||
|
tableList.avgPrice = response.data.data.list[0].avgPrice;
|
||||||
|
tableList.city = response.data.data.list[0].city;
|
||||||
|
tableList.markup = response.data.data.list[0].markup;
|
||||||
|
}
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted:function() {
|
||||||
|
window.addEventListener('scroll', this.menu());
|
||||||
|
}*/
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
function onPlusReady(){
|
||||||
|
var self = plus.webview.currentWebview();
|
||||||
|
hid = self.hid;
|
||||||
|
updateSerivces();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function share(){
|
||||||
|
var eventType = "shareCityRankingClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=hid;
|
||||||
|
dataMap["type"]="house";
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
shareHref();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//排行页面底部无限加载事件
|
||||||
|
$.init();
|
||||||
|
$(function() {
|
||||||
|
// 加载flag
|
||||||
|
var loading = false;
|
||||||
|
// 最多可加载的条目
|
||||||
|
var maxItems = 366;
|
||||||
|
|
||||||
|
// 每次加载添加多少条目
|
||||||
|
var itemsPerLoad = 10;
|
||||||
|
|
||||||
|
function addItems(pageNo,pageSize){
|
||||||
|
axios.get("/rest/quotations/queryPotential", {params:{pageNo:pageNo,pageSize:pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
tableList.end = response.data.data.end;
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
if(pageNo==1){
|
||||||
|
tableList.avgPrice = response.data.data.list[0].avgPrice;
|
||||||
|
tableList.city = response.data.data.list[0].city;
|
||||||
|
tableList.index = response.data.data.list[0].index;
|
||||||
|
}
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//预先加载10条
|
||||||
|
addItems(1, 20);
|
||||||
|
// 上次加载的序号
|
||||||
|
var lastIndex = 10;
|
||||||
|
|
||||||
|
|
||||||
|
// 注册'infinite'事件处理函数
|
||||||
|
$(document).on('infinite', '.infinite-scroll-bottom',function() {
|
||||||
|
|
||||||
|
// 如果正在加载,则退出
|
||||||
|
if (loading) return;
|
||||||
|
|
||||||
|
// 设置flag
|
||||||
|
loading = true;
|
||||||
|
|
||||||
|
// 模拟1s的加载过程
|
||||||
|
setTimeout(function() {
|
||||||
|
// 重置加载flag
|
||||||
|
loading = false;
|
||||||
|
|
||||||
|
if(tableList.end){
|
||||||
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
|
// 删除加载提示符
|
||||||
|
$('.infinite-scroll-preloader').remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新最后加载的序号
|
||||||
|
addItems(pageBean.pageNo, pageBean.pageSize);
|
||||||
|
lastIndex = $('.list-block.cityList ul li').length;
|
||||||
|
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||||
|
$.refreshScroller();
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,223 @@
|
|||||||
|
<!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-orange.css">
|
||||||
|
<style>
|
||||||
|
.list-block.cityList > p {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</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>
|
||||||
|
<button class="button button-link button-nav pull-right" onclick="share()">
|
||||||
|
<span class="icon icon-share"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="title">全国上涨列表</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50">
|
||||||
|
<div class="list-block media-list cityList" style="margin-top:0.8rem;" id="tableList">
|
||||||
|
<ul class="list-container">
|
||||||
|
<div class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">排名</div>
|
||||||
|
<div class="col-25">城市</div>
|
||||||
|
<div class="col-33">{{month}}月均价</div>
|
||||||
|
<div class="col-25">{{month}}月涨幅</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<li v-for="item in list">
|
||||||
|
<a class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-15 tac">{{item.rangeLevel}}</div>
|
||||||
|
<div class="col-25">{{item.city}}</div>
|
||||||
|
<div class="col-33">{{item.avgPrice}}元/㎡</div>
|
||||||
|
<div class="col-25">
|
||||||
|
<em class="up">{{Math.abs(item.markup*100).toFixed(2)}}%<i class="icon icon-arrow-red"></i></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p v-if="end">没有更多数据</p>
|
||||||
|
<p v-else>上拉查看更多排名</p>
|
||||||
|
<!-- <p>没有更多数据</p>-->
|
||||||
|
</div>
|
||||||
|
<!-- 加载提示符 -->
|
||||||
|
<div class="infinite-scroll-preloader">
|
||||||
|
<div class="preloader"></div>
|
||||||
|
</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/light7.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||||
|
<script type="text/javascript" src="../../config.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||||
|
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></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="../../js/log/log_stat.js" ></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var date = new Date();
|
||||||
|
var month = date.getMonth()+1+'月';
|
||||||
|
|
||||||
|
var shareUrl = BASE_PATH+"/quotations/cityUpRanking";
|
||||||
|
var sharehrefTitle = "全国上涨列表";
|
||||||
|
var sharehrefDes = "全国上涨列表!";
|
||||||
|
var shareId='';
|
||||||
|
var picUrl = '_www/images/default_share.png';
|
||||||
|
var hid = "";
|
||||||
|
|
||||||
|
var pageBean=new Vue({
|
||||||
|
data:{
|
||||||
|
pageNo:2,
|
||||||
|
pageSize:10
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var tableList = new Vue({
|
||||||
|
el: '#tableList',
|
||||||
|
data: {
|
||||||
|
month : month,
|
||||||
|
end : false,
|
||||||
|
list:[]
|
||||||
|
}/*,
|
||||||
|
methods: {
|
||||||
|
menu:function() {
|
||||||
|
if(this.end){
|
||||||
|
console.log("已显示全部");
|
||||||
|
this.end = true;
|
||||||
|
}else{
|
||||||
|
axios.get("/rest/quotations/queryMarkUpTopByPage", {params:{pageNo:pageBean.pageNo,pageSize:pageBean.pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
this.end = response.data.data.end;
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted:function() {
|
||||||
|
window.addEventListener('scroll', this.menu());
|
||||||
|
}*/
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
function onPlusReady(){
|
||||||
|
var self = plus.webview.currentWebview();
|
||||||
|
hid = self.hid;
|
||||||
|
updateSerivces();
|
||||||
|
}
|
||||||
|
|
||||||
|
function share(){
|
||||||
|
var eventType = "shareCityUpRankingClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=hid;
|
||||||
|
dataMap["type"]="house";
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
shareHref();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//排行页面底部无限加载事件
|
||||||
|
$.init();
|
||||||
|
$(function() {
|
||||||
|
// 加载flag
|
||||||
|
var loading = false;
|
||||||
|
// 最多可加载的条目
|
||||||
|
var maxItems = 366;
|
||||||
|
|
||||||
|
// 每次加载添加多少条目
|
||||||
|
var itemsPerLoad = 10;
|
||||||
|
|
||||||
|
function addItems(pageNo,pageSize){
|
||||||
|
axios.get("/rest/quotations/queryMarkUpTopByPage", {params:{pageNo:pageNo,pageSize:pageSize}})
|
||||||
|
.then(function (response) {
|
||||||
|
tableList.end = response.data.data.end;
|
||||||
|
tableList.list = tableList.list.concat(response.data.data.list);
|
||||||
|
pageBean.pageNo=pageBean.pageNo+1;
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//预先加载10条
|
||||||
|
addItems(1, 20);
|
||||||
|
// 上次加载的序号
|
||||||
|
var lastIndex = 10;
|
||||||
|
|
||||||
|
// 注册'infinite'事件处理函数
|
||||||
|
$(document).on('infinite', '.infinite-scroll-bottom',function() {
|
||||||
|
// 如果正在加载,则退出
|
||||||
|
if (loading) return;
|
||||||
|
|
||||||
|
// 设置flag
|
||||||
|
loading = true;
|
||||||
|
|
||||||
|
// 模拟1s的加载过程
|
||||||
|
setTimeout(function() {
|
||||||
|
// 重置加载flag
|
||||||
|
loading = false;
|
||||||
|
|
||||||
|
if(tableList.end){
|
||||||
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
|
// 删除加载提示符
|
||||||
|
$('.infinite-scroll-preloader').remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新最后加载的序号
|
||||||
|
addItems(pageBean.pageNo,pageBean.pageSize);
|
||||||
|
lastIndex = $('.list-block.cityList ul li').length;
|
||||||
|
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||||
|
$.refreshScroller();
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -234,8 +234,8 @@
|
|||||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
||||||
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
||||||
<div class="icon01Box">
|
<div class="icon01Box">
|
||||||
<i class="icon icon-chart01a" onclick="lineChart()"></i>
|
<i class="icon icon-chart01a" ></i>
|
||||||
<i class="icon icon-chart01 dn" onclick="kLineChart()"></i>
|
<i class="icon icon-chart01-no"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-block" id="trendDiv1">
|
<div class="content-block" id="trendDiv1">
|
||||||
<div class="buttons-row theme">
|
<div class="buttons-row theme">
|
||||||
|
|||||||
@@ -59,11 +59,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="card-content-inner row">
|
<div class="card-content-inner row">
|
||||||
<span class="col-50">
|
<span class="col-50" onclick="clicked('cityUpRanking.html', true,false,{},{})">
|
||||||
<em class="up"><strong>{{upRate}}</strong>%</em>
|
<em class="up"><strong>{{upRate}}</strong>%</em>
|
||||||
<label>城市上涨</label>
|
<label>城市上涨</label>
|
||||||
</span>
|
</span>
|
||||||
<span class="col-50">
|
<span class="col-50" onclick="clicked('cityDownRanking.html', true,false,{},{})">
|
||||||
<em class="down"><strong>{{downRate}}</strong>%</em>
|
<em class="down"><strong>{{downRate}}</strong>%</em>
|
||||||
<label>城市下跌</label>
|
<label>城市下跌</label>
|
||||||
</span>
|
</span>
|
||||||
@@ -89,31 +89,32 @@
|
|||||||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank" v-cloak>
|
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank" v-cloak>
|
||||||
<div class="cardNearbyWin">
|
<div class="cardNearbyWin">
|
||||||
<div class="card cardNearby cardRanking" v-for="item in datas">
|
<div class="card cardNearby cardRanking" v-for="item in datas">
|
||||||
<div class="card-header" v-if="item.type==0">
|
<a v-if="item.type==0" href="#" onclick="clicked('cityRanking.html', true,false,{},{})">
|
||||||
|
<div class="card-header" v-if="item.type==0">
|
||||||
城市涨幅排行
|
城市涨幅排行
|
||||||
</div>
|
</div>
|
||||||
<div class="card-header" v-else-if="item.type==1">
|
<div class="card-header" v-if="item.type==0"><em>①</em>{{item.city}}</div>
|
||||||
城市潜力排行
|
<div class="card-content" v-if="item.type==0">
|
||||||
</div>
|
|
||||||
<div class="card-header" v-else-if="item.type==2">
|
|
||||||
城市均价排行
|
|
||||||
</div>
|
|
||||||
<div class="card-header"><em>①</em>{{item.city}}</div>
|
|
||||||
<div class="card-content">
|
|
||||||
<div class="card-content-inner" v-if="item.type==0">
|
<div class="card-content-inner" v-if="item.type==0">
|
||||||
<em class="up">{{item.oneMonthUpDownRange*100}}%<i class="icon icon-arrow-red"></i></em>
|
<em class="up">{{item.oneMonthUpDownRange*100}}%<i class="icon icon-arrow-red"></i></em>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content-inner" v-else-if="item.type==1">
|
</div>
|
||||||
|
<div class="card-footer">
|
||||||
|
<em>{{item.avgPrice}}元/㎡</em>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a v-if="item.type==1" href="#" onclick="clicked('cityRankingPotential.html', true,false,{},{})">
|
||||||
|
<div class="card-header" v-if="item.type==1">
|
||||||
|
城市潜力排行
|
||||||
|
</div>
|
||||||
|
<div class="card-header" v-if="item.type==1"><em>①</em>{{item.city}}</div>
|
||||||
|
<div class="card-content" v-if="item.type==1">
|
||||||
|
<div class="card-content-inner" v-if="item.type==1">
|
||||||
潜力指数
|
潜力指数
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content-inner" v-else-if="item.type==2">
|
|
||||||
<em class="up">{{Math.abs(item.oneMonthUpDownRange*100).toFixed(2)}}%
|
|
||||||
<i class="icon icon-arrow-red" v-show="item.oneMonthUpDownRange>0"></i>
|
|
||||||
<i class="icon icon-arrow-green" v-show="item.oneMonthUpDownRange<0"></i>
|
|
||||||
</em>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer" v-if="item.type==1">
|
<div class="card-footer" v-if="item.type==1">
|
||||||
<span class="star" v-if="item.index <=4">
|
<span class="star" v-if="item.index <=4">
|
||||||
<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||||||
</span>
|
</span>
|
||||||
@@ -148,9 +149,26 @@
|
|||||||
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>
|
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer" v-else>
|
</a>
|
||||||
<em>{{item.avgPrice}}元/㎡</em>
|
|
||||||
|
<a v-if="item.type==2" href="#" onclick="clicked('cityRankingAvgPrice.html', true,false,{},{})">
|
||||||
|
<div class="card-header" v-if="item.type==2">
|
||||||
|
城市均价排行
|
||||||
|
</div>
|
||||||
|
<div class="card-header" v-if="item.type==2"><em>①</em>{{item.city}}</div>
|
||||||
|
<div class="card-content" v-if="item.type==2">
|
||||||
|
<div class="card-content-inner" v-if="item.type==2">
|
||||||
|
<em class="up">{{Math.abs(item.oneMonthUpDownRange*100).toFixed(2)}}%
|
||||||
|
<i class="icon icon-arrow-red" v-show="item.oneMonthUpDownRange>0"></i>
|
||||||
|
<i class="icon icon-arrow-green" v-show="item.oneMonthUpDownRange<0"></i>
|
||||||
|
</em>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="card-footer">
|
||||||
|
<em>{{item.avgPrice}}元/㎡</em>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -234,7 +252,119 @@
|
|||||||
<div class="chart" id="price_chart"></div>
|
<div class="chart" id="price_chart"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="topic">
|
||||||
|
<div class="topicTitle topicTitle03"><img src="../../images/lineImg.png">城市报告<img src="../../images/lineImg.png"></div>
|
||||||
|
<div class="topicContent" style="padding:0;padding-bottom:0.5rem;">
|
||||||
|
<div class="content-block content-block01 content-block01a" style="padding-bottom:0.5rem;">
|
||||||
|
<div class="buttons-row theme">
|
||||||
|
<a href="#tabCityReport1" class="tab-link button active">人口</a>
|
||||||
|
<a href="#tabCityReport2" class="tab-link button">经济</a>
|
||||||
|
<a href="#tabCityReport3" class="tab-link button">景点/高校</a>
|
||||||
|
<a href="#tabCityReport4" class="tab-link button">气候</a>
|
||||||
|
<a href="#tabCityReport5" class="tab-link button">交通</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="tabs">
|
||||||
|
<div id="tabCityReport1" class="tab active">
|
||||||
|
<div class="list-block dataList">
|
||||||
|
<ul>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">总人口:<em>{{paramDivisionHead(cityReport.population)}}</em><small>{{paramDivisionTail(cityReport.population)}}</small></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">面积:<em>{{paramFilter(cityReport.area)}}</em></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">发展指数:<em>{{paramDivisionHead(cityReport.humanDevelopmentIndex)}}</em><small>{{paramDivisionTail(cityReport.humanDevelopmentIndex)}}</small></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">行政区级别:<em>{{paramFilter(cityReport.administrativeDivision)}}</em></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="tabCityReport2" class="tab">
|
||||||
|
<div class="list-block dataList">
|
||||||
|
<ul>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">生产总值:<em>{{paramDivisionHead(cityReport.grp)}}</em><small>{{paramDivisionTail(cityReport.GRP)}}</small></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">人均生产总值:<em>{{paramDivisionHead(cityReport.gnpp)}}</em><small>{{paramDivisionTail(cityReport.GNPP)}}</small></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">人均支配收入:<em>{{paramDivisionHead(cityReport.perCapitaIncome)}}</em><small>{{paramDivisionTail(cityReport.perCapitaIncome)}}</small></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="tabCityReport3" class="tab">
|
||||||
|
<div class="list-block dataList">
|
||||||
|
<ul>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">著名景点:<em>{{paramFilter(cityReport.famousScenery)}}</em></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">著名高校:<em>{{paramFilter(cityReport.famousUniversities)}}</em></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="tabCityReport4" class="tab">
|
||||||
|
<div class="list-block dataList">
|
||||||
|
<ul>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">气候条件:<em>{{paramFilter(cityReport.weatherConditions)}}</em></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">地理位置:<em>{{paramFilter(cityReport.geographicPosition)}}</em></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="tabCityReport5" class="tab">
|
||||||
|
<div class="list-block dataList">
|
||||||
|
<ul>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">机场:<em>{{paramFilter(cityReport.airport)}}</em></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-text">火车站:<em>{{paramFilter(cityReport.railwayStation)}}</em></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="topic">
|
<div class="topic">
|
||||||
<div class="topicTitle">热门小区</div>
|
<div class="topicTitle">热门小区</div>
|
||||||
<div class="topicContent" style="padding:0;">
|
<div class="topicContent" style="padding:0;">
|
||||||
@@ -1222,7 +1352,6 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||||
<script type="text/javascript" src="../../js/city.js" ></script>
|
<script type="text/javascript" src="../../js/city.js" ></script>
|
||||||
<script type="text/javascript" src="../../js/ad_position_image.js"></script>
|
<script type="text/javascript" src="../../js/ad_position_image.js"></script>
|
||||||
<script type="text/javascript" src="../../config.js"></script>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var shareUrl = BASE_PATH+"/house/cityShare?city=全国";
|
var shareUrl = BASE_PATH+"/house/cityShare?city=全国";
|
||||||
@@ -1242,7 +1371,8 @@ $.config = {router: false}
|
|||||||
month:month,
|
month:month,
|
||||||
collecd:false,
|
collecd:false,
|
||||||
nears:[],
|
nears:[],
|
||||||
myCityMap : []
|
myCityMap : [],
|
||||||
|
cityReport:{}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1552,7 +1682,7 @@ function clickCity(val){
|
|||||||
loadUpOrDown(city);
|
loadUpOrDown(city);
|
||||||
loadHotDistrict(city)
|
loadHotDistrict(city)
|
||||||
loadCityPricesAndCounts(city)
|
loadCityPricesAndCounts(city)
|
||||||
|
loadCityReport(city)
|
||||||
$("#trendDiv a").removeClass("active")
|
$("#trendDiv a").removeClass("active")
|
||||||
$("#trendDiv a[v='2']").addClass("active")// 默认走势显示半年
|
$("#trendDiv a[v='2']").addClass("active")// 默认走势显示半年
|
||||||
|
|
||||||
|
|||||||
@@ -17,12 +17,13 @@
|
|||||||
.list-block ul:before{height:0;}
|
.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;}
|
.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%;}
|
.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 .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 .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
|
||||||
.list-block .add01a{top:inherit;bottom:0.75rem;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 em{font-size:0.8rem;color:#EB5F34;}
|
||||||
.list-block .item-title .tag small{font-size:80%;color:#F5A100;}
|
.list-block .item-title .tag small{font-size:80%;color:#F5A100;}
|
||||||
|
.cardPrice01 .card-footer span:nth-child(2){text-align:center;}
|
||||||
|
.list-block ul:before{height:0;}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@@ -74,10 +75,10 @@
|
|||||||
<em><strong>{{oneYearUpDownPrice}}</strong>万<i id="oneYearUpDownPrice" class="icon icon-arrow-red"></i></em>
|
<em><strong>{{oneYearUpDownPrice}}</strong>万<i id="oneYearUpDownPrice" class="icon icon-arrow-red"></i></em>
|
||||||
<label>近1年升值额</label>
|
<label>近1年升值额</label>
|
||||||
</span>
|
</span>
|
||||||
<!--<span>
|
<span onclick="gotoAssetsLevel()">
|
||||||
<em><strong>待定</strong><i class="icon icon-arrow-red"></i></em>
|
<em><strong>{{userAssetsLevel}}</strong></em>
|
||||||
<label>资产排名</label>
|
<label>资产排名</label>
|
||||||
</span>-->
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="list-block media-list">
|
<div class="list-block media-list">
|
||||||
@@ -95,7 +96,8 @@
|
|||||||
|
|
||||||
<div class="page-group" style="display: none;" id="page-group-login-temp"></div>
|
<div class="page-group" style="display: none;" id="page-group-login-temp"></div>
|
||||||
|
|
||||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||||
@@ -124,7 +126,8 @@ var baseInfo = new Vue({
|
|||||||
data: {
|
data: {
|
||||||
totalPrice : "",
|
totalPrice : "",
|
||||||
oneYearUpDownRange:"",
|
oneYearUpDownRange:"",
|
||||||
oneYearUpDownPrice: ""
|
oneYearUpDownPrice: "",
|
||||||
|
userAssetsLevel: ""
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// 加载flag
|
// 加载flag
|
||||||
@@ -183,6 +186,7 @@ function selectHouseInfoList(){
|
|||||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||||
var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
|
var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
|
||||||
var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
|
var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
|
||||||
|
var userAssetsLevelMap = resultsMap.userAssetsLevelMap;
|
||||||
// 上次加载的序号
|
// 上次加载的序号
|
||||||
lastIndex = $('.list-container li').length;
|
lastIndex = $('.list-container li').length;
|
||||||
//登录状态,但没有数据
|
//登录状态,但没有数据
|
||||||
@@ -222,7 +226,7 @@ function selectHouseInfoList(){
|
|||||||
pageSize = resultsMap.houseInfoPageList.limit;
|
pageSize = resultsMap.houseInfoPageList.limit;
|
||||||
totalPages = resultsMap.houseInfoPageList.totalPages;
|
totalPages = resultsMap.houseInfoPageList.totalPages;
|
||||||
totalRecords = resultsMap.houseInfoPageList.totalRecords;
|
totalRecords = resultsMap.houseInfoPageList.totalRecords;
|
||||||
addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap);
|
addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap, userAssetsLevelMap);
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
@@ -271,6 +275,13 @@ function gotoAddHouse(){
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//跳转资产排名
|
||||||
|
function gotoAssetsLevel(){
|
||||||
|
if(baseInfo.userAssetsLevel!="暂无"){
|
||||||
|
clicked('/views/user/assetsLevel.html',true,false,{},{},function(){})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//跳转房产详情
|
//跳转房产详情
|
||||||
function gotoHouseDetail(id){
|
function gotoHouseDetail(id){
|
||||||
clicked('/views/house/detail.html',true,false,{},{houseId:id},function(){
|
clicked('/views/house/detail.html',true,false,{},{houseId:id},function(){
|
||||||
@@ -288,12 +299,15 @@ function gotoLoanApply(houseId, city){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 分页构造数据 */
|
/* 分页构造数据 */
|
||||||
function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap) {
|
function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap, userAssetsLevelMap) {
|
||||||
var html = '';
|
var html = '';
|
||||||
//控制总产值部分显示
|
//控制总产值部分显示
|
||||||
baseInfo.totalPrice = houseInfoTotalMap["totalPrice"];
|
baseInfo.totalPrice = houseInfoTotalMap["totalPrice"];
|
||||||
baseInfo.oneYearUpDownRange = Math.abs(houseInfoTotalMap["oneYearUpDownRange"]);
|
baseInfo.oneYearUpDownRange = Math.abs(houseInfoTotalMap["oneYearUpDownRange"]);
|
||||||
baseInfo.oneYearUpDownPrice = Math.abs(houseInfoTotalMap["oneYearUpDownPrice"]);
|
baseInfo.oneYearUpDownPrice = Math.abs(houseInfoTotalMap["oneYearUpDownPrice"]);
|
||||||
|
//资产排名(资产为0,不可点击)
|
||||||
|
baseInfo.userAssetsLevel = userAssetsLevelMap["userAssetsLevel"] == 0?"暂无":userAssetsLevelMap["userAssetsLevel"];
|
||||||
|
|
||||||
if(!isNaN(houseInfoTotalMap["oneYearUpDownRange"])){
|
if(!isNaN(houseInfoTotalMap["oneYearUpDownRange"])){
|
||||||
//涨跌幅大于零
|
//涨跌幅大于零
|
||||||
if(parseFloat(houseInfoTotalMap["oneYearUpDownRange"])>=0){
|
if(parseFloat(houseInfoTotalMap["oneYearUpDownRange"])>=0){
|
||||||
|
|||||||
@@ -61,10 +61,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<!-- 动态封装部分 end -->
|
<!-- 动态封装部分 end -->
|
||||||
</div>
|
</div>
|
||||||
<div class="content-block" style="display: none;">
|
</div>
|
||||||
|
<div class="content-block bar-footer" style="display: none;">
|
||||||
<p><a onclick="openaddWindow()" class="button button-big button-fill theme">立即评估</a></p>
|
<p><a onclick="openaddWindow()" class="button button-big button-fill theme">立即评估</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="page page-current" id="noData" style="display: none;">
|
<div class="page page-current" id="noData" style="display: none;">
|
||||||
<header class="bar bar-nav barBorder">
|
<header class="bar bar-nav barBorder">
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
<div class="noData">
|
<div class="noData">
|
||||||
<img src="../../images/noData.png">
|
<img src="../../images/noData.png">
|
||||||
<p>评估房产 发现价值</p>
|
<p>评估房产 发现价值</p>
|
||||||
<div class="content-block">
|
<div class="content-block bar-footer">
|
||||||
<p><a onclick="openaddWindow()" class="button button-big button-fill theme">立即评估</a></p>
|
<p><a onclick="openaddWindow()" class="button button-big button-fill theme">立即评估</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ $.config = {router: false}
|
|||||||
|
|
||||||
//loadRegionInfo("上海");
|
//loadRegionInfo("上海");
|
||||||
function loadRegionInfo(city){
|
function loadRegionInfo(city){
|
||||||
axios.get("/rest/quotations/regionInfos",{
|
axios.get("/rest/quotations/regionMarkupInfos",{
|
||||||
params:{
|
params:{
|
||||||
city : city
|
city : city
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
<div class="page-group">
|
<div class="page-group">
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<header class="bar bar-nav">
|
<header class="bar bar-nav barBorder">
|
||||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="mui-icon mui-icon mui-icon-arrowleft"></span>
|
<span class="mui-icon mui-icon mui-icon-arrowleft"></span>
|
||||||
</button>
|
</button>
|
||||||
@@ -134,7 +134,7 @@ $.config = {router: false}
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
var id; //= "186182250936643584";
|
var id = "202852336950816768";
|
||||||
var shareUrl = BASE_PATH+"/news/newDetail?newsId=";
|
var shareUrl = BASE_PATH+"/news/newDetail?newsId=";
|
||||||
var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
|
var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
|
||||||
var sharehrefDes = "客观里面请!";
|
var sharehrefDes = "客观里面请!";
|
||||||
@@ -358,7 +358,7 @@ function addItems(number, lastIndex) {
|
|||||||
|
|
||||||
// 添加新条目
|
// 添加新条目
|
||||||
$('.commentList ul').append(html);
|
$('.commentList ul').append(html);
|
||||||
if($('.commentList li').length== totalCount+1){
|
if(curPageSize!=itemsPerLoad){
|
||||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
$.detachInfiniteScroll($('.infinite-scroll'));
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
// 删除加载提示符
|
// 删除加载提示符
|
||||||
@@ -565,7 +565,7 @@ function collect(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 发布评论 */
|
/* 发布评论 */
|
||||||
$(".commentInputBox input").focus(function () {
|
$(".commentInputBox input").click(function () {
|
||||||
$(".commentInputBox").hide();
|
$(".commentInputBox").hide();
|
||||||
$(".commentReleaseBox").show();
|
$(".commentReleaseBox").show();
|
||||||
$(".commentReleaseBox input").focus();
|
$(".commentReleaseBox input").focus();
|
||||||
@@ -630,7 +630,6 @@ $(function() {
|
|||||||
$('#commentInput').on('click', function () {
|
$('#commentInput').on('click', function () {
|
||||||
var target = this;
|
var target = this;
|
||||||
// 使用定时器是为了让输入框上滑时更加自然
|
// 使用定时器是为了让输入框上滑时更加自然
|
||||||
|
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
document.body.scrollTop = document.body.scrollHeight;
|
document.body.scrollTop = document.body.scrollHeight;
|
||||||
target.scrollIntoView(true);
|
target.scrollIntoView(true);
|
||||||
|
|||||||
@@ -0,0 +1,105 @@
|
|||||||
|
<!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>
|
||||||
|
.list-block.cityList ul.list-container > div .item-subtitle div{color:#999;}
|
||||||
|
.list-block.cityList .item-subtitle div:first-child{margin-left:0;}
|
||||||
|
.list-block.cityList .item-subtitle div.col-20{position:relative;height:1.1rem;}
|
||||||
|
.list-block.cityList .item-subtitle div.col-20:last-child em{color:#F18D00;}
|
||||||
|
.list-block.cityList .item-subtitle div.col-20 .button{width:auto;height:1.1rem;top:0;left:0;right:inherit;font-style:normal;line-height:1rem;}
|
||||||
|
.list-block.cityList .item-subtitle div.col-25 .star .icon{margin-right:0;}
|
||||||
|
.list-block.cityList .item-subtitle div img{width:1rem;margin:0 auto;}
|
||||||
|
.list-block.cityList > p{font-size:0.7rem;color:#999;text-align:center;}
|
||||||
|
</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>
|
||||||
|
<!--<button class="button button-link button-nav pull-right">
|
||||||
|
<span class="icon icon-share"></span>
|
||||||
|
</button>-->
|
||||||
|
<h1 class="title">用户资产排名</h1>
|
||||||
|
</header>
|
||||||
|
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50" id="pageContent" style="display: none;">
|
||||||
|
<div class="card cardPrice cardCity cardCity02" id="assetsLevel" v-cloak>
|
||||||
|
<div class="card-footer">
|
||||||
|
<span>
|
||||||
|
<em><strong>NO.{{level}}</strong></em>
|
||||||
|
<label>排名</label>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
<em><strong v-html="name"></strong></em>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
<em><strong>{{assets}}</strong>万元</em>
|
||||||
|
<label>资产总额</label>
|
||||||
|
</span>
|
||||||
|
<img src="../../images/rankingCup05.png">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="list-block media-list cityList">
|
||||||
|
<ul class="list-container">
|
||||||
|
<div class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-subtitle row">
|
||||||
|
<div class="col-20 tac">排名</div>
|
||||||
|
<div class="col-40">用户</div>
|
||||||
|
<div class="col-40">资产总额</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 动态构造数据部分 -->
|
||||||
|
</ul>
|
||||||
|
<!--<p>上拉查看更多排名</p>-->
|
||||||
|
<!-- <p>没有更多数据</p> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 加载提示符 -->
|
||||||
|
<div class="infinite-scroll-preloader" id="loading" style="display: block;">
|
||||||
|
<div class="preloader"></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="../../js/log/log_stat.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/user/assetsLevel.js" charset="utf-8"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
<div class="topBg01">
|
<div class="topBg01">
|
||||||
<!-- 目前是登录后点击个人头像设置密码 -->
|
<!-- 目前是登录后点击个人头像设置密码 -->
|
||||||
<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
|
<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
|
||||||
<p id="user_mobile"><br><span class="tag"><!--<small>土豪</small>--></span></p>
|
<p><label id="user_mobile"><!--<a href="04_mine05_assetsRanking.html">资产排名:12</a>--></label><!--<span class="tag "><small>土豪</small></span>--></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="topic" id="toolList" v-bind:style="{display:haveTools}">
|
<div class="topic" id="toolList" v-bind:style="{display:haveTools}">
|
||||||
<div class="topicContent homeBox" style="padding-left:0;padding-right:0;">
|
<div class="topicContent homeBox" style="padding-left:0;padding-right:0;">
|
||||||
@@ -434,7 +434,7 @@ function selectUserInfo(){
|
|||||||
var mobile = result.mobile;
|
var mobile = result.mobile;
|
||||||
//加载个人信息时候为该变量赋值
|
//加载个人信息时候为该变量赋值
|
||||||
_mobile = result.mobile;
|
_mobile = result.mobile;
|
||||||
$('#user_mobile').html(mobile.substring(0,3)+'****'+mobile.substring(7)+'<br><span class="tag"><!--<small>土豪</small>--></span>');
|
$('#user_mobile').text(mobile.substring(0,3)+'****'+mobile.substring(7));
|
||||||
if(result.headImg != null && result.headImg.length > 0){
|
if(result.headImg != null && result.headImg.length > 0){
|
||||||
$('#user_headImg').attr('src', result.headImg);
|
$('#user_headImg').attr('src', result.headImg);
|
||||||
}
|
}
|
||||||
@@ -483,12 +483,12 @@ $(document).on("click",".confirm-ok", function () {
|
|||||||
function initMyHouseParams(){
|
function initMyHouseParams(){
|
||||||
mh_loading = false;
|
mh_loading = false;
|
||||||
mh_page = undefined;
|
mh_page = undefined;
|
||||||
var mh_pageSize = undefined;
|
mh_pageSize = undefined;
|
||||||
var mh_totalPages = undefined;
|
mh_totalPages = undefined;
|
||||||
var mh_totalRecords = undefined;
|
mh_totalRecords = undefined;
|
||||||
var mh_lastIndex = undefined;
|
mh_lastIndex = undefined;
|
||||||
var mh_itemsPerLoad = undefined;
|
mh_itemsPerLoad = undefined;
|
||||||
var mh_maxItems = 100;
|
mh_maxItems = 100;
|
||||||
//清空构造的container
|
//清空构造的container
|
||||||
$('#myhouse').html('');
|
$('#myhouse').html('');
|
||||||
// 删除加载提示符
|
// 删除加载提示符
|
||||||
|
|||||||
@@ -37,8 +37,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bar top">
|
<div class="bar top">
|
||||||
<div class="searchBox">
|
<div class="searchBox">
|
||||||
<div class="cityChoice open-about01"><a id="input_city"></a><i></i></div>
|
<div class="cityChoice open-about01"><a id="input_city"></a><i class="icon icon-down"></i></div>
|
||||||
<span class="open-about02"><i></i><input type="text" id="input_address" placeholder="搜索小区" readonly="readonly"></span>
|
<span class="open-about02"><i class="icon icon-search"></i><input type="text" id="input_address" placeholder="搜索小区" readonly="readonly"></span>
|
||||||
<input name ="region" type="text" style="display:none;"/>
|
<input name ="region" type="text" style="display:none;"/>
|
||||||
<input name ="cityAddress" id="cityAddress" type="text" style="display:none;"/>
|
<input name ="cityAddress" id="cityAddress" type="text" style="display:none;"/>
|
||||||
<input id="address" name = "address" type="hidden"/>
|
<input id="address" name = "address" type="hidden"/>
|
||||||
@@ -63,28 +63,28 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="card-content-inner" id="momAvgPriceId_noData">暂无数据</div>
|
<div class="card-content-inner" id="momAvgPriceId_noData">暂无数据</div>
|
||||||
<div class="card-content-inner" id="momAvgPriceId">{{momAvgPrice}}<span>元/㎡</span></div>
|
<div class="card-content-inner" id="momAvgPriceId" onclick="openRegionRank()">{{momAvgPrice}}<span>元/㎡</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<span>
|
<span>
|
||||||
<em id="momRateId_noData">暂无数据
|
<em id="momRateId_noData">暂无数据
|
||||||
</em>
|
</em>
|
||||||
<em id="momRateId"><strong>{{momRate}}</strong>%
|
<em id="momRateId" onclick="openRegionRank()"><strong>{{momRate}}</strong>%
|
||||||
<i class="icon" id="momRateTypeClass"></i>
|
<i class="icon" id="momRateTypeClass"></i>
|
||||||
</em>
|
</em>
|
||||||
<label>环比上月</label>
|
<label onclick="openRegionRank()">环比上月</label>
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
<em id="regionRankId_noData">暂无数据
|
<em id="regionRankId_noData">暂无数据
|
||||||
</em>
|
</em>
|
||||||
<em id="regionRankId"><strong>{{regionRank}}</strong></em>
|
<em id="regionRankId" onclick="openRegionRank()"><strong>{{regionRank}}</strong></em>
|
||||||
<label>区域均价排名</label>
|
<label onclick="openRegionRank()">区域均价排名</label>
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
<em id="priceRateId_noData">暂无数据
|
<em id="priceRateId_noData">暂无数据
|
||||||
</em>
|
</em>
|
||||||
<em id="priceRateId"><strong>{{priceRate}}</strong>%<i class="icon" id="priceRateTypeClass"></i></em>
|
<em id="priceRateId" onclick="openRegionRank()"><strong>{{priceRate}}</strong>%<i class="icon" id="priceRateTypeClass"></i></em>
|
||||||
<label id="priceInfo">下跌概率</label>
|
<label id="priceInfo" onclick="openRegionRank()">下跌概率</label>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
<div class="content-block-title cardNearbyName" id="nearAddress"><i class="icon icon-address02"></i><span id="nearDistrictSpan"></span><i class="icon arrow-up"></i></div>
|
<div class="content-block-title cardNearbyName" id="nearAddress"><i class="icon icon-address02"></i><span id="nearDistrictSpan"></span><i class="icon arrow-up"></i></div>
|
||||||
<div class="cardNearbyBox" id="nearDistricts">
|
<div class="cardNearbyBox" id="nearDistricts">
|
||||||
</div>
|
</div>
|
||||||
<div class="content-block-title recommend dn" id="todayNews">今日推荐</div>
|
<div class="content-block-title recommend" id="todayNews">热门推荐</div>
|
||||||
<div id="newsList">
|
<div id="newsList">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1195,6 +1195,7 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="js/city.js" ></script>
|
<script type="text/javascript" src="js/city.js" ></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function openHangQing(city,id){
|
function openHangQing(city,id){
|
||||||
var eventType = "newsClick";
|
var eventType = "newsClick";
|
||||||
var dataMap = {};
|
var dataMap = {};
|
||||||
@@ -1235,7 +1236,7 @@ var lat = 0;
|
|||||||
var lng = 0;
|
var lng = 0;
|
||||||
var address = "";
|
var address = "";
|
||||||
var cat;
|
var cat;
|
||||||
var todayDeployFlag = true;
|
//var todayDeployFlag = true;
|
||||||
var timestamp1 = new Date().getTime();
|
var timestamp1 = new Date().getTime();
|
||||||
document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
//扩展API加载完毕,现在可以正常调用扩展API
|
//扩展API加载完毕,现在可以正常调用扩展API
|
||||||
@@ -1254,25 +1255,26 @@ function getPosition(){
|
|||||||
if(city){
|
if(city){
|
||||||
city = formatBaiduCity(city);
|
city = formatBaiduCity(city);
|
||||||
}
|
}
|
||||||
|
region = p.address.district;
|
||||||
|
if(region.endWith("区") || region.endWith("市") ){
|
||||||
|
region = region.substring(0, region.length-1);
|
||||||
|
}
|
||||||
axios.get("/rest/index/isChinaCity", {
|
axios.get("/rest/index/isChinaCity", {
|
||||||
params: {
|
params: {
|
||||||
city: city
|
city: city,
|
||||||
|
region: region
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
if(response.data.data.status==1){
|
if(response.data.data.status==1 && (response.data.data.region!="" || response.data.data.region!=undefined)){
|
||||||
address = p.address.street;
|
address = p.address.street;
|
||||||
province = p.address.province;
|
province = p.address.province;
|
||||||
|
region = response.data.data.region
|
||||||
region = p.address.district;
|
|
||||||
lng = p.coords.longitude;//获取到当前位置的经度
|
lng = p.coords.longitude;//获取到当前位置的经度
|
||||||
lat = p.coords.latitude;//获取到当前位置的纬度;
|
lat = p.coords.latitude;//获取到当前位置的纬度;
|
||||||
oriLng = p.coords.longitude;
|
oriLng = p.coords.longitude;
|
||||||
oriLat = p.coords.latitude;
|
oriLat = p.coords.latitude;
|
||||||
|
|
||||||
if(region.endWith("区") || region.endWith("市") ){
|
|
||||||
region = region.substring(0, region.length-1);
|
|
||||||
}
|
|
||||||
oriRegion = region;
|
oriRegion = region;
|
||||||
oriCity = city;
|
oriCity = city;
|
||||||
}else{
|
}else{
|
||||||
@@ -1280,7 +1282,6 @@ function getPosition(){
|
|||||||
$("#input_city").text(city);
|
$("#input_city").text(city);
|
||||||
initRegionSelect(city);
|
initRegionSelect(city);
|
||||||
localStorage.setItem("init_city", city);
|
localStorage.setItem("init_city", city);
|
||||||
//addLocation(lat,lng);
|
|
||||||
initBaseInfo(city,"","",0,0);
|
initBaseInfo(city,"","",0,0);
|
||||||
$("#ShangHaiDiv").show();
|
$("#ShangHaiDiv").show();
|
||||||
$("#otherCityDiv").hide();
|
$("#otherCityDiv").hide();
|
||||||
@@ -1301,7 +1302,18 @@ function getPosition(){
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/*}
|
||||||
|
city = "嘉兴";
|
||||||
|
province = "浙江";
|
||||||
|
region = "秀洲"
|
||||||
|
lng = 120.6845052002997;//获取到当前位置的经度
|
||||||
|
lat = 30.62661481274257;//获取到当前位置的纬度;
|
||||||
|
oriLng = 120.6845052002997;
|
||||||
|
oriLat = 30.62661481274257;
|
||||||
|
|
||||||
|
oriRegion = "秀洲";
|
||||||
|
oriCity = "嘉兴";
|
||||||
|
initData();*/
|
||||||
}, function(e){
|
}, function(e){
|
||||||
city = "上海";
|
city = "上海";
|
||||||
$("#input_city").text(city);
|
$("#input_city").text(city);
|
||||||
@@ -1605,16 +1617,16 @@ function initNews(page){
|
|||||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
$.detachInfiniteScroll($('.infinite-scroll'));
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
}
|
}
|
||||||
if(page==1){
|
if(page==1 && response.data.data.list.length==0){
|
||||||
todayDeployFlag = true;
|
//todayDeployFlag = true;
|
||||||
$("#todayNews").hide();
|
$("#todayNews").hide();
|
||||||
}
|
}
|
||||||
for(var i in response.data.data.list){
|
for(var i in response.data.data.list){
|
||||||
dataObj.push(response.data.data.list[i])
|
dataObj.push(response.data.data.list[i])
|
||||||
if(dataObj[i].todayDeploy && todayDeployFlag){
|
/*if(dataObj[i].todayDeploy && todayDeployFlag){
|
||||||
todayDeployFlag = false;
|
todayDeployFlag = false;
|
||||||
$("#todayNews").show();
|
$("#todayNews").show();
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
lastIndex = $('.cardInfo').length;
|
lastIndex = $('.cardInfo').length;
|
||||||
itemsPerLoad = response.data.data.list.length;
|
itemsPerLoad = response.data.data.list.length;
|
||||||
@@ -1831,7 +1843,7 @@ var itemsPerLoad2 = 5;
|
|||||||
var dataObj = [];
|
var dataObj = [];
|
||||||
var dataObj2 = [];
|
var dataObj2 = [];
|
||||||
var page = 1;
|
var page = 1;
|
||||||
var yesterDayDeployFlag = true;
|
//var yesterDayDeployFlag = true;
|
||||||
function addItems(number, lastIndex) {
|
function addItems(number, lastIndex) {
|
||||||
// 生成新条目的HTML
|
// 生成新条目的HTML
|
||||||
|
|
||||||
@@ -1845,16 +1857,16 @@ function addItems(number, lastIndex) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var html = '';
|
var html = '';
|
||||||
if(lastIndex == 0){
|
/*if(lastIndex == 0){
|
||||||
yesterDayDeployFlag = true;
|
yesterDayDeployFlag = true;
|
||||||
}
|
}*/
|
||||||
for(var i in dataObj){
|
for(var i in dataObj){
|
||||||
if(i>=lastIndex){
|
if(i>=lastIndex){
|
||||||
if((dataObj.length<lastIndex + number) || (i < lastIndex + number)){
|
if((dataObj.length<lastIndex + number) || (i < lastIndex + number)){
|
||||||
if(dataObj[i].yesterDayDeploy && yesterDayDeployFlag){
|
/*if(dataObj[i].yesterDayDeploy && yesterDayDeployFlag){
|
||||||
yesterDayDeployFlag = false;
|
yesterDayDeployFlag = false;
|
||||||
html += '<div class="content-block-title recommend" style="border-top:solid 0.5rem #f3f3f3;">历史推荐</div>';
|
html += '<div class="content-block-title recommend" style="border-top:solid 0.5rem #f3f3f3;">历史推荐</div>';
|
||||||
}
|
}*/
|
||||||
if(dataObj[i].type=="专题"){
|
if(dataObj[i].type=="专题"){
|
||||||
html += '<div class="card cardInfo cardInfo01" onclick="openNewsView(\''+dataObj[i].id+'\',\''+dataObj[i].type+'\')">'+
|
html += '<div class="card cardInfo cardInfo01" onclick="openNewsView(\''+dataObj[i].id+'\',\''+dataObj[i].type+'\')">'+
|
||||||
'<div class="card-header">'+dataObj[i].title+'</div>'+
|
'<div class="card-header">'+dataObj[i].title+'</div>'+
|
||||||
@@ -2363,6 +2375,7 @@ function changeCity(cityStr){
|
|||||||
getDistrictList(cityStr,lat,lng,"",sort,0,0,"");
|
getDistrictList(cityStr,lat,lng,"",sort,0,0,"");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(oriCity== cityStr){
|
if(oriCity== cityStr){
|
||||||
if(oriRegion!=""){
|
if(oriRegion!=""){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
@@ -2371,7 +2384,7 @@ function changeCity(cityStr){
|
|||||||
//changeRegion();
|
//changeRegion();
|
||||||
},1000)
|
},1000)
|
||||||
}
|
}
|
||||||
initBaseInfo(cityStr,oriRegion,"",0,0);
|
initBaseInfo(cityStr,oriRegion,address,lat,lng);
|
||||||
}else{
|
}else{
|
||||||
initBaseInfo(cityStr,"","",0,0);
|
initBaseInfo(cityStr,"","",0,0);
|
||||||
}
|
}
|
||||||
@@ -2691,6 +2704,7 @@ function getCityPriceLevel(cityParam){
|
|||||||
}
|
}
|
||||||
html += '<li class="item-content"><div class="item-inner"><div class="item-title theme" data-id="8"><i class="icon"></i>自定义:<input type="number" placeholder="最小" id="minPrice"> - <input type="number" placeholder="最大" id="maxPrice"> 万<a class="button button-fill theme" onclick="customPriceQuery()">确定</a></div></div></li></ul>';
|
html += '<li class="item-content"><div class="item-inner"><div class="item-title theme" data-id="8"><i class="icon"></i>自定义:<input type="number" placeholder="最小" id="minPrice"> - <input type="number" placeholder="最大" id="maxPrice"> 万<a class="button button-fill theme" onclick="customPriceQuery()">确定</a></div></div></li></ul>';
|
||||||
$("#select_price").html(html);
|
$("#select_price").html(html);
|
||||||
|
getDistrictList(cityParam,lat,lng,"",6,0,0,"");
|
||||||
|
|
||||||
$("#select_price li").on("click", function () {
|
$("#select_price li").on("click", function () {
|
||||||
$(this).parents("#select_price").find(".item-title").removeClass("active");
|
$(this).parents("#select_price").find(".item-title").removeClass("active");
|
||||||
@@ -2856,6 +2870,10 @@ function openDistWindow(city, region, name){
|
|||||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function openRegionRank(){
|
||||||
|
clicked('views/city/regionRanking.html',true,false,{},{city:$("#input_city").text()});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
/* 获取附近小区名称字数,截取附近小区名称前5字,并添加... */
|
/* 获取附近小区名称字数,截取附近小区名称前5字,并添加... */
|
||||||
|
|||||||