作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

我的钱包

... ... @@ -30,7 +30,7 @@ class Collect extends WechatBase
public function index(){
$data = Db::name('collect')
->alias('c')
->field('g.*,c.id as c_id,c.createtime')
->field('g.*,c.id as c_id')
->join('fa_goods g','g.id = c.goods_id')
->where(['c.user_id'=>$this->user_id])->order('c.id desc')->page(1,5)->select();
$this->assign('data',$data);
... ...
... ... @@ -21,7 +21,7 @@
<div class="single_title">{$vo.goods_name}</div>
<div class="single_coupon">{$vo.exp}红包券</div>
<div class="layout justify flex_row align_center">
<div class="single_date">截止日期: {:date('Y-m-d',$vo.createtime)}</div>
<div class="single_date">截止日期: {:date('Y-m-d',$vo.end_time)}</div>
<a class="single_btn" href="{:url('home/goods/detail',array('goods_id'=>$vo['id']))}">查看详情</a>
</div>
</div>
... ...