edit-liche-credit
This commit is contained in:
@@ -36,9 +36,9 @@ class Credit extends Wxapp{
|
||||
if($count){
|
||||
$fileds = 'id,credit_in,credit_out,remark,type,c_time';
|
||||
$rows = $this->app_liche_credits_log_model->select($where,'id desc',$page,$size,$fileds);
|
||||
$type_arr = $this->app_liche_credits_log_model->get_type();
|
||||
// $type_arr = $this->app_liche_credits_log_model->get_type();
|
||||
foreach ($rows as $item) {
|
||||
$title = $type_arr[$item['type']];
|
||||
$title = $item['credit_in']>0 ? '积分获取' : '积分消费';
|
||||
$money = $item['credit_in'] ? "+{$item['credit_in']}" : "-{$item['credit_out']}";
|
||||
$temp = [
|
||||
'id' => $item['id'],
|
||||
@@ -53,7 +53,8 @@ class Credit extends Wxapp{
|
||||
'list' => $list,
|
||||
'total' => $count,
|
||||
'bg_list' => [
|
||||
'https://qs.haodian.cn/wechat_app/liche/topicActivity/lantushijia/ex-1.jpg'
|
||||
'https://qs.haodian.cn/wechat_app/liche/topicActivity/lantushijia/ex-2.jpg',
|
||||
'https://qs.haodian.cn/wechat_app/liche/topicActivity/lantushijia/ex-3.jpg',
|
||||
]
|
||||
];
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user