Commit 4f7b6324 by felix

每日一更

parent c824ea31
......@@ -17,9 +17,13 @@ class Config {
const DIC_PHOTOTYPE_TABLE = "dic_phototype";
const TOSPUR_ORGANIZATION_TABLE = 'tospur_organization';
const TOSPUR_CONSULTANT = 'tospur_consultant';
const TOSPUR_CONSULTANT_SCORE_TABLE = 'tospur_consultant_score';
const TOSPUR_HOUSE_TABLE = 'tospur_house';
const TOSPUR_IMAGE_TABLE = 'tospur_image';
const TOSPUR_TAG_TABLE = 'tospur_tag';
const TOSPUR_VIEW_HOUSE_TABLE = 'tospur_view_house';
const TOSPUR_VERIFY_TABLE = 'tospur_verify';
const WP_USERS_TABLE = 'wp_users';
//sync url
......
......@@ -98,13 +98,29 @@ class SearchDao
{
global $wpdb;
$where = " where 1=1";
if (isset($_GET['cityId'])) {
if ($cityId) {
$where .= " and cityId = " . $cityId;
}
$result = $wpdb->get_results($wpdb->prepare('select id,priceValue as value from ' . Config::DIC_TOTALPRICE_TABLE . $where, $cityId));
return $result;
}
public static function ajax_searchRentalPrice()
{
wp_send_json(SearchDao::searchRentalPrice($_GET['cityId']));
}
public static function searchRentalPrice($cityId)
{
global $wpdb;
$where = " where 1=1";
if ($cityId) {
$where .= " and cityId = " . $cityId;
}
$result = $wpdb->get_results($wpdb->prepare('select id,priceValue as value from ' . Config::DIC_RENTALPRICE_TABLE . $where, $cityId));
return $result;
}
public static function ajax_searchOrganization()
{
wp_send_json(SearchDao::searchOrganization($_GET['parentId']));
......@@ -143,6 +159,7 @@ class SearchDao
'roomId' => $_POST['roomId'],
'acreage' => $_POST['acreage'],
'totalPrice' => $_POST['totalPrice'],
'rentalPrice' => $_POST['rentalPrice'],
'searchText' => $_POST['searchText'],
'houseType' => $_POST['houseType'],
'index' => $_POST['index']
......@@ -203,6 +220,12 @@ class SearchDao
$params[] = $priceArray[1];
$sql = $sql . " and total_price between %d and %d";
}
if ($array['rentalPrice'] > -1) {
$priceArray = explode("-", $array['rentalPrice']);
$params[] = $priceArray[0];
$params[] = $priceArray[1];
$sql = $sql . " and rent between %d and %d";
}
if ($array['searchText'] != null) {
$params[] = "%" . $array['searchText'] . "%";
$sql = $sql . " and name like %s";
......@@ -383,6 +406,7 @@ class SearchDao
where id in(select user_id from a_house_user where user_type = 1 and house_id = %d) limit {$consultantLimit};";
$consultant = $wpdb->get_results($wpdb->prepare($consultantSql,$hid));
$context['consultant'] = $consultant;
if($type == 'edit'){
$imagesSql = 'select * from a_house_image ahi
LEFT JOIN tospur_image ti on ti.id = ahi.image_id
......
......@@ -19,4 +19,25 @@ $const_consultant_info_page = home_url() . '/?page=consultant_info';
//置业顾问 评分
$const_score_page = home_url() . '/?page=score';
//用户table
define('wp_users_table', 'wp_users');
//房源table
define('tospur_house_table', 'tospur_house');
//预约看房table
define('tospur_view_house_table', 'tospur_view_house');
//置业顾问table
define('tospur_consultant_table', 'tospur_consultant');
//置业顾问table
define('tospur_consultant_score_table', 'tospur_consultant_score');
//验证码table
define('tospur_verify_table', 'tospur_verify');
//图片table
define('tospur_image_table', 'tospur_image');
//房源图片关联table
define('a_house_image_table', 'a_house_image');
//标签table
define('tospur_tag_table', 'tospur_tag');
//房源标签关联table
define('a_house_tag_table', 'a_house_tag');
?>
\ No newline at end of file
......@@ -11,9 +11,10 @@ if ($user_id != 0) {
$current_user = wp_get_current_user();
$consultant_id = isset($_GET['consultant_id'])?$_GET['consultant_id']:$current_user->ID;
$context['consultant_id'] = $consultant_id;
$context['consultant_name'] = get_user_by('id', $consultant_id)->display_name;
$context['consultant'] = get_consultant_info($consultant_id);
$context['consultant_mobile'] = $_GET['mobile'];
$context['consultant_score_url'] = $const_score_page . '&consultant_id=' . $consultant_id;
$context['default_head'] = get_avatar_url(1);
}
Timber::render('consultant_info.html', $context);
......
......@@ -17,6 +17,7 @@ foreach ($city as $value) {
}
}
$context['city_id'] = $city_id;
$context['default_head'] = get_avatar_url(1);
Timber::render('consultant_list.html', $context);
......
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.tab {
width: 100%;
height: 40px;
......@@ -277,6 +261,8 @@ a:hover {
color: #636363;
padding: 20px 0;
border-bottom: 1px solid #7d7d7d;
position: relative;
height: 94px;
}
#wrapper #scroller ul li p {
padding-left: 15px;
......@@ -288,6 +274,34 @@ a:hover {
font-weight: bold;
margin-bottom: 2px;
}
#wrapper #scroller ul li p.accept {
position: absolute;
top: 28px;
right: 10px;
}
#wrapper #scroller ul li p.accept .btn {
color: #ffffff;
font-weight: bold;
margin: 0;
padding: 6px 12px;
background-color: #008cd7;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
box-shadow: 0 2px 0 0 #117bb9;
-webkit-box-shadow: 0 2px 0 0 #117bb9;
}
#wrapper #scroller ul li p.accept .btn:active {
background-color: #117bb9;
}
#wrapper #scroller ul li p.accept .btn:focus {
outline: 0;
}
.modal .modal-booking {
width: 320px;
height: 276px;
......@@ -305,20 +319,16 @@ a:hover {
-webkit-border-top-right-radius: 8px;
}
.modal .modal-booking .modal-content ul li {
height: 60px;
line-height: 60px;
color: #959595;
font-size: 22px;
border-top: 1px solid #959595;
}
.modal .modal-booking .modal-content ul li .iconfont {
color: #008cd7;
font-size: 18px;
position: absolute;
right: 20px;
}
.modal .modal-booking .modal-content ul li .iconfont:after {
content: "\e603";
width: 100%;
height: 60px;
background: url("../img/blue_leftarrow_icon.png") no-repeat;
background-size: 30px 30px;
-webkit-background-size: 30px 30px;
background-position: 95% center;
}
.modal .modal-booking .modal-content ul li:last-child:active {
border-bottom-left-radius: 8px;
......
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.search {
width: 100%;
height: 54px;
padding: 10px 10px 10px 5px;
position: relative;
background-color: #008cd7;
border-bottom: 1px solid #008cd7;
}
.search .btn-group {
position: static;
}
.search .btn-group .btn {
color: #ffffff;
font-size: 17px;
font-weight: bold;
}
.search .btn-group .btn:active {
box-shadow: none;
-webkit-box-shadow: none;
}
.search .btn-group .btn .iconfont {
color: #ffffff;
font-size: 12px;
font-weight: normal;
margin-left: 5px;
}
.search .btn-group .btn .iconfont:after {
content: "\e601";
position: relative;
top: -2px;
}
.search .btn-group.open .btn .iconfont:after {
content: "\e602";
}
.search .btn-group .dropdown-menu {
left: 0;
width: 100%;
height: 300px;
padding: 0;
border: 0;
margin-top: 1px;
overflow: hidden;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
}
.search .btn-group .dropdown-menu a {
color: #000000;
margin: 0 10px;
padding: 20px;
display: block;
border-bottom: 1px solid;
}
.search .btn-group .dropdown-menu a.active {
color: #008cd7;
}
.search .btn-group .dropdown-menu .left-menu {
height: 100%;
overflow: hidden;
padding: 0;
background-color: #f9f9f9;
}
.search .btn-group .dropdown-menu .left-menu a {
margin: 0;
border-bottom-color: transparent;
}
.search .btn-group .dropdown-menu .left-menu a.active-bg {
background-color: #ffffff;
}
.search .btn-group .dropdown-menu .right-menu {
height: 100%;
overflow: hidden;
padding: 0;
}
.tab {
width: 100%;
height: 40px;
......@@ -134,6 +39,7 @@
}
.modal .modal-dialog .modal-content {
color: #000000;
font-size: 16px;
border: 0;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
......@@ -153,9 +59,18 @@
padding-top: 15px;
}
.modal .modal-dialog .modal-content p {
font-size: 16px;
margin: 12px 20px 14px;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) {
margin: 0;
font-size: 0;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn {
width: 50%;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn:nth-child(2) {
border-left-color: #cfd0d0;
}
.modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0;
background-color: transparent;
......@@ -338,15 +253,15 @@ a:hover {
}
.main form ul {
margin-bottom: 30%;
color: #636363;
font-size: 15px;
background-color: #ffffff;
border-top: 1px solid #008cd7;
}
.main form ul li {
width: 100%;
height: 60px;
line-height: 60px;
color: #636363;
font-size: 15px;
background-color: #ffffff;
border-bottom: 1px solid #008cd7;
}
.main form ul li label {
......@@ -383,18 +298,26 @@ a:hover {
margin-bottom: 0;
text-align: center;
}
.main form ul li p select {
.main form ul li p .form-control {
color: #636363;
font-size: 20px;
background-color: transparent;
border: 0;
margin: 0 -8px;
padding: 0;
margin: 0 -4px;
width: auto;
display: inline-block;
box-shadow: none;
-webkit-box-shadow: none;
-webkit-appearance: none;
}
.main form .btn {
width: 90%;
width: 86%;
display: block;
color: #ffffff;
font-weight: bold;
margin: 0 auto;
padding: 16px;
display: block;
background-color: #008cd7;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
......@@ -407,3 +330,9 @@ a:hover {
box-shadow: 0 2px 0 0 #117bb9;
-webkit-box-shadow: 0 2px 0 0 #117bb9;
}
.main form .btn:active {
background-color: #117bb9;
}
.main form .btn:focus {
outline: 0;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.search {
width: 100%;
height: 54px;
padding: 10px 10px 10px 5px;
position: relative;
background-color: #008cd7;
border-bottom: 1px solid #008cd7;
}
.search .btn-group {
position: static;
}
.search .btn-group .btn {
color: #ffffff;
font-size: 17px;
font-weight: bold;
}
.search .btn-group .btn:active {
box-shadow: none;
-webkit-box-shadow: none;
}
.search .btn-group .btn .iconfont {
color: #ffffff;
font-size: 12px;
font-weight: normal;
margin-left: 5px;
}
.search .btn-group .btn .iconfont:after {
content: "\e601";
position: relative;
top: -2px;
}
.search .btn-group.open .btn .iconfont:after {
content: "\e602";
}
.search .btn-group .dropdown-menu {
left: 0;
width: 100%;
height: 300px;
padding: 0;
border: 0;
margin-top: 1px;
overflow: hidden;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
}
.search .btn-group .dropdown-menu a {
color: #000000;
margin: 0 10px;
padding: 20px;
display: block;
border-bottom: 1px solid;
}
.search .btn-group .dropdown-menu a.active {
color: #008cd7;
}
.search .btn-group .dropdown-menu .left-menu {
height: 100%;
overflow: hidden;
padding: 0;
background-color: #f9f9f9;
}
.search .btn-group .dropdown-menu .left-menu a {
margin: 0;
border-bottom-color: transparent;
}
.search .btn-group .dropdown-menu .left-menu a.active-bg {
background-color: #ffffff;
}
.search .btn-group .dropdown-menu .right-menu {
height: 100%;
overflow: hidden;
padding: 0;
}
.tab {
width: 100%;
height: 40px;
......@@ -134,6 +39,7 @@
}
.modal .modal-dialog .modal-content {
color: #000000;
font-size: 16px;
border: 0;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
......@@ -153,9 +59,18 @@
padding-top: 15px;
}
.modal .modal-dialog .modal-content p {
font-size: 16px;
margin: 12px 20px 14px;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) {
margin: 0;
font-size: 0;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn {
width: 50%;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn:nth-child(2) {
border-left-color: #cfd0d0;
}
.modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0;
background-color: transparent;
......@@ -330,6 +245,84 @@ body {
a:hover {
text-decoration: none;
}
.search {
width: 100%;
height: 54px;
padding: 10px 10px 10px 5px;
position: relative;
background-color: #008cd7;
border-bottom: 1px solid #008cd7;
}
.search .btn-group {
position: static;
}
.search .btn-group .btn {
color: #ffffff;
font-size: 17px;
font-weight: bold;
}
.search .btn-group .btn:active {
box-shadow: none;
-webkit-box-shadow: none;
}
.search .btn-group .btn span {
display: inline-block;
position: relative;
top: 4px;
width: 18px;
height: 18px;
background: url("../img/white_bottomarrow_icon.png") no-repeat;
background-size: cover;
-webkit-background-size: cover;
}
.search .btn-group.open .btn span {
background-image: url("../img/white_toparrow_icon.png");
}
.search .btn-group .dropdown-menu {
left: 0;
width: 100%;
height: 300px;
padding: 0;
border: 0;
margin-top: 1px;
overflow: hidden;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
}
.search .btn-group .dropdown-menu a {
color: #000000;
margin: 0 10px;
padding: 20px;
display: block;
border-bottom: 1px solid;
}
.search .btn-group .dropdown-menu a.active {
color: #008cd7;
}
.search .btn-group .dropdown-menu .left-menu {
height: 100%;
overflow: hidden;
padding: 0;
background-color: #f9f9f9;
}
.search .btn-group .dropdown-menu .left-menu a {
margin: 0;
border-bottom-color: transparent;
}
.search .btn-group .dropdown-menu .left-menu a.active-bg {
background-color: #ffffff;
}
.search .btn-group .dropdown-menu .right-menu {
height: 100%;
overflow: hidden;
padding: 0;
}
#wrapper {
position: absolute;
z-index: 1;
......@@ -342,19 +335,27 @@ a:hover {
#wrapper #scroller {
padding-bottom: 5px;
}
#wrapper #scroller ul {
margin-bottom: 0;
}
#wrapper #scroller ul li {
#wrapper #scroller > div {
width: 100%;
height: 106px;
height: 116px;
}
#wrapper #scroller > div ul {
height: 100%;
margin: 0 10px;
padding: 15px 0;
border-bottom: 1px solid #7d7d7d;
}
#wrapper #scroller ul li ol {
padding-right: 0;
#wrapper #scroller > div ul li {
height: 100%;
padding: 0;
color: #636363;
font-size: 17px;
}
#wrapper #scroller > div ul li:nth-child(2) {
padding: 0 15px;
}
#wrapper #scroller ul li ol img {
width: 75px;
#wrapper #scroller > div ul li img {
width: 85px;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
......@@ -364,17 +365,19 @@ a:hover {
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
#wrapper #scroller ul li ol p {
#wrapper #scroller > div ul li p {
height: 28px;
margin-bottom: 0;
}
#wrapper #scroller > div ul li p:nth-child(1) {
color: #000000;
font-size: 18px;
font-size: 22px;
font-weight: bold;
height: 25px;
margin-bottom: 0;
}
#wrapper #scroller ul li ol .btn {
width: 80%;
#wrapper #scroller > div ul li .btn {
width: 90%;
padding: 2px 0;
margin-top: 24px;
margin-top: 30px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-left-radius: 4px;
......@@ -383,13 +386,11 @@ a:hover {
-webkit-border-top-right-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
}
#wrapper #scroller ul li ol .btn.btn-phone {
color: #ed6d00;
border-color: #ed6d00;
background-color: transparent;
}
#wrapper #scroller ul li ol .btn.btn-phone span {
#wrapper #scroller > div ul li .btn span {
width: 18px;
height: 18px;
background: url("../img/orange_phone_icon.png") no-repeat;
......@@ -398,25 +399,6 @@ a:hover {
display: inline-block;
vertical-align: middle;
}
#wrapper #scroller ul li ol .btn.btn-booking {
color: #008cd7;
border-color: #008cd7;
background-color: transparent;
}
#wrapper #scroller ul li ol .btn.btn-booking span {
width: 18px;
height: 18px;
background: url("../img/blue_bespeak_icon.png") no-repeat;
background-size: cover;
-webkit-background-size: cover;
display: inline-block;
vertical-align: middle;
}
#wrapper #scroller ul li {
border-bottom: 1px solid #7d7d7d;
}
#wrapper #scroller ul li ol p:nth-child(3) {
font-size: 16px;
color: #636363;
font-weight: normal;
#wrapper #scroller > div:active {
background-color: #e9e9e9;
}
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.tab {
width: 100%;
height: 40px;
......@@ -262,7 +246,7 @@ a:hover {
text-decoration: none;
}
.jumbotron {
padding: 15px 20px 8px;
padding: 15px 15px 8px;
margin-bottom: 0;
border-bottom: 1px solid #7d7d7d;
background-color: transparent;
......@@ -285,7 +269,7 @@ a:hover {
-webkit-border-bottom-right-radius: 3px;
}
.jumbotron ul li p {
margin: 2px 0 0;
margin-bottom: 0;
color: #636363;
font-size: 18px;
}
......@@ -294,6 +278,29 @@ a:hover {
font-size: 22px;
font-weight: bold;
}
.jumbotron ul li .btn {
color: #ffffff;
font-weight: bold;
margin: 28px 0 0;
padding: 6px 12px;
background-color: #008cd7;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
box-shadow: 0 2px 0 0 #117bb9;
-webkit-box-shadow: 0 2px 0 0 #117bb9;
}
.jumbotron ul li .btn:active {
background-color: #117bb9;
}
.jumbotron ul li .btn:focus {
outline: 0;
}
.jumbotron h4 {
color: #000000;
font-size: 16px;
......@@ -456,6 +463,9 @@ a:hover {
.footer .btn:active {
background-color: #117bb9;
}
.footer .btn:focus {
outline: 0;
}
.footer .btn.btn-wechat span {
width: 30px;
height: 30px;
......
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.tab {
width: 100%;
height: 40px;
......@@ -270,20 +254,18 @@ body {
top: 10px;
right: 0;
z-index: 999;
width: 55px;
height: 35px;
line-height: 35px;
margin-bottom: 0;
padding-left: 10px;
color: #ffffff;
background-color: #008cd7;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
}
.collect .iconfont {
font-size: 26px;
width: 50px;
height: 35px;
background: url("../img/white_collect_icon.png") no-repeat;
background-size: 30px 30px;
-webkit-background-size: 30px 30px;
background-position: 5px center;
background-color: #008cd7;
}
.addWrap {
width: 100%;
......@@ -341,16 +323,16 @@ body {
position: relative;
border-bottom: 1px solid #b7b7b7;
}
.detail_row a .iconfont {
color: #b7b7b7;
font-size: 12px;
font-weight: normal;
}
.detail_row a .iconfont:after {
content: "\e602";
.detail_row a span {
display: inline-block;
width: 18px;
height: 18px;
background: url("../img/gray_toparrow_icon.png") no-repeat;
background-size: cover;
-webkit-background-size: cover;
}
.detail_row a.collapsed .iconfont:after {
content: "\e601";
.detail_row a.collapsed span {
background-image: url("../img/gray_bottomarrow_icon.png");
}
.detail_row p {
margin-bottom: 0;
......@@ -449,24 +431,19 @@ body {
}
.detail_row .map {
position: absolute;
top: 5px;
right: 5px;
top: 0;
right: 0;
width: 40px;
height: 40px;
text-align: center;
background: url("../img/blue_map_icon.png") no-repeat;
background-size: 30px 30px;
-webkit-background-size: 30px 30px;
background-position: center;
}
.detail_row .map:active {
transform: scale(1.1);
-webkit-transform: scale(1.1);
}
.detail_row .map span {
width: 30px;
height: 30px;
background: url("../img/blue_map_icon.png") no-repeat;
background-size: cover;
-webkit-background-size: cover;
display: inline-block;
}
.detail_row .infoCont li {
margin-bottom: 2px;
}
......@@ -575,7 +552,7 @@ body {
width: 45%;
color: #ffffff;
font-weight: bold;
margin: 5px 2%;
margin: 8px 2%;
padding: 6px 12px;
background-color: #008cd7;
border-top-left-radius: 4px;
......@@ -592,6 +569,9 @@ body {
.footer > .btn:active {
background-color: #117bb9;
}
.footer > .btn:focus {
outline: 0;
}
.footer ul {
height: 100%;
margin-bottom: 0;
......@@ -618,6 +598,7 @@ body {
.footer ul li div span {
font-size: 18px;
font-weight: bold;
margin-right: 5px;
}
.footer ul li:nth-child(1) {
top: -5px;
......
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.tab {
width: 100%;
height: 40px;
......@@ -393,6 +377,9 @@ a:hover {
.container-fluid form .btn:active {
background-color: #117bb9;
}
.container-fluid form .btn:focus {
outline: 0;
}
.container-fluid form .btn.btn-register {
margin-top: 20%;
}
......
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.search {
width: 100%;
height: 54px;
padding: 10px 10px 10px 5px;
position: relative;
background-color: #008cd7;
border-bottom: 1px solid #008cd7;
}
.search .btn-group {
position: static;
}
.search .btn-group .btn {
color: #ffffff;
font-size: 17px;
font-weight: bold;
}
.search .btn-group .btn:active {
box-shadow: none;
-webkit-box-shadow: none;
}
.search .btn-group .btn .iconfont {
color: #ffffff;
font-size: 12px;
font-weight: normal;
margin-left: 5px;
}
.search .btn-group .btn .iconfont:after {
content: "\e601";
position: relative;
top: -2px;
}
.search .btn-group.open .btn .iconfont:after {
content: "\e602";
}
.search .btn-group .dropdown-menu {
left: 0;
width: 100%;
height: 300px;
padding: 0;
border: 0;
margin-top: 1px;
overflow: hidden;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
}
.search .btn-group .dropdown-menu a {
color: #000000;
margin: 0 10px;
padding: 20px;
display: block;
border-bottom: 1px solid;
}
.search .btn-group .dropdown-menu a.active {
color: #008cd7;
}
.search .btn-group .dropdown-menu .left-menu {
height: 100%;
overflow: hidden;
padding: 0;
background-color: #f9f9f9;
}
.search .btn-group .dropdown-menu .left-menu a {
margin: 0;
border-bottom-color: transparent;
}
.search .btn-group .dropdown-menu .left-menu a.active-bg {
background-color: #ffffff;
}
.search .btn-group .dropdown-menu .right-menu {
height: 100%;
overflow: hidden;
padding: 0;
}
.tab {
width: 100%;
height: 40px;
......@@ -134,6 +39,7 @@
}
.modal .modal-dialog .modal-content {
color: #000000;
font-size: 16px;
border: 0;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
......@@ -153,9 +59,18 @@
padding-top: 15px;
}
.modal .modal-dialog .modal-content p {
font-size: 16px;
margin: 12px 20px 14px;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) {
margin: 0;
font-size: 0;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn {
width: 50%;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn:nth-child(2) {
border-left-color: #cfd0d0;
}
.modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0;
background-color: transparent;
......@@ -357,10 +272,11 @@ a:hover {
}
.container-fluid .btn {
width: 94%;
display: block;
color: #ffffff;
font-weight: bold;
margin: 10% auto;
padding: 16px;
display: block;
background-color: #008cd7;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
......@@ -373,3 +289,9 @@ a:hover {
box-shadow: 0 2px 0 0 #117bb9;
-webkit-box-shadow: 0 2px 0 0 #117bb9;
}
.container-fluid .btn:active {
background-color: #117bb9;
}
.container-fluid .btn:focus {
outline: 0;
}
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.tab {
width: 100%;
height: 40px;
......@@ -281,19 +265,18 @@ a:hover {
box-shadow: none;
-webkit-box-shadow: none;
}
.search .btn-group .btn .iconfont {
color: #ffffff;
font-size: 12px;
font-weight: normal;
.search .btn-group .btn span {
display: inline-block;
position: relative;
top: -2px;
left: 5px;
}
.search .btn-group .btn .iconfont:after {
content: "\e601";
top: 4px;
width: 18px;
height: 18px;
background: url("../img/white_bottomarrow_icon.png") no-repeat;
background-size: cover;
-webkit-background-size: cover;
}
.search .btn-group.open .btn .iconfont:after {
content: "\e602";
.search .btn-group.open .btn span {
background-image: url("../img/white_toparrow_icon.png");
}
.search .btn-group .dropdown-menu {
left: 0;
......@@ -390,19 +373,18 @@ a:hover {
box-shadow: none;
-webkit-box-shadow: none;
}
.btn-group-justified .btn-group .btn .iconfont {
color: #b7b7b7;
font-size: 12px;
font-weight: normal;
.btn-group-justified .btn-group .btn span {
display: inline-block;
position: relative;
top: -2px;
left: 5px;
}
.btn-group-justified .btn-group .btn .iconfont:after {
content: "\e601";
top: 4px;
width: 18px;
height: 18px;
background: url("../img/gray_bottomarrow_icon.png") no-repeat;
background-size: cover;
-webkit-background-size: cover;
}
.btn-group-justified .btn-group.open .btn .iconfont:after {
content: "\e602";
.btn-group-justified .btn-group.open .btn span {
background-image: url("../img/gray_toparrow_icon.png");
}
.btn-group-justified .btn-group .dropdown-menu {
left: 0;
......
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.search {
width: 100%;
height: 54px;
padding: 10px 10px 10px 5px;
position: relative;
background-color: #008cd7;
border-bottom: 1px solid #008cd7;
}
.search .btn-group {
position: static;
}
.search .btn-group .btn {
color: #ffffff;
font-size: 17px;
font-weight: bold;
}
.search .btn-group .btn:active {
box-shadow: none;
-webkit-box-shadow: none;
}
.search .btn-group .btn .iconfont {
color: #ffffff;
font-size: 12px;
font-weight: normal;
margin-left: 5px;
}
.search .btn-group .btn .iconfont:after {
content: "\e601";
position: relative;
top: -2px;
}
.search .btn-group.open .btn .iconfont:after {
content: "\e602";
}
.search .btn-group .dropdown-menu {
left: 0;
width: 100%;
height: 300px;
padding: 0;
border: 0;
margin-top: 1px;
overflow: hidden;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
}
.search .btn-group .dropdown-menu a {
color: #000000;
margin: 0 10px;
padding: 20px;
display: block;
border-bottom: 1px solid;
}
.search .btn-group .dropdown-menu a.active {
color: #008cd7;
}
.search .btn-group .dropdown-menu .left-menu {
height: 100%;
overflow: hidden;
padding: 0;
background-color: #f9f9f9;
}
.search .btn-group .dropdown-menu .left-menu a {
margin: 0;
border-bottom-color: transparent;
}
.search .btn-group .dropdown-menu .left-menu a.active-bg {
background-color: #ffffff;
}
.search .btn-group .dropdown-menu .right-menu {
height: 100%;
overflow: hidden;
padding: 0;
}
.tab {
width: 100%;
height: 40px;
......@@ -134,6 +39,7 @@
}
.modal .modal-dialog .modal-content {
color: #000000;
font-size: 16px;
border: 0;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
......@@ -153,9 +59,18 @@
padding-top: 15px;
}
.modal .modal-dialog .modal-content p {
font-size: 16px;
margin: 12px 20px 14px;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) {
margin: 0;
font-size: 0;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn {
width: 50%;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn:nth-child(2) {
border-left-color: #cfd0d0;
}
.modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0;
background-color: transparent;
......@@ -330,3 +245,74 @@ body {
a:hover {
text-decoration: none;
}
.tab-content .tab-pane ul li {
width: 100%;
height: 60px;
line-height: 60px;
border-bottom: 1px solid #008cd7;
color: #898989;
font-size: 18px;
}
.tab-content .tab-pane ul li:nth-child(odd) {
background-color: #ffffff;
}
.tab-content .tab-pane ul li.arrow {
width: 100%;
height: 60px;
background: url("../img/gray_leftarrow_icon.png") no-repeat;
background-size: 30px 30px;
-webkit-background-size: 30px 30px;
background-position: 95% center;
}
.tab-content .tab-pane ul li label {
color: #000000;
margin-bottom: 0;
padding: 0 0 0 10px;
}
.tab-content .tab-pane ul li p {
margin-bottom: 0;
padding: 0;
height: 100%;
}
.tab-content .tab-pane ul li p .form-control {
color: #898989;
font-size: 18px;
background-color: transparent;
border: 0;
display: inline-block;
box-shadow: none;
-webkit-box-shadow: none;
-webkit-appearance: none;
}
.tab-content .tab-pane > p {
padding-right: 15px;
color: #898989;
}
.tab-content .tab-pane .btn {
width: 86%;
display: block;
color: #ffffff;
font-weight: bold;
margin: 20% auto 0;
padding: 16px;
background-color: #008cd7;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
box-shadow: 0 2px 0 0 #117bb9;
-webkit-box-shadow: 0 2px 0 0 #117bb9;
}
.tab-content .tab-pane .btn:active {
background-color: #117bb9;
}
.tab-content .tab-pane .btn:focus {
outline: 0;
}
.tab-content .tab-pane:last-child .btn {
margin-top: 0;
}
.tab {
width: 100%;
height: 40px;
margin-bottom: 0;
border-bottom: 1px solid #008cd7;
}
.tab li .btn {
color: #000000;
font-size: 18px;
font-weight: bold;
position: static;
}
.tab li .btn:after {
content: "";
width: 88%;
height: 4px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin: 0 auto;
}
.tab li .btn:active {
box-shadow: none;
-webkit-box-shadow: none;
}
.tab li.active .btn:after {
background-color: #008cd7;
}
.modal .modal-dialog {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 280px;
height: 130px;
}
.modal .modal-dialog .modal-content {
color: #000000;
font-size: 16px;
border: 0;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
-webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px;
-webkit-border-bottom-left-radius: 8px;
-webkit-border-bottom-right-radius: 8px;
box-shadow: none;
-webkit-box-shadow: none;
}
.modal .modal-dialog .modal-content h4 {
font-size: 19px;
font-weight: bold;
margin: 0 20px;
padding-top: 15px;
}
.modal .modal-dialog .modal-content p {
margin: 12px 20px 14px;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) {
margin: 0;
font-size: 0;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn {
width: 50%;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn:nth-child(2) {
border-left-color: #cfd0d0;
}
.modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0;
background-color: transparent;
font-weight: bold;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
}
.modal .modal-dialog .modal-content .btn:active {
background-color: #e9e9e9;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
-webkit-border-bottom-left-radius: 8px;
-webkit-border-bottom-right-radius: 8px;
box-shadow: none;
-webkit-box-shadow: none;
}
.modal .modal-dialog .modal-content .btn:focus {
outline: 0;
}
.loading {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1040;
background-color: rgba(0, 0, 0, 0.5);
}
.loading ul {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 40px;
height: 40px;
}
.loading ul li {
position: absolute;
width: 100%;
height: 100%;
}
.loading ul li:nth-child(1) p:nth-child(2) {
animation-delay: -0.9s;
-webkit-animation-delay: -0.9s;
}
.loading ul li:nth-child(1) p:nth-child(3) {
animation-delay: -0.6s;
-webkit-animation-delay: -0.6s;
}
.loading ul li:nth-child(1) p:nth-child(4) {
animation-delay: -0.3s;
-webkit-animation-delay: -0.3s;
}
.loading ul li:nth-child(2) {
transform: rotateZ(45deg);
-webkit-transform: rotateZ(45deg);
}
.loading ul li:nth-child(2) p:nth-child(1) {
animation-delay: -1.1s;
-webkit-animation-delay: -1.1s;
}
.loading ul li:nth-child(2) p:nth-child(2) {
animation-delay: -0.8s;
-webkit-animation-delay: -0.8s;
}
.loading ul li:nth-child(2) p:nth-child(3) {
animation-delay: -0.5s;
-webkit-animation-delay: -0.5s;
}
.loading ul li:nth-child(2) p:nth-child(4) {
animation-delay: -0.2s;
-webkit-animation-delay: -0.2s;
}
.loading ul li:nth-child(3) {
transform: rotateZ(90deg);
-webkit-transform: rotateZ(90deg);
}
.loading ul li:nth-child(3) p:nth-child(1) {
animation-delay: -1s;
-webkit-animation-delay: -1s;
}
.loading ul li:nth-child(3) p:nth-child(2) {
animation-delay: -0.7s;
-webkit-animation-delay: -0.7s;
}
.loading ul li:nth-child(3) p:nth-child(3) {
animation-delay: -0.4s;
-webkit-animation-delay: -0.4s;
}
.loading ul li:nth-child(3) p:nth-child(4) {
animation-delay: -0.1s;
-webkit-animation-delay: -0.1s;
}
.loading ul li p {
width: 10px;
height: 10px;
margin-bottom: 0;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
-webkit-border-top-left-radius: 50%;
-webkit-border-top-right-radius: 50%;
-webkit-border-bottom-left-radius: 50%;
-webkit-border-bottom-right-radius: 50%;
position: absolute;
background-color: #ffffff;
animation: bouncedelay 1.2s infinite ease-in-out both;
-webkit-animation: bouncedelay 1.2s infinite ease-in-out both;
}
.loading ul li p:nth-child(1) {
top: 0;
left: 0;
}
.loading ul li p:nth-child(2) {
top: 0;
right: 0;
}
.loading ul li p:nth-child(3) {
bottom: 0;
right: 0;
}
.loading ul li p:nth-child(4) {
bottom: 0;
left: 0;
}
@keyframes bouncedelay {
0%,
80%,
100% {
transform: scale(0);
-webkit-transform: scale(0);
}
40% {
transform: scale(1);
-webkit-transform: scale(1);
}
}
@-webkit-keyframes bouncedelay {
0%,
80%,
100% {
transform: scale(0);
-webkit-transform: scale(0);
}
40% {
transform: scale(1);
-webkit-transform: scale(1);
}
}
html,
body {
width: 100%;
height: 100%;
}
body {
user-select: none;
-webkit-user-select: none;
tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
color: #707070;
background-color: #f9f9f9;
}
a:hover {
text-decoration: none;
}
.header {
width: 100%;
height: 106px;
padding-top: 10px;
border-bottom: 1px solid #7d7d7d;
font-size: 18px;
color: #000000;
}
.header ul {
overflow: hidden;
}
.header ul:nth-child(2) li {
text-align: center;
}
#wrapper {
position: absolute;
z-index: 1;
top: 106px;
bottom: 0;
left: 0;
width: 100%;
overflow: hidden;
}
#wrapper #scroller {
padding-bottom: 5px;
}
#wrapper #scroller ul {
margin-bottom: 0;
}
#wrapper #scroller ul li {
width: 100%;
height: 60px;
line-height: 60px;
font-size: 20px;
border-bottom: 1px solid #008cd7;
}
#wrapper #scroller ul li p {
margin-bottom: 0;
text-align: center;
}
#wrapper #scroller ul li:nth-child(odd) {
background-color: #ffffff;
}
@font-face {
font-family: 'iconfont';
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot');
src: url('http://at.alicdn.com/t/font_1439432624_5842593.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://at.alicdn.com/t/font_1439432624_5842593.woff') format('woff'), /* chrome、firefox */ url('http://at.alicdn.com/t/font_1439432624_5842593.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('http://at.alicdn.com/t/font_1439432624_5842593.svg#iconfont') format('svg');
/* IE9*/
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.tab {
width: 100%;
height: 40px;
......
.tab {
width: 100%;
height: 40px;
margin-bottom: 0;
border-bottom: 1px solid #008cd7;
}
.tab li .btn {
color: #000000;
font-size: 18px;
font-weight: bold;
position: static;
}
.tab li .btn:after {
content: "";
width: 88%;
height: 4px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin: 0 auto;
}
.tab li .btn:active {
box-shadow: none;
-webkit-box-shadow: none;
}
.tab li.active .btn:after {
background-color: #008cd7;
}
.modal .modal-dialog {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 280px;
height: 130px;
}
.modal .modal-dialog .modal-content {
color: #000000;
font-size: 16px;
border: 0;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
-webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px;
-webkit-border-bottom-left-radius: 8px;
-webkit-border-bottom-right-radius: 8px;
box-shadow: none;
-webkit-box-shadow: none;
}
.modal .modal-dialog .modal-content h4 {
font-size: 19px;
font-weight: bold;
margin: 0 20px;
padding-top: 15px;
}
.modal .modal-dialog .modal-content p {
margin: 12px 20px 14px;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) {
margin: 0;
font-size: 0;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn {
width: 50%;
}
.modal .modal-dialog .modal-content p:nth-of-type(2) .btn:nth-child(2) {
border-left-color: #cfd0d0;
}
.modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0;
background-color: transparent;
font-weight: bold;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
}
.modal .modal-dialog .modal-content .btn:active {
background-color: #e9e9e9;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
-webkit-border-bottom-left-radius: 8px;
-webkit-border-bottom-right-radius: 8px;
box-shadow: none;
-webkit-box-shadow: none;
}
.modal .modal-dialog .modal-content .btn:focus {
outline: 0;
}
.loading {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1040;
background-color: rgba(0, 0, 0, 0.5);
}
.loading ul {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 40px;
height: 40px;
}
.loading ul li {
position: absolute;
width: 100%;
height: 100%;
}
.loading ul li:nth-child(1) p:nth-child(2) {
animation-delay: -0.9s;
-webkit-animation-delay: -0.9s;
}
.loading ul li:nth-child(1) p:nth-child(3) {
animation-delay: -0.6s;
-webkit-animation-delay: -0.6s;
}
.loading ul li:nth-child(1) p:nth-child(4) {
animation-delay: -0.3s;
-webkit-animation-delay: -0.3s;
}
.loading ul li:nth-child(2) {
transform: rotateZ(45deg);
-webkit-transform: rotateZ(45deg);
}
.loading ul li:nth-child(2) p:nth-child(1) {
animation-delay: -1.1s;
-webkit-animation-delay: -1.1s;
}
.loading ul li:nth-child(2) p:nth-child(2) {
animation-delay: -0.8s;
-webkit-animation-delay: -0.8s;
}
.loading ul li:nth-child(2) p:nth-child(3) {
animation-delay: -0.5s;
-webkit-animation-delay: -0.5s;
}
.loading ul li:nth-child(2) p:nth-child(4) {
animation-delay: -0.2s;
-webkit-animation-delay: -0.2s;
}
.loading ul li:nth-child(3) {
transform: rotateZ(90deg);
-webkit-transform: rotateZ(90deg);
}
.loading ul li:nth-child(3) p:nth-child(1) {
animation-delay: -1s;
-webkit-animation-delay: -1s;
}
.loading ul li:nth-child(3) p:nth-child(2) {
animation-delay: -0.7s;
-webkit-animation-delay: -0.7s;
}
.loading ul li:nth-child(3) p:nth-child(3) {
animation-delay: -0.4s;
-webkit-animation-delay: -0.4s;
}
.loading ul li:nth-child(3) p:nth-child(4) {
animation-delay: -0.1s;
-webkit-animation-delay: -0.1s;
}
.loading ul li p {
width: 10px;
height: 10px;
margin-bottom: 0;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
-webkit-border-top-left-radius: 50%;
-webkit-border-top-right-radius: 50%;
-webkit-border-bottom-left-radius: 50%;
-webkit-border-bottom-right-radius: 50%;
position: absolute;
background-color: #ffffff;
animation: bouncedelay 1.2s infinite ease-in-out both;
-webkit-animation: bouncedelay 1.2s infinite ease-in-out both;
}
.loading ul li p:nth-child(1) {
top: 0;
left: 0;
}
.loading ul li p:nth-child(2) {
top: 0;
right: 0;
}
.loading ul li p:nth-child(3) {
bottom: 0;
right: 0;
}
.loading ul li p:nth-child(4) {
bottom: 0;
left: 0;
}
@keyframes bouncedelay {
0%,
80%,
100% {
transform: scale(0);
-webkit-transform: scale(0);
}
40% {
transform: scale(1);
-webkit-transform: scale(1);
}
}
@-webkit-keyframes bouncedelay {
0%,
80%,
100% {
transform: scale(0);
-webkit-transform: scale(0);
}
40% {
transform: scale(1);
-webkit-transform: scale(1);
}
}
html,
body {
width: 100%;
height: 100%;
}
body {
user-select: none;
-webkit-user-select: none;
tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
color: #707070;
background-color: #f9f9f9;
}
a:hover {
text-decoration: none;
}
.main {
width: 100%;
padding-bottom: 5%;
}
.main ul li {
margin: 0 15px;
padding: 13px 0;
border-bottom: 1px solid #b7b7b7;
color: #7d7d7d;
font-size: 18px;
overflow: hidden;
}
.main ul li label {
margin-bottom: 0;
padding: 5px 0 0 4px;
}
.main ul li p {
margin-bottom: 0;
padding: 0;
}
.main ul li p .form-control {
color: #7d7d7d;
font-size: 18px;
background-color: transparent;
border-color: transparent;
display: inline-block;
box-shadow: none;
-webkit-box-shadow: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
-webkit-appearance: none;
}
.main ul li p .form-control::-webkit-input-placeholder {
color: #7d7d7d;
}
.main ul li p .form-control.width-sm {
width: 45px;
}
.main ul li p textarea.form-control {
resize: none;
background-color: #ffffff;
border-color: #e9e9e9;
}
.main ul li:last-child {
border-bottom: 0;
}
.main ul li:last-child label {
margin-bottom: 18px;
}
.main .btn {
width: 86%;
display: block;
color: #ffffff;
font-weight: bold;
margin: 0 auto;
padding: 16px;
background-color: #008cd7;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
box-shadow: 0 2px 0 0 #117bb9;
-webkit-box-shadow: 0 2px 0 0 #117bb9;
}
.main .btn:active {
background-color: #117bb9;
}
.main .btn:focus {
outline: 0;
}
<?php
define('tospur_view_house_table', 'tospur_view_house');
require_once('const.php');
class dao
{
......@@ -48,9 +48,9 @@ class dao
public static function search_view_house_by_user_id($user_id)
{
global $wpdb;
$sql = "select v.house_id,v.date,v.time,v.consultant_id,v.handle,h.name from " . tospur_view_house_table . " v " .
"left join tospur_house h on v.house_id = h.id " .
"where v.user_id = " . $user_id . " order by v.date desc";
$sql = 'select v.house_id,v.date,v.time,v.consultant_id,v.handle,h.name from ' . tospur_view_house_table . ' v ' .
'left join ' . tospur_house_table . ' h on v.house_id = h.id ' .
'where v.user_id = ' . $user_id . ' order by v.date desc';
return $wpdb->get_results($sql);
}
......@@ -58,9 +58,9 @@ class dao
public static function search_view_house_by_consultant_id($consultant_id)
{
global $wpdb;
$sql = "select v.id,v.house_id,v.date,v.time,v.user_id,v.handle,h.name from " . tospur_view_house_table . " v " .
"left join tospur_house h on v.house_id = h.id " .
"where v.consultant_id = " . $consultant_id . " order by v.date desc";
$sql = 'select v.id,v.house_id,v.date,v.time,v.user_id,v.handle,h.name from ' . tospur_view_house_table . ' v ' .
'left join ' . tospur_house_table . ' h on v.house_id = h.id ' .
'where v.consultant_id = ' . $consultant_id . ' order by v.date desc';
return $wpdb->get_results($sql);
}
......@@ -74,7 +74,7 @@ class dao
'valid' => $valid
);
global $wpdb;
$result = $wpdb->insert('tospur_consultant_score', $insert_consultant_score_array);
$result = $wpdb->insert(tospur_consultant_score_table, $insert_consultant_score_array);
return $result;
}
......@@ -82,17 +82,17 @@ class dao
public static function search_consultant_info($consultant_id)
{
global $wpdb;
$sql = "select c.*,u.display_name,s.average_score from tospur_consultant c " .
"left join wp_users u on c.id = u.ID " .
"left join (select consultant_id,sum(score)/count(score) as average_score from tospur_consultant_score group by consultant_id) s " .
"on c.id = s.consultant_id where c.id = " . $consultant_id;
$sql = 'select c.*,u.display_name,s.average_score from ' . tospur_consultant_table . ' c ' .
'left join ' . wp_users_table . ' u on c.id = u.ID ' .
'left join (select consultant_id,sum(score)/count(score) as average_score from ' . tospur_consultant_score_table . ' group by consultant_id) s ' .
'on c.id = s.consultant_id where c.id = ' . $consultant_id;
return $wpdb->get_row($sql);
}
public static function update_consultant_score($score_id, $valid)
{
global $wpdb;
$result = $wpdb->update('tospur_consultant_score', array(
$result = $wpdb->update(tospur_consultant_score_table, array(
'valid' => $valid
), array(
'id' => $score_id
......@@ -103,9 +103,9 @@ class dao
public static function search_tospur_verify($phone, $code)
{
global $wpdb;
$sql = "select code from tospur_verify where phone = " . $phone . " and status = 0 " .
"and create_time > NOW() - INTERVAL 30 MINUTE " .
"order by create_time desc limit 1";
$sql = 'select code from ' . tospur_verify_table . ' where phone = ' . $phone . ' and status = 0 ' .
'and create_time > NOW() - INTERVAL 30 MINUTE ' .
'order by create_time desc limit 1';
return $wpdb->get_var($sql);
}
......@@ -118,14 +118,14 @@ class dao
'status' => 0
);
global $wpdb;
$result = $wpdb->insert('tospur_verify', $insert_tospur_verify_array);
$result = $wpdb->insert(tospur_verify_table, $insert_tospur_verify_array);
return $result;
}
public static function update_tospur_verify($phone)
{
global $wpdb;
$wpdb->update('tospur_verify', array(
$wpdb->update(tospur_verify_table, array(
'status' => 1
), array(
'phone' => $phone
......@@ -135,27 +135,33 @@ class dao
public static function search_consultant_by_city($city_id, $index)
{
global $wpdb;
$consultant_sql = 'select c.*,u.display_name,s.average_score from tospur_consultant c ' .
'left join wp_users u on c.id = u.ID ' .
'left join (select consultant_id,sum(score)/count(score) as average_score from tospur_consultant_score where valid=1 group by consultant_id) s on c.id = s.consultant_id ' .
$consultant_sql = 'select c.*,u.display_name,s.average_score from ' . tospur_consultant_table . ' c ' .
'left join ' . wp_users_table . ' u on c.id = u.ID ' .
'left join (select consultant_id,sum(score)/count(score) as average_score from ' . tospur_consultant_score_table . ' where valid=1 group by consultant_id) s on c.id = s.consultant_id ' .
'where cityid = ' . $city_id . ' LIMIT ' . $index . ',20;';
return $wpdb->get_results($consultant_sql);
}
public static function search_house_image($house_ids)
{
$sql = 'select ahi.house_id,ti.path from a_house_image ahi' .
' left join tospur_image ti on ahi.image_id = ti.id' .
' where ti.image_type in (1,5) and house_id in ' . $house_ids . ' group by house_id';
$string = '(' . implode(',', array_map('intval', $house_ids)) . ')';
$sql = 'select * from (select ahi.house_id,ti.path,ti.image_type,case ti.image_type ' .
'when 1 then 1 ' .
'when 5 then 1 ' .
'ELSE 2 ' .
'end as type from ' . a_house_image_table . ' ahi ' .
'left join ' . tospur_image_table . ' ti on ahi.image_id = ti.id ' .
'where house_id in ' . $string . ' order by type) as image group by house_id;';
global $wpdb;
return $wpdb->get_results($sql);
}
public static function search_house_tag($house_ids)
{
$sql = 'select aht.house_id,tt.name from a_house_tag aht' .
' left join tospur_tag tt on aht.tag_id = tt.id' .
' where house_id in ' . $house_ids;
$string = '(' . implode(',', array_map('intval', $house_ids)) . ')';
$sql = 'select aht.house_id,tt.name from ' . a_house_tag_table . ' aht' .
' left join ' . tospur_tag_table . ' tt on aht.tag_id = tt.id' .
' where house_id in ' . $string;
global $wpdb;
return $wpdb->get_results($sql);
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -211,8 +211,7 @@ function get_house_image_and_tags($house_result)
$house_id = $value->id;
$house_ids[] = $house_id;
}
$string = '(' . implode(',', array_map('intval', $house_ids)) . ')';
$tag_result = dao::search_house_tag($string);
$tag_result = dao::search_house_tag($house_ids);
//标签
if ($tag_result) {
foreach ($tag_result as $key => $value) {
......@@ -220,7 +219,7 @@ function get_house_image_and_tags($house_result)
}
}
//图片
$image_result = dao::search_house_image($string);
$image_result = dao::search_house_image($house_ids);
if ($image_result) {
foreach ($image_result as $key => $value) {
$array['images'][$value->house_id] = home_url() . Image::getImage($value->path,'small');
......
......@@ -2,13 +2,13 @@
$context = array();
$context['theme'] = get_template_directory_uri();
require_once(WP_PLUGIN_DIR."/tospur/Dao/SearchDao.php");
require_once(WP_PLUGIN_DIR . "/tospur/Dao/SearchDao.php");
$cityId = 1;
$houseType = 0;
if($_GET['cityId'])
if ($_GET['cityId'])
$cityId = $_GET['cityId'];
if($_GET['houseType'])
$houseType = 0;
if ($_GET['houseType'])
$houseType = $_GET['houseType'];
$context['cityId'] = $cityId;
$context['houseType'] = $houseType;
......@@ -16,9 +16,9 @@ $context['cityName'] = SearchDao::getCityNameWithId($cityId);
$context['select']['city'] = SearchDao::searchCity();
$context['select']['district'] = SearchDao::searchCity($cityId);
$plateArray = array();
foreach($context['select']['district'] as $item){
foreach ($context['select']['district'] as $item) {
$plateArray[$item->id] = array();
foreach(SearchDao::searchCity($cityId,$item->id) as $i){
foreach (SearchDao::searchCity($cityId, $item->id) as $i) {
$plateArray[$item->id][] = $i;
}
}
......@@ -26,7 +26,11 @@ $context['select']['plate'] = json_encode($plateArray);
$context['select']['buildProperty'] = SearchDao::searchBuildProperty();
$context['select']['room'] = json_encode(SearchDao::searchRoom());
$context['select']['unitPriceRange'] = SearchDao::searchUnitPriceRange($cityId);
$context['select']['totalPrice'] = SearchDao::searchTotalPrice($cityId);
if ($houseType == 2) {
$context['select']['rentalPrice'] = SearchDao::searchRentalPrice($cityId);
} else {
$context['select']['totalPrice'] = SearchDao::searchTotalPrice($cityId);
}
$context['select']['area'] = json_encode(SearchDao::searchArea($cityId));
$context['url'] = home_url();
......
......@@ -6,14 +6,12 @@ $context['theme'] = get_template_directory_uri();
$context['url'] = home_url();
$current_user = wp_get_current_user();
$current_user_id = $current_user->ID;
if ($current_user_id == 0) {
$context['message'] = '请先登录';
} else {
if ($current_user_id != 0) {
$role = $current_user->roles[0];
$user_role = '';
$result = null;
switch ($role) {
case 'contributor':
case 'subscriber':
$result = dao::search_view_house_by_user_id($current_user_id);
break;
case 'editor':
......
......@@ -5,27 +5,31 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<title></title>
<style></style>
<script src="{{ theme }}/js/jquery.min.js"></script>
<title>信息反馈</title>
<link rel="stylesheet" type="text/css" href="{{ theme }}/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="{{ theme }}/css/infoFeedback.css">
<script type="text/javascript" src="{{ theme }}/js/jquery.min.js"></script>
<script type="text/javascript" src="{{ theme }}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{{ theme }}/js/jquery.mobile.custom.min.js"></script>
<script>
$(document).ready(function () {
$('#submit').click(function () {
$('#submit').tap(function () {
var content = $('#content').val();
if (content.trim() == '') {
alert('请输入评论内容!');
alert('请输入反馈内容');
}
$.ajax({
type: 'POST',
url: '{{ url }}/wp-admin/admin-ajax.php/',
data: 'action=submit_comment',
success: function (data) {
}
});
});
});
</script>
</head>
<body>
<div class="container-fluid">
<p>同策房屋的每一步,都感谢您的参与!(请输入反馈内容)</p>
<label for="content"></label>
<textarea class="form-control" rows="10" id="content"></textarea>
<button type="button" class="btn btn-lg" id="submit">提交</button>
</div>
</body>
</html>
\ No newline at end of file
......@@ -21,21 +21,20 @@
<div class="jumbotron">
<ul class="list-unstyled">
<li class="col-xs-4 text-center">
{% if consultant.imageUrl != "" %}
<img src="{{ consultant.imageUrl}}" data-attr="">
{% else %}
<img src="{{ theme }}/img/head.png " data-attr="">
{% endif %}
<img src="{{ consultant.imageUrl | default(default_head) }}" data-attr="">
</li>
<li class="col-xs-8">
<li class="col-xs-5">
<p>{{ consultant.display_name }}</p>
<div class="star-rating rating-xs rating-disabled" style="font-size:12px;">
<div class="star-rating rating-xs rating-disabled" style="font-size:20px;height:30px;">
<div class="rating-container rating-gly-star" data-content="">
<div class="rating-stars" data-content="" style="width: {{ consultant.average_score*20 }}%;" data-attr="score"></div>
</div>
</div>
<p>同策房屋</p>
</li>
<li class="col-xs-3">
<a href="{{ consultant_score_url }}" class="btn btn-block">评分</a>
</li>
</ul>
<h4>诚信宣言</h4>
<div id="people_wrapper">
......@@ -64,8 +63,12 @@
</div>
</div>
<footer class="footer navbar-fixed-bottom">
<button type="button" class="btn btn-wechat"><span></span>微信联系</button>
<button type="button" class="btn btn-phone"><span></span>电话联系</button>
<a class="btn btn-wechat">
<span></span>微信联系
</a>
<a href="tel:{{ consultant_mobile }}" class="btn btn-phone">
<span></span>电话联系
</a>
</footer>
<div class="loading" id="loading" style="display: none;">
<ul class="list-unstyled">
......
......@@ -7,8 +7,8 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<title>置业顾问</title>
<link rel="stylesheet" href="{{ theme }}/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ theme }}/css/consultantList.css">
<link rel="stylesheet" href="{{ theme }}/css/star-rating.min.css">
<link rel="stylesheet" href="{{ theme }}/css/consultantList.css">
<script src="{{ theme }}/js/iscroll.js"></script>
<script src="{{ theme }}/js/jquery.min.js"></script>
<script src="{{ theme }}/js/jquery.mobile.custom.min.js"></script>
......@@ -18,7 +18,7 @@
<body>
<div class="search">
<div class="btn-group pull-left" id="cityGroup">
<a class="btn" id="cityName">{{ city_name }}<i class="iconfont"></i></a>
<a class="btn" id="cityName">{{ city_name }}<span></span></a>
<div id="city_wrapper" class="dropdown-menu">
<div id="city_scroller">
{% for item in city %}
......@@ -30,27 +30,28 @@
</div>
<div id="wrapper">
<div id="scroller">
<ul class="list-unstyled" id="consultantList"></ul>
</div>
</div>
<div id="template" style="display: none">
<ol class="col-xs-3">
<ul class="list-unstyled">
<li class="col-xs-3">
<img data-attr="image">
</ol>
<ol class="col-xs-4">
</li>
<li class="col-xs-5">
<p data-attr="name"></p>
<div class="star-rating rating-xs rating-disabled" style="font-size:12px;">
<div class="star-rating rating-xs rating-disabled" style="font-size:19px;height:28px;">
<div class="rating-container rating-gly-star" data-content="">
<div class="rating-stars" data-content="" style="" data-attr="score"></div>
</div>
</div>
<p>同策房屋</p>
</ol>
<ol class="col-xs-5">
</li>
<li class="col-xs-4">
<a class="btn btn-phone" data-attr="mobile">
<span></span>电话联系
</a>
</ol>
</li>
</ul>
</div>
<div class="loading" id="loading" style="display: none;">
<ul class="list-unstyled">
......@@ -112,23 +113,27 @@
loading.hide();
if (data.code == 2000) {
$.each(data.result, function (index, value) {
var li = $('<li>');
li.append(template);
li.find('[data-attr=name]').text(value.display_name);
li.find('[data-attr=score]').attr('style', 'width: '+ value.average_score*20+'%');
li.find('[data-attr=image]').attr('src', value.imageUrl!=""?value.imageUrl:"{{ theme }}/img/head.png");
var div = $('<div>');
div.append(template);
div.find('[data-attr=name]').text(value.display_name);
div.find('[data-attr=score]').attr('style', 'width: '+ value.average_score*20+'%');
var head = value.imageUrl;
if(!head){
head = '{{ default_head }}';
}
div.find('[data-attr=image]').attr('src', head);
var infoUrl;
if(value.mobile){
li.find('[data-attr=mobile]').attr('href', 'tel:' + value.mobile);
div.find('[data-attr=mobile]').attr('href', 'tel:' + value.mobile);
infoUrl = consultant_info_url + '&consultant_id=' + value.id + '&mobile=' + value.mobile;
}else{
li.find('[data-attr=mobile]').attr('disabled',true);
div.find('[data-attr=mobile]').attr('disabled',true);
infoUrl = consultant_info_url + '&consultant_id=' + value.id;
}
li.tap(function(e){
div.tap(function(e){
window.location.href = infoUrl;
});
$('#consultantList').append(li);
$('#scroller').append(div);
});
$('input[data-attr=score]').rating({
size: 'xs',
......
......@@ -7,7 +7,6 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="format-detection" content="telephone=no"/>
<title>列表</title>
<!--CSS-->
<link rel="stylesheet" type="text/css" href="{{ theme }}/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="{{ theme }}/css/list.css">
<script type="text/javascript" src="{{ theme }}/js/iscroll.js"></script>
......@@ -20,7 +19,7 @@
<div class="search">
<div class="btn-group pull-left">
<a class="btn">{{cityName}}<i class="iconfont"></i></a>
<a class="btn">{{cityName}}<span></span></a>
<div id="city_wrapper" class="dropdown-menu">
<div id="city_scroller">
{% for item in select.city %}
......@@ -31,13 +30,13 @@
</div>
<div class="has-feedback pull-right">
<input type="text" class="form-control" placeholder="输入楼盘名/地段名搜索">
<i class="iconfont form-control-feedback">&#xe600;</i>
<span class="glyphicon glyphicon-search form-control-feedback"></span>
</div>
</div>
<div class="btn-group-justified">
<div class="btn-group">
<a href="#" class="btn">区域<i class="iconfont"></i></a>
<a href="#" class="btn">区域<span></span></a>
<div class="dropdown-menu">
<div id="area_wrapper" class="col-xs-5 left-menu">
<div type="districtId" id="district_scroller">
......@@ -56,18 +55,28 @@
</div>
</div>
<div class="btn-group">
<a class="btn">价格<i class="iconfont"></i></a>
<div id="totalPrice_wrapper" class="dropdown-menu">
<a class="btn">价格<span></span></a>
<div id="price_wrapper" class="dropdown-menu">
{% if select.totalPrice %}
<div type="totalPrice" id="totalPrice_scroller">
<a href="#">不限</a>
{% for item in select.totalPrice %}
<a data-id="{{item.value}}">{{item.value}}</a>
{% endfor %}
</div>
{% endif %}
{% if select.rentalPrice %}
<div type="rentalPrice" id="rentalPrice_scroller">
<a href="#">不限</a>
{% for item in select.rentalPrice %}
<a data-id="{{item.value}}">{{item.value}}</a>
{% endfor %}
</div>
{% endif %}
</div>
</div>
<div class="btn-group">
<a href="#" class="btn">房型<i class="iconfont"></i></a>
<a href="#" class="btn">房型<span></span></a>
<div id="buildProperty_wrapper" class="dropdown-menu">
<div type="buildPropertyId" id="buildProperty_scroller">
<a href="#">不限</a>
......@@ -77,14 +86,30 @@
</div>
</div>
</div>
{% if houseType == 2 %}
<div class="btn-group">
<a href="#" class="btn">面积<span></span></a>
<div id="other_wrapper" class="dropdown-menu">
<div id="other_scroller">
<a href="#">不限</a>
{% for item in select.area %}
<a data-id="{{item.id}}">{{item.value}}</a>
{% endfor %}
</div>
</div>
</div>
{% else %}
<div class="btn-group">
<a href="#" class="btn">更多<i class="iconfont"></i></a>
<a href="#" class="btn">更多<span></span></a>
<div class="dropdown-menu">
<div class="col-xs-5 left-menu">
<div>
<a id="roomId" class="active-bg">类型</a>
<a id="acreage">面积</a>
<a id="acreage" class="active-bg">面积</a>
{% if houseType == 0 %}
<a id="roomId">类型</a>
{% else %}
<a id="">特色</a>
{% endif %}
</div>
</div>
......@@ -95,6 +120,7 @@
</div>
</div>
</div>
{% endif %}
</div>
<div id="wrapper">
......@@ -186,6 +212,7 @@
var priceScroll;
var otherScroll;
var scrollList = [];
var houseType = {{ houseType }};
window.addEventListener("load",function(){
myScroll = scrollPullToRefresh(function(){
ajax_get_house('{{ url }}', loading, searchData, scroller);
......@@ -207,10 +234,10 @@
click: true
});
scrollList.push(buildPropertyScroll);
totalPriceScroll = new IScroll('#totalPrice_wrapper',{
priceScroll = new IScroll('#price_wrapper',{
click: true
});
scrollList.push(totalPriceScroll);
scrollList.push(priceScroll);
otherScroll = new IScroll('#other_wrapper',{
click: true
});
......@@ -231,7 +258,7 @@
if(parent.hasClass("open")){
$(".btn-group").removeClass("open");
}else{
//$(".btn-group").removeClass("open");
$(".btn-group").removeClass("open");
parent.addClass("open");
}
$.each(scrollList,function(i,item){
......@@ -251,7 +278,7 @@
});
var other = $("#other_scroller");
var other_item = room;
var other_item = area;
var roomAndAcreageKey = "id";
$.each(other_item,function(i,item){
other.append('<a data-id="'+item[roomAndAcreageKey]+'">'+item.value+'</a>');
......@@ -293,15 +320,16 @@
});
var searchData = {
action: 'search_house',
cityId: {{cityId}},
cityId: {{ cityId }},
districtId: -1,
plateId: -1,
totalPrice: -1,
rentalPrice: -1,
buildPropertyId: -1,
roomId: -1,
acreage: -1,
searchText: '',
houseType:{{houseType}},
houseType: houseType,
index: 0
};
</script>
......
......@@ -12,6 +12,7 @@
<script type="text/javascript" src="{{ theme }}/js/iscroll.js"></script>
<script type="text/javascript" src="{{ theme }}/js/jquery.min.js"></script>
<script type="text/javascript" src="{{ theme }}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{{ theme }}/js/jquery.mobile.custom.min.js"></script>
</head>
<body>
{% if result %}
......@@ -22,24 +23,15 @@
<li>
<p>楼盘名:{{ item.name }}</p>
<p>预约时间:{{ item.date }} {{ item.time }}</p>
{% if item.consultant_id %}
{% if item.handle==0 %}
<p>未接受</p>
{% else %}
<p>已接受</p>
{% endif %}
{% endif %}
{% if item.user_id %}
{% if item.handle==0 %}
<p data-name="handle" data-id="{{ item.id }}">接受</p>
{% else %}
<p>已接受</p>
<p class="accept">
<button type="button" class="btn btn-lg" data-name="handle" data-id="{{ item.id }}">接受</button>
</p>
{% endif %}
{% endif %}
</li>
</ul>
{% else %}
{{ message }}
{% endfor %}
</div>
</div>
......@@ -49,9 +41,9 @@
<div class="modal-content text-center">
<h3>您还未预约过看房信息。<br>马上去预约看房!</h3>
<ul class="list-unstyled">
<li>新房<i class="iconfont"></i></li>
<li>二手房<i class="iconfont"></i></li>
<li>租房<i class="iconfont"></i></li>
<li>新房</li>
<li>二手房</li>
<li>租房</li>
</ul>
</div>
</div>
......@@ -64,7 +56,7 @@
scrollbars: true,
click: true
});
$('[data-name=handle]').click(function () {
$('[data-name=handle]').tap(function () {
var self = $(this);
var id = self.data('id');
$.ajax({
......@@ -73,7 +65,7 @@
data: 'action=handle_view_house&id=' + id,
success: function (data) {
if (data.code == 2000) {
self.html('已接受');
self.parent().remove();
alert('接受成功');
} else {
alert('接受失败');
......@@ -84,8 +76,9 @@
{% else %}
var myModal = $('#myModal');
myModal.modal('show');
myModal.find('li').click(function(){
window.location.href = '{{ url }}';
myModal.find('li').tap(function(){
var index = $(this).index();
window.location.href = '{{ url }}/?houseType=' + index;
});
{% endif %}
});
......
......@@ -78,17 +78,17 @@
</label>
<p class="col-xs-7">
<select id="year">
<select id="year" class="form-control">
<option value="2015">2015</option>
<option value="2016">2016</option>
</select>
<label for="year"></label>
<select id="month">
<select id="month" class="form-control">
<option value="8">8</option>
<option value="9">9</option>
</select>
<label for="month"></label>
<select id="day">
<select id="day" class="form-control">
<option value="8">14</option>
<option value="9">15</option>
</select>
......@@ -102,7 +102,7 @@
</label>
<p class="col-xs-7">
<select id="index" name="index">
<select id="index" name="index" class="form-control">
<option value="0">9:00-10:00</option>
<option value="1">10:00-11:00</option>
<option value="2">11:00-12:00</option>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment