'修改bug'
This commit is contained in:
parent
d3d35e493f
commit
2e6c04690e
@ -178,7 +178,7 @@ class Banner extends \yii\db\ActiveRecord
|
|||||||
'cx_mch_id' => $cx_mch_id,
|
'cx_mch_id' => $cx_mch_id,
|
||||||
'status' => 1,
|
'status' => 1,
|
||||||
])
|
])
|
||||||
->select('id,url_type,app_id,app_ext,img_url,title,page_url,media,video_url')
|
->select('id,url_type,app_id,app_ext,img_url,title,page_url,media,video_url,type')
|
||||||
->orderBy(['sort' => SORT_ASC, 'created_at' => SORT_DESC])->asArray()->all();
|
->orderBy(['sort' => SORT_ASC, 'created_at' => SORT_DESC])->asArray()->all();
|
||||||
foreach ($list as $index => $item) {
|
foreach ($list as $index => $item) {
|
||||||
if ($item['media'] == self::MEDIA_IMG) {
|
if ($item['media'] == self::MEDIA_IMG) {
|
||||||
|
|||||||
@ -39,7 +39,7 @@ $type = Banner::type();
|
|||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">类型</label>
|
<label class="layui-form-label">类型</label>
|
||||||
<div class="layui-input-block media">
|
<div class="layui-input-block type">
|
||||||
<?php foreach ($type as $key => $val):?>
|
<?php foreach ($type as $key => $val):?>
|
||||||
<input type="radio" name="type" value="<?=$key?>"
|
<input type="radio" name="type" value="<?=$key?>"
|
||||||
title="<?=$val?>" <?= $model->type == $key ? 'checked=""' : ''?>>
|
title="<?=$val?>" <?= $model->type == $key ? 'checked=""' : ''?>>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user