Browse Source

首页视频排班加了几个

lizhen_gitee 6 months ago
parent
commit
d7ae7a9952

+ 4 - 0
application/admin/lang/zh-cn/videocate.php

@@ -12,6 +12,10 @@ return [
     'Showtype 2'   => '两行八个',
     'Showtype 3'   => '一行四个',
     'Showtype 4'   => '一行三个',
+    'Showtype 5'   => '一行一个',
+    'Showtype 6'   => '一行两个',
+    'Showtype 7'   => '一行五个',
+    'Showtype 8'   => '上一下二',
     'Is_zhuanti'   => '是否专题',
     'Is_zhuanti 1' => '是',
     'Is_zhuanti 0' => '否'

+ 1 - 1
application/admin/model/Videocate.php

@@ -47,7 +47,7 @@ class Videocate extends Model
 
     public function getShowtypeList()
     {
-        return ['1' => __('Showtype 1'), '2' => __('Showtype 2'), '3' => __('Showtype 3'), '4' => __('Showtype 4')];
+        return ['1' => __('Showtype 1'), '2' => __('Showtype 2'), '3' => __('Showtype 3'), '4' => __('Showtype 4'), '5' => __('Showtype 5'), '6' => __('Showtype 6'), '7' => __('Showtype 7'), '8' => __('Showtype 8')];
     }
 
     public function getIsZhuantiList()

+ 1 - 1
application/admin/view/videocate/add.html

@@ -21,7 +21,7 @@
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
+            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
         </div>
     </div>
     <div class="form-group">

+ 1 - 1
application/admin/view/videocate/edit.html

@@ -21,7 +21,7 @@
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
+            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
         </div>
     </div>
     <div class="form-group">

+ 1 - 1
public/assets/js/backend/videocate.js

@@ -30,7 +30,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'name', title: __('Name'), operate: 'LIKE'},
                         {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
                         {field: 'weigh', title: __('Weigh'), operate: false},
-                        {field: 'showtype', title: __('Showtype'), searchList: {"1":__('Showtype 1'),"2":__('Showtype 2'),"3":__('Showtype 3'),"4":__('Showtype 4')}, formatter: Table.api.formatter.normal},
+                        {field: 'showtype', title: __('Showtype'), searchList: {"1":__('Showtype 1'),"2":__('Showtype 2'),"3":__('Showtype 3'),"4":__('Showtype 4'),"5":__('Showtype 5'),"6":__('Showtype 6'),"7":__('Showtype 7'),"8":__('Showtype 8')}, formatter: Table.api.formatter.normal},
                         {field: 'is_zhuanti', title: __('Is_zhuanti'), searchList: {"1":__('Is_zhuanti 1'),"0":__('Is_zhuanti 0')}, formatter: Table.api.formatter.normal},
                         {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
                     ]