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

我的钱包

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