Przeglądaj źródła

添加步骤可以有图文课程

赵启卫 2 lat temu
rodzic
commit
2f9f8e8587

+ 1 - 0
application/admin/model/special/Special.php

xqd
@@ -318,6 +318,7 @@ class Special extends ModelBasic
                 $item['pink_money'] = 0;
             }
             if ($where['type'] == 4) $item['stream_name'] = LiveStudio::where('special_id', $item['id'])->value('stream_name');
+            if ($where['type'] == 100) $where['type'] = [1,2,3,4,5,6,7,8,9];
             $item['live_id'] = LiveStudio::where('special_id', $item['id'])->value('id');
             $item['is_play'] = 0;
             if ($item['live_id']) {

+ 3 - 2
application/admin/view/special/lecturer/index.php

xqd xqd
@@ -56,7 +56,8 @@
                 </div>
             </script>
             <script type="text/html" id="lecturer_name">
-                <p>{{d.lecturer_name}}/{{d.mer_id}}</p>
+                <p>{{d.lecturer_name}}</p>
+                <!-- /{{d.mer_id}} -->
             </script>
             <script type="text/html" id="lecturer_head">
                 <img width="50" height="50" lay-event='open_image' src="{{d.lecturer_head}}">
@@ -210,7 +211,7 @@
     }},"{:Url('lecturer_list')}",function (){
         return [
             {field: 'id', title: '编号', align: 'center'},
-            {field: 'lecturer_name', title: '名称/讲师编号',templet:'#lecturer_name',align: 'left'},
+            {field: 'lecturer_name', title: '名称',templet:'#lecturer_name',align: 'left'},
             // {field: 'is_source', title: '来源',align: 'center',templet:'#is_source'},
             {field: 'lecturer_head', title: '头像',templet:'#lecturer_head',align:'center',minWidth:84},
             {field: 'recommend', title: '推荐[yd:移动端]',templet:'#recommend',align: 'center',minWidth:100}, //,pc:PC端

+ 1 - 1
application/admin/view/study/plan/addcouse.php

xqd
@@ -48,7 +48,7 @@
             e.data[i].zytype = '0'; // 0代表视频
             courselist[e.data[i].id] = e.data[i];
         }
-    }},"{:Url('admin/special._special_type/list', ['special_type'=> 3])}", function (){
+    }},"{:Url('admin/special._special_type/list', ['special_type'=> 100])}", function (){
         return [
             {field: 'id', title: '课程ID', align: 'center', templet:'#couid'},
             {field: 'image', title: '封面图片',align: 'left', templet:'#couimg'},