Explorar o código

添加提示文件

lex %!s(int64=2) %!d(string=hai) anos
pai
achega
2d0c2f6fb3

+ 4 - 1
src/teacher/video-class/class-info.tsx

@@ -188,7 +188,10 @@ export default defineComponent({
           <p>
             课程组总收入<span>{this.calcRatePrice}</span>元/人
           </p>
-          <p>您的课程收入将在课程结束后结算到您的账户中</p>
+          <p>
+            您的课程收入将在学员购买{createState.video_account_period}
+            天后结算到您的账户中
+          </p>
         </div>
 
         <ColFieldGroup>

+ 23 - 7
src/teacher/video-class/create.tsx

@@ -94,15 +94,31 @@ export default defineComponent({
   },
   async mounted() {
     try {
-      const sysConfig = await request.get(
-        '/api-teacher/sysConfig/queryByParamName',
-        {
+      // const sysConfig = await request.get(
+      //   '/api-teacher/sysConfig/queryByParamName',
+      //   {
+      //     params: {
+      //       paramName: 'video_lesson_service_fee'
+      //     }
+      //   }
+      // )
+      request
+        .get('/api-teacher/sysConfig/queryByParamNameList', {
           params: {
-            paramName: 'video_lesson_service_fee'
+            paramNames: 'video_lesson_service_fee,video_account_period'
           }
-        }
-      )
-      createState.rate = sysConfig.data.paramValue
+        })
+        .then((res: any) => {
+          console.log(res, 'res')
+          const data = res.data || []
+          data.forEach((item: any) => {
+            if (item.paramName === 'video_lesson_service_fee') {
+              createState.rate = item.paramValue
+            } else if (item.paramName === 'video_account_period') {
+              createState.video_account_period = item.paramValue
+            }
+          })
+        })
     } catch {}
   },
   render() {

+ 1 - 0
src/teacher/video-class/createState.tsx

@@ -17,6 +17,7 @@ export const createState = reactive({
   tabIndex: 1,
   loadingStatus: false,
   rate: 0, // 手续费
+  video_account_period: 0, // 视频课收款账期
   subjectList: [], // 声部列表
   templateList: [
     'https://ks3-cn-beijing.ksyuncs.com/video-course/1657853010619green.png',