Commit f06a2356 by LiuJunYi

美行者BUG

parent c8af6d1f
...@@ -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) {
......
...@@ -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('');
} }
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
<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>
...@@ -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"}
......
...@@ -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>
......
...@@ -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;
......
...@@ -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'),
]; ];
......
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