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();
......
...@@ -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