Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
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
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
f06a2356
Commit
f06a2356
authored
Nov 06, 2018
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
美行者BUG
parent
c8af6d1f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
22 deletions
+24
-22
application/admin/controller/Order.php
+3
-0
application/admin/controller/Project.php
+2
-2
application/admin/view/order/index.html
+8
-5
application/admin/view/project/citys.html
+1
-1
application/admin/view/project/updateproject.html
+8
-13
application/api/controller/Order.php
+2
-1
No files found.
application/admin/controller/Order.php
View file @
f06a2356
...
@@ -52,6 +52,9 @@ class Order extends AuthBase
...
@@ -52,6 +52,9 @@ class Order extends AuthBase
$condition
[
'created_at'
]
=
[
'<'
,
$end_time
.
' 00:00:00'
];
$condition
[
'created_at'
]
=
[
'<'
,
$end_time
.
' 00:00:00'
];
}
}
}
}
if
(
input
(
'get.title'
)){
$condition
[
'title'
]
=
[
'like'
,
'%'
.
input
(
'get.title'
)
.
'%'
];
}
//根据筛选条件查询
//根据筛选条件查询
$order_list
=
$this
->
order_model
->
with
([
'project'
=>
function
(
$query
)
{
$order_list
=
$this
->
order_model
->
with
([
'project'
=>
function
(
$query
)
{
...
...
application/admin/controller/Project.php
View file @
f06a2356
...
@@ -228,7 +228,7 @@ class Project extends AuthBase
...
@@ -228,7 +228,7 @@ class Project extends AuthBase
public
function
tags
()
public
function
tags
()
{
{
$title
=
input
(
'get.name'
,
''
);
$title
=
input
(
'get.name'
,
''
);
$tag_list
=
$this
->
tag_model
->
where
(
'name'
,
'like'
,
"%"
.
$title
.
"%"
)
->
order
(
'sort'
,
'
asc'
)
->
paginate
(
15
,
false
,
[
'query'
=>
[
'name'
=>
$title
]]
);
$tag_list
=
$this
->
tag_model
->
where
(
'name'
,
'like'
,
"%"
.
$title
.
"%"
)
->
order
(
'sort'
,
'
desc'
)
->
order
(
'id'
,
'desc'
)
->
paginate
(
15
);
$this
->
assign
(
"tag_list"
,
$tag_list
);
$this
->
assign
(
"tag_list"
,
$tag_list
);
return
$this
->
fetch
(
''
);
return
$this
->
fetch
(
''
);
}
}
...
@@ -316,7 +316,7 @@ class Project extends AuthBase
...
@@ -316,7 +316,7 @@ class Project extends AuthBase
public
function
citys
()
public
function
citys
()
{
{
$title
=
input
(
'get.name'
,
''
);
$title
=
input
(
'get.name'
,
''
);
$tag_list
=
$this
->
city_model
->
where
(
'name'
,
'like'
,
"%"
.
$title
.
"%"
)
->
order
(
'sort'
,
'
asc'
)
->
paginate
(
15
,
false
,
[
'query'
=>
[
'name'
=>
$title
]]
);
$tag_list
=
$this
->
city_model
->
where
(
'name'
,
'like'
,
"%"
.
$title
.
"%"
)
->
order
(
'sort'
,
'
desc'
)
->
order
(
'id'
,
'desc'
)
->
paginate
(
15
);
$this
->
assign
(
"tag_list"
,
$tag_list
);
$this
->
assign
(
"tag_list"
,
$tag_list
);
return
$this
->
fetch
(
''
);
return
$this
->
fetch
(
''
);
}
}
...
...
application/admin/view/order/index.html
View file @
f06a2356
...
@@ -7,8 +7,11 @@
...
@@ -7,8 +7,11 @@
<div
class=
"row margin-bottom"
>
<div
class=
"row margin-bottom"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<form
class=
"form-inline pull-left"
method=
"GET"
id=
"order-search"
action=
"<?php echo url('@admin/order/index')?>"
>
<form
class=
"form-inline pull-left"
method=
"GET"
id=
"order-search"
action=
"<?php echo url('@admin/order/index')?>"
>
<div
class=
"form-group margin-right"
>
<div
class=
"form-group margin-right"
>
<input
class=
"form-control"
type=
"text"
name=
"title"
value=
"{:input('title')}"
placeholder=
"活动名称"
/>
</div>
<div
class=
"form-group margin-right"
>
<select
name=
"status"
class=
"form-control"
id=
"status"
>
<select
name=
"status"
class=
"form-control"
id=
"status"
>
<option
value=
"-1"
{
if
condition=
"$status=='-1'"
}
selected
{/
if
}
>
全部订单状态
</option>
<option
value=
"-1"
{
if
condition=
"$status=='-1'"
}
selected
{/
if
}
>
全部订单状态
</option>
<option
value=
"0"
{
if
condition=
"$status=='0'"
}
selected
{/
if
}
>
未付款
</option>
<option
value=
"0"
{
if
condition=
"$status=='0'"
}
selected
{/
if
}
>
未付款
</option>
...
@@ -16,7 +19,7 @@
...
@@ -16,7 +19,7 @@
<option
value=
"2"
{
if
condition=
"$status=='2'"
}
selected
{/
if
}
>
待评价
</option>
<option
value=
"2"
{
if
condition=
"$status=='2'"
}
selected
{/
if
}
>
待评价
</option>
<option
value=
"3"
{
if
condition=
"$status=='3'"
}
selected
{/
if
}
>
已完成
</option>
<option
value=
"3"
{
if
condition=
"$status=='3'"
}
selected
{/
if
}
>
已完成
</option>
</select>
</select>
</div>
</div>
<div
class=
"form-group margin-right"
>
<div
class=
"form-group margin-right"
>
<select
name=
"type"
class=
"form-control"
id=
"type"
>
<select
name=
"type"
class=
"form-control"
id=
"type"
>
<option
value=
""
>
全部订单类型
</option>
<option
value=
""
>
全部订单类型
</option>
...
@@ -49,7 +52,7 @@
...
@@ -49,7 +52,7 @@
<th>
用户信息
</th>
<th>
用户信息
</th>
<th>
订单总价
</th>
<th>
订单总价
</th>
<th>
订单状态
</th>
<th>
订单状态
</th>
<th>
微信支付状态
</th>
<th>
地址
</th>
<th>
退款状态
</th>
<th>
退款状态
</th>
<th>
评论状态
</th>
<th>
评论状态
</th>
<th>
下单时间
</th>
<th>
下单时间
</th>
...
@@ -89,7 +92,7 @@
...
@@ -89,7 +92,7 @@
<span
style=
"color:{$vo.status_name.color}"
>
{$vo.StatusText}
</span>
<span
style=
"color:{$vo.status_name.color}"
>
{$vo.StatusText}
</span>
</td>
</td>
<td>
<td>
{$vo.
trade_status
}
{$vo.
extras['address']??''
}
</td>
</td>
<td>
<td>
{if condition="$vo.is_refund == 0"}
{if condition="$vo.is_refund == 0"}
...
...
application/admin/view/project/citys.html
View file @
f06a2356
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<tbody>
<tbody>
{volist name="tag_list" id="vo" key="k" empty="暂时没有数据"}
{volist name="tag_list" id="vo" key="k" empty="暂时没有数据"}
<tr
id=
"tr_{$vo.id}"
>
<tr
id=
"tr_{$vo.id}"
>
<td>
{$
k
}
</td>
<td>
{$
vo.id
}
</td>
<td>
{$vo.name}
</td>
<td>
{$vo.name}
</td>
<!-- <td>{$vo.used_num}</td> -->
<!-- <td>{$vo.used_num}</td> -->
<td>
{$vo.sort}
</td>
<td>
{$vo.sort}
</td>
...
...
application/admin/view/project/updateproject.html
View file @
f06a2356
...
@@ -88,12 +88,7 @@
...
@@ -88,12 +88,7 @@
<input
type=
"text"
class=
"form-control validate[required,custom[number]]"
name=
"sign_limits"
id=
"sign_limits"
value=
"{$project_info.sign_limits}"
placeholder=
"限制家庭组数"
>
<input
type=
"text"
class=
"form-control validate[required,custom[number]]"
name=
"sign_limits"
id=
"sign_limits"
value=
"{$project_info.sign_limits}"
placeholder=
"限制家庭组数"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group type_toggle"
>
<label
for=
"title"
class=
"col-sm-2 control-label text-right"
>
晚数
</label>
<div
class=
"col-sm-10 col-md-8 col-lg-6"
>
<input
type=
"text"
class=
"form-control validate[required,custom[number]]"
name=
"night_num"
id=
"night_num"
value=
"{$project_info.sign_limits}"
placeholder=
"晚数"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-sm-2 control-label text-right"
>
城市
</label>
<label
for=
"title"
class=
"col-sm-2 control-label text-right"
>
城市
</label>
<div
class=
"col-sm-10 col-md-8 col-lg-6"
>
<div
class=
"col-sm-10 col-md-8 col-lg-6"
>
...
@@ -138,12 +133,18 @@
...
@@ -138,12 +133,18 @@
<input
type=
"text"
class=
"form-control validate[required,custom[number]]"
name=
""
id=
"price"
placeholder=
"价格"
value=
"{$project_info.price}"
>
<input
type=
"text"
class=
"form-control validate[required,custom[number]]"
name=
""
id=
"price"
placeholder=
"价格"
value=
"{$project_info.price}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group
type_toggle
"
>
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-sm-2 control-label text-right"
>
会员价
</label>
<label
for=
"title"
class=
"col-sm-2 control-label text-right"
>
会员价
</label>
<div
class=
"col-sm-10 col-md-8 col-lg-6"
>
<div
class=
"col-sm-10 col-md-8 col-lg-6"
>
<input
type=
"text"
class=
"form-control validate[required,custom[number]]"
name=
""
id=
"vip_price"
placeholder=
"价格"
value=
"{$project_info.vip_price}"
>
<input
type=
"text"
class=
"form-control validate[required,custom[number]]"
name=
""
id=
"vip_price"
placeholder=
"价格"
value=
"{$project_info.vip_price}"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-sm-2 control-label text-right"
>
晚数
</label>
<div
class=
"col-sm-10 col-md-8 col-lg-6"
>
<input
type=
"text"
class=
"form-control validate[required,custom[number]]"
name=
"night_num"
id=
"night_num"
value=
"{$project_info.sign_limits}"
placeholder=
"晚数"
>
</div>
</div>
<!-- <input type="hidden" id="poster" name="poster"> -->
<!-- <input type="hidden" id="poster" name="poster"> -->
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-sm-2 control-label text-right"
>
封面
</label>
<label
for=
"title"
class=
"col-sm-2 control-label text-right"
>
封面
</label>
...
@@ -373,16 +374,10 @@ $(function(){
...
@@ -373,16 +374,10 @@ $(function(){
formValue
.
append
(
'time_period'
,
$
(
"#start"
).
val
());
formValue
.
append
(
'time_period'
,
$
(
"#start"
).
val
());
formValue
.
append
(
'sign_endtime'
,
$
(
"#end"
).
val
());
formValue
.
append
(
'sign_endtime'
,
$
(
"#end"
).
val
());
formValue
.
append
(
'sign_limits'
,
$
(
"#sign_limits"
).
val
());
formValue
.
append
(
'sign_limits'
,
$
(
"#sign_limits"
).
val
());
formValue
.
append
(
'night_num'
,
$
(
"#night_num"
).
val
());
formValue
.
append
(
'price'
,
$
(
"#price"
).
val
());
formValue
.
append
(
'vip_price'
,
$
(
"#vip_price"
).
val
());
}
else
{
}
else
{
formValue
.
append
(
'time_period'
,
''
);
formValue
.
append
(
'time_period'
,
''
);
formValue
.
append
(
'sign_endtime'
,
null
);
formValue
.
append
(
'sign_endtime'
,
null
);
formValue
.
append
(
'sign_limits'
,
null
);
formValue
.
append
(
'sign_limits'
,
null
);
formValue
.
append
(
'night_num'
,
null
);
formValue
.
append
(
'price'
,
null
);
formValue
.
append
(
'vip_price'
,
null
);
}
}
var
tagArr
=
$
(
"#tags_select"
).
val
();
var
tagArr
=
$
(
"#tags_select"
).
val
();
var
tagStr
=
null
;
var
tagStr
=
null
;
...
...
application/api/controller/Order.php
View file @
f06a2356
...
@@ -47,7 +47,7 @@ class Order extends Base
...
@@ -47,7 +47,7 @@ class Order extends Base
'adult_number'
=>
'require'
,
'adult_number'
=>
'require'
,
'children_number'
=>
'require'
,
'children_number'
=>
'require'
,
'children_age'
=>
'require'
,
'children_age'
=>
'require'
,
'sign_limits'
=>
'require'
'sign_limits'
=>
'require'
,
]);
]);
$res
=
$validate
->
check
(
input
(
'post.'
));
$res
=
$validate
->
check
(
input
(
'post.'
));
if
(
!
$res
)
return
[
'code'
=>
1
,
'msg'
=>
$validate
->
getError
()];
if
(
!
$res
)
return
[
'code'
=>
1
,
'msg'
=>
$validate
->
getError
()];
...
@@ -86,6 +86,7 @@ class Order extends Base
...
@@ -86,6 +86,7 @@ class Order extends Base
'children_number'
=>
input
(
'post.children_number'
),
'children_number'
=>
input
(
'post.children_number'
),
'children_age'
=>
input
(
'post.children_age'
),
'children_age'
=>
input
(
'post.children_age'
),
'sign_limits'
=>
input
(
'post.sign_limits'
),
'sign_limits'
=>
input
(
'post.sign_limits'
),
'address'
=>
input
(
'post.address'
),
'price'
=>
$price
,
'price'
=>
$price
,
'remark'
=>
input
(
'post.remark'
),
'remark'
=>
input
(
'post.remark'
),
];
];
...
...
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