Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
7f874038
Commit
7f874038
authored
Dec 14, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端js请求
parent
d12e1cf1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
13 deletions
+11
-13
config.php
application/api/config.php
+1
-1
Basic.php
application/api/extend/Basic.php
+2
-5
Index.php
application/app/controller/Index.php
+2
-1
config.php
application/config.php
+2
-0
constant.php
application/constant.php
+1
-2
route.php
application/route.php
+1
-1
detaila_tl.js
public/app/js/detaila_tl.js
+2
-3
No files found.
application/api/config.php
View file @
7f874038
<?php
<?php
//配置文件
//配置文件
error_reporting
(
E_ERROR
|
E_PARSE
);
error_reporting
(
E_ERROR
|
E_PARSE
);
define
(
'IMG_PATH'
,
'https://admin.tonglianjituan.com/houseImg/'
);
define
(
'PAGESIZE'
,
15
);
//分页每页条数
define
(
'PAGESIZE'
,
15
);
//分页每页条数
return
[
return
[
'jwt_key'
=>
'tonglian+123'
,
'jwt_key'
=>
'tonglian+123'
,
...
...
application/api/extend/Basic.php
View file @
7f874038
...
@@ -48,11 +48,8 @@ class Basic extends Controller
...
@@ -48,11 +48,8 @@ class Basic extends Controller
ob_end_flush();
ob_end_flush();
ob_end_clean();
ob_end_clean();
ob_get_contents();*/
ob_get_contents();*/
// CORS 跨域 Options 检测响应
// CORS 跨域 Options 检测响应
$this
->
corsOptionsHandler
();
$this
->
corsOptionsHandler
();
// 输入对象
// 输入对象
$this
->
request
=
is_null
(
$request
)
?
Request
::
instance
()
:
$request
;
$this
->
request
=
is_null
(
$request
)
?
Request
::
instance
()
:
$request
;
...
@@ -65,7 +62,7 @@ class Basic extends Controller
...
@@ -65,7 +62,7 @@ class Basic extends Controller
$this
->
params
=
$this
->
request
->
param
()
!=
null
?
$this
->
request
->
param
()
:
null
;
$this
->
params
=
$this
->
request
->
param
()
!=
null
?
$this
->
request
->
param
()
:
null
;
}
}
/*
if (!isset($this->params['AuthToken'])) {
if (!isset($this->params['AuthToken'])) {
echo json_encode(array( "code" => "101", "msg" => "AuthToken不能为空!", "data" => [], "type" => "json" ));
echo json_encode(array( "code" => "101", "msg" => "AuthToken不能为空!", "data" => [], "type" => "json" ));
exit;
exit;
...
@@ -78,7 +75,7 @@ class Basic extends Controller
...
@@ -78,7 +75,7 @@ class Basic extends Controller
$this->user_nick = $result->data->user_nick;
$this->user_nick = $result->data->user_nick;
$this->timeStamp_ = $result->timeStamp_;
$this->timeStamp_ = $result->timeStamp_;
$this
->
verifyTime
();
$this->verifyTime();
*/
}
}
...
...
application/app/controller/Index.php
View file @
7f874038
...
@@ -3,6 +3,7 @@ namespace app\app\controller;
...
@@ -3,6 +3,7 @@ namespace app\app\controller;
use
app\model\HouseImgs
;
use
app\model\HouseImgs
;
use
app\model\HouseInfos
;
use
app\model\HouseInfos
;
use
think\Controller
;
use
think\Response
;
use
think\Response
;
class
Index
class
Index
...
@@ -31,7 +32,7 @@ class Index
...
@@ -31,7 +32,7 @@ class Index
*/
*/
public
function
getShopDetail
()
public
function
getShopDetail
()
{
{
$id
=
$_
GE
T
[
"id"
];
$id
=
$_
POS
T
[
"id"
];
$field
=
"id,management_fee,title,address,city,room_area,room_area2,business_area,disc,disccircles,sales,slotting_fee,transfer_fee,
$field
=
"id,management_fee,title,address,city,room_area,room_area2,business_area,disc,disccircles,sales,slotting_fee,transfer_fee,
yetai,room_area2,shangpu_type,is_test,sellingpoint,singn_rule,business_date,start_business_date,opentime,has_gas,traffic,
yetai,room_area2,shangpu_type,is_test,sellingpoint,singn_rule,business_date,start_business_date,opentime,has_gas,traffic,
room_num_left,room_num_total,shangpu_tags,carefully_chosen,price,dish,file_path"
;
room_num_left,room_num_total,shangpu_tags,carefully_chosen,price,dish,file_path"
;
...
...
application/config.php
View file @
7f874038
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
define
(
'IMG_PATH'
,
'https://admin.tonglianjituan.com/houseImg/'
);
return
[
return
[
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 应用设置
// | 应用设置
...
...
application/constant.php
View file @
7f874038
...
@@ -6,4 +6,4 @@
...
@@ -6,4 +6,4 @@
* Time : 14:45
* Time : 14:45
* Intro:
* Intro:
*/
*/
define
(
"AAA"
,
123123
);
define
(
"AAA"
,
123123
);
\ No newline at end of file
application/route.php
View file @
7f874038
...
@@ -43,7 +43,7 @@ Route::rule(['/city/:name' => 'error/index'] , '' ,'GET');*/
...
@@ -43,7 +43,7 @@ Route::rule(['/city/:name' => 'error/index'] , '' ,'GET');*/
Route
::
group
(
'app'
,
[
Route
::
group
(
'app'
,
[
'index'
=>
[
'app/index/index'
,
[
'method'
=>
'get'
]
],
'index'
=>
[
'app/index/index'
,
[
'method'
=>
'get'
]
],
'share_detail'
=>
[
'app/index/share_detail'
,
[
'method'
=>
'get'
]
],
'share_detail'
=>
[
'app/index/share_detail'
,
[
'method'
=>
'get'
]
],
'getShopDetail
'
=>
[
'app/index/getShopDetail'
,
[
'method'
=>
'ge
t'
]
],
'getShopDetail
s'
=>
[
'app/index/getShopDetail'
,
[
'method'
=>
'get | pos
t'
]
],
]);
]);
...
...
public/app/js/detaila_tl.js
View file @
7f874038
...
@@ -18,10 +18,9 @@
...
@@ -18,10 +18,9 @@
_id
=
theRequest
.
id
;
_id
=
theRequest
.
id
;
realname
=
theRequest
.
housename
;
realname
=
theRequest
.
housename
;
$
.
ajax
({
$
.
ajax
({
url
:
"/app.
index/index/getShopDetail
"
,
url
:
"/app.
php/app/getShopDetails
"
,
data
:
{
data
:
{
"id"
:
_id
,
"id"
:
1
"version"
:
"1.0"
},
},
type
:
"POST"
,
type
:
"POST"
,
dataType
:
"json"
,
dataType
:
"json"
,
...
...
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