Commit a8807da3 by 冷斌

设置

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