Commit a8807da3 by 冷斌

设置

parent ca8120af
......@@ -206,7 +206,9 @@ class HomeAction extends UserAction
if ($data['data']) {
$data['data'] = $this->haddleData($data['data'], $table);
foreach ($data['data'] as $k => $v) {
$data['data'][$k]['cover_image'] = getCover($v['cover'],580,320);
if (!empty($v['cover'])) {
$data['data'][$k]['cover_image'] = getCover($v['cover'],580,320);
}
}
}
$this->assign("orderby", $orderby);
......@@ -355,6 +357,7 @@ class HomeAction extends UserAction
$val['cover'] = $video['cover'];
$val['course_id'] = $val['video_id'];
$val['video_name'] = mStr($video['video_title'], 20);
$val['video_title'] = $video['video_title'];
$val['course_type'] = 1;
if ($val['course_hour_id']) {
......
......@@ -38,7 +38,7 @@
<van-image height="72" width="128" fit="cover" :src="showImage(item)"></van-image>
<div class="layout_v_b weight_full" style="margin-left: 0.75rem;">
<span class="text_14_600 color_333333">{{item['video_name']}}</span>
<span class="text_14_600 color_FF3B3B">¥100</span>
<span class="text_14_600 color_FF3B3B">¥{{item['price']}}</span>
</div>
</div>
<div class="divider" style="margin-top: 1rem;"></div>
......@@ -59,14 +59,14 @@
</div>
<!-- 不带图 -->
<div v-if="!showImage(item)" class="order_image_item layout_v">
<span style="margin-left: 0.75rem;margin-right: 0.75rem;" class="text_14_600 color_333333">[班级课程]透视理论01——认识透视</span>
<span style="margin-left: 0.75rem;margin-right: 0.75rem;" class="text_14_600 color_333333">{{item['video_title']}}</span>
<span style="margin-left: 0.75rem;" class="text_14_600 color_FF3B3B"
style="margin-top: 0.5rem;">¥100</span>
<div class="divider" style="margin-top: 1rem;"></div>
<div class="order_action_bar layout_h_b">
<div class="weight_full layout_h self_center">
<span class="text_12_400 color_333333">应付款:</span>
<span class="text_14_600 color_FF3B3B">¥100</span>
<span class="text_14_600 color_FF3B3B">¥{{item['pay_price']}}</span>
</div>
<div class="layout_h_r">
<div v-if="showSolid(index)" class="order_action_solid self_center"
......
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