Ver código fonte

调整学分

赵启卫 2 anos atrás
pai
commit
fa5a2c5466

+ 4 - 2
application/admin/controller/special/SpecialType.php

xqd xqd
@@ -311,7 +311,8 @@ class SpecialType extends AuthController
             ['file_name', ''],
             ['is_alone', 0],
             ['brokerage_ratio', 0],
-            ['brokerage_two', 0]
+            ['brokerage_two', 0],
+            ['xuefen', 0]
         ]);
 
         if (!$data['subject_id']) return Json::fail('请选择分类');
@@ -1068,7 +1069,8 @@ class SpecialType extends AuthController
             ['pay_type', 0],//支付方式:免费、付费、密码
             ['is_alone', 0],
             ['brokerage_ratio', 0],
-            ['brokerage_two', 0]
+            ['brokerage_two', 0],
+            ['xuefen', 0]
         ]);
         $data['type'] = $special_type;
         $data['check_source_sure'] = json_decode($data['subjectIds']);

+ 1 - 0
application/admin/view/special/audio_video/add.php

xqd
@@ -448,6 +448,7 @@
                     check_source_sure: [],
                     check_store_sure: [],
                     sort_order:special.sort_order || 0,
+                    xuefen:special.xuefen || 0,
                     is_alone:special.pay_type == 1 ? (special.is_alone == 1 ? 1 : 0) : 0,
                     brokerage_ratio:special.pay_type == 1 ? (special.brokerage_ratio || 0) : 0,
                     brokerage_two:special.pay_type == 1 ? (special.brokerage_two || 0) : 0

+ 1 - 0
application/admin/view/special/column/add.php

xqd
@@ -463,6 +463,7 @@
                     check_source_sure: [],
                     check_store_sure: [],
                     sort_order:special.sort_order || 0,
+                    xuefen:special.xuefen || 0,
                     is_alone:special.pay_type == 1 ? (special.is_alone == 1 ? 1 : 0) : 0,
                     brokerage_ratio:special.pay_type == 1 ? (special.brokerage_ratio || 0) : 0,
                     brokerage_two:special.pay_type == 1 ? (special.brokerage_two || 0) : 0

+ 10 - 0
application/admin/view/special/image_text/add.php

xqd xqd
@@ -276,6 +276,15 @@
                                 <div class="layui-form-mid">天</div>
                                 <div class="layui-form-mid layui-word-aux">有效期为用户购买后可以观看时间,0为时间不限;</div>
                             </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">学分:</label>
+                                <div class="layui-input-inline">
+                                    <input type="number" name="xuefen" lay-verify="number" v-model="formData.xuefen"
+                                           autocomplete="off" class="layui-input" min="0" max="99999">
+                                </div>
+                                <div class="layui-form-mid">分</div>
+                                <div class="layui-form-mid layui-word-aux">购买学习完成后课获得学分;</div>
+                            </div>
                             <div class="layui-form-item">
                                 <label class="layui-form-label">仅会员可见:</label>
                                 <div class="layui-input-block">
@@ -487,6 +496,7 @@
                     check_source_sure: [],
                     check_store_sure: [],
                     sort_order:special.sort_order || 0,
+                    xuefen:special.xuefen || 0,
                     is_alone: special.pay_type == 1 ? (special.is_alone == 1 ? 1 : 0) : 0,
                     brokerage_ratio: special.pay_type == 1 ? (special.brokerage_ratio || 0) : 0,
                     brokerage_two: special.pay_type == 1 ? (special.brokerage_two || 0) : 0

+ 1 - 0
application/admin/view/special/live/add.php

xqd
@@ -522,6 +522,7 @@
                     member_money: special.member_money || 0.00,
                     check_source_sure: [],
                     check_store_sure: [],
+                    xuefen:special.xuefen || 0,
                     is_alone:special.pay_type == 1 ? (special.is_alone == 1 ? 1 : 0) : 0,
                     brokerage_ratio:special.pay_type == 1 ? (special.brokerage_ratio || 0) : 0,
                     brokerage_two:special.pay_type == 1 ? (special.brokerage_two || 0) : 0

+ 1 - 0
application/admin/view/special/special_single/add.php

xqd
@@ -466,6 +466,7 @@
                     pay_type: special.pay_type == 1 ? 1 : 0,
                     member_pay_type: special.member_pay_type == 1 ? 1 : 0,
                     member_money: special.member_money || 0.00,
+                    xuefen:special.xuefen || 0,
                     content: special.singleProfile ? (special.singleProfile.content || '') : '',
                     link:special.singleProfile ? (special.singleProfile.link || '') : '',
                     videoId:special.singleProfile ? (special.singleProfile.videoId || '') : '',