bzkf3 2 years ago
parent
commit
9e5d2e685b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/pages/stxk/jz/index.vue

+ 2 - 2
src/pages/stxk/jz/index.vue

@@ -34,7 +34,7 @@ getTeamInfo.then(
 )
 
 function test(item) {
-  return JSON.parse(item.kk_teacher||'{}')?.name ?? '-'
+  return JSON.parse(item.kk_teacher || '{}')?.name ?? '-'
 }
 </script>
 
@@ -48,7 +48,7 @@ function test(item) {
 
   <van-skeleton :row="3" :loading="loading">
     <remote-list url="/khfw/kcgl/index"
-      :d="{ token: '68c6OFuYuSF4fmdxw4PY23FwKzJYqWGLq9ynZXJRIeo2Apw3DUMoNCdFNwqJyzMFCFcI7K4Zu5uffHbuaAWm0IbQvvo', kxq_code:'2021202201', grade: '7' }">
+      :d="{ token: child.token, kxq_code, grade: children?.map(child => child.cm_info.map(({ grade }) => grade).join(','))?.join(',') }">
       <template #default="{ row: item }">
         <!--  :desc="item.desc" -->
         <van-card :price="item.kk_kcfy" :desc="`讲师:${test(item)}`" :title="item.kk_name" :thumb="item.kk_img"