Commit 4f7b6324 by felix

每日一更

parent c824ea31
...@@ -17,9 +17,13 @@ class Config { ...@@ -17,9 +17,13 @@ class Config {
const DIC_PHOTOTYPE_TABLE = "dic_phototype"; const DIC_PHOTOTYPE_TABLE = "dic_phototype";
const TOSPUR_ORGANIZATION_TABLE = 'tospur_organization'; const TOSPUR_ORGANIZATION_TABLE = 'tospur_organization';
const TOSPUR_CONSULTANT = 'tospur_consultant'; const TOSPUR_CONSULTANT = 'tospur_consultant';
const TOSPUR_CONSULTANT_SCORE_TABLE = 'tospur_consultant_score';
const TOSPUR_HOUSE_TABLE = 'tospur_house'; const TOSPUR_HOUSE_TABLE = 'tospur_house';
const TOSPUR_IMAGE_TABLE = 'tospur_image'; const TOSPUR_IMAGE_TABLE = 'tospur_image';
const TOSPUR_TAG_TABLE = 'tospur_tag'; 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 //sync url
......
...@@ -98,13 +98,29 @@ class SearchDao ...@@ -98,13 +98,29 @@ class SearchDao
{ {
global $wpdb; global $wpdb;
$where = " where 1=1"; $where = " where 1=1";
if (isset($_GET['cityId'])) { if ($cityId) {
$where .= " and cityId = " . $cityId; $where .= " and cityId = " . $cityId;
} }
$result = $wpdb->get_results($wpdb->prepare('select id,priceValue as value from ' . Config::DIC_TOTALPRICE_TABLE . $where, $cityId)); $result = $wpdb->get_results($wpdb->prepare('select id,priceValue as value from ' . Config::DIC_TOTALPRICE_TABLE . $where, $cityId));
return $result; 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() public static function ajax_searchOrganization()
{ {
wp_send_json(SearchDao::searchOrganization($_GET['parentId'])); wp_send_json(SearchDao::searchOrganization($_GET['parentId']));
...@@ -143,6 +159,7 @@ class SearchDao ...@@ -143,6 +159,7 @@ class SearchDao
'roomId' => $_POST['roomId'], 'roomId' => $_POST['roomId'],
'acreage' => $_POST['acreage'], 'acreage' => $_POST['acreage'],
'totalPrice' => $_POST['totalPrice'], 'totalPrice' => $_POST['totalPrice'],
'rentalPrice' => $_POST['rentalPrice'],
'searchText' => $_POST['searchText'], 'searchText' => $_POST['searchText'],
'houseType' => $_POST['houseType'], 'houseType' => $_POST['houseType'],
'index' => $_POST['index'] 'index' => $_POST['index']
...@@ -203,6 +220,12 @@ class SearchDao ...@@ -203,6 +220,12 @@ class SearchDao
$params[] = $priceArray[1]; $params[] = $priceArray[1];
$sql = $sql . " and total_price between %d and %d"; $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) { if ($array['searchText'] != null) {
$params[] = "%" . $array['searchText'] . "%"; $params[] = "%" . $array['searchText'] . "%";
$sql = $sql . " and name like %s"; $sql = $sql . " and name like %s";
...@@ -383,6 +406,7 @@ class SearchDao ...@@ -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};"; 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)); $consultant = $wpdb->get_results($wpdb->prepare($consultantSql,$hid));
$context['consultant'] = $consultant; $context['consultant'] = $consultant;
if($type == 'edit'){ if($type == 'edit'){
$imagesSql = 'select * from a_house_image ahi $imagesSql = 'select * from a_house_image ahi
LEFT JOIN tospur_image ti on ti.id = ahi.image_id LEFT JOIN tospur_image ti on ti.id = ahi.image_id
......
...@@ -19,4 +19,25 @@ $const_consultant_info_page = home_url() . '/?page=consultant_info'; ...@@ -19,4 +19,25 @@ $const_consultant_info_page = home_url() . '/?page=consultant_info';
//置业顾问 评分 //置业顾问 评分
$const_score_page = home_url() . '/?page=score'; $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) { ...@@ -11,9 +11,10 @@ if ($user_id != 0) {
$current_user = wp_get_current_user(); $current_user = wp_get_current_user();
$consultant_id = isset($_GET['consultant_id'])?$_GET['consultant_id']:$current_user->ID; $consultant_id = isset($_GET['consultant_id'])?$_GET['consultant_id']:$current_user->ID;
$context['consultant_id'] = $consultant_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'] = get_consultant_info($consultant_id);
$context['consultant_mobile'] = $_GET['mobile'];
$context['consultant_score_url'] = $const_score_page . '&consultant_id=' . $consultant_id; $context['consultant_score_url'] = $const_score_page . '&consultant_id=' . $consultant_id;
$context['default_head'] = get_avatar_url(1);
} }
Timber::render('consultant_info.html', $context); Timber::render('consultant_info.html', $context);
......
...@@ -17,6 +17,7 @@ foreach ($city as $value) { ...@@ -17,6 +17,7 @@ foreach ($city as $value) {
} }
} }
$context['city_id'] = $city_id; $context['city_id'] = $city_id;
$context['default_head'] = get_avatar_url(1);
Timber::render('consultant_list.html', $context); 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 { .tab {
width: 100%; width: 100%;
height: 40px; height: 40px;
...@@ -277,6 +261,8 @@ a:hover { ...@@ -277,6 +261,8 @@ a:hover {
color: #636363; color: #636363;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid #7d7d7d; border-bottom: 1px solid #7d7d7d;
position: relative;
height: 94px;
} }
#wrapper #scroller ul li p { #wrapper #scroller ul li p {
padding-left: 15px; padding-left: 15px;
...@@ -288,6 +274,34 @@ a:hover { ...@@ -288,6 +274,34 @@ a:hover {
font-weight: bold; font-weight: bold;
margin-bottom: 2px; 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 { .modal .modal-booking {
width: 320px; width: 320px;
height: 276px; height: 276px;
...@@ -305,20 +319,16 @@ a:hover { ...@@ -305,20 +319,16 @@ a:hover {
-webkit-border-top-right-radius: 8px; -webkit-border-top-right-radius: 8px;
} }
.modal .modal-booking .modal-content ul li { .modal .modal-booking .modal-content ul li {
height: 60px;
line-height: 60px; line-height: 60px;
color: #959595; color: #959595;
font-size: 22px; font-size: 22px;
border-top: 1px solid #959595; border-top: 1px solid #959595;
} width: 100%;
.modal .modal-booking .modal-content ul li .iconfont { height: 60px;
color: #008cd7; background: url("../img/blue_leftarrow_icon.png") no-repeat;
font-size: 18px; background-size: 30px 30px;
position: absolute; -webkit-background-size: 30px 30px;
right: 20px; background-position: 95% center;
}
.modal .modal-booking .modal-content ul li .iconfont:after {
content: "\e603";
} }
.modal .modal-booking .modal-content ul li:last-child:active { .modal .modal-booking .modal-content ul li:last-child:active {
border-bottom-left-radius: 8px; 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 { .tab {
width: 100%; width: 100%;
height: 40px; height: 40px;
...@@ -134,6 +39,7 @@ ...@@ -134,6 +39,7 @@
} }
.modal .modal-dialog .modal-content { .modal .modal-dialog .modal-content {
color: #000000; color: #000000;
font-size: 16px;
border: 0; border: 0;
border-top-left-radius: 8px; border-top-left-radius: 8px;
border-top-right-radius: 8px; border-top-right-radius: 8px;
...@@ -153,9 +59,18 @@ ...@@ -153,9 +59,18 @@
padding-top: 15px; padding-top: 15px;
} }
.modal .modal-dialog .modal-content p { .modal .modal-dialog .modal-content p {
font-size: 16px;
margin: 12px 20px 14px; 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 { .modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0; border-top-color: #cfd0d0;
background-color: transparent; background-color: transparent;
...@@ -338,15 +253,15 @@ a:hover { ...@@ -338,15 +253,15 @@ a:hover {
} }
.main form ul { .main form ul {
margin-bottom: 30%; margin-bottom: 30%;
color: #636363;
font-size: 15px;
background-color: #ffffff;
border-top: 1px solid #008cd7; border-top: 1px solid #008cd7;
} }
.main form ul li { .main form ul li {
width: 100%; width: 100%;
height: 60px; height: 60px;
line-height: 60px; line-height: 60px;
color: #636363;
font-size: 15px;
background-color: #ffffff;
border-bottom: 1px solid #008cd7; border-bottom: 1px solid #008cd7;
} }
.main form ul li label { .main form ul li label {
...@@ -383,18 +298,26 @@ a:hover { ...@@ -383,18 +298,26 @@ a:hover {
margin-bottom: 0; margin-bottom: 0;
text-align: center; text-align: center;
} }
.main form ul li p select { .main form ul li p .form-control {
color: #636363;
font-size: 20px; font-size: 20px;
background-color: transparent; background-color: transparent;
border: 0; 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 { .main form .btn {
width: 90%; width: 86%;
display: block;
color: #ffffff; color: #ffffff;
font-weight: bold;
margin: 0 auto; margin: 0 auto;
padding: 16px; padding: 16px;
display: block;
background-color: #008cd7; background-color: #008cd7;
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
...@@ -407,3 +330,9 @@ a:hover { ...@@ -407,3 +330,9 @@ a:hover {
box-shadow: 0 2px 0 0 #117bb9; box-shadow: 0 2px 0 0 #117bb9;
-webkit-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 { .tab {
width: 100%; width: 100%;
height: 40px; height: 40px;
...@@ -134,6 +39,7 @@ ...@@ -134,6 +39,7 @@
} }
.modal .modal-dialog .modal-content { .modal .modal-dialog .modal-content {
color: #000000; color: #000000;
font-size: 16px;
border: 0; border: 0;
border-top-left-radius: 8px; border-top-left-radius: 8px;
border-top-right-radius: 8px; border-top-right-radius: 8px;
...@@ -153,9 +59,18 @@ ...@@ -153,9 +59,18 @@
padding-top: 15px; padding-top: 15px;
} }
.modal .modal-dialog .modal-content p { .modal .modal-dialog .modal-content p {
font-size: 16px;
margin: 12px 20px 14px; 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 { .modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0; border-top-color: #cfd0d0;
background-color: transparent; background-color: transparent;
...@@ -330,6 +245,84 @@ body { ...@@ -330,6 +245,84 @@ body {
a:hover { a:hover {
text-decoration: none; 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 { #wrapper {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
...@@ -342,19 +335,27 @@ a:hover { ...@@ -342,19 +335,27 @@ a:hover {
#wrapper #scroller { #wrapper #scroller {
padding-bottom: 5px; padding-bottom: 5px;
} }
#wrapper #scroller ul { #wrapper #scroller > div {
margin-bottom: 0;
}
#wrapper #scroller ul li {
width: 100%; width: 100%;
height: 106px; height: 116px;
}
#wrapper #scroller > div ul {
height: 100%;
margin: 0 10px;
padding: 15px 0; padding: 15px 0;
border-bottom: 1px solid #7d7d7d;
} }
#wrapper #scroller ul li ol { #wrapper #scroller > div ul li {
padding-right: 0; 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 { #wrapper #scroller > div ul li img {
width: 75px; width: 85px;
border-top-left-radius: 3px; border-top-left-radius: 3px;
border-top-right-radius: 3px; border-top-right-radius: 3px;
border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
...@@ -364,17 +365,19 @@ a:hover { ...@@ -364,17 +365,19 @@ a:hover {
-webkit-border-bottom-left-radius: 3px; -webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-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; color: #000000;
font-size: 18px; font-size: 22px;
font-weight: bold; font-weight: bold;
height: 25px;
margin-bottom: 0;
} }
#wrapper #scroller ul li ol .btn { #wrapper #scroller > div ul li .btn {
width: 80%; width: 90%;
padding: 2px 0; padding: 2px 0;
margin-top: 24px; margin-top: 30px;
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;
...@@ -383,13 +386,11 @@ a:hover { ...@@ -383,13 +386,11 @@ a:hover {
-webkit-border-top-right-radius: 4px; -webkit-border-top-right-radius: 4px;
-webkit-border-bottom-left-radius: 4px; -webkit-border-bottom-left-radius: 4px;
-webkit-border-bottom-right-radius: 4px; -webkit-border-bottom-right-radius: 4px;
}
#wrapper #scroller ul li ol .btn.btn-phone {
color: #ed6d00; color: #ed6d00;
border-color: #ed6d00; border-color: #ed6d00;
background-color: transparent; background-color: transparent;
} }
#wrapper #scroller ul li ol .btn.btn-phone span { #wrapper #scroller > div ul li .btn span {
width: 18px; width: 18px;
height: 18px; height: 18px;
background: url("../img/orange_phone_icon.png") no-repeat; background: url("../img/orange_phone_icon.png") no-repeat;
...@@ -398,25 +399,6 @@ a:hover { ...@@ -398,25 +399,6 @@ a:hover {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
} }
#wrapper #scroller ul li ol .btn.btn-booking { #wrapper #scroller > div:active {
color: #008cd7; background-color: #e9e9e9;
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;
} }
@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 { .tab {
width: 100%; width: 100%;
height: 40px; height: 40px;
...@@ -262,7 +246,7 @@ a:hover { ...@@ -262,7 +246,7 @@ a:hover {
text-decoration: none; text-decoration: none;
} }
.jumbotron { .jumbotron {
padding: 15px 20px 8px; padding: 15px 15px 8px;
margin-bottom: 0; margin-bottom: 0;
border-bottom: 1px solid #7d7d7d; border-bottom: 1px solid #7d7d7d;
background-color: transparent; background-color: transparent;
...@@ -285,7 +269,7 @@ a:hover { ...@@ -285,7 +269,7 @@ a:hover {
-webkit-border-bottom-right-radius: 3px; -webkit-border-bottom-right-radius: 3px;
} }
.jumbotron ul li p { .jumbotron ul li p {
margin: 2px 0 0; margin-bottom: 0;
color: #636363; color: #636363;
font-size: 18px; font-size: 18px;
} }
...@@ -294,6 +278,29 @@ a:hover { ...@@ -294,6 +278,29 @@ a:hover {
font-size: 22px; font-size: 22px;
font-weight: bold; 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 { .jumbotron h4 {
color: #000000; color: #000000;
font-size: 16px; font-size: 16px;
...@@ -456,6 +463,9 @@ a:hover { ...@@ -456,6 +463,9 @@ a:hover {
.footer .btn:active { .footer .btn:active {
background-color: #117bb9; background-color: #117bb9;
} }
.footer .btn:focus {
outline: 0;
}
.footer .btn.btn-wechat span { .footer .btn.btn-wechat span {
width: 30px; width: 30px;
height: 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 { .tab {
width: 100%; width: 100%;
height: 40px; height: 40px;
...@@ -270,20 +254,18 @@ body { ...@@ -270,20 +254,18 @@ body {
top: 10px; top: 10px;
right: 0; right: 0;
z-index: 999; z-index: 999;
width: 55px;
height: 35px;
line-height: 35px;
margin-bottom: 0; margin-bottom: 0;
padding-left: 10px;
color: #ffffff;
background-color: #008cd7;
border-top-left-radius: 5px; border-top-left-radius: 5px;
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
-webkit-border-top-left-radius: 5px; -webkit-border-top-left-radius: 5px;
-webkit-border-bottom-left-radius: 5px; -webkit-border-bottom-left-radius: 5px;
} width: 50px;
.collect .iconfont { height: 35px;
font-size: 26px; 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 { .addWrap {
width: 100%; width: 100%;
...@@ -341,16 +323,16 @@ body { ...@@ -341,16 +323,16 @@ body {
position: relative; position: relative;
border-bottom: 1px solid #b7b7b7; border-bottom: 1px solid #b7b7b7;
} }
.detail_row a .iconfont { .detail_row a span {
color: #b7b7b7; display: inline-block;
font-size: 12px; width: 18px;
font-weight: normal; height: 18px;
} background: url("../img/gray_toparrow_icon.png") no-repeat;
.detail_row a .iconfont:after { background-size: cover;
content: "\e602"; -webkit-background-size: cover;
} }
.detail_row a.collapsed .iconfont:after { .detail_row a.collapsed span {
content: "\e601"; background-image: url("../img/gray_bottomarrow_icon.png");
} }
.detail_row p { .detail_row p {
margin-bottom: 0; margin-bottom: 0;
...@@ -449,24 +431,19 @@ body { ...@@ -449,24 +431,19 @@ body {
} }
.detail_row .map { .detail_row .map {
position: absolute; position: absolute;
top: 5px; top: 0;
right: 5px; right: 0;
width: 40px; width: 40px;
height: 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 { .detail_row .map:active {
transform: scale(1.1); transform: scale(1.1);
-webkit-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 { .detail_row .infoCont li {
margin-bottom: 2px; margin-bottom: 2px;
} }
...@@ -575,7 +552,7 @@ body { ...@@ -575,7 +552,7 @@ body {
width: 45%; width: 45%;
color: #ffffff; color: #ffffff;
font-weight: bold; font-weight: bold;
margin: 5px 2%; margin: 8px 2%;
padding: 6px 12px; padding: 6px 12px;
background-color: #008cd7; background-color: #008cd7;
border-top-left-radius: 4px; border-top-left-radius: 4px;
...@@ -592,6 +569,9 @@ body { ...@@ -592,6 +569,9 @@ body {
.footer > .btn:active { .footer > .btn:active {
background-color: #117bb9; background-color: #117bb9;
} }
.footer > .btn:focus {
outline: 0;
}
.footer ul { .footer ul {
height: 100%; height: 100%;
margin-bottom: 0; margin-bottom: 0;
...@@ -618,6 +598,7 @@ body { ...@@ -618,6 +598,7 @@ body {
.footer ul li div span { .footer ul li div span {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
margin-right: 5px;
} }
.footer ul li:nth-child(1) { .footer ul li:nth-child(1) {
top: -5px; 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 { .tab {
width: 100%; width: 100%;
height: 40px; height: 40px;
...@@ -393,6 +377,9 @@ a:hover { ...@@ -393,6 +377,9 @@ a:hover {
.container-fluid form .btn:active { .container-fluid form .btn:active {
background-color: #117bb9; background-color: #117bb9;
} }
.container-fluid form .btn:focus {
outline: 0;
}
.container-fluid form .btn.btn-register { .container-fluid form .btn.btn-register {
margin-top: 20%; 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 { .tab {
width: 100%; width: 100%;
height: 40px; height: 40px;
...@@ -134,6 +39,7 @@ ...@@ -134,6 +39,7 @@
} }
.modal .modal-dialog .modal-content { .modal .modal-dialog .modal-content {
color: #000000; color: #000000;
font-size: 16px;
border: 0; border: 0;
border-top-left-radius: 8px; border-top-left-radius: 8px;
border-top-right-radius: 8px; border-top-right-radius: 8px;
...@@ -153,9 +59,18 @@ ...@@ -153,9 +59,18 @@
padding-top: 15px; padding-top: 15px;
} }
.modal .modal-dialog .modal-content p { .modal .modal-dialog .modal-content p {
font-size: 16px;
margin: 12px 20px 14px; 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 { .modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0; border-top-color: #cfd0d0;
background-color: transparent; background-color: transparent;
...@@ -357,10 +272,11 @@ a:hover { ...@@ -357,10 +272,11 @@ a:hover {
} }
.container-fluid .btn { .container-fluid .btn {
width: 94%; width: 94%;
display: block;
color: #ffffff; color: #ffffff;
font-weight: bold;
margin: 10% auto; margin: 10% auto;
padding: 16px; padding: 16px;
display: block;
background-color: #008cd7; background-color: #008cd7;
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
...@@ -373,3 +289,9 @@ a:hover { ...@@ -373,3 +289,9 @@ a:hover {
box-shadow: 0 2px 0 0 #117bb9; box-shadow: 0 2px 0 0 #117bb9;
-webkit-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 { .tab {
width: 100%; width: 100%;
height: 40px; height: 40px;
...@@ -281,19 +265,18 @@ a:hover { ...@@ -281,19 +265,18 @@ a:hover {
box-shadow: none; box-shadow: none;
-webkit-box-shadow: none; -webkit-box-shadow: none;
} }
.search .btn-group .btn .iconfont { .search .btn-group .btn span {
color: #ffffff; display: inline-block;
font-size: 12px;
font-weight: normal;
position: relative; position: relative;
top: -2px; top: 4px;
left: 5px; width: 18px;
} height: 18px;
.search .btn-group .btn .iconfont:after { background: url("../img/white_bottomarrow_icon.png") no-repeat;
content: "\e601"; background-size: cover;
-webkit-background-size: cover;
} }
.search .btn-group.open .btn .iconfont:after { .search .btn-group.open .btn span {
content: "\e602"; background-image: url("../img/white_toparrow_icon.png");
} }
.search .btn-group .dropdown-menu { .search .btn-group .dropdown-menu {
left: 0; left: 0;
...@@ -390,19 +373,18 @@ a:hover { ...@@ -390,19 +373,18 @@ a:hover {
box-shadow: none; box-shadow: none;
-webkit-box-shadow: none; -webkit-box-shadow: none;
} }
.btn-group-justified .btn-group .btn .iconfont { .btn-group-justified .btn-group .btn span {
color: #b7b7b7; display: inline-block;
font-size: 12px;
font-weight: normal;
position: relative; position: relative;
top: -2px; top: 4px;
left: 5px; width: 18px;
} height: 18px;
.btn-group-justified .btn-group .btn .iconfont:after { background: url("../img/gray_bottomarrow_icon.png") no-repeat;
content: "\e601"; background-size: cover;
-webkit-background-size: cover;
} }
.btn-group-justified .btn-group.open .btn .iconfont:after { .btn-group-justified .btn-group.open .btn span {
content: "\e602"; background-image: url("../img/gray_toparrow_icon.png");
} }
.btn-group-justified .btn-group .dropdown-menu { .btn-group-justified .btn-group .dropdown-menu {
left: 0; 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 { .tab {
width: 100%; width: 100%;
height: 40px; height: 40px;
...@@ -134,6 +39,7 @@ ...@@ -134,6 +39,7 @@
} }
.modal .modal-dialog .modal-content { .modal .modal-dialog .modal-content {
color: #000000; color: #000000;
font-size: 16px;
border: 0; border: 0;
border-top-left-radius: 8px; border-top-left-radius: 8px;
border-top-right-radius: 8px; border-top-right-radius: 8px;
...@@ -153,9 +59,18 @@ ...@@ -153,9 +59,18 @@
padding-top: 15px; padding-top: 15px;
} }
.modal .modal-dialog .modal-content p { .modal .modal-dialog .modal-content p {
font-size: 16px;
margin: 12px 20px 14px; 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 { .modal .modal-dialog .modal-content .btn {
border-top-color: #cfd0d0; border-top-color: #cfd0d0;
background-color: transparent; background-color: transparent;
...@@ -330,3 +245,74 @@ body { ...@@ -330,3 +245,74 @@ body {
a:hover { a:hover {
text-decoration: none; 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 { .tab {
width: 100%; width: 100%;
height: 40px; 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 <?php
define('tospur_view_house_table', 'tospur_view_house'); require_once('const.php');
class dao class dao
{ {
...@@ -48,9 +48,9 @@ class dao ...@@ -48,9 +48,9 @@ class dao
public static function search_view_house_by_user_id($user_id) public static function search_view_house_by_user_id($user_id)
{ {
global $wpdb; global $wpdb;
$sql = "select v.house_id,v.date,v.time,v.consultant_id,v.handle,h.name from " . tospur_view_house_table . " v " . $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 " . 'left join ' . tospur_house_table . ' h on v.house_id = h.id ' .
"where v.user_id = " . $user_id . " order by v.date desc"; 'where v.user_id = ' . $user_id . ' order by v.date desc';
return $wpdb->get_results($sql); return $wpdb->get_results($sql);
} }
...@@ -58,9 +58,9 @@ class dao ...@@ -58,9 +58,9 @@ class dao
public static function search_view_house_by_consultant_id($consultant_id) public static function search_view_house_by_consultant_id($consultant_id)
{ {
global $wpdb; 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 " . $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 " . 'left join ' . tospur_house_table . ' h on v.house_id = h.id ' .
"where v.consultant_id = " . $consultant_id . " order by v.date desc"; 'where v.consultant_id = ' . $consultant_id . ' order by v.date desc';
return $wpdb->get_results($sql); return $wpdb->get_results($sql);
} }
...@@ -74,7 +74,7 @@ class dao ...@@ -74,7 +74,7 @@ class dao
'valid' => $valid 'valid' => $valid
); );
global $wpdb; 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; return $result;
} }
...@@ -82,17 +82,17 @@ class dao ...@@ -82,17 +82,17 @@ class dao
public static function search_consultant_info($consultant_id) public static function search_consultant_info($consultant_id)
{ {
global $wpdb; global $wpdb;
$sql = "select c.*,u.display_name,s.average_score from tospur_consultant c " . $sql = 'select c.*,u.display_name,s.average_score from ' . tospur_consultant_table . ' c ' .
"left join wp_users u on c.id = u.ID " . '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 group by consultant_id) s " . '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; 'on c.id = s.consultant_id where c.id = ' . $consultant_id;
return $wpdb->get_row($sql); return $wpdb->get_row($sql);
} }
public static function update_consultant_score($score_id, $valid) public static function update_consultant_score($score_id, $valid)
{ {
global $wpdb; global $wpdb;
$result = $wpdb->update('tospur_consultant_score', array( $result = $wpdb->update(tospur_consultant_score_table, array(
'valid' => $valid 'valid' => $valid
), array( ), array(
'id' => $score_id 'id' => $score_id
...@@ -103,9 +103,9 @@ class dao ...@@ -103,9 +103,9 @@ class dao
public static function search_tospur_verify($phone, $code) public static function search_tospur_verify($phone, $code)
{ {
global $wpdb; global $wpdb;
$sql = "select code from tospur_verify where phone = " . $phone . " and status = 0 " . $sql = 'select code from ' . tospur_verify_table . ' where phone = ' . $phone . ' and status = 0 ' .
"and create_time > NOW() - INTERVAL 30 MINUTE " . 'and create_time > NOW() - INTERVAL 30 MINUTE ' .
"order by create_time desc limit 1"; 'order by create_time desc limit 1';
return $wpdb->get_var($sql); return $wpdb->get_var($sql);
} }
...@@ -118,14 +118,14 @@ class dao ...@@ -118,14 +118,14 @@ class dao
'status' => 0 'status' => 0
); );
global $wpdb; global $wpdb;
$result = $wpdb->insert('tospur_verify', $insert_tospur_verify_array); $result = $wpdb->insert(tospur_verify_table, $insert_tospur_verify_array);
return $result; return $result;
} }
public static function update_tospur_verify($phone) public static function update_tospur_verify($phone)
{ {
global $wpdb; global $wpdb;
$wpdb->update('tospur_verify', array( $wpdb->update(tospur_verify_table, array(
'status' => 1 'status' => 1
), array( ), array(
'phone' => $phone 'phone' => $phone
...@@ -135,27 +135,33 @@ class dao ...@@ -135,27 +135,33 @@ class dao
public static function search_consultant_by_city($city_id, $index) public static function search_consultant_by_city($city_id, $index)
{ {
global $wpdb; global $wpdb;
$consultant_sql = 'select c.*,u.display_name,s.average_score from tospur_consultant c ' . $consultant_sql = 'select c.*,u.display_name,s.average_score from ' . tospur_consultant_table . ' c ' .
'left join wp_users u on c.id = u.ID ' . '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 where valid=1 group by consultant_id) s on c.id = s.consultant_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;'; 'where cityid = ' . $city_id . ' LIMIT ' . $index . ',20;';
return $wpdb->get_results($consultant_sql); return $wpdb->get_results($consultant_sql);
} }
public static function search_house_image($house_ids) public static function search_house_image($house_ids)
{ {
$sql = 'select ahi.house_id,ti.path from a_house_image ahi' . $string = '(' . implode(',', array_map('intval', $house_ids)) . ')';
' left join tospur_image ti on ahi.image_id = ti.id' . $sql = 'select * from (select ahi.house_id,ti.path,ti.image_type,case ti.image_type ' .
' where ti.image_type in (1,5) and house_id in ' . $house_ids . ' group by house_id'; '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; global $wpdb;
return $wpdb->get_results($sql); return $wpdb->get_results($sql);
} }
public static function search_house_tag($house_ids) public static function search_house_tag($house_ids)
{ {
$sql = 'select aht.house_id,tt.name from a_house_tag aht' . $string = '(' . implode(',', array_map('intval', $house_ids)) . ')';
' left join tospur_tag tt on aht.tag_id = tt.id' . $sql = 'select aht.house_id,tt.name from ' . a_house_tag_table . ' aht' .
' where house_id in ' . $house_ids; ' left join ' . tospur_tag_table . ' tt on aht.tag_id = tt.id' .
' where house_id in ' . $string;
global $wpdb; global $wpdb;
return $wpdb->get_results($sql); 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) ...@@ -211,8 +211,7 @@ function get_house_image_and_tags($house_result)
$house_id = $value->id; $house_id = $value->id;
$house_ids[] = $house_id; $house_ids[] = $house_id;
} }
$string = '(' . implode(',', array_map('intval', $house_ids)) . ')'; $tag_result = dao::search_house_tag($house_ids);
$tag_result = dao::search_house_tag($string);
//标签 //标签
if ($tag_result) { if ($tag_result) {
foreach ($tag_result as $key => $value) { foreach ($tag_result as $key => $value) {
...@@ -220,7 +219,7 @@ function get_house_image_and_tags($house_result) ...@@ -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) { if ($image_result) {
foreach ($image_result as $key => $value) { foreach ($image_result as $key => $value) {
$array['images'][$value->house_id] = home_url() . Image::getImage($value->path,'small'); $array['images'][$value->house_id] = home_url() . Image::getImage($value->path,'small');
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
$context = array(); $context = array();
$context['theme'] = get_template_directory_uri(); $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; $cityId = 1;
$houseType = 0; if ($_GET['cityId'])
if($_GET['cityId'])
$cityId = $_GET['cityId']; $cityId = $_GET['cityId'];
if($_GET['houseType']) $houseType = 0;
if ($_GET['houseType'])
$houseType = $_GET['houseType']; $houseType = $_GET['houseType'];
$context['cityId'] = $cityId; $context['cityId'] = $cityId;
$context['houseType'] = $houseType; $context['houseType'] = $houseType;
...@@ -16,9 +16,9 @@ $context['cityName'] = SearchDao::getCityNameWithId($cityId); ...@@ -16,9 +16,9 @@ $context['cityName'] = SearchDao::getCityNameWithId($cityId);
$context['select']['city'] = SearchDao::searchCity(); $context['select']['city'] = SearchDao::searchCity();
$context['select']['district'] = SearchDao::searchCity($cityId); $context['select']['district'] = SearchDao::searchCity($cityId);
$plateArray = array(); $plateArray = array();
foreach($context['select']['district'] as $item){ foreach ($context['select']['district'] as $item) {
$plateArray[$item->id] = array(); $plateArray[$item->id] = array();
foreach(SearchDao::searchCity($cityId,$item->id) as $i){ foreach (SearchDao::searchCity($cityId, $item->id) as $i) {
$plateArray[$item->id][] = $i; $plateArray[$item->id][] = $i;
} }
} }
...@@ -26,7 +26,11 @@ $context['select']['plate'] = json_encode($plateArray); ...@@ -26,7 +26,11 @@ $context['select']['plate'] = json_encode($plateArray);
$context['select']['buildProperty'] = SearchDao::searchBuildProperty(); $context['select']['buildProperty'] = SearchDao::searchBuildProperty();
$context['select']['room'] = json_encode(SearchDao::searchRoom()); $context['select']['room'] = json_encode(SearchDao::searchRoom());
$context['select']['unitPriceRange'] = SearchDao::searchUnitPriceRange($cityId); $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['select']['area'] = json_encode(SearchDao::searchArea($cityId));
$context['url'] = home_url(); $context['url'] = home_url();
......
/*! /*!
* Bootstrap v3.3.5 (http://getbootstrap.com) * Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc. * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under the MIT license
*/ */
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.5",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.5",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.5",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.5",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.5",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.5",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.5",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.5",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.5",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),
/*! d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.5",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.5",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
* Generated using the Bootstrap Customizer (http://v3.bootcss.com/customize/?id=94068cdaefbebe75f1f9) \ No newline at end of file
* Config saved to config.json and https://gist.github.com/94068cdaefbebe75f1f9
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function e(e,s){return this.each(function(){var n=t(this),a=n.data("bs.modal"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);a||n.data("bs.modal",a=new i(this,o)),"string"==typeof e?a[e](s):o.show&&a.show(s)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.5",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var s=this,n=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){s.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(s.$element)&&(s.ignoreBackdropClick=!0)})}),this.backdrop(function(){var n=t.support.transition&&s.$element.hasClass("fade");s.$element.parent().length||s.$element.appendTo(s.$body),s.$element.show().scrollTop(0),s.adjustDialog(),n&&s.$element[0].offsetWidth,s.$element.addClass("in"),s.enforceFocus();var a=t.Event("shown.bs.modal",{relatedTarget:e});n?s.$dialog.one("bsTransitionEnd",function(){s.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(i.TRANSITION_DURATION):s.$element.trigger("focus").trigger(a)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var s=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=t.support.transition&&n;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;a?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){s.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):o()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var s=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=s,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var s=t(this),n=s.attr("href"),a=t(s.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),o=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(n)&&n},a.data(),s.data());s.is("a")&&i.preventDefault(),a.one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){s.is(":visible")&&s.trigger("focus")})}),e.call(a,o,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.tab");n||s.data("bs.tab",n=new i(this)),"string"==typeof e&&n[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.3.5",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),s=e.data("target");if(s||(s=e.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=i.find(".active:last a"),a=t.Event("hide.bs.tab",{relatedTarget:e[0]}),o=t.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(a),e.trigger(o),!o.isDefaultPrevented()&&!a.isDefaultPrevented()){var r=t(s);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},i.prototype.activate=function(e,s,n){function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var o=s.find("> .active"),r=n&&t.support.transition&&(o.length&&o.hasClass("fade")||!!s.find("> .fade").length);o.length&&r?o.one("bsTransitionEnd",a).emulateTransitionEnd(i.TRANSITION_DURATION):a(),o.removeClass("in")};var s=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=s,this};var n=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),+function(t){"use strict";function e(e){var i,s=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(s)}function i(e){return this.each(function(){var i=t(this),n=i.data("bs.collapse"),a=t.extend({},s.DEFAULTS,i.data(),"object"==typeof e&&e);!n&&a.toggle&&/show|hide/.test(e)&&(a.toggle=!1),n||i.data("bs.collapse",n=new s(this,a)),"string"==typeof e&&n[e]()})}var s=function(e,i){this.$element=t(e),this.options=t.extend({},s.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};s.VERSION="3.3.5",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(n&&n.length&&(e=n.data("bs.collapse"),e&&e.transitioning))){var a=t.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){n&&n.length&&(i.call(n,"hide"),e||n.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[o](this.$element[0][l])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(s.TRANSITION_DURATION):n.call(this)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,s){var n=t(s);this.addAriaAndCollapsedClass(e(n),n)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var n=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=s,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(s){var n=t(this);n.attr("data-target")||s.preventDefault();var a=e(n),o=a.data("bs.collapse"),r=o?"toggle":n.data();i.call(a,r)})}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,s=this;t(this).one("bsTransitionEnd",function(){i=!0});var n=function(){i||t(s).trigger(t.support.transition.end)};return setTimeout(n,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery);
\ No newline at end of file
...@@ -6,14 +6,12 @@ $context['theme'] = get_template_directory_uri(); ...@@ -6,14 +6,12 @@ $context['theme'] = get_template_directory_uri();
$context['url'] = home_url(); $context['url'] = home_url();
$current_user = wp_get_current_user(); $current_user = wp_get_current_user();
$current_user_id = $current_user->ID; $current_user_id = $current_user->ID;
if ($current_user_id == 0) { if ($current_user_id != 0) {
$context['message'] = '请先登录';
} else {
$role = $current_user->roles[0]; $role = $current_user->roles[0];
$user_role = ''; $user_role = '';
$result = null; $result = null;
switch ($role) { switch ($role) {
case 'contributor': case 'subscriber':
$result = dao::search_view_house_by_user_id($current_user_id); $result = dao::search_view_house_by_user_id($current_user_id);
break; break;
case 'editor': case 'editor':
......
...@@ -5,27 +5,31 @@ ...@@ -5,27 +5,31 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/> <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-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/> <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<title></title> <title>信息反馈</title>
<style></style> <link rel="stylesheet" type="text/css" href="{{ theme }}/css/bootstrap.min.css">
<script src="{{ theme }}/js/jquery.min.js"></script> <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> <script>
$(document).ready(function () { $(document).ready(function () {
$('#submit').click(function () { $('#submit').tap(function () {
var content = $('#content').val(); var content = $('#content').val();
if (content.trim() == '') { if (content.trim() == '') {
alert('请输入评论内容!'); alert('请输入反馈内容');
} }
$.ajax({
type: 'POST',
url: '{{ url }}/wp-admin/admin-ajax.php/',
data: 'action=submit_comment',
success: function (data) {
}
});
}); });
}); });
</script> </script>
</head> </head>
<body> <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> </body>
</html> </html>
\ No newline at end of file
...@@ -21,21 +21,20 @@ ...@@ -21,21 +21,20 @@
<div class="jumbotron"> <div class="jumbotron">
<ul class="list-unstyled"> <ul class="list-unstyled">
<li class="col-xs-4 text-center"> <li class="col-xs-4 text-center">
{% if consultant.imageUrl != "" %} <img src="{{ consultant.imageUrl | default(default_head) }}" data-attr="">
<img src="{{ consultant.imageUrl}}" data-attr="">
{% else %}
<img src="{{ theme }}/img/head.png " data-attr="">
{% endif %}
</li> </li>
<li class="col-xs-8"> <li class="col-xs-5">
<p>{{ consultant.display_name }}</p> <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-container rating-gly-star" data-content="">
<div class="rating-stars" data-content="" style="width: {{ consultant.average_score*20 }}%;" data-attr="score"></div> <div class="rating-stars" data-content="" style="width: {{ consultant.average_score*20 }}%;" data-attr="score"></div>
</div> </div>
</div> </div>
<p>同策房屋</p> <p>同策房屋</p>
</li> </li>
<li class="col-xs-3">
<a href="{{ consultant_score_url }}" class="btn btn-block">评分</a>
</li>
</ul> </ul>
<h4>诚信宣言</h4> <h4>诚信宣言</h4>
<div id="people_wrapper"> <div id="people_wrapper">
...@@ -64,8 +63,12 @@ ...@@ -64,8 +63,12 @@
</div> </div>
</div> </div>
<footer class="footer navbar-fixed-bottom"> <footer class="footer navbar-fixed-bottom">
<button type="button" class="btn btn-wechat"><span></span>微信联系</button> <a class="btn btn-wechat">
<button type="button" class="btn btn-phone"><span></span>电话联系</button> <span></span>微信联系
</a>
<a href="tel:{{ consultant_mobile }}" class="btn btn-phone">
<span></span>电话联系
</a>
</footer> </footer>
<div class="loading" id="loading" style="display: none;"> <div class="loading" id="loading" style="display: none;">
<ul class="list-unstyled"> <ul class="list-unstyled">
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black"/> <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<title>置业顾问</title> <title>置业顾问</title>
<link rel="stylesheet" href="{{ theme }}/css/bootstrap.min.css"> <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/star-rating.min.css">
<link rel="stylesheet" href="{{ theme }}/css/consultantList.css">
<script src="{{ theme }}/js/iscroll.js"></script> <script src="{{ theme }}/js/iscroll.js"></script>
<script src="{{ theme }}/js/jquery.min.js"></script> <script src="{{ theme }}/js/jquery.min.js"></script>
<script src="{{ theme }}/js/jquery.mobile.custom.min.js"></script> <script src="{{ theme }}/js/jquery.mobile.custom.min.js"></script>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<body> <body>
<div class="search"> <div class="search">
<div class="btn-group pull-left" id="cityGroup"> <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_wrapper" class="dropdown-menu">
<div id="city_scroller"> <div id="city_scroller">
{% for item in city %} {% for item in city %}
...@@ -30,27 +30,28 @@ ...@@ -30,27 +30,28 @@
</div> </div>
<div id="wrapper"> <div id="wrapper">
<div id="scroller"> <div id="scroller">
<ul class="list-unstyled" id="consultantList"></ul>
</div> </div>
</div> </div>
<div id="template" style="display: none"> <div id="template" style="display: none">
<ol class="col-xs-3"> <ul class="list-unstyled">
<li class="col-xs-3">
<img data-attr="image"> <img data-attr="image">
</ol> </li>
<ol class="col-xs-4"> <li class="col-xs-5">
<p data-attr="name"></p> <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-container rating-gly-star" data-content="">
<div class="rating-stars" data-content="" style="" data-attr="score"></div> <div class="rating-stars" data-content="" style="" data-attr="score"></div>
</div> </div>
</div> </div>
<p>同策房屋</p> <p>同策房屋</p>
</ol> </li>
<ol class="col-xs-5"> <li class="col-xs-4">
<a class="btn btn-phone" data-attr="mobile"> <a class="btn btn-phone" data-attr="mobile">
<span></span>电话联系 <span></span>电话联系
</a> </a>
</ol> </li>
</ul>
</div> </div>
<div class="loading" id="loading" style="display: none;"> <div class="loading" id="loading" style="display: none;">
<ul class="list-unstyled"> <ul class="list-unstyled">
...@@ -112,23 +113,27 @@ ...@@ -112,23 +113,27 @@
loading.hide(); loading.hide();
if (data.code == 2000) { if (data.code == 2000) {
$.each(data.result, function (index, value) { $.each(data.result, function (index, value) {
var li = $('<li>'); var div = $('<div>');
li.append(template); div.append(template);
li.find('[data-attr=name]').text(value.display_name); div.find('[data-attr=name]').text(value.display_name);
li.find('[data-attr=score]').attr('style', 'width: '+ value.average_score*20+'%'); div.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 head = value.imageUrl;
if(!head){
head = '{{ default_head }}';
}
div.find('[data-attr=image]').attr('src', head);
var infoUrl; var infoUrl;
if(value.mobile){ 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; infoUrl = consultant_info_url + '&consultant_id=' + value.id + '&mobile=' + value.mobile;
}else{ }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; infoUrl = consultant_info_url + '&consultant_id=' + value.id;
} }
li.tap(function(e){ div.tap(function(e){
window.location.href = infoUrl; window.location.href = infoUrl;
}); });
$('#consultantList').append(li); $('#scroller').append(div);
}); });
$('input[data-attr=score]').rating({ $('input[data-attr=score]').rating({
size: 'xs', size: 'xs',
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black"/> <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="format-detection" content="telephone=no"/> <meta name="format-detection" content="telephone=no"/>
<title>列表</title> <title>列表</title>
<!--CSS-->
<link rel="stylesheet" type="text/css" href="{{ theme }}/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="{{ theme }}/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="{{ theme }}/css/list.css"> <link rel="stylesheet" type="text/css" href="{{ theme }}/css/list.css">
<script type="text/javascript" src="{{ theme }}/js/iscroll.js"></script> <script type="text/javascript" src="{{ theme }}/js/iscroll.js"></script>
...@@ -20,7 +19,7 @@ ...@@ -20,7 +19,7 @@
<div class="search"> <div class="search">
<div class="btn-group pull-left"> <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_wrapper" class="dropdown-menu">
<div id="city_scroller"> <div id="city_scroller">
{% for item in select.city %} {% for item in select.city %}
...@@ -31,13 +30,13 @@ ...@@ -31,13 +30,13 @@
</div> </div>
<div class="has-feedback pull-right"> <div class="has-feedback pull-right">
<input type="text" class="form-control" placeholder="输入楼盘名/地段名搜索"> <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> </div>
<div class="btn-group-justified"> <div class="btn-group-justified">
<div class="btn-group"> <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="dropdown-menu">
<div id="area_wrapper" class="col-xs-5 left-menu"> <div id="area_wrapper" class="col-xs-5 left-menu">
<div type="districtId" id="district_scroller"> <div type="districtId" id="district_scroller">
...@@ -56,18 +55,28 @@ ...@@ -56,18 +55,28 @@
</div> </div>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<a class="btn">价格<i class="iconfont"></i></a> <a class="btn">价格<span></span></a>
<div id="totalPrice_wrapper" class="dropdown-menu"> <div id="price_wrapper" class="dropdown-menu">
{% if select.totalPrice %}
<div type="totalPrice" id="totalPrice_scroller"> <div type="totalPrice" id="totalPrice_scroller">
<a href="#">不限</a> <a href="#">不限</a>
{% for item in select.totalPrice %} {% for item in select.totalPrice %}
<a data-id="{{item.value}}">{{item.value}}</a> <a data-id="{{item.value}}">{{item.value}}</a>
{% endfor %} {% endfor %}
</div> </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> </div>
<div class="btn-group"> <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 id="buildProperty_wrapper" class="dropdown-menu">
<div type="buildPropertyId" id="buildProperty_scroller"> <div type="buildPropertyId" id="buildProperty_scroller">
<a href="#">不限</a> <a href="#">不限</a>
...@@ -77,14 +86,30 @@ ...@@ -77,14 +86,30 @@
</div> </div>
</div> </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"> <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="dropdown-menu">
<div class="col-xs-5 left-menu"> <div class="col-xs-5 left-menu">
<div> <div>
<a id="roomId" class="active-bg">类型</a> <a id="acreage" class="active-bg">面积</a>
<a id="acreage">面积</a> {% if houseType == 0 %}
<a id="roomId">类型</a>
{% else %}
<a id="">特色</a>
{% endif %}
</div> </div>
</div> </div>
...@@ -95,6 +120,7 @@ ...@@ -95,6 +120,7 @@
</div> </div>
</div> </div>
</div> </div>
{% endif %}
</div> </div>
<div id="wrapper"> <div id="wrapper">
...@@ -186,6 +212,7 @@ ...@@ -186,6 +212,7 @@
var priceScroll; var priceScroll;
var otherScroll; var otherScroll;
var scrollList = []; var scrollList = [];
var houseType = {{ houseType }};
window.addEventListener("load",function(){ window.addEventListener("load",function(){
myScroll = scrollPullToRefresh(function(){ myScroll = scrollPullToRefresh(function(){
ajax_get_house('{{ url }}', loading, searchData, scroller); ajax_get_house('{{ url }}', loading, searchData, scroller);
...@@ -207,10 +234,10 @@ ...@@ -207,10 +234,10 @@
click: true click: true
}); });
scrollList.push(buildPropertyScroll); scrollList.push(buildPropertyScroll);
totalPriceScroll = new IScroll('#totalPrice_wrapper',{ priceScroll = new IScroll('#price_wrapper',{
click: true click: true
}); });
scrollList.push(totalPriceScroll); scrollList.push(priceScroll);
otherScroll = new IScroll('#other_wrapper',{ otherScroll = new IScroll('#other_wrapper',{
click: true click: true
}); });
...@@ -231,7 +258,7 @@ ...@@ -231,7 +258,7 @@
if(parent.hasClass("open")){ if(parent.hasClass("open")){
$(".btn-group").removeClass("open"); $(".btn-group").removeClass("open");
}else{ }else{
//$(".btn-group").removeClass("open"); $(".btn-group").removeClass("open");
parent.addClass("open"); parent.addClass("open");
} }
$.each(scrollList,function(i,item){ $.each(scrollList,function(i,item){
...@@ -251,7 +278,7 @@ ...@@ -251,7 +278,7 @@
}); });
var other = $("#other_scroller"); var other = $("#other_scroller");
var other_item = room; var other_item = area;
var roomAndAcreageKey = "id"; var roomAndAcreageKey = "id";
$.each(other_item,function(i,item){ $.each(other_item,function(i,item){
other.append('<a data-id="'+item[roomAndAcreageKey]+'">'+item.value+'</a>'); other.append('<a data-id="'+item[roomAndAcreageKey]+'">'+item.value+'</a>');
...@@ -293,15 +320,16 @@ ...@@ -293,15 +320,16 @@
}); });
var searchData = { var searchData = {
action: 'search_house', action: 'search_house',
cityId: {{cityId}}, cityId: {{ cityId }},
districtId: -1, districtId: -1,
plateId: -1, plateId: -1,
totalPrice: -1, totalPrice: -1,
rentalPrice: -1,
buildPropertyId: -1, buildPropertyId: -1,
roomId: -1, roomId: -1,
acreage: -1, acreage: -1,
searchText: '', searchText: '',
houseType:{{houseType}}, houseType: houseType,
index: 0 index: 0
}; };
</script> </script>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<script type="text/javascript" src="{{ theme }}/js/iscroll.js"></script> <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/jquery.min.js"></script>
<script type="text/javascript" src="{{ theme }}/js/bootstrap.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> </head>
<body> <body>
{% if result %} {% if result %}
...@@ -22,24 +23,15 @@ ...@@ -22,24 +23,15 @@
<li> <li>
<p>楼盘名:{{ item.name }}</p> <p>楼盘名:{{ item.name }}</p>
<p>预约时间:{{ item.date }} {{ item.time }}</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.user_id %}
{% if item.handle==0 %} {% if item.handle==0 %}
<p data-name="handle" data-id="{{ item.id }}">接受</p> <p class="accept">
{% else %} <button type="button" class="btn btn-lg" data-name="handle" data-id="{{ item.id }}">接受</button>
<p>已接受</p> </p>
{% endif %} {% endif %}
{% endif %} {% endif %}
</li> </li>
</ul> </ul>
{% else %}
{{ message }}
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
...@@ -49,9 +41,9 @@ ...@@ -49,9 +41,9 @@
<div class="modal-content text-center"> <div class="modal-content text-center">
<h3>您还未预约过看房信息。<br>马上去预约看房!</h3> <h3>您还未预约过看房信息。<br>马上去预约看房!</h3>
<ul class="list-unstyled"> <ul class="list-unstyled">
<li>新房<i class="iconfont"></i></li> <li>新房</li>
<li>二手房<i class="iconfont"></i></li> <li>二手房</li>
<li>租房<i class="iconfont"></i></li> <li>租房</li>
</ul> </ul>
</div> </div>
</div> </div>
...@@ -64,7 +56,7 @@ ...@@ -64,7 +56,7 @@
scrollbars: true, scrollbars: true,
click: true click: true
}); });
$('[data-name=handle]').click(function () { $('[data-name=handle]').tap(function () {
var self = $(this); var self = $(this);
var id = self.data('id'); var id = self.data('id');
$.ajax({ $.ajax({
...@@ -73,7 +65,7 @@ ...@@ -73,7 +65,7 @@
data: 'action=handle_view_house&id=' + id, data: 'action=handle_view_house&id=' + id,
success: function (data) { success: function (data) {
if (data.code == 2000) { if (data.code == 2000) {
self.html('已接受'); self.parent().remove();
alert('接受成功'); alert('接受成功');
} else { } else {
alert('接受失败'); alert('接受失败');
...@@ -84,8 +76,9 @@ ...@@ -84,8 +76,9 @@
{% else %} {% else %}
var myModal = $('#myModal'); var myModal = $('#myModal');
myModal.modal('show'); myModal.modal('show');
myModal.find('li').click(function(){ myModal.find('li').tap(function(){
window.location.href = '{{ url }}'; var index = $(this).index();
window.location.href = '{{ url }}/?houseType=' + index;
}); });
{% endif %} {% endif %}
}); });
......
...@@ -78,17 +78,17 @@ ...@@ -78,17 +78,17 @@
</label> </label>
<p class="col-xs-7"> <p class="col-xs-7">
<select id="year"> <select id="year" class="form-control">
<option value="2015">2015</option> <option value="2015">2015</option>
<option value="2016">2016</option> <option value="2016">2016</option>
</select> </select>
<label for="year"></label> <label for="year"></label>
<select id="month"> <select id="month" class="form-control">
<option value="8">8</option> <option value="8">8</option>
<option value="9">9</option> <option value="9">9</option>
</select> </select>
<label for="month"></label> <label for="month"></label>
<select id="day"> <select id="day" class="form-control">
<option value="8">14</option> <option value="8">14</option>
<option value="9">15</option> <option value="9">15</option>
</select> </select>
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</label> </label>
<p class="col-xs-7"> <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="0">9:00-10:00</option>
<option value="1">10:00-11:00</option> <option value="1">10:00-11:00</option>
<option value="2">11:00-12: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