Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tospur
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
felix
tospur
Commits
2be53ad8
Commit
2be53ad8
authored
Aug 27, 2015
by
felix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每日一更
parent
b6aca874
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
232 additions
and
166 deletions
+232
-166
wp-content/plugins/tospur/Admin/feature.php
+30
-3
wp-content/plugins/tospur/Admin/newHouseList.php
+3
-1
wp-content/plugins/tospur/Admin/rentHouseList.php
+3
-11
wp-content/plugins/tospur/Admin/secHandHouse.php
+1
-1
wp-content/plugins/tospur/Admin/secHandHouseList.php
+7
-12
wp-content/plugins/tospur/Admin/views/add_feature.html
+36
-0
wp-content/plugins/tospur/Admin/views/css/bootstrap.min.css
+0
-0
wp-content/plugins/tospur/Admin/views/feature_list.html
+25
-0
wp-content/plugins/tospur/Admin/views/newHouseList.html
+8
-13
wp-content/plugins/tospur/Admin/views/rentHouseList.html
+0
-32
wp-content/plugins/tospur/Admin/views/secHandHouseList.html
+1
-33
wp-content/plugins/tospur/Dao/InsertDao.php
+1
-1
wp-content/plugins/tospur/Dao/SearchDao.php
+26
-6
wp-content/plugins/tospur/index.php
+5
-3
wp-content/themes/tospur/css/consultantShop.css
+3
-2
wp-content/themes/tospur/css/detail.css
+6
-2
wp-content/themes/tospur/img/formBg.jpg
+0
-0
wp-content/themes/tospur/img/logo.png
+0
-0
wp-content/themes/tospur/js/public.js
+11
-2
wp-content/themes/tospur/views/consultant_info.html
+0
-3
wp-content/themes/tospur/views/detail.html
+12
-8
wp-content/themes/tospur/views/detailOther.html
+8
-6
wp-content/themes/tospur/views/forget.html
+10
-2
wp-content/themes/tospur/views/index.html
+2
-2
wp-content/themes/tospur/views/list.html
+1
-2
wp-content/themes/tospur/views/loan_calculator.html
+21
-17
wp-content/themes/tospur/views/register.html
+10
-2
wp-content/themes/tospur/views/view.html
+2
-2
No files found.
wp-content/plugins/tospur/Admin/feature.php
View file @
2be53ad8
...
...
@@ -5,7 +5,25 @@ class feature
public
static
function
ajax_add_feature
()
{
$name
=
$_POST
[
'name'
];
wp_send_json
(
feature
::
add_feature
(
$name
));
$array
=
array
();
$result
=
feature
::
search_feature
(
$name
);
if
(
$result
)
{
$array
[
'code'
]
=
2001
;
}
else
{
feature
::
add_feature
(
$name
);
$array
[
'code'
]
=
2000
;
}
wp_send_json
(
$array
);
}
public
static
function
search_feature
(
$name
=
null
)
{
global
$wpdb
;
$sql
=
"select id,name from "
.
Config
::
TOSPUR_TAG_TABLE
.
" where type = 1"
;
if
(
$name
)
{
$sql
.=
" and name = '"
.
$name
.
"'"
;
}
return
$wpdb
->
get_results
(
$sql
);
}
public
static
function
add_feature
(
$name
)
...
...
@@ -18,11 +36,20 @@ class feature
return
$result
;
}
public
static
function
feature_html
()
public
static
function
add_
feature_html
()
{
$context
=
array
();
$context
[
'url'
]
=
home_url
();
Timber
::
render
(
'feature.html'
,
$context
);
$context
[
'admin_url'
]
=
admin_url
();
Timber
::
render
(
'add_feature.html'
,
$context
);
}
public
static
function
feature_list_html
()
{
$context
=
array
();
$context
[
'view'
]
=
plugins_url
()
.
'/tospur/Admin/views'
;
$context
[
'result'
]
=
feature
::
search_feature
();
Timber
::
render
(
'feature_list.html'
,
$context
);
}
}
...
...
wp-content/plugins/tospur/Admin/newHouseList.php
View file @
2be53ad8
...
...
@@ -260,13 +260,14 @@ add_action( 'wp_ajax_nopriv_updateList', 'newHouseList::prepare_items');
add_action
(
'wp_ajax_searchListCity'
,
'SearchDao::ajax_searchListCity'
);
add_action
(
'wp_ajax_nopriv_searchListCity'
,
'SearchDao::ajax_searchListCity'
);
function
newHouseList
()
function
function_
newHouseList
()
{
$contest
=
array
();
$contest
[
'page'
]
=
$_REQUEST
[
'page'
];
$contest
[
'city'
]
=
SearchDao
::
searchCity
();
$contest
[
'status'
]
=
SearchDao
::
searchStatusType
(
1
);
$contest
[
'buildProperty'
]
=
SearchDao
::
searchBuildProperty
();
$contest
[
'room'
]
=
searchDao
::
searchRoom
();
if
(
isset
(
$_POST
[
'hasSearch'
])){
$contest
[
'district'
]
=
SearchDao
::
searchCity
(
$_POST
[
'listCity'
]);
$contest
[
'plate'
]
=
SearchDao
::
searchCity
(
$_POST
[
'listCity'
],
$_POST
[
'listDistrict'
]);
...
...
@@ -275,6 +276,7 @@ function newHouseList()
$contest
[
'cityId'
]
=
$_POST
[
'listCity'
];
$contest
[
'districtId'
]
=
$_POST
[
'listDistrict'
];
$contest
[
'plateId'
]
=
$_POST
[
'listPlate'
];
$contest
[
'roomId'
]
=
$_POST
[
'room'
];
$contest
[
'buildPropertyId'
]
=
$_POST
[
'buildProperty'
];
$contest
[
'totalPrice'
]
=
$_POST
[
'totalPrice'
];
$contest
[
'acreage'
]
=
$_POST
[
'acreage'
];
...
...
wp-content/plugins/tospur/Admin/rentHouseList.php
View file @
2be53ad8
...
...
@@ -31,8 +31,6 @@ class rentHouseList extends WP_List_Table
case
'decoration'
:
case
'age'
:
case
'matching_facilities'
:
case
'flat'
:
case
'suite'
:
case
'user_id'
:
case
'status'
:
default
:
...
...
@@ -69,8 +67,6 @@ class rentHouseList extends WP_List_Table
$columns
[
'decoration'
]
=
'装修状况'
;
$columns
[
'age'
]
=
'年代'
;
$columns
[
'matching_facilities'
]
=
'配套设施'
;
$columns
[
'flat'
]
=
'楼号'
;
$columns
[
'suite'
]
=
'室'
;
$columns
[
'user_id'
]
=
'置业顾问'
;
$columns
[
'status'
]
=
'状态'
;
return
$columns
;
...
...
@@ -90,8 +86,6 @@ class rentHouseList extends WP_List_Table
'decoration'
=>
array
(
'decoration'
,
false
),
'age'
=>
array
(
'age'
,
false
),
'matching_facilities'
=>
array
(
'matching_facilities'
,
false
),
'flat'
=>
array
(
'flat'
,
false
),
'suite'
=>
array
(
'suite'
,
false
),
'user_id'
=>
array
(
'user_id'
,
false
),
'status'
=>
array
(
'status'
,
false
)
);
...
...
@@ -192,10 +186,10 @@ class rentHouseList extends WP_List_Table
);
$sql
=
"select * from tospur_house th
left join(select user_id as aus_id,house_id
from a_house_user where user_type = 1
) ahu on th.id = ahu.house_id
left join(select user_id as aus_id,house_id
,user_type from a_house_user
) ahu on th.id = ahu.house_id
left join(select id as consul_id,name as consul_name from tospur_consultant) tc on ahu.aus_id = tc.consul_id
left join(select value,literal from dic_buildproperty) db on th.buildproperty_id = db.value
where 1=1 and house_type=2"
;
where 1=1 and house_type=2
and ahu.user_type=1
"
;
if
(
$_POST
[
"listCity"
]
!=
0
){
$sql
=
$sql
.
" and city_id="
.
$_POST
[
"listCity"
];
}
...
...
@@ -234,8 +228,6 @@ class rentHouseList extends WP_List_Table
'decoration'
=>
$value
->
decoration
,
'age'
=>
$value
->
age
,
'matching_facilities'
=>
$value
->
matching_facilities
,
'flat'
=>
$value
->
flat
,
'suite'
=>
$value
->
suite
,
'user_id'
=>
$value
->
consul_name
,
);
...
...
@@ -284,7 +276,7 @@ add_action( 'wp_ajax_nopriv_updateList', 'newHouseList::prepare_items');
add_action
(
'wp_ajax_searchListCity'
,
'SearchDao::ajax_searchListCity'
);
add_action
(
'wp_ajax_nopriv_searchListCity'
,
'SearchDao::ajax_searchListCity'
);
function
rentHouseList
()
function
function_
rentHouseList
()
{
$contest
=
array
();
$contest
[
'page'
]
=
$_REQUEST
[
'page'
];
...
...
wp-content/plugins/tospur/Admin/secHandHouse.php
View file @
2be53ad8
...
...
@@ -68,7 +68,7 @@ class SecHandHouse extends Tospur_House{
$context
[
"district"
]
=
SearchDao
::
searchCity
(
$context
[
'result'
]
->
city_id
);
$context
[
"plate"
]
=
SearchDao
::
searchCity
(
$context
[
'result'
]
->
city_id
,
$context
[
'result'
]
->
district_id
);
$context
[
"mark"
]
=
SearchDao
::
searchHouseTag
(
$_GET
[
'id'
]);
$context
[
"featureOld"
]
=
SearchDao
::
searchFeatureByHouse
(
$_GET
[
'id'
]);
}
$context
[
'role'
]
=
SecHandHouse
::
getCurrentRole
();
$context
[
"city"
]
=
SearchDao
::
searchCity
();
...
...
wp-content/plugins/tospur/Admin/secHandHouseList.php
View file @
2be53ad8
...
...
@@ -23,14 +23,13 @@ class secHandHouseList extends WP_List_Table
case
'name'
:
case
'community_name'
:
case
'total_price'
:
case
'average_price'
:
case
'buildproperty_id'
:
case
'covered_area'
:
case
'floor'
:
case
'faceto'
:
case
'decoration'
:
case
'age'
:
case
'flat'
:
case
'suite'
:
case
'user_id'
:
case
'status'
:
default
:
...
...
@@ -60,14 +59,13 @@ class secHandHouseList extends WP_List_Table
$columns
[
'name'
]
=
'二手房标题'
;
$columns
[
'community_name'
]
=
'小区名称'
;
$columns
[
'total_price'
]
=
'总价'
;
$columns
[
'average_price'
]
=
'单价'
;
$columns
[
'buildproperty_id'
]
=
'户型'
;
$columns
[
'covered_area'
]
=
'面积'
;
$columns
[
'floor'
]
=
'楼层'
;
$columns
[
'faceto'
]
=
'朝向'
;
$columns
[
'decoration'
]
=
'装修状况'
;
$columns
[
'age'
]
=
'年代'
;
$columns
[
'flat'
]
=
'楼号'
;
$columns
[
'suite'
]
=
'室'
;
$columns
[
'user_id'
]
=
'置业顾问'
;
$columns
[
'status'
]
=
'状态'
;
return
$columns
;
...
...
@@ -80,14 +78,13 @@ class secHandHouseList extends WP_List_Table
'name'
=>
array
(
'name'
,
false
),
'community_name'
=>
array
(
'community_name'
,
false
),
'total_price'
=>
array
(
'total_price'
,
false
),
'average_price'
=>
array
(
'average_price'
,
false
),
'buildproperty_id'
=>
array
(
'buildproperty_id'
,
false
),
'covered_area'
=>
array
(
'covered_area'
,
false
),
'floor'
=>
array
(
'floor'
,
false
),
'faceto'
=>
array
(
'faceto'
,
false
),
'decoration'
=>
array
(
'decoration'
,
false
),
'age'
=>
array
(
'age'
,
false
),
'flat'
=>
array
(
'flat'
,
false
),
'suite'
=>
array
(
'suite'
,
false
),
'user_id'
=>
array
(
'user_id'
,
false
),
'status'
=>
array
(
'status'
,
false
)
);
...
...
@@ -159,7 +156,6 @@ class secHandHouseList extends WP_List_Table
break
;
}
global
$wpdb
;
print_r
(
'update tospur_house SET status='
.
$status
.
' where id in '
.
$string
);
$result
=
$wpdb
->
query
(
'update tospur_house SET status='
.
$status
.
' where id in '
.
$string
);
}
}
...
...
@@ -181,10 +177,10 @@ class secHandHouseList extends WP_List_Table
//$data = $this->example_data;
$sql
=
"select * from tospur_house th
left join(select user_id as aus_id,house_id
from a_house_user where user_type = 1
) ahu on th.id = ahu.house_id
left join(select user_id as aus_id,house_id
,user_type from a_house_user
) ahu on th.id = ahu.house_id
left join(select id as consul_id,name as consul_name from tospur_consultant) tc on ahu.aus_id = tc.consul_id
left join(select value,literal from dic_buildproperty) db on th.buildproperty_id = db.value
where 1=1 and house_type=1"
;
where 1=1 and house_type=1
and ahu.user_type=1
"
;
if
(
$_POST
[
"listCity"
]
!=
0
){
$sql
=
$sql
.
" and city_id="
.
$_POST
[
"listCity"
];
}
...
...
@@ -220,14 +216,13 @@ class secHandHouseList extends WP_List_Table
'name'
=>
$value
->
name
,
'community_name'
=>
$value
->
community_name
,
'total_price'
=>
$value
->
total_price
,
'average_price'
=>
$value
->
average_price
,
'buildproperty_id'
=>
$value
->
literal
,
'covered_area'
=>
$value
->
covered_area
,
'floor'
=>
$value
->
floor
,
'faceto'
=>
$value
->
faceto
,
'decoration'
=>
$value
->
decoration
,
'age'
=>
$value
->
age
,
'flat'
=>
$value
->
flat
,
'suite'
=>
$value
->
suite
,
'user_id'
=>
$value
->
consul_name
,
);
if
(
$value
->
status
==
0
){
...
...
@@ -273,7 +268,7 @@ class secHandHouseList extends WP_List_Table
add_action
(
'wp_ajax_updateList'
,
'newHouseList::prepare_items'
);
add_action
(
'wp_ajax_nopriv_updateList'
,
'newHouseList::prepare_items'
);
function
secHandHouseList
()
function
function_
secHandHouseList
()
{
$contest
=
array
();
$contest
[
'page'
]
=
$_REQUEST
[
'page'
];
...
...
wp-content/plugins/tospur/Admin/views/add_feature.html
0 → 100644
View file @
2be53ad8
<h2>
添加特色
</h2>
<label
for=
"feature"
>
特色:
</label>
<input
id=
"feature"
type=
"text"
>
<input
type=
"submit"
id=
"submit"
class=
"button"
>
<script>
var
admin_url
=
'{{ admin_url }}'
;
(
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
)
{
switch
(
data
.
code
)
{
case
2000
:
window
.
location
.
href
=
admin_url
+
'admin.php?page=feature_list'
;
break
;
case
2001
:
alert
(
'不能重复添加特色'
);
break
;
default
:
break
;
}
}
});
}
else
{
alert
(
'请输入特色'
);
}
});
});
})(
jQuery
);
</script>
\ No newline at end of file
wp-content/plugins/tospur/Admin/views/css/bootstrap.min.css
View file @
2be53ad8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
wp-content/plugins/tospur/Admin/views/feature_list.html
0 → 100644
View file @
2be53ad8
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{ view }}/css/bootstrap.min.css"
>
<h2>
特色列表
</h2>
<table
class=
"table"
>
<thead>
<tr>
<th
style=
""
>
<div
class=
"th-inner"
>
ID
</div>
<div
class=
"fht-cell"
></div>
</th>
<th
style=
""
>
<div
class=
"th-inner"
>
名称
</div>
<div
class=
"fht-cell"
></div>
</th>
</tr>
</thead>
<tbody>
{% for item in result %}
<tr>
<td>
{{ item.id }}
</td>
<td>
{{ item.name }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
\ No newline at end of file
wp-content/plugins/tospur/Admin/views/newHouseList.html
View file @
2be53ad8
...
...
@@ -33,12 +33,17 @@
{% endfor %}
{% endif %}
</select>
<select
id=
"room"
name=
"room"
>
<option
value=
"0"
>
类型
</option>
{% for item in room %}
<option
{{
item
.
id =
=
roomId
?"
selected
"
:
""
}}
value=
"{{ item.id }}"
>
{{ item.value }}
</option>
{% endfor %}
</select>
<select
id=
"buildProperty"
name=
"buildProperty"
>
<option
value=
"0"
>
房型
</option>
{% for item in buildProperty %}
<option
{{
item
.
id =
=
buildPropertyId
?"
selected
"
:
""
}}
value=
"{{ item.id }}"
>
{{ item.value }}
</option>
{% endfor %}
</select>
<select
id=
"acreage"
name=
"acreage"
>
<option
value =
""
>
面积
</option>
...
...
@@ -64,18 +69,6 @@
<script>
(
function
(
$
)
{
$
(
document
).
ready
(
function
(){
//获取城市信息AJAX
var
room
=
$
(
"#room"
);
var
buildProperty
=
$
(
"#buildProperty"
);
$
.
ajax
({
type
:
"GET"
,
url
:
"/tospur/wp-admin/admin-ajax.php"
,
data
:
"action=searchRoom"
,
success
:
function
(
data
){
addOption
(
data
,
room
)
}
})
$
(
"#listCity"
).
change
(
function
(){
var
listCityId
=
$
(
"#listCity"
).
val
();
var
district
=
$
(
"#listDistrict"
);
...
...
@@ -83,6 +76,8 @@
var
totalPrice
=
$
(
"#totalPrice"
);
$
(
'#listDistrict'
).
find
(
'option:not(:first-child)'
).
remove
();
$
(
'#listPlate'
).
find
(
'option:not(:first-child)'
).
remove
();
$
(
'#acreage'
).
find
(
'option:not(:first-child)'
).
remove
();
$
(
'#totalPrice'
).
find
(
'option:not(:first-child)'
).
remove
();
$
.
ajax
({
type
:
"GET"
,
url
:
"/tospur/wp-admin/admin-ajax.php"
,
...
...
wp-content/plugins/tospur/Admin/views/rentHouseList.html
View file @
2be53ad8
...
...
@@ -65,38 +65,6 @@
<script>
(
function
(
$
)
{
$
(
document
).
ready
(
function
(){
//获取城市信息AJAX
var
listCity
=
$
(
"#listCity"
);
var
room
=
$
(
"#room"
);
var
buildProperty
=
$
(
"#buildProperty"
);
$
.
ajax
({
type
:
"GET"
,
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"
,
success
:
function
(
data
){
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
(){
var
listCityId
=
$
(
"#listCity"
).
val
();
var
district
=
$
(
"#listDistrict"
);
...
...
wp-content/plugins/tospur/Admin/views/secHandHouseList.html
View file @
2be53ad8
...
...
@@ -65,38 +65,6 @@
<script>
(
function
(
$
)
{
$
(
document
).
ready
(
function
(){
//获取城市信息AJAX
var
listCity
=
$
(
"#listCity"
);
var
room
=
$
(
"#room"
);
var
buildProperty
=
$
(
"#buildProperty"
);
$
.
ajax
({
type
:
"GET"
,
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"
,
success
:
function
(
data
){
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
(){
var
listCityId
=
$
(
"#listCity"
).
val
();
var
district
=
$
(
"#listDistrict"
);
...
...
@@ -130,7 +98,7 @@
$
.
ajax
({
type
:
"GET"
,
url
:
"/tospur/wp-admin/admin-ajax.php"
,
data
:
"action=search
UnitPriceRang
e&cityId="
+
listCityId
,
data
:
"action=search
TotalPric
e&cityId="
+
listCityId
,
success
:
function
(
json
){
for
(
var
i
=
0
;
i
<=
json
.
length
-
1
;
i
++
){
var
id
=
json
[
i
][
"id"
];
...
...
wp-content/plugins/tospur/Dao/InsertDao.php
View file @
2be53ad8
...
...
@@ -207,7 +207,7 @@ class InsertDao{
//房源的标签id数组
$tags_ids
=
array
();
//查询存在的标签
$sql
=
"select * from tospur_tag where name in "
.
$tags_string
;
$sql
=
"select * from tospur_tag where name in "
.
$tags_string
.
" and type=0"
;
$has_tags_result
=
$wpdb
->
get_results
(
$sql
);
//排除存在的标签,剩下未有的标签和存在标签id数组
foreach
(
$has_tags_result
as
$key
=>
$value
)
{
...
...
wp-content/plugins/tospur/Dao/SearchDao.php
View file @
2be53ad8
...
...
@@ -194,7 +194,8 @@ class SearchDao
$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"
;
}
$sql
=
"select *,(SELECT GROUP_CONCAT(left(tt.name,3)) from a_house_tag aht"
.
$sql
=
"select th.id,th.house_type,th.name,th.latest_news,th.address,th.average_price,th.community_name,th.covered_area,th.total_price,th.decoration,th.rent,"
.
"ti.path,dr.literal,dbp.bp_literal,(SELECT GROUP_CONCAT(left(tt.name,3)) from a_house_tag aht"
.
" LEFT JOIN tospur_tag tt on tt.id = aht.tag_id"
.
" where aht.house_id = th.id) as tags from tospur_house th"
.
$addSql
.
...
...
@@ -216,7 +217,11 @@ class SearchDao
}
if
(
$array
[
'buildPropertyId'
]
>
-
1
)
{
$params
[]
=
$array
[
'buildPropertyId'
];
$sql
=
$sql
.
" and buildproperty_id=%d"
;
if
(
$array
[
'houseType'
]
==
0
)
{
$sql
=
$sql
.
" and ada.buildproperty_id=%d"
;
}
else
{
$sql
=
$sql
.
" and th.buildproperty_id=%d"
;
}
}
if
(
$array
[
'roomId'
]
>
-
1
)
{
$params
[]
=
$array
[
'roomId'
];
...
...
@@ -226,13 +231,17 @@ class SearchDao
$areaArray
=
explode
(
"-"
,
$array
[
'acreage'
]);
$params
[]
=
$areaArray
[
0
];
$params
[]
=
$areaArray
[
1
];
if
(
$array
[
'houseType'
]
==
0
)
{
$sql
=
$sql
.
" and ada.house_area between %d and %d"
;
}
else
{
$sql
=
$sql
.
" and covered_area between %d and %d"
;
}
}
if
(
$array
[
'totalPrice'
]
>
-
1
)
{
$priceArray
=
explode
(
"-"
,
$array
[
'totalPrice'
]);
$params
[]
=
$priceArray
[
0
];
$params
[]
=
$priceArray
[
1
];
$sql
=
$sql
.
" and total_price between %d and %d"
;
$sql
=
$sql
.
" and total_price
/10000
between %d and %d"
;
}
if
(
$array
[
'rentalPrice'
]
>
-
1
)
{
$priceArray
=
explode
(
"-"
,
$array
[
'rentalPrice'
]);
...
...
@@ -320,10 +329,18 @@ class SearchDao
return
$array
;
}
public
static
function
searchFeatureByHouse
(
$hid
){
global
$wpdb
;
$featureSql
=
"select tag_id,name from a_house_tag aht
LEFT JOIN (select id as tid,name ,type from tospur_tag) tt on aht.tag_id = tt.tid where aht.house_id = %d and type = 1"
;
$feature
=
$wpdb
->
get_results
(
$wpdb
->
prepare
(
$featureSql
,
$hid
));
return
$feature
;
}
public
static
function
searchFeature
()
{
$sql
=
'select id,name as value from '
.
Config
::
TOSPUR_TAG_TABLE
.
' where type = 1;'
;
global
$wpdb
;
$sql
=
'select id,name as value from '
.
Config
::
TOSPUR_TAG_TABLE
.
' where type = 1;'
;
return
$wpdb
->
get_results
(
$sql
);
}
...
...
@@ -353,7 +370,10 @@ class SearchDao
public
static
function
getDetailInfo
(
$hid
,
$type
=
NULL
){
global
$wpdb
;
$sql
=
"select * from "
.
Config
::
TOSPUR_HOUSE_TABLE
.
" where id = %d"
;
$sql
=
"select *,dr.literal as room,db.literal as buildproperty from "
.
Config
::
TOSPUR_HOUSE_TABLE
.
" th
left JOIN "
.
Config
::
DIC_ROOM_TABLE
.
" dr on th.room_id = dr.id
left JOIN dic_buildproperty db on th.buildproperty_id = db.value
where th.id = %d"
;
$result
=
$wpdb
->
get_row
(
$wpdb
->
prepare
(
$sql
,
$hid
));
$context
=
array
();
$context
[
'result'
]
=
$result
;
...
...
@@ -425,7 +445,7 @@ class SearchDao
global
$wpdb
;
$sql
=
"select tt.name from a_house_tag aht
LEFT JOIN tospur_tag tt on aht.tag_id = tt.id
where aht.house_id = %d;"
;
where aht.house_id = %d
and type = 0
;"
;
$results
=
$wpdb
->
get_results
(
$wpdb
->
prepare
(
$sql
,
$houseId
));
$tags
=
array
();
foreach
(
$results
as
$item
){
...
...
wp-content/plugins/tospur/index.php
View file @
2be53ad8
...
...
@@ -68,9 +68,11 @@ function tospur_theme_format(){
function
tospur_register_script_style
(){
wp_register_script
(
'jquery-ui'
,
plugins_url
(
'Admin/views'
,
__FILE__
)
.
"/js/jquery-ui.js"
);
wp_register_script
(
'validate'
,
plugins_url
(
'Admin/views'
,
__FILE__
)
.
"/js/jquery.validate.js"
);
wp_register_script
(
'bootstrapjs'
,
plugins_url
(
'Admin/views'
,
__FILE__
)
.
"/js/bootstrap.min.js"
);
wp_register_style
(
'jquery-ui_css'
,
plugins_url
(
'Admin/views'
,
__FILE__
)
.
"/css/jquery-ui.css"
);
wp_register_style
(
'bootstrapcss'
,
plugins_url
(
'Admin/views'
,
__FILE__
)
.
"/css/bootstrap.css"
);
wp_register_style
(
'bootstrapMinCss'
,
plugins_url
(
'Admin/views'
,
__FILE__
)
.
"/css/bootstrap.min.css"
);
}
function
tospur_ajax_set
()
...
...
@@ -135,12 +137,12 @@ function update_consultant()
function
reset_menu
()
{
add_menu_page
(
"sync"
,
"同步数据"
,
"manage_options"
,
"1"
,
"do_sync"
);
add_menu_page
(
'nesHouseList'
,
'新房列表'
,
'moderate_comments'
,
'newHouseList'
,
'
newHouseList'
,
'dashicons-menu'
,
6
);
add_menu_page
(
'nesHouseList'
,
'新房列表'
,
'moderate_comments'
,
'newHouseList'
,
'function_
newHouseList'
,
'dashicons-menu'
,
6
);
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'
,
'function_
secHandHouseList'
,
'dashicons-menu'
,
7
);
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'
,
'
function_
rentHouseList'
,
'dashicons-menu'
,
8
);
add_submenu_page
(
'rentHouseList'
,
'添加租房'
,
'添加租房'
,
'moderate_comments'
,
'rentHouse'
,
'RentHouse::rentHouse_html'
);
//移除更新信息
remove_action
(
'admin_notices'
,
'update_nag'
,
3
);
...
...
wp-content/themes/tospur/css/consultantShop.css
View file @
2be53ad8
...
...
@@ -443,10 +443,11 @@ a:hover {
background-color
:
#f9f9f9
;
}
.footer
.btn
{
width
:
45%
;
width
:
94%
;
display
:
block
;
color
:
#ffffff
;
font-weight
:
bold
;
margin
:
5px
2%
;
margin
:
5px
auto
;
padding
:
1px
;
background-color
:
#008cd7
;
border-top-left-radius
:
4px
;
...
...
wp-content/themes/tospur/css/detail.css
View file @
2be53ad8
...
...
@@ -526,8 +526,9 @@ body {
margin-right
:
5px
;
font-size
:
14px
;
}
.detail_row
#wrapper
#scroller
ul
li
p
img
{
width
:
100%
;
.detail_row
#wrapper
#scroller
ul
li
p
:nth-child
(
1
)
{
height
:
70px
;
overflow
:
hidden
;
border-top-left-radius
:
6px
;
border-top-right-radius
:
6px
;
border-bottom-left-radius
:
6px
;
...
...
@@ -537,6 +538,9 @@ body {
-webkit-border-bottom-left-radius
:
6px
;
-webkit-border-bottom-right-radius
:
6px
;
}
.detail_row
#wrapper
#scroller
ul
li
p
:nth-child
(
1
)
img
{
height
:
100%
;
}
.detail_row
#wrapper
#scroller
ul
li
p
em
{
font-style
:
normal
;
font-size
:
7px
;
...
...
wp-content/themes/tospur/img/formBg.jpg
View replaced file @
b6aca874
View file @
2be53ad8
10.2 KB
|
W:
|
H:
6.72 KB
|
W:
|
H:
2-up
Swipe
Onion skin
wp-content/themes/tospur/img/logo.png
View replaced file @
b6aca874
View file @
2be53ad8
1.25 KB
|
W:
|
H:
1.97 KB
|
W:
|
H:
2-up
Swipe
Onion skin
wp-content/themes/tospur/js/public.js
View file @
2be53ad8
...
...
@@ -48,7 +48,11 @@ function ajaxSendCode(ajaxUrl, self, phone, validate) {
myModal
.
modal
(
'show'
);
break
;
case
2002
:
if
(
validate
==
1
){
notice
.
html
(
'<span>此手机号码尚未注册</span>'
);
}
else
{
notice
.
html
(
'<span>此手机号码已注册</span>'
);
}
myModal
.
modal
(
'show'
);
self
.
bind
(
'click'
,
{
ajaxUrl
:
ajaxUrl
,
validate
:
validate
},
clickSendCode
);
break
;
...
...
@@ -59,6 +63,13 @@ function ajaxSendCode(ajaxUrl, self, phone, validate) {
});
}
function
phoneAddValidate
(){
var
phoneTest
=
/^
(
13
[
0-9
]
|15
[
0-35-9
]
|18
[
0-9
]
|14
[
57
]
|17
[
06-8
])
+
\d{8}
$/
;
$
.
validator
.
addMethod
(
"format"
,
function
(
value
,
element
){
return
phoneTest
.
test
(
value
);
},
'手机号码格式有误'
);
}
Date
.
prototype
.
Format
=
function
(
fmt
)
{
var
o
=
{
"M+"
:
this
.
getMonth
()
+
1
,
...
...
@@ -80,7 +91,6 @@ Date.prototype.Format = function (fmt) {
function
scrollPullToRefresh
(
cb
)
{
var
pullUpFlag
=
false
;
var
scroll
=
new
IScroll
(
'#wrapper'
,
{
scrollbars
:
true
,
click
:
true
});
scroll
.
on
(
"scrollStart"
,
function
()
{
...
...
@@ -121,7 +131,6 @@ function ajax_get_house(url, loading, ajax_data, context) {
if
(
price
.
length
>
4
)
{
price
=
(
price
/
10000
).
toFixed
(
2
)
+
'万'
;
}
div
.
find
(
'[data-attr=price]'
).
html
(
'<em>'
+
rent
+
'</em>/月'
);
div
.
find
(
'[data-attr=price]'
).
html
(
'<em>'
+
price
+
'</em>/m<em>2</em>'
);
}
else
if
(
houseType
==
1
)
{
div
.
find
(
'[data-attr=community]'
).
text
(
value
.
community_name
);
...
...
wp-content/themes/tospur/views/consultant_info.html
View file @
2be53ad8
...
...
@@ -63,9 +63,6 @@
</div>
</div>
<footer
class=
"footer navbar-fixed-bottom"
>
<a
class=
"btn btn-wechat"
>
<span></span>
微信联系
</a>
<a
href=
"tel:{{ consultant_mobile }}"
class=
"btn btn-phone"
>
<span></span>
电话联系
</a>
...
...
wp-content/themes/tospur/views/detail.html
View file @
2be53ad8
...
...
@@ -20,6 +20,8 @@
<script
type=
"text/javascript"
>
var
myScroll
;
var
carouselScroll
;
$
(
document
).
ready
(
function
(){
window
.
addEventListener
(
"load"
,
function
(){
var
bullets
=
document
.
getElementById
(
'indicator'
).
getElementsByTagName
(
'li'
);
window
.
mySwipe
=
new
Swipe
(
document
.
getElementById
(
'slider'
),
{
...
...
@@ -41,8 +43,6 @@
});
},
false
);
$
(
document
).
ready
(
function
(){
$
(
"#slider"
).
bind
(
"tap"
,
function
(){
$
(
"#carouselModal"
).
modal
(
'show'
);
...
...
@@ -140,7 +140,7 @@
{% else %}
{{result.average_price}}
{% endif %}
</em>
m
<em>
2
</em></span>
</em>
/
m
<em>
2
</em></span>
</li>
<li
class=
"col-xs-5"
>
<button
type=
"button"
class=
"btn btn-xs"
id=
"calculator"
>
房贷计算器
</button>
...
...
@@ -185,7 +185,7 @@
</a>
<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>
建筑类型:{{result.
periphery
}}
</li>
<li>
建筑类型:{{result.
room
}}
</li>
<li>
装修状况:{{result.decoration}}
</li>
<li>
容积率:{{result.volume_rate}}
</li>
<li>
规划户数:{{result.households}}
</li>
...
...
@@ -206,7 +206,8 @@
{{result.overview}}
</p>
</div>
<div
class=
"detail_row recommend"
>
{% if recommends %}
<div
class=
"detail_row recommend"
>
<p
class=
"detail_title"
>
推荐房源
</p>
<div
class=
"recommendCont"
>
{% for item in recommends %}
...
...
@@ -243,8 +244,10 @@
</div>
{% endfor %}
</div>
</div>
<div
class=
"detail_row"
id=
"consultantDiv"
>
</div>
{% endif %}
{% if consultant %}
<div
class=
"detail_row"
id=
"consultantDiv"
>
<p
class=
"detail_title"
>
置业顾问
</p>
<ul
class=
"list-unstyled peopleCont"
>
{% for item in consultant %}
...
...
@@ -281,7 +284,8 @@
</a>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
<footer
class=
"footer navbar-fixed-bottom"
>
<a
href=
"#consultantDiv"
class=
"btn"
>
置业顾问
</a>
...
...
wp-content/themes/tospur/views/detailOther.html
View file @
2be53ad8
...
...
@@ -19,6 +19,8 @@
<script
type=
"text/javascript"
>
var
myScroll
;
var
carouselScroll
;
$
(
document
).
ready
(
function
(){
window
.
addEventListener
(
"load"
,
function
(){
var
bullets
=
document
.
getElementById
(
'indicator'
).
getElementsByTagName
(
'li'
);
window
.
mySwipe
=
new
Swipe
(
document
.
getElementById
(
'slider'
),
{
...
...
@@ -40,8 +42,6 @@
});
},
false
);
$
(
document
).
ready
(
function
(){
$
(
"#slider"
).
bind
(
"tap"
,
function
(){
$
(
"#carouselModal"
).
modal
(
"show"
);
var
carousel
=
$
(
"#carousel_wrapper"
);
...
...
@@ -170,8 +170,8 @@
<a
class=
"collapsed"
data-toggle=
"collapse"
href=
"#collapseExample"
>
<p
class=
"detail_title"
>
基本信息
<span
class=
"pull-right"
></span></p>
</a>
<ul
class=
"list-unstyled collapse infoCont"
id=
"collapseExample"
>
<li>
户型:{{result.
covered_area
}}
</li>
<ul
class=
"list-unstyled collapse infoCont"
id=
"collapseExample"
style=
"min-height:60px;display:block;overflow:hidden;height:0;"
>
<li>
户型:{{result.
buildproperty
}}
</li>
<li>
面积:{{result.covered_area}}
</li>
<li>
楼层:{{result.floor}}
</li>
<li>
朝向:{{result.faceto}}
</li>
...
...
@@ -198,7 +198,8 @@
</ul>
<p
class=
"map"
></p>
</div>
<div
class=
"detail_row recommend"
>
{% if recommends %}
<div
class=
"detail_row recommend"
>
<p
class=
"detail_title"
>
推荐房源
</p>
<div
class=
"recommendCont"
>
{% for item in recommends %}
...
...
@@ -249,7 +250,8 @@
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% if consultant[0] %}
<footer
class=
"footer navbar-fixed-bottom"
>
<ul
class=
"list-unstyled"
>
...
...
wp-content/themes/tospur/views/forget.html
View file @
2be53ad8
...
...
@@ -16,6 +16,7 @@
$
(
document
).
ready
(
function
()
{
var
notice
=
$
(
'#notice'
);
var
myModal
=
$
(
'#myModal'
);
phoneAddValidate
();
$
(
'#forgetForm'
).
validate
({
onkeyup
:
false
,
onfocusout
:
false
,
...
...
@@ -24,13 +25,20 @@
required
:
true
,
minlength
:
11
,
maxlength
:
11
,
digits
:
true
digits
:
true
,
format
:
true
},
code
:
'required'
,
password
:
'required'
},
messages
:
{
phone
:
'请输入11位手机号'
,
phone
:
{
required
:
'请输入11位手机号码'
,
minlength
:
'请输入11位手机号码'
,
maxlength
:
'请输入11位手机号码'
,
digits
:
'手机号码格式有误'
,
format
:
'手机号码格式有误'
},
code
:
'请输入验证码'
,
password
:
'请输入新密码'
},
...
...
wp-content/themes/tospur/views/index.html
View file @
2be53ad8
...
...
@@ -282,11 +282,11 @@
var
other
=
$
(
"#other_scroller"
);
var
other_item
=
area
;
var
roomAndAcreageKey
=
"
id
"
;
var
roomAndAcreageKey
=
"
value
"
;
$
.
each
(
other_item
,
function
(
i
,
item
){
other
.
append
(
'<a data-id="'
+
item
[
roomAndAcreageKey
]
+
'">'
+
item
.
value
+
'</a>'
);
});
other
.
attr
(
"type"
,
"
roomId
"
);
other
.
attr
(
"type"
,
"
acreage
"
);
$
(
"#roomId,#acreage,#feature"
).
bind
(
'tap'
,
function
(){
$
(
this
).
parent
().
children
().
removeClass
(
'active-bg'
);
$
(
this
).
addClass
(
'active-bg'
);
...
...
wp-content/themes/tospur/views/list.html
View file @
2be53ad8
...
...
@@ -2,7 +2,7 @@
<html>
<head
lang=
"en"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=
device-width, initial-scale=1.0, maximum-scale=1.
0, user-scalable=0"
/>
<meta
name=
"viewport"
content=
"width=
36
0, user-scalable=0"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
/>
<title></title>
...
...
@@ -53,7 +53,6 @@
$
(
document
).
ready
(
function
()
{
{
%
if
result
%
}
var
myScroll
=
new
IScroll
(
'#wrapper'
,{
scrollbars
:
true
,
click
:
true
});
$
(
'[data-name=handle]'
).
tap
(
function
()
{
...
...
wp-content/themes/tospur/views/loan_calculator.html
View file @
2be53ad8
...
...
@@ -20,7 +20,8 @@
<script
type=
"text/javascript"
src=
"{{ theme }}/js/gftools.js"
></script>
</head>
<body>
{% set commerce_rate = 5.15 %}
{% set accumulationFund_rate = 3.25 %}
<div
id=
"pt-main"
class=
"pt-perspective"
>
<div
class=
"pt-page pt-page-1"
>
<ul
id=
"tab"
class=
"list-unstyled btn-group-justified tab"
>
...
...
@@ -106,13 +107,13 @@
<label
class=
"col-xs-3"
>
利
率:
</label>
<p
class=
"col-xs-7"
>
<input
type=
"number"
class=
"form-control"
data-id=
"rate"
value=
"
5.4
"
>
<input
type=
"number"
class=
"form-control"
data-id=
"rate"
value=
"
{{ commerce_rate }}
"
>
</p>
<p
class=
"col-xs-2"
>
%
</p>
</li>
</ul>
<p
class=
"text-right"
>
商业贷款利率
5.40
%
</p>
<p
class=
"text-right"
>
商业贷款利率
{{ commerce_rate }}
%
</p>
<input
type=
"submit"
value=
"开始计算"
class=
"btn btn-lg"
>
</div>
...
...
@@ -185,13 +186,13 @@
<label
class=
"col-xs-3"
>
利
率:
</label>
<p
class=
"col-xs-7"
>
<input
type=
"number"
class=
"form-control"
data-id=
"rate"
value=
"
3.5
"
>
<input
type=
"number"
class=
"form-control"
data-id=
"rate"
value=
"
{{ accumulationFund_rate }}
"
>
</p>
<p
class=
"col-xs-2"
>
%
</p>
</li>
</ul>
<p
class=
"text-right"
>
公积金贷款利率
3.50
%
</p>
<p
class=
"text-right"
>
公积金贷款利率
{{ accumulationFund_rate }}
%
</p>
<input
type=
"submit"
value=
"开始计算"
class=
"btn btn-lg"
>
</div>
...
...
@@ -303,13 +304,13 @@
<label
class=
"col-xs-3"
>
利
率:
</label>
<p
class=
"col-xs-7"
>
<input
type=
"number"
class=
"form-control"
data-id=
"rate"
value=
"
5.4
"
>
<input
type=
"number"
class=
"form-control"
data-id=
"rate"
value=
"
{{ commerce_rate }}
"
>
</p>
<p
class=
"col-xs-2"
>
%
</p>
</li>
</ul>
<p
class=
"text-right"
>
公积金贷款利率
3.50% 商业贷款利率5.40
%
</p>
<p
class=
"text-right"
>
公积金贷款利率
{{ accumulationFund_rate }}% 商业贷款利率{{ commerce_rate }}
%
</p>
<input
type=
"submit"
value=
"开始计算"
class=
"btn btn-lg"
>
</div>
</div>
...
...
@@ -354,12 +355,16 @@
<script>
var
daikuan_money
=
0
;
var
page
=
0
;
var
flag
=
false
;
var
tabScroll
;
var
resultScroll
;
var
resultList
;
$
(
document
).
ready
(
function
()
{
tabScroll
=
new
IScroll
(
'#tabWrapper'
,{
click
:
true
});
resultScroll
=
new
IScroll
(
'#wrapper'
,
{
click
:
true
});
$
(
'#tab a'
).
click
(
function
(){
tabScroll
.
scrollTo
(
0
,
0
);
setTimeout
(
function
(){
...
...
@@ -395,20 +400,20 @@
notice
.
html
(
'请输入利率'
);
myModal
.
modal
(
'show'
);
}
else
{
var
resultList
=
$
(
'#result'
);
resultList
=
$
(
'#result'
);
if
(
tabId
==
'combined_loan'
)
{
var
accumulationFund_money
=
Number
(
tab
.
find
(
'[data-id=daikuan_money]'
).
val
().
trim
());
var
commerce_money
=
Number
(
tab
.
find
(
'[data-id=commerce_money]'
).
val
().
trim
());
var
accumulationFund_year
=
Number
(
tab
.
find
(
'[data-id=accumulationFund_year]'
).
val
());
var
commerce_year
=
Number
(
tab
.
find
(
'[data-id=commerce_year]'
).
val
());
var
accumulationFund_result
=
loan_calc
(
accumulationFund_money
,
accumulationFund_year
,
3.5
);
var
accumulationFund_result
=
loan_calc
(
accumulationFund_money
,
accumulationFund_year
,
{{
accumulationFund_rate
}}
);
var
commerce_result
=
loan_calc
(
commerce_money
,
commerce_year
,
rate
);
$
(
'#money'
).
text
(
'贷款总额:'
+
(
accumulationFund_money
+
commerce_money
).
toFixed
(
2
)
+
'万元'
);
$
(
'#acpi_interest'
).
text
(
Math
.
round
(
accumulationFund_result
.
acpi
.
interest
+
commerce_result
.
acpi
.
interest
));
$
(
'#ac_interest'
).
text
(
Math
.
round
(
accumulationFund_result
.
ac
.
interest
+
commerce_result
.
ac
.
interest
));
//公积金按揭年数 >
//公积金按揭年数 >
商业贷款按揭年数
if
(
accumulationFund_result
.
loan_period
>=
commerce_result
.
loan_period
)
{
$
(
'#month'
).
text
(
'贷款月数:'
+
result
.
loan_period
);
$
(
'#month'
).
text
(
'贷款月数:'
+
accumulationFund_
result
.
loan_period
);
$
.
each
(
accumulationFund_result
.
ac
.
monthlyPayment
,
function
(
index
,
value
)
{
var
payment
=
commerce_result
.
ac
.
monthlyPayment
[
index
];
var
commerce_monthlyPayment
=
commerce_result
.
acpi
.
monthlyPayment
;
...
...
@@ -421,6 +426,7 @@
'<p class="col-xs-4">'
+
Math
.
round
(
value
+
payment
)
+
'</p></li>'
);
});
}
else
{
$
(
'#month'
).
text
(
'贷款月数:'
+
commerce_result
.
loan_period
);
$
.
each
(
commerce_result
.
ac
.
monthlyPayment
,
function
(
index
,
value
)
{
var
payment
=
accumulationFund_result
.
ac
.
monthlyPayment
[
index
];
var
accumulationFund_monthlyPayment
=
accumulationFund_result
.
acpi
.
monthlyPayment
;
...
...
@@ -447,17 +453,13 @@
'<p class="col-xs-4">'
+
Math
.
round
(
value
)
+
'</p></li>'
);
});
}
var
scroll
=
new
IScroll
(
'#wrapper'
,
{
scrollbars
:
true
,
click
:
true
});
resultScroll
.
refresh
();
page
=
1
;
window
.
location
.
href
=
'#result'
;
PageTransitions
.
nextPage
({
animation
:
1
,
showPage
:
page
});
flag
=
true
;
}
return
false
;
});
...
...
@@ -472,6 +474,8 @@
animation
:
2
,
showPage
:
page
});
resultList
.
html
(
''
);
resultScroll
.
refresh
();
}
});
});
...
...
wp-content/themes/tospur/views/register.html
View file @
2be53ad8
...
...
@@ -16,6 +16,7 @@
$
(
document
).
ready
(
function
()
{
var
notice
=
$
(
'#notice'
);
var
myModal
=
$
(
'#myModal'
);
phoneAddValidate
();
$
(
'#registerForm'
).
validate
({
onkeyup
:
false
,
onfocusout
:
false
,
...
...
@@ -24,13 +25,20 @@
required
:
true
,
minlength
:
11
,
maxlength
:
11
,
digits
:
true
digits
:
true
,
format
:
true
},
code
:
'required'
,
password
:
'required'
},
messages
:
{
phone
:
'请输入11位手机号码'
,
phone
:
{
required
:
'请输入11位手机号码'
,
minlength
:
'请输入11位手机号码'
,
maxlength
:
'请输入11位手机号码'
,
digits
:
'手机号码格式有误'
,
format
:
'手机号码格式有误'
},
code
:
'请输入验证码'
,
password
:
'请输入密码'
},
...
...
wp-content/themes/tospur/views/view.html
View file @
2be53ad8
...
...
@@ -30,10 +30,10 @@
var
specified_time
;
switch
(
dayValue
)
{
case
3
:
specified_time
=
new
Date
(
ds
.
Year
+
'
-'
+
ds
.
Month
+
'-
'
+
ds
.
Day
+
' '
+
min_time
).
getTime
();
specified_time
=
new
Date
(
ds
.
Year
+
'
/'
+
ds
.
Month
+
'/
'
+
ds
.
Day
+
' '
+
min_time
).
getTime
();
break
;
default
:
specified_time
=
new
Date
(
date
.
Format
(
'yyyy
-MM-
dd'
)
+
' '
+
min_time
).
getTime
()
+
dayValue
*
24
*
60
*
60
*
1000
;
specified_time
=
new
Date
(
date
.
Format
(
'yyyy
/MM/
dd'
)
+
' '
+
min_time
).
getTime
()
+
dayValue
*
24
*
60
*
60
*
1000
;
break
;
}
if
(
specified_time
>
date
.
getTime
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment