Commit cc413842 by felix

每日一更

parent 4870040f
...@@ -3,7 +3,8 @@ require_once(PLUGIN_DIR . 'Dao/SearchDao.php'); ...@@ -3,7 +3,8 @@ require_once(PLUGIN_DIR . 'Dao/SearchDao.php');
require_once(PLUGIN_DIR . 'Dao/InsertDao.php'); require_once(PLUGIN_DIR . 'Dao/InsertDao.php');
require_once(PLUGIN_DIR . 'Tools/Image.php'); require_once(PLUGIN_DIR . 'Tools/Image.php');
require_once(PLUGIN_DIR . 'Tools/Core.php'); require_once(PLUGIN_DIR . 'Tools/Core.php');
class House { require_once(PLUGIN_DIR . 'Admin/Tospur_House.php');
class House extends Tospur_House{
public static function init_view(){ public static function init_view(){
wp_enqueue_script('jquery-ui'); wp_enqueue_script('jquery-ui');
wp_enqueue_script('bootstrapjs'); wp_enqueue_script('bootstrapjs');
...@@ -47,7 +48,7 @@ class House { ...@@ -47,7 +48,7 @@ class House {
$result = House::data_update($_POST['houseId'],$insert_tospur_house_array); $result = House::data_update($_POST['houseId'],$insert_tospur_house_array);
if($result != 203){ if($result != 203){
$wpdb->query("ROLLBACK"); $wpdb->query("ROLLBACK");
print_r($wpdb->last_error);; print_r($result);
echo "新房房源修改失败"; echo "新房房源修改失败";
}else{ }else{
$wpdb->query("COMMIT"); $wpdb->query("COMMIT");
...@@ -55,9 +56,10 @@ class House { ...@@ -55,9 +56,10 @@ class House {
} }
}else{ }else{
$result = House::data_insert($insert_tospur_house_array); $result = House::data_insert($insert_tospur_house_array);
print_r($result);
if($result != 200){ if($result != 200){
$wpdb->query("ROLLBACK"); $wpdb->query("ROLLBACK");
print_r($wpdb->last_error);; print_r($result);;
echo "新增房源失败"; echo "新增房源失败";
}else{ }else{
$wpdb->query("COMMIT"); $wpdb->query("COMMIT");
......
<?php
class Tospur_House{
public static function getCurrentRole(){
$current_user = wp_get_current_user();
if ( !($current_user instanceof WP_User) )
return;
$roles = $current_user->roles;
return $roles[0];
}
}
\ No newline at end of file
<?php
class feature
{
public static function ajax_add_feature()
{
$name = $_POST['name'];
wp_send_json(feature::add_feature($name));
}
public static function add_feature($name)
{
global $wpdb;
$result = $wpdb->insert(Config::TOSPUR_TAG_TABLE, array(
'name' => $name,
'type' => 1
));
return $result;
}
public static function feature_html()
{
$context = array();
$context['url'] = home_url();
Timber::render('feature.html', $context);
}
}
?>
\ No newline at end of file
...@@ -264,20 +264,21 @@ function newHouseList() ...@@ -264,20 +264,21 @@ function newHouseList()
{ {
$contest = array(); $contest = array();
$contest['page'] = $_REQUEST['page']; $contest['page'] = $_REQUEST['page'];
$contest['city'] = SearchDao::searchCity();
$contest['status'] = SearchDao::searchStatusType(1);
$contest['buildProperty'] = SearchDao::searchBuildProperty();
if(isset($_POST['hasSearch'])){ if(isset($_POST['hasSearch'])){
$bpRes = SearchDao::searchBuildProperty(); $contest['district'] = SearchDao::searchCity($_POST['listCity']);
foreach($bpRes as $val){ $contest['plate'] = SearchDao::searchCity($_POST['listCity'],$_POST['listDistrict']);
if($val->id == $_POST['buildProperty']){ $contest['dicTotalPrice'] = searchDao::searchTotalPrice($_POST['listCity']);
$contest['buildProperty'] = $val->value; $contest['dicArea'] = searchDao::searchArea($_POST['listCity']);
$contest['buildPropertyId'] = $val->id; $contest['cityId'] = $_POST['listCity'];
} $contest['districtId'] = $_POST['listDistrict'];
} $contest['plateId' ]= $_POST['listPlate'];
$contest['options']= SearchDao::searchForCDP($_POST['listCity'],$_POST['listDistrict'],$_POST['listPlate']); $contest['buildPropertyId']= $_POST['buildProperty'];
$contest['totalPrice'] = $_POST['totalPrice']; $contest['totalPrice'] = $_POST['totalPrice'];
$contest['acreage'] = $_POST['acreage']; $contest['acreage'] = $_POST['acreage'];
$contest['characteristic'] = $_POST['characteristic']; $contest['statusId'] = $_POST['status'];
$contest['status'] = SearchDao::searchStatus(1,$_POST['status']);
$contest['hasSearch'] = $_POST['hasSearch'];
} }
Timber::render("newHouseList.html",$contest); Timber::render("newHouseList.html",$contest);
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require_once(PLUGIN_DIR . 'Dao/SearchDao.php'); require_once(PLUGIN_DIR . 'Dao/SearchDao.php');
require_once(PLUGIN_DIR . 'Dao/InsertDao.php'); require_once(PLUGIN_DIR . 'Dao/InsertDao.php');
require_once(PLUGIN_DIR . 'Tools/Image.php'); require_once(PLUGIN_DIR . 'Tools/Image.php');
class RentHouse{ class RentHouse extends Tospur_House{
//二手房信息 //二手房信息
public static function rentHouse_html(){ public static function rentHouse_html(){
wp_enqueue_script('bootstrapjs'); wp_enqueue_script('bootstrapjs');
...@@ -44,7 +44,7 @@ class RentHouse{ ...@@ -44,7 +44,7 @@ class RentHouse{
$result = RentHouse::data_update($_POST['houseId'],$insert_tospur_house_array); $result = RentHouse::data_update($_POST['houseId'],$insert_tospur_house_array);
if($result != 202){ if($result != 202){
$wpdb->query("ROLLBACK"); $wpdb->query("ROLLBACK");
print_r($wpdb->last_error);; print_r($result);;
echo "租房房源修改失败"; echo "租房房源修改失败";
}else{ }else{
$wpdb->query("COMMIT"); $wpdb->query("COMMIT");
...@@ -55,7 +55,7 @@ class RentHouse{ ...@@ -55,7 +55,7 @@ class RentHouse{
$result = RentHouse::rentHouseData_insert($insert_tospur_house_array); $result = RentHouse::rentHouseData_insert($insert_tospur_house_array);
if ($result != 200) { if ($result != 200) {
$wpdb->query("ROLLBACK"); $wpdb->query("ROLLBACK");
print_r($wpdb->last_error);; print_r($result);;
echo "租房房源新增失败"; echo "租房房源新增失败";
} else { } else {
$wpdb->query("COMMIT"); $wpdb->query("COMMIT");
...@@ -139,12 +139,5 @@ class RentHouse{ ...@@ -139,12 +139,5 @@ class RentHouse{
InsertDao::addHouseTag($_POST['mark'],$houseId); InsertDao::addHouseTag($_POST['mark'],$houseId);
return $result; return $result;
} }
public static function getCurrentRole(){
$current_user = wp_get_current_user();
if ( !($current_user instanceof WP_User) )
return;
$roles = $current_user->roles;
return $roles[0];
}
} }
...@@ -35,14 +35,8 @@ class rentHouseList extends WP_List_Table ...@@ -35,14 +35,8 @@ class rentHouseList extends WP_List_Table
case 'suite': case 'suite':
case 'user_id': case 'user_id':
case 'status': case 'status':
$handle = $item['name'];
if ($handle == 0) {
return '<a href="' . admin_url() . 'admin.php?page=rentHouse&edit=true&id=' . $item['id'] . '">' . $item[$column_name] . '</a>';
} else {
return $item[$column_name];
}
default: default:
return print_r($item, true); //Show the whole array for troubleshooting purposes return '<a href="' . admin_url() . 'admin.php?page=rentHouse&edit=true&id=' . $item['id'] . '">' . $item[$column_name] . '</a>';
} }
} }
...@@ -294,21 +288,21 @@ function rentHouseList() ...@@ -294,21 +288,21 @@ function rentHouseList()
{ {
$contest = array(); $contest = array();
$contest['page'] = $_REQUEST['page']; $contest['page'] = $_REQUEST['page'];
$contest['city'] = SearchDao::searchCity();
$contest['status'] = SearchDao::searchStatusType(2);
$contest['buildProperty'] = SearchDao::searchBuildProperty();
if(isset($_POST['hasSearch'])){ if(isset($_POST['hasSearch'])){
$bpRes = SearchDao::searchBuildProperty(); $contest['district'] = SearchDao::searchCity($_POST['listCity']);
foreach($bpRes as $val){ $contest['plate'] = SearchDao::searchCity($_POST['listCity'],$_POST['listDistrict']);
if($val->id == $_POST['buildProperty']){ $contest['dicTotalPrice'] = searchDao::searchTotalPrice($_POST['listCity']);
$contest['buildProperty'] = $val->value; $contest['dicArea'] = searchDao::searchArea($_POST['listCity']);
$contest['buildPropertyId'] = $val->id; $contest['cityId'] = $_POST['listCity'];
} $contest['districtId'] = $_POST['listDistrict'];
} $contest['plateId' ]= $_POST['listPlate'];
$contest['options']= SearchDao::searchForCDP($_POST['listCity'],$_POST['listDistrict'],$_POST['listPlate']); $contest['buildPropertyId']= $_POST['buildProperty'];
$contest['totalPrice'] = $_POST['totalPrice']; $contest['totalPrice'] = $_POST['totalPrice'];
$contest['acreage'] = $_POST['acreage']; $contest['acreage'] = $_POST['acreage'];
$contest['characteristic'] = $_POST['characteristic']; $contest['statusId'] = $_POST['status'];
$contest['status'] = SearchDao::searchStatus(2,$_POST['status']);
$contest['hasSearch'] = $_POST['hasSearch'];
} }
Timber::render("rentHouseList.html",$contest); Timber::render("rentHouseList.html",$contest);
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require_once(PLUGIN_DIR . 'Dao/SearchDao.php'); require_once(PLUGIN_DIR . 'Dao/SearchDao.php');
require_once(PLUGIN_DIR . 'Dao/InsertDao.php'); require_once(PLUGIN_DIR . 'Dao/InsertDao.php');
require_once(PLUGIN_DIR . 'Tools/Image.php'); require_once(PLUGIN_DIR . 'Tools/Image.php');
class SecHandHouse{ class SecHandHouse extends Tospur_House{
//二手房信息 //二手房信息
public static function secHandHouse_html(){ public static function secHandHouse_html(){
wp_enqueue_script('bootstrapjs'); wp_enqueue_script('bootstrapjs');
...@@ -43,7 +43,7 @@ class SecHandHouse{ ...@@ -43,7 +43,7 @@ class SecHandHouse{
$result = SecHandHouse::data_update($_POST['houseId'],$insert_tospur_house_array); $result = SecHandHouse::data_update($_POST['houseId'],$insert_tospur_house_array);
if($result != 201){ if($result != 201){
$wpdb->query("ROLLBACK"); $wpdb->query("ROLLBACK");
print_r($wpdb->last_error);; print_r( $result);;
echo "二手房房源修改失败"; echo "二手房房源修改失败";
}else{ }else{
$wpdb->query("COMMIT"); $wpdb->query("COMMIT");
...@@ -54,7 +54,7 @@ class SecHandHouse{ ...@@ -54,7 +54,7 @@ class SecHandHouse{
$result = SecHandHouse::secHouseData_insert($insert_tospur_house_array); $result = SecHandHouse::secHouseData_insert($insert_tospur_house_array);
if ($result != 200) { if ($result != 200) {
$wpdb->query("ROLLBACK"); $wpdb->query("ROLLBACK");
print_r($wpdb->last_error);; print_r( $result);;
echo "二手房房源新增失败"; echo "二手房房源新增失败";
} else { } else {
$wpdb->query("COMMIT"); $wpdb->query("COMMIT");
...@@ -141,13 +141,5 @@ class SecHandHouse{ ...@@ -141,13 +141,5 @@ class SecHandHouse{
return $result; return $result;
} }
public static function getCurrentRole(){
$current_user = wp_get_current_user();
if ( !($current_user instanceof WP_User) )
return;
$roles = $current_user->roles;
return $roles[0];
}
} }
...@@ -277,21 +277,21 @@ function secHandHouseList() ...@@ -277,21 +277,21 @@ function secHandHouseList()
{ {
$contest = array(); $contest = array();
$contest['page'] = $_REQUEST['page']; $contest['page'] = $_REQUEST['page'];
$contest['city'] = SearchDao::searchCity();
$contest['status'] = SearchDao::searchStatusType(2);
$contest['buildProperty'] = SearchDao::searchBuildProperty();
if(isset($_POST['hasSearch'])){ if(isset($_POST['hasSearch'])){
$bpRes = SearchDao::searchBuildProperty(); $contest['district'] = SearchDao::searchCity($_POST['listCity']);
foreach($bpRes as $val){ $contest['plate'] = SearchDao::searchCity($_POST['listCity'],$_POST['listDistrict']);
if($val->id == $_POST['buildProperty']){ $contest['dicTotalPrice'] = searchDao::searchTotalPrice($_POST['listCity']);
$contest['buildProperty'] = $val->value; $contest['dicArea'] = searchDao::searchArea($_POST['listCity']);
$contest['buildPropertyId'] = $val->id; $contest['cityId'] = $_POST['listCity'];
} $contest['districtId'] = $_POST['listDistrict'];
} $contest['plateId' ]= $_POST['listPlate'];
$contest['options']= SearchDao::searchForCDP($_POST['listCity'],$_POST['listDistrict'],$_POST['listPlate']); $contest['buildPropertyId']= $_POST['buildProperty'];
$contest['totalPrice'] = $_POST['totalPrice']; $contest['totalPrice'] = $_POST['totalPrice'];
$contest['acreage'] = $_POST['acreage']; $contest['acreage'] = $_POST['acreage'];
$contest['totalPrice'] = $_POST['totalPrice']; $contest['statusId'] = $_POST['status'];
$contest['characteristic'] = $_POST['characteristic'];
$contest['status'] = SearchDao::searchStatus(2,$_POST['status']);
$contest['hasSearch'] = $_POST['hasSearch'];
} }
Timber::render("secHandHouseList.html",$contest); Timber::render("secHandHouseList.html",$contest);
} }
......
<h2>添加特色</h2>
<label for="feature">特色:</label>
<input id="feature" type="text">
<input type="submit" id="submit" class="button">
<script>
(function ($) {
$(document).ready(function () {
$('#submit').click(function () {
var name = $('#feature').val();
if (name.trim() != '') {
$.ajax({
type: 'POST',
url: '{{ url }}/wp-admin/admin-ajax.php/',
data: 'action=add_feature&name=' + name,
success: function (data) {
if (data) {
alert('添加成功');
} else {
alert('添加失败');
}
}
});
} else {
alert('请输入特色');
}
});
});
})(jQuery);
</script>
\ No newline at end of file
...@@ -3,62 +3,59 @@ ...@@ -3,62 +3,59 @@
<form id="scores-filter" method="POST"> <form id="scores-filter" method="POST">
<!-- For plugins, we also need to ensure that the form posts back to our current page --> <!-- For plugins, we also need to ensure that the form posts back to our current page -->
<input type="hidden" name="page" value="{{page}}"/> <input type="hidden" name="page" value="{{page}}"/>
<input type="hidden" name="hasSearch" value="1"/>
<select id="listCity" name="listCity"> <select id="listCity" name="listCity">
{% if hasSearch and options.cityName %}
<option value="{{options.cityId}}"> {{options.cityName}}</option>
{% else %}
<option value="0"> 城市</option> <option value="0"> 城市</option>
{% endif %} {% for item in city %}
<option {{ item.id == cityId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
</select> </select>
<select id="listDistrict" name="listDistrict"> <select id="listDistrict" name="listDistrict">
{% if hasSearch and options.districtName %}
<option value="{{options.districtId}}"> {{options.districtName}}</option>
{% else %}
<option value="0">区域</option> <option value="0">区域</option>
{% if district %}
{% for item in district %}
<option {{ item.id == districtId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="listPlate" name="listPlate"> <select id="listPlate" name="listPlate">
{% if hasSearch and options.districtName and options.plateName %}
<option value="{{options.plateId}}">{{options.plateName}}</option>
{% else %}
<option value="0">板块</option> <option value="0">板块</option>
{% if plate %}
{% for item in plate %}
<option {{ item.id == plateId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="totalPrice" name="totalPrice"> <select id="totalPrice" name="totalPrice">
{% if hasSearch and totalPrice %}
<option value="{{totalPrice}}"> {{totalPrice}}</option>
{% else %}
<option value ="">价格</option> <option value ="">价格</option>
{% if dicTotalPrice %}
{% for item in dicTotalPrice %}
<option {{ item.value == totalPrice ?"selected":"" }} value="{{ item.value }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="buildProperty" name="buildProperty"> <select id="buildProperty" name="buildProperty">
{% if hasSearch and buildProperty %}
<option value="{{buildPropertyId}}"> {{buildProperty}}</option>
{% else %}
<option value="0"> 房型</option> <option value="0"> 房型</option>
{% endif %} {% for item in buildProperty %}
<option {{ item.id == buildPropertyId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
</select> </select>
<select id="acreage" name="acreage"> <select id="acreage" name="acreage">
{% if hasSearch and acreage %}
<option value="{{acreage}}"> {{acreage}}</option>
{% else %}
<option value ="">面积</option> <option value ="">面积</option>
{% if acreage %}
{% for item in dicArea %}
<option {{ item.value == acreage ?"selected":"" }} value="{{ item.value }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select name="status" name="status"> <select name="status" name="status">
{% if hasSearch and status %}
{% for item in status %}
<option value="{{ item.status_id }}">{{ item.status_name }}</option>
{% endfor %}
{% else %}
<option value="-1">状态</option> <option value="-1">状态</option>
{% endif %} {% for item in status%}
<option value="0">未审核</option> <option {{ item.id == statusId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
<option value="1">审核</option> {% endfor %}
<option value="2">下架</option>
</select> </select>
<input type="text" placeholder="请出入楼盘名" name="searchText"> <input type="text" placeholder="请出入楼盘名" name="searchText">
<input type="hidden" name="hasSearch" value="1"/>
<input type="submit" id="submit" class="button action" value="搜索"> <input type="submit" id="submit" class="button action" value="搜索">
<!-- Now we can render the completed list table --> <!-- Now we can render the completed list table -->
{{function("addNewHouseTable")}} {{function("addNewHouseTable")}}
...@@ -68,36 +65,16 @@ ...@@ -68,36 +65,16 @@
(function ($) { (function ($) {
$(document).ready(function(){ $(document).ready(function(){
//获取城市信息AJAX //获取城市信息AJAX
var listCity = $("#listCity");
var room = $("#room"); var room = $("#room");
var buildProperty =$("#buildProperty"); var buildProperty =$("#buildProperty");
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "/tospur/wp-admin/admin-ajax.php", url: "/tospur/wp-admin/admin-ajax.php",
data: "action=serachCity",
success:function(data){
addOption(data,listCity)
}
})
//获取类型信息AJAX
$.ajax({
type: "GET",
url: "/tospur/wp-admin/admin-ajax.php",
data: "action=searchRoom", data: "action=searchRoom",
success:function(data){ success:function(data){
addOption(data,room) addOption(data,room)
} }
}) })
//获取房型信息AJAX
$.ajax({
type: "GET",
url: "/tospur/wp-admin/admin-ajax.php",
data: "action=searchBuildProperty",
success:function(data){
addOption(data,buildProperty)
}
})
$("#listCity").change(function(){ $("#listCity").change(function(){
var listCityId = $("#listCity").val(); var listCityId = $("#listCity").val();
...@@ -132,7 +109,7 @@ ...@@ -132,7 +109,7 @@
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "/tospur/wp-admin/admin-ajax.php", url: "/tospur/wp-admin/admin-ajax.php",
data: "action=searchUnitPriceRange&cityId="+listCityId, data: "action=searchTotalPrice&cityId="+listCityId,
success:function(json){ success:function(json){
for(var i = 0; i <=json.length-1; i++){ for(var i = 0; i <=json.length-1; i++){
var id = json[i]["id"]; var id = json[i]["id"];
......
...@@ -184,6 +184,7 @@ ...@@ -184,6 +184,7 @@
{% endif %} {% endif %}
{% set exists_photo_ids = exists_photo_ids~item.image_id %} {% set exists_photo_ids = exists_photo_ids~item.image_id %}
<p> <p>
<input type="radio" name="frontCover" value="{{item.image_id}}" {{ result.frontCover_id == item.image_id?"checked":"" }} />
<select name="exists_photo[{{ item.image_id }}][type]"> <select name="exists_photo[{{ item.image_id }}][type]">
{% for i in photoType %} {% for i in photoType %}
<option {{ i.id == item.image_type?"selected":"" }} value="{{ i.id }}">{{ i.value }}</option> <option {{ i.id == item.image_type?"selected":"" }} value="{{ i.id }}">{{ i.value }}</option>
...@@ -240,7 +241,7 @@ ...@@ -240,7 +241,7 @@
<td> <td>
<select id="status" name="status"> <select id="status" name="status">
{% for item in status %} {% for item in status %}
<option value={{item.status_id}}>{{item.status_name}}</option> <option value={{item.id}}>{{item.value}}</option>
{% endfor %} {% endfor %}
</select> </select>
</td> </td>
...@@ -567,13 +568,14 @@ ...@@ -567,13 +568,14 @@
//新增房源相册 //新增房源相册
$("#housePicture").click(function(){ $("#housePicture").click(function(){
var picDelet = $("<font>").append("删除").addClass("picDelet"); var checkBox = $("<input>").attr({"type":"radio","name":"frontCover","value":i});
var picDelet = $("<input>").attr({"type":"button","value":"删除"}).addClass("picDelet");
var file = $("<input>").attr({"type":"file","name":"files["+i+"]"}).addClass("picFiles"); var file = $("<input>").attr({"type":"file","name":"files["+i+"]"}).addClass("picFiles");
var select = $("<select>").attr("name","data["+i+"][type]"); var select = $("<select>").attr("name","data["+i+"][type]");
{% for item in photoType %} {% for item in photoType %}
select.append($("<option>").attr("value",{{item.id}}).append('{{item.value}}')); select.append($("<option>").attr("value",{{item.id}}).append('{{item.value}}'));
{% endfor%} {% endfor%}
var p = $("<p>").append(select).append(file).append(picDelet); var p = $("<p>").append(checkBox).append(select).append(file).append(picDelet);
$("#picList").append(p); $("#picList").append(p);
i++ i++
}); });
......
...@@ -154,6 +154,7 @@ ...@@ -154,6 +154,7 @@
{% endif %} {% endif %}
{% set exists_photo_ids = exists_photo_ids~item.image_id %} {% set exists_photo_ids = exists_photo_ids~item.image_id %}
<p> <p>
<input type="radio" name="frontCover" value="{{item.image_id}}" {{ result.frontCover_id == item.image_id?"checked":"" }} />
<select name="exists_photo[{{ item.image_id }}][type]"> <select name="exists_photo[{{ item.image_id }}][type]">
{% for i in photoType %} {% for i in photoType %}
<option {{ i.id == item.image_type?"selected":"" }} value="{{ i.id }}">{{ i.value }}</option> <option {{ i.id == item.image_type?"selected":"" }} value="{{ i.id }}">{{ i.value }}</option>
...@@ -202,7 +203,7 @@ ...@@ -202,7 +203,7 @@
<td> <td>
<select id="status" name="status"> <select id="status" name="status">
{% for item in status %} {% for item in status %}
<option value={{item.status_id}}>{{item.status_name}}</option> <option value={{item.id}}>{{item.value}}</option>
{% endfor %} {% endfor %}
</select> </select>
</td> </td>
...@@ -524,13 +525,14 @@ ...@@ -524,13 +525,14 @@
//新增房源相册 //新增房源相册
$("#housePicture").click(function(){ $("#housePicture").click(function(){
var picDelet = $("<font>").append("删除").addClass("picDelet"); var checkBox = $("<input>").attr({"type":"radio","name":"frontCover","value":i});
var picDelet = $("<input>").attr({"type":"button","value":"删除"}).addClass("picDelet");
var file = $("<input>").attr({"type":"file","name":"files["+i+"]"}).addClass("picFiles"); var file = $("<input>").attr({"type":"file","name":"files["+i+"]"}).addClass("picFiles");
var select = $("<select>").attr("name","data["+i+"][type]"); var select = $("<select>").attr("name","data["+i+"][type]");
{% for item in photoType %} {% for item in photoType %}
select.append($("<option>").attr("value",{{item.id}}).append('{{item.value}}')); select.append($("<option>").attr("value",{{item.id}}).append('{{item.value}}'));
{% endfor%} {% endfor%}
var p = $("<p>").append(select).append(file).append(picDelet); var p = $("<p>").append(checkBox).append(select).append(file).append(picDelet);
$("#picList").append(p); $("#picList").append(p);
i++ i++
}); });
......
...@@ -6,61 +6,55 @@ ...@@ -6,61 +6,55 @@
<input type="hidden" name="page" value="{{page}}"/> <input type="hidden" name="page" value="{{page}}"/>
<input type="hidden" name="hasSearch" value="1"/> <input type="hidden" name="hasSearch" value="1"/>
<select id="listCity" name="listCity"> <select id="listCity" name="listCity">
{% if hasSearch and options.cityName %}
<option value="{{options.cityId}}"> {{options.cityName}}</option>
{% else %}
<option value="0"> 城市</option> <option value="0"> 城市</option>
{% endif %} {% for item in city %}
<option {{ item.id == cityId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
</select> </select>
<select id="listDistrict" name="listDistrict"> <select id="listDistrict" name="listDistrict">
{% if hasSearch and options.districtName %}
<option value="{{options.districtId}}"> {{options.districtName}}</option>
{% else %}
<option value="0">区域</option> <option value="0">区域</option>
{% if district %}
{% for item in district %}
<option {{ item.id == districtId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="listPlate" name="listPlate"> <select id="listPlate" name="listPlate">
{% if hasSearch and options.districtName and options.plateName %}
<option value="{{options.plateId}}">{{options.plateName}}</option>
{% else %}
<option value="0">板块</option> <option value="0">板块</option>
{% if plate %}
{% for item in plate %}
<option {{ item.id == plateId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="totalPrice" name="totalPrice"> <select id="totalPrice" name="totalPrice">
{% if hasSearch and totalPrice %}
<option value="{{totalPrice}}"> {{totalPrice}}</option>
{% else %}
<option value ="">价格</option> <option value ="">价格</option>
{% if dicTotalPrice %}
{% for item in dicTotalPrice %}
<option {{ item.value == totalPrice ?"selected":"" }} value="{{ item.value }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="buildProperty" name="buildProperty"> <select id="buildProperty" name="buildProperty">
{% if hasSearch and buildProperty %}
<option value="{{buildPropertyId}}"> {{buildProperty}}</option>
{% else %}
<option value="0"> 房型</option> <option value="0"> 房型</option>
{% endif %} {% for item in buildProperty %}
<option {{ item.id == buildPropertyId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
</select> </select>
<select id="acreage" name="acreage"> <select id="acreage" name="acreage">
{% if hasSearch and acreage %}
<option value="{{acreage}}"> {{acreage}}</option>
{% else %}
<option value ="">面积</option> <option value ="">面积</option>
{% if acreage %}
{% for item in dicArea %}
<option {{ item.value == acreage ?"selected":"" }} value="{{ item.value }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select name="status" name="status"> <select name="status" name="status">
{% if hasSearch and status %}
{% for item in status %}
<option value="{{ item.status_id }}">{{ item.status_name }}</option>
{% endfor %}
{% else %}
<option value="-1">状态</option> <option value="-1">状态</option>
{% endif %} {% for item in status%}
<option value="0">未审核</option> <option {{ item.id == statusId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
<option value="1">审核</option> {% endfor %}
<option value="2">自售</option>
<option value="3">他售</option>
<option value="4">无效</option>
<option value="5">重激活</option>
</select> </select>
<input type="text" placeholder="请出入楼盘名/地段名搜索" name="searchText"> <input type="text" placeholder="请出入楼盘名/地段名搜索" name="searchText">
<input type="submit" id="submit" class="button action" value="搜索"> <input type="submit" id="submit" class="button action" value="搜索">
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
<td> <input name="housename" id="housename" type="text" value="{{result.name}}" class="regular-text code" style="width: 150px;"></td> <td> <input name="housename" id="housename" type="text" value="{{result.name}}" class="regular-text code" style="width: 150px;"></td>
</tr> </tr>
<tr> <tr>
<th><label for="address">小区名称</label></th>
<td> <input name="community_name" type="text" value="{{result.community_name}}" class="regular-text code" style="width: 150px;"></td>
</tr>
<tr>
<th><label for="housename">标签:</label></th> <th><label for="housename">标签:</label></th>
<td> <input name="mark" id="mark" type="text" value="{{mark}}" class="regular-text code"></td> <td> <input name="mark" id="mark" type="text" value="{{mark}}" class="regular-text code"></td>
</tr> </tr>
...@@ -127,10 +131,6 @@ ...@@ -127,10 +131,6 @@
<td> <input name="address" type="text" value="{{result.address}}" class="regular-text code"></td> <td> <input name="address" type="text" value="{{result.address}}" class="regular-text code"></td>
</tr> </tr>
<tr> <tr>
<th><label for="address">小区名称</label></th>
<td> <input name="community_name" type="text" value="{{result.community_name}}" class="regular-text code" style="width: 150px;"></td>
</tr>
<tr>
<th><label for="traffic">交通线路</label></th> <th><label for="traffic">交通线路</label></th>
<td> <input name="traffic" type="text" value="{{result.traffic}}" class="regular-text code" style="width: 300px;"></td> <td> <input name="traffic" type="text" value="{{result.traffic}}" class="regular-text code" style="width: 300px;"></td>
</tr> </tr>
...@@ -155,6 +155,7 @@ ...@@ -155,6 +155,7 @@
{% endif %} {% endif %}
{% set exists_photo_ids = exists_photo_ids~item.image_id %} {% set exists_photo_ids = exists_photo_ids~item.image_id %}
<p> <p>
<input type="radio" name="frontCover" value="{{item.image_id}}" {{ result.frontCover_id == item.image_id?"checked":"" }} />
<select name="exists_photo[{{ item.image_id }}][type]"> <select name="exists_photo[{{ item.image_id }}][type]">
{% for i in photoType %} {% for i in photoType %}
<option {{ i.id == item.image_type?"selected":"" }} value="{{ i.id }}">{{ i.value }}</option> <option {{ i.id == item.image_type?"selected":"" }} value="{{ i.id }}">{{ i.value }}</option>
...@@ -211,7 +212,7 @@ ...@@ -211,7 +212,7 @@
<td> <td>
<select id="status" name="status"> <select id="status" name="status">
{% for item in status %} {% for item in status %}
<option value={{item.status_id}}>{{item.status_name}}</option> <option value={{item.id}}>{{item.value}}</option>
{% endfor %} {% endfor %}
</select> </select>
</td> </td>
...@@ -534,13 +535,14 @@ ...@@ -534,13 +535,14 @@
//新增房源相册 //新增房源相册
$("#housePicture").click(function(){ $("#housePicture").click(function(){
var picDelet = $("<font>").append("删除").addClass("picDelet"); var checkBox = $("<input>").attr({"type":"radio","name":"frontCover","value":i});
var picDelet = $("<input>").attr({"type":"button","value":"删除"}).addClass("picDelet");
var file = $("<input>").attr({"type":"file","name":"files["+i+"]"}).addClass("picFiles"); var file = $("<input>").attr({"type":"file","name":"files["+i+"]"}).addClass("picFiles");
var select = $("<select>").attr("name","data["+i+"][type]"); var select = $("<select>").attr("name","data["+i+"][type]");
{% for item in photoType %} {% for item in photoType %}
select.append($("<option>").attr("value",{{item.id}}).append('{{item.value}}')); select.append($("<option>").attr("value",{{item.id}}).append('{{item.value}}'));
{% endfor%} {% endfor%}
var p = $("<p>").append(select).append(file).append(picDelet); var p = $("<p>").append(checkBox).append(select).append(file).append(picDelet);
$("#picList").append(p); $("#picList").append(p);
i++ i++
}); });
......
...@@ -6,66 +6,55 @@ ...@@ -6,66 +6,55 @@
<input type="hidden" name="page" value="{{page}}"/> <input type="hidden" name="page" value="{{page}}"/>
<input type="hidden" name="hasSearch" value="1"/> <input type="hidden" name="hasSearch" value="1"/>
<select id="listCity" name="listCity"> <select id="listCity" name="listCity">
{% if hasSearch and options.cityName %}
<option value="{{options.cityId}}"> {{options.cityName}}</option>
{% else %}
<option value="0"> 城市</option> <option value="0"> 城市</option>
{% endif %} {% for item in city %}
<option {{ item.id == cityId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
</select> </select>
<select id="listDistrict" name="listDistrict"> <select id="listDistrict" name="listDistrict">
{% if hasSearch and options.districtName %}
<option value="{{options.districtId}}"> {{options.districtName}}</option>
{% else %}
<option value="0">区域</option> <option value="0">区域</option>
{% if district %}
{% for item in district %}
<option {{ item.id == districtId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="listPlate" name="listPlate"> <select id="listPlate" name="listPlate">
{% if hasSearch and options.districtName and options.plateName %}
<option value="{{options.plateId}}">{{options.plateName}}</option>
{% else %}
<option value="0">板块</option> <option value="0">板块</option>
{% if plate %}
{% for item in plate %}
<option {{ item.id == plateId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="totalPrice" name="totalPrice"> <select id="totalPrice" name="totalPrice">
{% if hasSearch and totalPrice %}
<option value="{{totalPrice}}"> {{totalPrice}}</option>
{% else %}
<option value ="">价格</option> <option value ="">价格</option>
{% if dicTotalPrice %}
{% for item in dicTotalPrice %}
<option {{ item.value == totalPrice ?"selected":"" }} value="{{ item.value }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="buildProperty" name="buildProperty"> <select id="buildProperty" name="buildProperty">
{% if hasSearch and buildProperty %}
<option value="{{buildPropertyId}}"> {{buildProperty}}</option>
{% else %}
<option value="0"> 房型</option> <option value="0"> 房型</option>
{% endif %} {% for item in buildProperty %}
<option {{ item.id == buildPropertyId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
{% endfor %}
</select> </select>
<select id="acreage" name="acreage"> <select id="acreage" name="acreage">
{% if hasSearch and acreage %}
<option value="{{acreage}}"> {{acreage}}</option>
{% else %}
<option value ="">面积</option> <option value ="">面积</option>
{% if acreage %}
{% for item in dicArea %}
<option {{ item.value == acreage ?"selected":"" }} value="{{ item.value }}">{{ item.value }}</option>
{% endfor %}
{% endif %} {% endif %}
</select> </select>
<select id="characteristic" name="characteristic">
<option value ="">特色</option>
<option value ="">满5</option>
<option value ="">唯一住房</option>
</select>
<select name="status" name="status"> <select name="status" name="status">
{% if hasSearch and status %}
{% for item in status %}
<option value="{{ item.status_id }}">{{ item.status_name }}</option>
{% endfor %}
{% else %}
<option value="-1">状态</option> <option value="-1">状态</option>
{% endif %} {% for item in status%}
<option value="0">未审核</option> <option {{ item.id == statusId ?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
<option value="1">审核</option> {% endfor %}
<option value="2">自售</option>
<option value="3">他售</option>
<option value="4">无效</option>
<option value="5">重激活</option>
</select> </select>
<input type="text" placeholder="请出入楼盘名/地段名搜索" name="searchText"> <input type="text" placeholder="请出入楼盘名/地段名搜索" name="searchText">
<input type="submit" id="submit" class="button action" value="搜索"> <input type="submit" id="submit" class="button action" value="搜索">
......
...@@ -68,6 +68,7 @@ class InsertDao{ ...@@ -68,6 +68,7 @@ class InsertDao{
global $wpdb; global $wpdb;
//图片信息 //图片信息
$uploadedfile = $_FILES['files']; $uploadedfile = $_FILES['files'];
$frontCover = $_POST["frontCover"];
//主力房源的图片与房子信息关联插入数据库 //主力房源的图片与房子信息关联插入数据库
if(isset($uploadedfile["name"])){ if(isset($uploadedfile["name"])){
foreach($uploadedfile["name"] as $key=> $value) { foreach($uploadedfile["name"] as $key=> $value) {
...@@ -106,8 +107,13 @@ class InsertDao{ ...@@ -106,8 +107,13 @@ class InsertDao{
if (!$imgRes) { if (!$imgRes) {
return 501; return 501;
} }
//获取插入图片的id //获取插入图片的id
$imgid = $wpdb->insert_id; $imgid = $wpdb->insert_id;
if($_POST["frontCover"] == $key){
$frontCover =$imgid;
}
//房源类型、面积与图片关联表 //房源类型、面积与图片关联表
if($data[$key]["type"] == "0"){ if($data[$key]["type"] == "0"){
$houseTypeArea = array( $houseTypeArea = array(
...@@ -136,6 +142,7 @@ class InsertDao{ ...@@ -136,6 +142,7 @@ class InsertDao{
} }
} }
} }
$wpdb->update(Config::TOSPUR_HOUSE_TABLE,array("frontCover_id"=>$frontCover),array("id"=>$houseId));
} }
public static function addRecommend($houseId,$data){ public static function addRecommend($houseId,$data){
......
...@@ -162,6 +162,7 @@ class SearchDao ...@@ -162,6 +162,7 @@ class SearchDao
'rentalPrice' => $_POST['rentalPrice'], 'rentalPrice' => $_POST['rentalPrice'],
'searchText' => $_POST['searchText'], 'searchText' => $_POST['searchText'],
'houseType' => $_POST['houseType'], 'houseType' => $_POST['houseType'],
'feature' => $_POST['feature'],
'userType' => $_POST['userType'], 'userType' => $_POST['userType'],
'userId' => $_POST['userId'], 'userId' => $_POST['userId'],
'index' => $_POST['index'] 'index' => $_POST['index']
...@@ -175,18 +176,26 @@ class SearchDao ...@@ -175,18 +176,26 @@ class SearchDao
{ {
global $wpdb; global $wpdb;
$params = array(); $params = array();
$buildpropertySql = null; $addSql = null;
$addWhereSql = null;
$orderbySql = null; $orderbySql = null;
if ($array['houseType'] == 0) { if ($array['houseType'] == 0) {
$buildpropertySql = " left join (select buildproperty_id,house_area,image_id,house_id as bph_id from a_district_area) ada on th.id = ada.bph_id". $addSql = " left join (select buildproperty_id,house_area,image_id,house_id as bph_id from a_district_area) ada on th.id = ada.bph_id".
" left join (select value as bp_value,literal as bp_literal from dic_buildproperty) dbp on ada.buildproperty_id = dbp.bp_value"; " left join (select value as bp_value,literal as bp_literal from dic_buildproperty) dbp on ada.buildproperty_id = dbp.bp_value";
$orderbySql = " group by ada.bph_id order by th.creattime DESC"; $orderbySql = " group by ada.bph_id order by th.creattime DESC";
}else if ($array['houseType'] == 1||$array['houseType'] == 2) { }else if ($array['houseType'] == 1) {
$buildpropertySql = " left join (select value as bp_value,literal as bp_literal from dic_buildproperty) dbp on th.buildproperty_id = dbp.bp_value"; $addSql = " left join (select value as bp_value,literal as bp_literal from dic_buildproperty) dbp on th.buildproperty_id = dbp.bp_value";
if ($array['feature'] > -1) {
$addSql .= " left join (select house_id,tag_id from a_house_tag) aht on th.id = aht.house_id";
$addWhereSql = " and tag_id = ".$array['feature'];
}
$orderbySql = " order by th.creattime DESC";
}else if($array['houseType'] == 2){
$addSql = " left join (select value as bp_value,literal as bp_literal from dic_buildproperty) dbp on th.buildproperty_id = dbp.bp_value";
$orderbySql = " order by th.creattime DESC"; $orderbySql = " order by th.creattime DESC";
} }
$sql = "select * from tospur_house th". $sql = "select * from tospur_house th".
$buildpropertySql. $addSql.
" left join dic_city dc on th.plate_id = dc.plateId". " left join dic_city dc on th.plate_id = dc.plateId".
" left join (select id as rid,value as r_value,literal from dic_room) dr on th.room_id = dr.r_value". " left join (select id as rid,value as r_value,literal from dic_room) dr on th.room_id = dr.r_value".
" where 1=1"; " where 1=1";
...@@ -243,6 +252,9 @@ class SearchDao ...@@ -243,6 +252,9 @@ class SearchDao
$sql = $sql . " and (name like '%s' or address like '%s')"; $sql = $sql . " and (name like '%s' or address like '%s')";
} }
if($addWhereSql){
$sql = $sql . $addWhereSql;
}
$sql = $sql . $orderbySql; $sql = $sql . $orderbySql;
if ($array['index'] > -1) { if ($array['index'] > -1) {
...@@ -330,17 +342,24 @@ class SearchDao ...@@ -330,17 +342,24 @@ class SearchDao
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)
{ {
$string = '(' . implode(',', array_map('intval', $house_ids)) . ')'; $string = '(' . implode(',', array_map('intval', $house_ids)) . ')';
$sql = 'select aht.house_id,tt.name from ' . Config::A_HOUSE_TAG_TABLE . ' aht' . $sql = 'select aht.house_id,tt.name from ' . Config::A_HOUSE_TAG_TABLE . ' aht' .
' left join ' . Config::TOSPUR_TAG_TABLE . ' tt on aht.tag_id = tt.id' . ' left join ' . Config::TOSPUR_TAG_TABLE . ' tt on aht.tag_id = tt.id' .
' where house_id in ' . $string; ' where house_id in ' . $string . ' and tt.type = 0;';
global $wpdb; global $wpdb;
return $wpdb->get_results($sql); return $wpdb->get_results($sql);
} }
public static function searchFeature()
{
$sql = 'select id,name as value from '.Config::TOSPUR_TAG_TABLE.' where type = 1;';
global $wpdb;
return $wpdb->get_results($sql);
}
public static function setHouseNumber($houseId,$houseType,$cityId){ public static function setHouseNumber($houseId,$houseType,$cityId){
global $wpdb; global $wpdb;
switch($houseType){ switch($houseType){
case 0: case 0:
...@@ -442,45 +461,12 @@ class SearchDao ...@@ -442,45 +461,12 @@ class SearchDao
} }
return implode(",",$tags); return implode(",",$tags);
} }
public static function searchStatusType($statusType){ public static function searchStatusType($statusType){
global $wpdb; global $wpdb;
$sql="select status_type,status_id,status_name from tospur_status where status_type = %d"; $sql="select status_id as id,status_name as value from tospur_status where status_type = %d";
$results = $wpdb->get_results($wpdb->prepare($sql,$statusType)); $results = $wpdb->get_results($wpdb->prepare($sql,$statusType));
return $results; return $results;
} }
public static function searchForCDP($cityId=null,$districtId=null,$plateId=null){
global $wpdb;
$selectName = "";
$where = " where 1=1 ";
$params = array();
if($cityId != 0){
$where .= " and cityId = %d";
$selectName = "cityId,cityName";
$params[] = $cityId;
}
if($districtId != 0){
$where .= " and districtId = %d";
$selectName = "cityId,cityName,districtId,districtName";
$params[] = $districtId;
}
if($plateId != 0){
$where .= " and plateId = %d";
$selectName = "cityId,cityName,districtId,districtName,plateId,plateName";
$params[] = $plateId;
}
$result = $wpdb->get_row($wpdb->prepare('select ' . $selectName . ' from ' . Config::DIC_CITY_TABLE . $where,$params));
return $result;
}
public static function searchStatus($type=null,$status=null){
global $wpdb;
if($status!=null && $type!=null){
$sql = "select status_id,status_name from tospur_status where status_type =".$type." and status_id =".$status;
$result = $wpdb->get_results($sql);
}
return $result;
}
} }
\ No newline at end of file
...@@ -22,6 +22,7 @@ function tospur_init() ...@@ -22,6 +22,7 @@ function tospur_init()
require_once(PLUGIN_DIR . 'Admin/secHandHouseList.php'); require_once(PLUGIN_DIR . 'Admin/secHandHouseList.php');
require_once(PLUGIN_DIR . 'Admin/rentHouse.php'); require_once(PLUGIN_DIR . 'Admin/rentHouse.php');
require_once(PLUGIN_DIR . 'Admin/rentHouseList.php'); require_once(PLUGIN_DIR . 'Admin/rentHouseList.php');
require_once(PLUGIN_DIR . 'Admin/feature.php');
require_once('consultant_score.php'); require_once('consultant_score.php');
require_once('view_house.php'); require_once('view_house.php');
add_action('admin_menu', 'reset_menu'); add_action('admin_menu', 'reset_menu');
...@@ -92,6 +93,8 @@ function tospur_ajax_set() ...@@ -92,6 +93,8 @@ function tospur_ajax_set()
add_action( 'wp_ajax_nopriv_searchHouse', 'SearchDao::ajax_searchHouse'); add_action( 'wp_ajax_nopriv_searchHouse', 'SearchDao::ajax_searchHouse');
add_action( 'wp_ajax_searchConsultant', 'SearchDao::ajax_searchConsultant' ); add_action( 'wp_ajax_searchConsultant', 'SearchDao::ajax_searchConsultant' );
add_action( 'wp_ajax_nopriv_searchConsultant', 'SearchDao::ajax_searchConsultant'); add_action( 'wp_ajax_nopriv_searchConsultant', 'SearchDao::ajax_searchConsultant');
add_action('wp_ajax_add_feature', 'feature::ajax_add_feature');
add_action('wp_ajax_nopriv_add_feature', 'feature::ajax_add_feature');
//后台处理 置业顾问评分 //后台处理 置业顾问评分
add_action('wp_ajax_valid_consultant_score', 'valid_consultant_score'); add_action('wp_ajax_valid_consultant_score', 'valid_consultant_score');
//后台处理 置业顾问 //后台处理 置业顾问
...@@ -136,6 +139,7 @@ function reset_menu() ...@@ -136,6 +139,7 @@ function reset_menu()
add_submenu_page('newHouseList', '添加新房', '添加新房', 'moderate_comments', 'newHouse', 'House::init_view'); add_submenu_page('newHouseList', '添加新房', '添加新房', 'moderate_comments', 'newHouse', 'House::init_view');
add_menu_page('secHandHouseList','二手房列表', 'moderate_comments', 'secHandHouseList', 'secHandHouseList', 'dashicons-menu', 7); add_menu_page('secHandHouseList','二手房列表', 'moderate_comments', 'secHandHouseList', 'secHandHouseList', 'dashicons-menu', 7);
add_submenu_page('secHandHouseList', '添加二手房', '添加二手房', 'moderate_comments', 'secHandHouse', 'SecHandHouse::secHandHouse_html'); add_submenu_page('secHandHouseList', '添加二手房', '添加二手房', 'moderate_comments', 'secHandHouse', 'SecHandHouse::secHandHouse_html');
add_submenu_page('secHandHouseList', '添加特色', '添加特色', 'moderate_comments', 'feature', 'feature::feature_html');
add_menu_page('rentHouseList','租房列表', 'moderate_comments', 'rentHouseList', 'rentHouseList', 'dashicons-menu', 8); add_menu_page('rentHouseList','租房列表', 'moderate_comments', 'rentHouseList', 'rentHouseList', 'dashicons-menu', 8);
add_submenu_page('rentHouseList', '添加租房', '添加租房', 'moderate_comments', 'rentHouse', 'RentHouse::rentHouse_html'); add_submenu_page('rentHouseList', '添加租房', '添加租房', 'moderate_comments', 'rentHouse', 'RentHouse::rentHouse_html');
//移除更新信息 //移除更新信息
......
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
......
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -317,7 +428,7 @@ a:hover { ...@@ -317,7 +428,7 @@ a:hover {
color: #ffffff; color: #ffffff;
font-weight: bold; font-weight: bold;
margin: 0 auto; margin: 0 auto;
padding: 16px; padding: 8px;
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;
......
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
......
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -326,121 +437,10 @@ a:hover { ...@@ -326,121 +437,10 @@ a:hover {
#wrapper #scroller { #wrapper #scroller {
padding-bottom: 45px; padding-bottom: 45px;
} }
#wrapper #scroller .row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
#wrapper #scroller .row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
#wrapper #scroller .row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
#wrapper #scroller .row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
#wrapper #scroller .row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#wrapper #scroller .row ul li span {
margin-right: 15px;
}
#wrapper #scroller .row ul li span:last-child {
margin-right: 0;
}
#wrapper #scroller .row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
#wrapper #scroller .row ul li.address span:nth-child(1) {
color: #000000;
font-size: 21px;
font-weight: bold;
}
#wrapper #scroller .row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
#wrapper #scroller .row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
#wrapper #scroller .row ul li:last-child span {
color: #000000;
font-size: 15px;
}
#wrapper #scroller .row ul li:last-child span em {
font-style: normal;
}
#wrapper #scroller .row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
#wrapper #scroller .row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
#wrapper #scroller .row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
#wrapper #scroller .row:active {
background-color: #e9e9e9;
}
.footer { .footer {
width: 100%; width: 100%;
height: 45px; height: 45px;
background-color: rgba(0, 0, 0, 0.5); background-color: #f9f9f9;
} }
.footer .btn { .footer .btn {
width: 45%; width: 45%;
......
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -437,7 +548,7 @@ body { ...@@ -437,7 +548,7 @@ body {
.detail_row .map { .detail_row .map {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; left: 90px;
width: 40px; width: 40px;
height: 40px; height: 40px;
background: url("../img/blue_map_icon.png") no-repeat; background: url("../img/blue_map_icon.png") no-repeat;
...@@ -449,34 +560,18 @@ body { ...@@ -449,34 +560,18 @@ body {
transform: scale(1.1); transform: scale(1.1);
-webkit-transform: scale(1.1); -webkit-transform: scale(1.1);
} }
.detail_row .infoCont li {
margin-bottom: 2px;
}
.detail_row .infoCont li span { .detail_row .infoCont li span {
color: #000000; color: #000000;
} }
.detail_row .recommendCont { .detail_row.recommend {
overflow: hidden; border-bottom: 0;
zoom: 1; padding-bottom: 0;
} }
.detail_row .recommendCont li { .detail_row.recommend p {
margin: 10px 0 0 15px; margin-bottom: 0;
} }
.detail_row .recommendCont li p { .detail_row.recommend .recommendCont {
width: 100%; margin: 0 -10px;
padding-bottom: 100%;
background-repeat: no-repeat;
background-position: center;
background-size: auto 100%;
-webkit-background-size: auto 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
} }
.detail_row .peopleCont li { .detail_row .peopleCont li {
width: 100%; width: 100%;
...@@ -551,7 +646,7 @@ body { ...@@ -551,7 +646,7 @@ body {
.footer { .footer {
width: 100%; width: 100%;
height: 50px; height: 50px;
background-color: rgba(125, 125, 125, 0.9); background-color: #f9f9f9;
} }
.footer > .btn { .footer > .btn {
width: 45%; width: 45%;
......
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -259,6 +370,12 @@ a:hover { ...@@ -259,6 +370,12 @@ a:hover {
margin: 20% 0; margin: 20% 0;
color: #ffffff; color: #ffffff;
font-weight: bold; font-weight: bold;
width: 100%;
height: 34px;
background: url("../img/logo.png") no-repeat;
background-size: 150px 34px;
-webkit-background-size: 150px 34px;
background-position: center;
} }
.container-fluid form .has-feedback { .container-fluid form .has-feedback {
margin-bottom: 0; margin-bottom: 0;
...@@ -356,12 +473,10 @@ a:hover { ...@@ -356,12 +473,10 @@ a:hover {
background-color: #088aa9; background-color: #088aa9;
} }
.container-fluid form .btn { .container-fluid form .btn {
font-size: 22px;
display: block;
color: #ffffff; color: #ffffff;
font-weight: bold; font-weight: bold;
margin: 12% 0 5%; margin: 12% 0 5%;
padding: 14px; padding: 8px;
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;
......
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -276,7 +387,7 @@ a:hover { ...@@ -276,7 +387,7 @@ a:hover {
color: #ffffff; color: #ffffff;
font-weight: bold; font-weight: bold;
margin: 10% auto; margin: 10% auto;
padding: 16px; padding: 8px;
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;
......
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -450,123 +561,12 @@ a:hover { ...@@ -450,123 +561,12 @@ a:hover {
#wrapper #scroller { #wrapper #scroller {
padding-bottom: 45px; padding-bottom: 45px;
} }
#wrapper #scroller .row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
#wrapper #scroller .row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
#wrapper #scroller .row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
#wrapper #scroller .row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
#wrapper #scroller .row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#wrapper #scroller .row ul li span {
margin-right: 15px;
}
#wrapper #scroller .row ul li span:last-child {
margin-right: 0;
}
#wrapper #scroller .row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
#wrapper #scroller .row ul li.address span:nth-child(1) {
color: #000000;
font-size: 21px;
font-weight: bold;
}
#wrapper #scroller .row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
#wrapper #scroller .row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
#wrapper #scroller .row ul li:last-child span {
color: #000000;
font-size: 15px;
}
#wrapper #scroller .row ul li:last-child span em {
font-style: normal;
}
#wrapper #scroller .row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
#wrapper #scroller .row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
#wrapper #scroller .row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
#wrapper #scroller .row:active {
background-color: #e9e9e9;
}
.footer { .footer {
width: 100%; width: 100%;
height: 45px; height: 45px;
line-height: 45px; line-height: 45px;
color: #008cd7; color: #7d7d7d;
font-size: 24px; font-size: 20px;
font-weight: bold; font-weight: bold;
background-color: rgba(255, 255, 255, 0.9); background-color: rgba(255, 255, 255, 0.9);
} }
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -294,7 +405,7 @@ a:hover { ...@@ -294,7 +405,7 @@ a:hover {
color: #ffffff; color: #ffffff;
font-weight: bold; font-weight: bold;
margin: 20% auto 0; margin: 20% auto 0;
padding: 16px; padding: 8px;
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;
...@@ -314,5 +425,5 @@ a:hover { ...@@ -314,5 +425,5 @@ a:hover {
outline: 0; outline: 0;
} }
.tab-content .tab-pane:last-child .btn { .tab-content .tab-pane:last-child .btn {
margin-top: 0; margin-top: 5%;
} }
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
......
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -257,114 +368,3 @@ a:hover { ...@@ -257,114 +368,3 @@ a:hover {
#wrapper #scroller { #wrapper #scroller {
padding-bottom: 5px; padding-bottom: 5px;
} }
#wrapper #scroller .row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
#wrapper #scroller .row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
#wrapper #scroller .row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
#wrapper #scroller .row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
#wrapper #scroller .row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#wrapper #scroller .row ul li span {
margin-right: 15px;
}
#wrapper #scroller .row ul li span:last-child {
margin-right: 0;
}
#wrapper #scroller .row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
#wrapper #scroller .row ul li.address span:nth-child(1) {
color: #000000;
font-size: 21px;
font-weight: bold;
}
#wrapper #scroller .row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
#wrapper #scroller .row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
#wrapper #scroller .row ul li:last-child span {
color: #000000;
font-size: 15px;
}
#wrapper #scroller .row ul li:last-child span em {
font-style: normal;
}
#wrapper #scroller .row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
#wrapper #scroller .row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
#wrapper #scroller .row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
#wrapper #scroller .row:active {
background-color: #e9e9e9;
}
...@@ -27,6 +27,117 @@ ...@@ -27,6 +27,117 @@
.tab li.active .btn:after { .tab li.active .btn:after {
background-color: #008cd7; background-color: #008cd7;
} }
.row {
width: 100%;
height: 121px;
margin: 0;
padding: 15px 0;
border-bottom: 1px solid #b7b7b7;
}
.row p {
width: 140px;
height: 100%;
float: left;
padding: 0 10px;
margin-bottom: 0;
overflow: hidden;
}
.row p img {
height: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
}
.row ul {
height: 100%;
padding-right: 10px;
margin-bottom: 0;
overflow: hidden;
zoom: 1;
position: relative;
color: #5a5a5a;
font-size: 15px;
}
.row ul li {
height: 18px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row ul li span {
margin-right: 15px;
}
.row ul li span:last-child {
margin-right: 0;
}
.row ul li.address {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.row ul li.address span:nth-child(1) {
color: #000000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child {
position: absolute;
left: 0;
right: 10px;
bottom: 0;
font-size: 0;
}
.row ul li:last-child .label {
color: #ff0000;
padding: 1px 4px;
font-size: 9px;
border: 1px solid #acacac;
margin: 0 5px 0 0;
vertical-align: middle;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
}
.row ul li:last-child span {
color: #000000;
font-size: 15px;
}
.row ul li:last-child span em {
font-style: normal;
}
.row ul li:last-child span em:nth-child(1) {
color: #ff0000;
font-size: 19px;
font-weight: bold;
}
.row ul li:last-child span em:nth-child(2) {
font-size: 7px;
vertical-align: top;
}
.row ul li.multiLine_omit {
color: #000000;
font-weight: bold;
height: 36px;
margin-top: 0;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: normal;
}
.row:active {
background-color: #e9e9e9;
}
.modal .modal-dialog { .modal .modal-dialog {
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -306,7 +417,7 @@ a:hover { ...@@ -306,7 +417,7 @@ a:hover {
color: #ffffff; color: #ffffff;
font-weight: bold; font-weight: bold;
margin: 0 auto; margin: 0 auto;
padding: 16px; padding: 8px;
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;
......
...@@ -25,6 +25,7 @@ foreach ($context['select']['district'] as $item) { ...@@ -25,6 +25,7 @@ foreach ($context['select']['district'] as $item) {
$context['select']['plate'] = json_encode($plateArray); $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']['feature'] = json_encode(SearchDao::searchFeature());
$context['select']['unitPriceRange'] = SearchDao::searchUnitPriceRange($cityId); $context['select']['unitPriceRange'] = SearchDao::searchUnitPriceRange($cityId);
if ($houseType == 2) { if ($houseType == 2) {
$context['select']['rentalPrice'] = SearchDao::searchRentalPrice($cityId); $context['select']['rentalPrice'] = SearchDao::searchRentalPrice($cityId);
......
...@@ -159,8 +159,10 @@ ...@@ -159,8 +159,10 @@
</div> </div>
</div> </div>
<div class="detail_row"> <div class="detail_row">
<p class="detail_title">位置及周边</p> <a class="collapsed" data-toggle="collapse" href="#collapseExample">
<ul class="list-unstyled"> <p class="detail_title">位置及周边<span class="pull-right"></span></p>
</a>
<ul class="list-unstyled collapse" id="collapseExample" style="min-height:60px;display:block;overflow:hidden;height:0;">
<li>地址:{{result.address}}</li> <li>地址:{{result.address}}</li>
<li>交通线路:{{result.traffic}}</li> <li>交通线路:{{result.traffic}}</li>
<li>周边配套:{{result.periphery}}</li> <li>周边配套:{{result.periphery}}</li>
...@@ -169,10 +171,10 @@ ...@@ -169,10 +171,10 @@
</p> </p>
</div> </div>
<div class="detail_row"> <div class="detail_row">
<a class="collapsed" data-toggle="collapse" href="#collapseExample"> <a class="collapsed" data-toggle="collapse" href="#collapseInfoCont">
<p class="detail_title">基本信息<span class="pull-right"></span></p> <p class="detail_title">基本信息<span class="pull-right"></span></p>
</a> </a>
<ul class="list-unstyled infoCont collapse" id="collapseExample"> <ul class="list-unstyled collapse infoCont" id="collapseInfoCont" style="min-height:60px;display:block;overflow:hidden;height:0;">
<li>开发商:<span>{{result.developer}}</span></li> <li>开发商:<span>{{result.developer}}</span></li>
<li>建筑类型:{{result.periphery}}</li> <li>建筑类型:{{result.periphery}}</li>
<li>装修状况:{{result.decoration}}</li> <li>装修状况:{{result.decoration}}</li>
...@@ -188,11 +190,21 @@ ...@@ -188,11 +190,21 @@
</ul> </ul>
</div> </div>
<div class="detail_row"> <div class="detail_row">
<p class="detail_title">楼盘概述</p> <a class="collapsed" data-toggle="collapse" href="#collapseSummary">
<p>{{result.overview}}</p> <p class="detail_title">楼盘概述<span class="pull-right"></span></p>
</a>
<p class="collapse" id="collapseSummary" style="min-height:60px;display:block;overflow:hidden;height:0;">
{{result.overview}}
</p>
</div> </div>
<div class="detail_row"> <div class="detail_row">
<p class="detail_title pull-left">推荐房源</p> <p class="detail_title pull-left">推荐房源</p>
<div class="detail_row recommend">
<p class="detail_title">推荐房源</p>
<div class="recommendCont">
</div>
</div>
<ul class="list-unstyled recommendCont"> <ul class="list-unstyled recommendCont">
{% for item in recommends %} {% for item in recommends %}
<a href="{{siteUrl}}?page=detail&hid={{item.id}}"><li class="col-xs-3"><p style="background-image:url({{siteUrl}}{{ item.path }});"></p></li></a> <a href="{{siteUrl}}?page=detail&hid={{item.id}}"><li class="col-xs-3"><p style="background-image:url({{siteUrl}}{{ item.path }});"></p></li></a>
......
...@@ -61,8 +61,7 @@ ...@@ -61,8 +61,7 @@
<div class="container-fluid text-center"> <div class="container-fluid text-center">
<form id="forgetForm" method="post"> <form id="forgetForm" method="post">
<h2>忘记密码</h2> <h2></h2>
<p class="has-feedback username"> <p class="has-feedback username">
<label for="phone" class="sr-only">用户名</label> <label for="phone" class="sr-only">用户名</label>
<input type="tel" name="phone" id="phone" class="form-control input-lg" placeholder="手机号码"> <input type="tel" name="phone" id="phone" class="form-control input-lg" placeholder="手机号码">
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<div id="urbanArea_wrapper" class="col-xs-7 right-menu"> <div id="urbanArea_wrapper" class="col-xs-7 right-menu">
<div type="plateId" id="urbanArea_scroller"> <div type="plateId" id="urbanArea_scroller">
<a href="#">不限</a> <a href="#" class="active">不限</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<div id="price_wrapper" class="dropdown-menu"> <div id="price_wrapper" class="dropdown-menu">
{% if select.totalPrice %} {% if select.totalPrice %}
<div type="totalPrice" id="totalPrice_scroller"> <div type="totalPrice" id="totalPrice_scroller">
<a href="#">不限</a> <a href="#" class="active">不限</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 %}
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
{% endif %} {% endif %}
{% if select.rentalPrice %} {% if select.rentalPrice %}
<div type="rentalPrice" id="rentalPrice_scroller"> <div type="rentalPrice" id="rentalPrice_scroller">
<a href="#">不限</a> <a href="#" class="active">不限</a>
{% for item in select.rentalPrice %} {% for item in select.rentalPrice %}
<a data-id="{{item.value}}">{{item.value}}</a> <a data-id="{{item.value}}">{{item.value}}</a>
{% endfor %} {% endfor %}
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<a href="#" class="btn">房型<span></span></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="#" class="active">不限</a>
{% for item in select.buildProperty %} {% for item in select.buildProperty %}
<a data-id="{{item.id}}">{{item.value}}</a> <a data-id="{{item.id}}">{{item.value}}</a>
{% endfor %} {% endfor %}
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<a href="#" class="btn">面积<span></span></a> <a href="#" class="btn">面积<span></span></a>
<div id="other_wrapper" class="dropdown-menu"> <div id="other_wrapper" class="dropdown-menu">
<div id="other_scroller"> <div id="other_scroller">
<a href="#">不限</a> <a href="#" class="active">不限</a>
{% for item in select.area %} {% for item in select.area %}
<a data-id="{{item.id}}">{{item.value}}</a> <a data-id="{{item.id}}">{{item.value}}</a>
{% endfor %} {% endfor %}
...@@ -108,14 +108,14 @@ ...@@ -108,14 +108,14 @@
{% if houseType == 0 %} {% if houseType == 0 %}
<a id="roomId">类型</a> <a id="roomId">类型</a>
{% else %} {% else %}
<a id="">特色</a> <a id="feature">特色</a>
{% endif %} {% endif %}
</div> </div>
</div> </div>
<div id="other_wrapper" class="col-xs-7 right-menu"> <div id="other_wrapper" class="col-xs-7 right-menu">
<div id="other_scroller"> <div id="other_scroller">
<a href="#">不限</a> <a href="#" class="active">不限</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
</div> </div>
</div> </div>
<footer class="footer text-center navbar-fixed-bottom"> <footer class="footer text-center navbar-fixed-bottom">
拨打400-123-4567 <a href="tel:400-123-4567">400-123-4567</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">
...@@ -247,6 +247,7 @@ ...@@ -247,6 +247,7 @@
var plate = {{select.plate}}; var plate = {{select.plate}};
var room = {{select.room}}; var room = {{select.room}};
var area = {{select.area}}; var area = {{select.area}};
var feature = {{select.feature}};
var scroller; var scroller;
var loading; var loading;
...@@ -284,7 +285,7 @@ ...@@ -284,7 +285,7 @@
other.append('<a data-id="'+item[roomAndAcreageKey]+'">'+item.value+'</a>'); other.append('<a data-id="'+item[roomAndAcreageKey]+'">'+item.value+'</a>');
}); });
other.attr("type","roomId"); other.attr("type","roomId");
$("#roomId,#acreage").bind('tap',function(){ $("#roomId,#acreage,#feature").bind('tap',function(){
$(this).parent().children().removeClass('active-bg'); $(this).parent().children().removeClass('active-bg');
$(this).addClass('active-bg'); $(this).addClass('active-bg');
var id = $(this).attr('id'); var id = $(this).attr('id');
...@@ -297,10 +298,20 @@ ...@@ -297,10 +298,20 @@
other_item = area; other_item = area;
other.attr("type","acreage"); other.attr("type","acreage");
roomAndAcreageKey = "value"; roomAndAcreageKey = "value";
}else if(id == 'feature'){
other_item = feature;
other.attr("type","feature");
roomAndAcreageKey = "id";
}
if(searchData[id] != -1){
other.children(":first").removeClass('active');
}else{
other.children(":first").addClass('active');
} }
$.each(other_item,function(i,item){ $.each(other_item,function(i,item){
var dataId = item.id; console.log(searchData[id]+"=="+item[roomAndAcreageKey]);
other.append('<a data-id="'+item[roomAndAcreageKey]+'">'+item.value+'</a>'); var active = searchData[id]==item[roomAndAcreageKey]?' class="active"':'';
other.append('<a data-id="'+item[roomAndAcreageKey]+'"'+active+'>'+item.value+'</a>');
}); });
otherScroll.refresh(); otherScroll.refresh();
}); });
...@@ -337,6 +348,7 @@ ...@@ -337,6 +348,7 @@
roomId: -1, roomId: -1,
acreage: -1, acreage: -1,
searchText: '', searchText: '',
feature: -1,
houseType: houseType, houseType: houseType,
index: 0 index: 0
}; };
......
...@@ -52,8 +52,7 @@ ...@@ -52,8 +52,7 @@
<div class="container-fluid text-center"> <div class="container-fluid text-center">
<form id="loginForm" method="post"> <form id="loginForm" method="post">
<h2>登录</h2> <h2></h2>
<p class="has-feedback username"> <p class="has-feedback username">
<label for="phone" class="sr-only">用户名</label> <label for="phone" class="sr-only">用户名</label>
<input type="tel" name="phone" id="phone" class="form-control input-lg" placeholder="手机号码/账号"> <input type="tel" name="phone" id="phone" class="form-control input-lg" placeholder="手机号码/账号">
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head lang="en"> <head lang="en">
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=360, user-scalable=0"/> <meta name="viewport" content="width=360, 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>
<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/form.css"> <link rel="stylesheet" type="text/css" href="{{ theme }}/css/form.css">
<script src="{{ theme }}/js/jquery.min.js"></script> <script src="{{ theme }}/js/jquery.min.js"></script>
<script src="{{ theme }}/js/jquery.validate.js"></script> <script src="{{ theme }}/js/jquery.validate.js"></script>
<script src="{{ theme }}/js/bootstrap.min.js"></script> <script src="{{ theme }}/js/bootstrap.min.js"></script>
<script src="{{ theme }}/js/public.js"></script> <script src="{{ theme }}/js/public.js"></script>
<script> <script>
$(document).ready(function () { $(document).ready(function () {
var notice = $('#notice'); var notice = $('#notice');
var myModal = $('#myModal'); var myModal = $('#myModal');
$('#registerForm').validate({ $('#registerForm').validate({
onkeyup: false, onkeyup: false,
onfocusout: false, onfocusout: false,
rules: { rules: {
phone: { phone: {
required: true, required: true,
minlength: 11, minlength: 11,
maxlength: 11, maxlength: 11,
digits: true digits: true
}, },
code: 'required', code: 'required',
password: 'required' password: 'required'
}, },
messages: { messages: {
phone: '请输入11位手机号码', phone: '请输入11位手机号码',
code: '请输入验证码', code: '请输入验证码',
password: '请输入密码' password: '请输入密码'
}, },
errorLabelContainer: "#notice", errorLabelContainer: "#notice",
errorElement: 'span', errorElement: 'span',
invalidHandler: function () { invalidHandler: function () {
myModal.modal('show'); myModal.modal('show');
}, },
submitHandler: function (form) { submitHandler: function (form) {
form.submit(); form.submit();
} }
}); });
notice.bind('DOMNodeInserted', function () { notice.bind('DOMNodeInserted', function () {
$(this).children(':not(:first)').remove(); $(this).children(':not(:first)').remove();
}); });
myModal.on('hide.bs.modal', function () { myModal.on('hide.bs.modal', function () {
notice.children().remove(); notice.children().remove();
}); });
sendCodeBindClick("{{ url }}", 0); sendCodeBindClick("{{ url }}", 0);
{% if(error) %} {% if(error) %}
notice.html('<span>{{ error }}</span>'); notice.html('<span>{{ error }}</span>');
myModal.modal('show'); myModal.modal('show');
{% endif %} {% endif %}
}); });
</script> </script>
</head> </head>
<body> <body>
<div class="container-fluid text-center"> <div class="container-fluid text-center">
<form id="registerForm" method="post"> <form id="registerForm" method="post">
<h2>注册</h2> <h2></h2>
<p class="has-feedback username">
<p class="has-feedback username"> <label for="phone" class="sr-only">用户名</label>
<label for="phone" class="sr-only">用户名</label> <input tabindex="1" type="tel" name="phone" id="phone" class="form-control input-lg" placeholder="手机号码">
<input tabindex="1" type="tel" name="phone" id="phone" class="form-control input-lg" placeholder="手机号码"> <span class="form-control-feedback"></span>
<span class="form-control-feedback"></span> </p>
</p>
<p class="has-feedback password">
<p class="has-feedback password"> <label for="password" class="sr-only">密码</label>
<label for="password" class="sr-only">密码</label> <input tabindex="2" type="password" name="password" id="password" class="form-control input-lg" placeholder="密码">
<input tabindex="2" type="password" name="password" id="password" class="form-control input-lg" placeholder="密码"> <span class="form-control-feedback"></span>
<span class="form-control-feedback"></span> </p>
</p>
<p class="has-feedback code">
<p class="has-feedback code"> <label for="code" class="sr-only">验证码</label>
<label for="code" class="sr-only">验证码</label> <input tabindex="3" type="text" name="code" id="code" class="form-control input-lg" placeholder="验证码">
<input tabindex="3" type="text" name="code" id="code" class="form-control input-lg" placeholder="验证码"> <span id="send" class="form-control-feedback">发送验证码</span>
<span id="send" class="form-control-feedback">发送验证码</span> </p>
</p> <input type="submit" id="register_submit" value="注册" class="btn btn-lg btn-block">
<input type="submit" id="register_submit" value="注册" class="btn btn-lg btn-block"> </form>
</form> </div>
</div>
<div class="modal fade" id="myModal">
<div class="modal fade" id="myModal"> <div class="modal-dialog">
<div class="modal-dialog"> <div class="modal-content text-center">
<div class="modal-content text-center"> <h4>提示</h4>
<h4>提示</h4>
<p id="notice"></p>
<p id="notice"></p> <button type="button" class="btn btn-lg btn-block" data-dismiss="modal">确认</button>
<button type="button" class="btn btn-lg btn-block" data-dismiss="modal">确认</button> </div>
</div> </div>
</div> </div>
</div>
</body>
</body>
</html> </html>
\ No newline at end of file
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<link rel="stylesheet" type="text/css" href="{{ theme }}/css/bookingSeeHouse.css"> <link rel="stylesheet" type="text/css" href="{{ theme }}/css/bookingSeeHouse.css">
<script src="{{ theme }}/js/jquery.min.js"></script> <script src="{{ theme }}/js/jquery.min.js"></script>
<script src="{{ theme }}/js/jquery.validate.js"></script> <script src="{{ theme }}/js/jquery.validate.js"></script>
<script src="{{ theme }}/js/bootstrap.min.js"></script>
<script src="{{ theme }}/js/date-selector.js"></script> <script src="{{ theme }}/js/date-selector.js"></script>
<script src="{{ theme }}/js/public.js"></script> <script src="{{ theme }}/js/public.js"></script>
<script> <script>
...@@ -17,33 +18,45 @@ ...@@ -17,33 +18,45 @@
var ds = new DateSelector('year', 'month', 'day', { var ds = new DateSelector('year', 'month', 'day', {
MaxYear: new Date().getFullYear() + 1 MaxYear: new Date().getFullYear() + 1
}); });
var inputDate = $('#date'); var inputDate = $('#date');
var viewForm = $('#viewForm'); var viewForm = $('#viewForm');
var notice = $('#notice');
var myModal = $('#myModal');
viewForm.submit(function () { viewForm.submit(function () {
var dayValue = Number($('input[name=day]:checked').val()); var dayValue = Number($('input[name=day]:checked').val());
var date = new Date(); var date = new Date();
var indexTime = $('#index').find('option:selected').text();
var min_time = indexTime.split('-')[0];
var specified_time;
switch (dayValue) { switch (dayValue) {
case 3: case 3:
inputDate.val(ds.Year + '-' + ds.Month + '-' + ds.Day); specified_time = new Date(ds.Year + '-' + ds.Month + '-' + ds.Day + ' ' + min_time).getTime();
break; break;
default: default:
date.setTime(date.getTime() + dayValue * 24 * 60 * 60 * 1000); specified_time = new Date(date.Format('yyyy-MM-dd') + ' ' + min_time).getTime() + dayValue * 24 * 60 * 60 * 1000;
inputDate.val(date.Format('yyyy-MM-dd'));
break; break;
} }
$.ajax({ if (specified_time > date.getTime()) {
type: 'POST', date.setTime(specified_time);
url: '{{ url }}/wp-admin/admin-ajax.php/', inputDate.val(date.Format('yyyy-MM-dd'));
data: 'action=view_house&' + viewForm.serialize(), $.ajax({
success: function (data) { type: 'POST',
if (data.code == 2000) { url: '{{ url }}/wp-admin/admin-ajax.php/',
alert('预约成功'); data: 'action=view_house&' + viewForm.serialize(),
} else { success: function (data) {
alert('预约失败'); if (data.code == 2000) {
notice.html('预约成功');
myModal.modal('show');
} else {
notice.html('预约失败');
myModal.modal('show');
}
} }
} });
}); } else {
notice.text('预约看房需提前至少一小时');
myModal.modal('show');
}
return false; return false;
}); });
}); });
...@@ -78,20 +91,11 @@ ...@@ -78,20 +91,11 @@
</label> </label>
<p class="col-xs-7"> <p class="col-xs-7">
<select id="year" class="form-control"> <select id="year" class="form-control"></select>
<option value="2015">2015</option>
<option value="2016">2016</option>
</select>
<label for="year"></label> <label for="year"></label>
<select id="month" class="form-control"> <select id="month" class="form-control"></select>
<option value="8">8</option>
<option value="9">9</option>
</select>
<label for="month"></label> <label for="month"></label>
<select id="day" class="form-control"> <select id="day" class="form-control"></select>
<option value="8">14</option>
<option value="9">15</option>
</select>
<label for="day"></label> <label for="day"></label>
</p> </p>
</li> </li>
...@@ -122,5 +126,16 @@ ...@@ -122,5 +126,16 @@
<input type="submit" id="view_submit" value="提交" class="btn btn-lg"> <input type="submit" id="view_submit" value="提交" class="btn btn-lg">
</form> </form>
</div> </div>
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content text-center">
<h4>提示</h4>
<p id="notice"></p>
<button type="button" class="btn btn-lg btn-block" data-dismiss="modal">确认</button>
</div>
</div>
</div>
</body> </body>
</html> </html>
\ No newline at end of file
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