Commit daedfaaf by LiuJunYi

订单显示补全

parent bd16c14c
...@@ -102,7 +102,7 @@ class Order extends AuthBase ...@@ -102,7 +102,7 @@ class Order extends AuthBase
//导出到excel之前数据处理 //导出到excel之前数据处理
$mulit_arr = []; $mulit_arr = [];
$mulit_arr['data'] = []; $mulit_arr['data'] = [];
$cont = [['订单标题', '订单号', '订单来源', '用户名', '电话', '微信号', '地址', 'vip购买信息', '活动名称', '活动价格', '家庭组数', '大人数量', '孩子数量', '孩子年龄', '订单总价', '下单时间', '订单状态']]; $cont = [['订单标题', '订单号', '订单来源', '用户名', '电话', '微信号', '地址', 'vip购买信息', '活动名称', '详情', '订单总价', '下单时间', '订单状态']];
foreach ($order_list as $vo) { foreach ($order_list as $vo) {
$arr = []; $arr = [];
$arr[] = $vo['title']; $arr[] = $vo['title'];
...@@ -115,18 +115,18 @@ class Order extends AuthBase ...@@ -115,18 +115,18 @@ class Order extends AuthBase
$arr[] = $vo->user_info['phone']; $arr[] = $vo->user_info['phone'];
$arr[] = $vo->user_info['wx_number']; $arr[] = $vo->user_info['wx_number'];
$arr[] = $vo->user_info['address']; $arr[] = $vo->user_info['address'];
$arr[] = $vo->user_info['phone'];
$arr[] = isset($vo['extras']['vip_endtime']) ? $vo['extras']['vip_endtime'] . '到期' : ''; $arr[] = isset($vo['extras']['vip_endtime']) ? $vo['extras']['vip_endtime'] . '到期' : '';
$arr[] = $vo->project['title']; $arr[] = $vo->project['title'];
$arr[] = $vo->project['price']; if($vo->type ==1 ){
$arr[] = isset($vo['extras']['sign_limits']) ? $vo['extras']['sign_limits'] : ''; //活动
$arr[] = isset($vo['extras']['adult_number']) ? $vo['extras']['adult_number'] : ''; $arr[] = "价格:{$vo->extras['price']},数量:{$vo->extras['sign_limits']},地址:{$vo->extras['address']},描述:{$vo->extras['remark']}";
$arr[] = isset($vo['extras']['children_number']) ? $vo['extras']['children_number'] : ''; }else{
$arr[] = isset($vo['extras']['children_age']) ? $vo['extras']['children_age'] : ''; //会员卡
$arr[] = "价格:{$vo->extras['price']},时长:{$vo->extras['year']},备注:{$vo->extras['remark']}";
}
$arr[] = $vo['total_fee']; $arr[] = $vo['total_fee'];
$arr[] = $vo['created_at']; $arr[] = $vo['created_at'];
$arr[] = $vo->StatusAdminText; $arr[] = $vo->StatusAdminText;
$cont[] = $arr; $cont[] = $arr;
} }
$mulit_arr['data'][] = $cont; $mulit_arr['data'][] = $cont;
......
...@@ -25,10 +25,8 @@ ...@@ -25,10 +25,8 @@
<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>
<option value="1" {if condition="input('type')=='1'" }selected{ <option value="1" {if condition="input('type')=='1'" }selected{/if}>活动报名订单</option>
/if}>活动报名订单</option> <option value="2" {if condition="input('type')=='2'" }selected{/if}>购买会员卡订单</option>
<option value="2" {if condition="input('type')=='2'" }selected{
/if}>购买会员卡订单</option>
</select> </select>
</div> </div>
<div class="form-group margin-right"> <div class="form-group margin-right">
...@@ -85,6 +83,14 @@ ...@@ -85,6 +83,14 @@
<img src="{$vo.project_poster}" width='100'> <img src="{$vo.project_poster}" width='100'>
</a> </a>
<p style="padding:0;margin:0;">{$vo.project_title}</p> <p style="padding:0;margin:0;">{$vo.project_title}</p>
<p style="padding:0;margin:0;">价格:{$vo.extras['price']}</p>
<p style="padding:0;margin:0;">数量:{$vo.extras['sign_limits']}</p>
<p style="padding:0;margin:0;">地址:{$vo.extras['address']}</p>
<p style="padding:0;margin:0;">备注:{$vo.extras['remark']}</p>
{else /}
<p style="padding:0;margin:0;">价格:{$vo.extras['price']}</p>
<p style="padding:0;margin:0;">时长(单位/年):{$vo.extras['year']}</p>
<p style="padding:0;margin:0;">备注:{$vo.extras['remark']}</p>
{/if} {/if}
</td> </td>
<td> <td>
......
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