作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

测试反馈修改

... ... @@ -211,6 +211,7 @@ class PrizeController extends WeChatBaseController
->where($where)
->select()->toArray();
foreach ($data as $k => $v) {
$data[$k]['url']=url('portal/prize/prizeDetail',array('id'=>$data[$k]['id']));
$data[$k]['image'] = cmf_get_image_preview_url($data[$k]['thumbnail']);
};
return $data;
... ...
... ... @@ -101,6 +101,7 @@
</div>
<div class="presentlist">
<foreach name="list" item="vo">
<a href="{:url('portal/prize/prizeDetail',array('id'=>$vo.id))}" style="text-decoration:none;">
<div class="presentlist_item">
<p class="present_img">
<img src="{:cmf_get_image_preview_url($vo.thumbnail)}" alt="">
... ... @@ -111,6 +112,7 @@
<span class="integral_chinese">积分</span>
</p>
</div>
</a>
</foreach>
</div>
</div>
... ... @@ -129,7 +131,8 @@
success: function (data) {
var html = "";
for (var i = 0; i < data.length; i++) {
html +=' <div class="presentlist_item">\n' +
html +='<a href="'+data[i].url+'" style="text-decoration:none;">'+
' <div class="presentlist_item">\n' +
' <p class="present_img">\n' +
' <img src="'+data[i].image+'" alt="">\n' +
' </p>\n' +
... ... @@ -138,7 +141,8 @@
' <span class="integral_num">'+data[i].score+'</span>\n' +
' <span class="integral_chinese">积分</span>\n' +
' </p>\n' +
' </div>'
' </div>'+
'</a>'
}
$(".presentlist").html(html);
}
... ...
... ... @@ -201,7 +201,7 @@
</a>
<a href="{:url('portal/prize/prizeRecord')}" style="text-decoration:none;">
<div class="memberlist_item integralrecord">
<p class="searchintegral">积分记录</p>
<p class="searchintegral">兑换记录</p>
<p class="search_img">
<img src="__TMPL__/public/assets/images/img/row.png" alt="">
</p>
... ...