|
@@ -10,21 +10,32 @@ import {
|
|
|
Histogram as IconHistogram,
|
|
|
Search as IconSearch,
|
|
|
} from "@element-plus/icons-vue";
|
|
|
-import { zbkt_list, zbkt_recommend, grade_list,team_list,zbdg_add } from "./api";
|
|
|
+import {
|
|
|
+ zbkt_list,
|
|
|
+ zbkt_recommend,
|
|
|
+ grade_list,
|
|
|
+ team_list,
|
|
|
+ zbdg_add,
|
|
|
+} from "./api";
|
|
|
|
|
|
const https = ref(window.GLOBAL_CONFIG.api);
|
|
|
|
|
|
const nj = ref([]);
|
|
|
-grade_list().then(res=>{
|
|
|
+grade_list().then((res) => {
|
|
|
console.log(res);
|
|
|
- nj.value = [{ n: '全部', v: undefined }].concat(res.data.page_data.map(({ grade_name, grade_id }) => ({ v: grade_id, n: grade_name })))
|
|
|
-})
|
|
|
+ nj.value = [{ n: "全部", v: undefined }].concat(
|
|
|
+ res.data.page_data.map(({ grade_name, grade_id }) => ({
|
|
|
+ v: grade_id,
|
|
|
+ n: grade_name,
|
|
|
+ }))
|
|
|
+ );
|
|
|
+});
|
|
|
|
|
|
// const fc = ref([])
|
|
|
-team_list().then(res=>{
|
|
|
+team_list().then((res) => {
|
|
|
console.log(res.data);
|
|
|
// fc.value = [{ n: '全部', v: undefined }].concat(res.data.page_data.map(({ subject_name, grade_id }) => ({ v: grade_id, n: grade_name })))
|
|
|
-})
|
|
|
+});
|
|
|
// const nj = [
|
|
|
// { n: "全部", v: null },
|
|
|
// { n: "幼儿园", v: "20" },
|
|
@@ -285,21 +296,20 @@ const queryForm = ref({
|
|
|
|
|
|
// 直播课程添加
|
|
|
let addData = {
|
|
|
- kzkt_zbkc:{
|
|
|
- kz_title:'测试',
|
|
|
- kz_kcjj:'简介',
|
|
|
- grade_id:1,
|
|
|
- subject_id:1,
|
|
|
- kz_master_teacher:'demo2',
|
|
|
- kz_img:'',
|
|
|
- kz_kss:'',
|
|
|
-
|
|
|
- }
|
|
|
-}
|
|
|
-function addZb(){
|
|
|
- zbdg_add(addData).then(res=>{
|
|
|
+ kzkt_zbkc: {
|
|
|
+ kz_title: "测试",
|
|
|
+ kz_kcjj: "简介",
|
|
|
+ grade_id: 1,
|
|
|
+ subject_id: 1,
|
|
|
+ kz_master_teacher: "demo2",
|
|
|
+ kz_img: "",
|
|
|
+ kz_kss: "",
|
|
|
+ },
|
|
|
+};
|
|
|
+function addZb() {
|
|
|
+ zbdg_add(addData).then((res) => {
|
|
|
console.log(res);
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
let zbMsg = ref([]);
|
|
@@ -501,7 +511,7 @@ function hrefTo(href) {
|
|
|
:key="i"
|
|
|
>
|
|
|
<div class="w-264px h-full flex-none zhiboImg">
|
|
|
- <img :src="i.img" alt="" class="w-full h-full" />
|
|
|
+ <img :src="https + i.img" alt="" class="w-full h-full" />
|
|
|
</div>
|
|
|
<div class="p-2 pr-6 flex-auto flex flex-col">
|
|
|
<div class="flex justify-between w-full items-center py-1">
|
|
@@ -526,9 +536,9 @@ function hrefTo(href) {
|
|
|
</div>
|
|
|
|
|
|
<div class="text-sm py-1 flex-auto">
|
|
|
- <span>{{ i.nj }}</span>
|
|
|
+ <span>{{ i.grade_name }}</span>
|
|
|
<span class="mx-2">|</span>
|
|
|
- <span>{{ i.xk }}</span>
|
|
|
+ <span>{{ i.subject_name }}</span>
|
|
|
</div>
|
|
|
|
|
|
<div class="flex text-sm justify-between items-center">
|
|
@@ -583,7 +593,7 @@ function hrefTo(href) {
|
|
|
@click="handleTjzbClick(i)"
|
|
|
>
|
|
|
<div class="w-full flex-none">
|
|
|
- <img :src="i.img" alt="" class="w-full h-full" />
|
|
|
+ <img :src="https + i.img" alt="" class="w-full h-full" />
|
|
|
</div>
|
|
|
<div class="p-2">
|
|
|
{{ i.name }}
|
|
@@ -601,7 +611,7 @@ function hrefTo(href) {
|
|
|
@click="handlePhbClick(i)"
|
|
|
>
|
|
|
<img
|
|
|
- :src="i.img"
|
|
|
+ :src="https + i.img"
|
|
|
alt=""
|
|
|
class="w-full h-full overflow-hidden rounded-md"
|
|
|
/>
|
|
@@ -633,7 +643,7 @@ function hrefTo(href) {
|
|
|
>
|
|
|
<div class="w-110px flex-none relative">
|
|
|
<img
|
|
|
- :src="i.img"
|
|
|
+ :src="https + i.img"
|
|
|
alt=""
|
|
|
class="w-full h-full rounded-sm overflow-hidden"
|
|
|
/>
|
|
@@ -657,10 +667,10 @@ function hrefTo(href) {
|
|
|
</div>
|
|
|
<div class="px-1 leading-tight">
|
|
|
<p>{{ i.kcjj }}</p>
|
|
|
- <span class="time">{{i.time}}</span>
|
|
|
+ <span class="time">{{ i.starttime }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </template>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -671,11 +681,18 @@ function hrefTo(href) {
|
|
|
.border_b {
|
|
|
border-bottom: 1px solid #e4e6e8;
|
|
|
}
|
|
|
-.zhiboImg{
|
|
|
- img{
|
|
|
+.zhiboImg {
|
|
|
+ img {
|
|
|
border-radius: 7.5px;
|
|
|
}
|
|
|
}
|
|
|
+.time {
|
|
|
+ height: 30px;
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #9d9ab9;
|
|
|
+ line-height: 30px;
|
|
|
+}
|
|
|
.input {
|
|
|
height: 50px;
|
|
|
width: 500px;
|
|
@@ -696,10 +713,10 @@ function hrefTo(href) {
|
|
|
min-height: 320px;
|
|
|
max-height: 790px;
|
|
|
}
|
|
|
-.index{
|
|
|
+.index {
|
|
|
border-radius: 0 5px 0 0;
|
|
|
}
|
|
|
-.tuijian{
|
|
|
+.tuijian {
|
|
|
margin-right: 18px;
|
|
|
// margin-bottom: 0;
|
|
|
}
|