修改bug

This commit is contained in:
yangjun 2023-06-27 08:40:45 +08:00
parent b8728ad43b
commit f1d7f38b33
2 changed files with 23 additions and 2 deletions

View File

@ -31,7 +31,7 @@
<a-tabs v-model:activeKey="activeKey" type="card" @change="kclbCard">
<a-tab-pane key="1">
<template #tab>
<div style="font-weight: 600;font-size: 16px;">正在上课</div>
<div style="font-weight: 600;font-size: 16px;">{{zzskTitle}}</div>
</template>
<kclbZzsk ref="zzskModeal" @jrkclb-load="jrkclbLoad"></kclbZzsk>
</a-tab-pane>
@ -88,6 +88,7 @@
import StudentJlrkbPage from '/@/views/site/studentJlrkb/index.vue';
import { getUserSf,getSysConfig } from '/@/views/site/utils/index';
import { defHttp } from '/@/utils/http/axios';
const activeKey = ref('1');
const zzskModeal = ref();
@ -95,7 +96,10 @@
const rkbModeal = ref();
const yykcModeal = ref();
const maxClassName = ref<any>({});
const zzskTitle = ref('正在上课');
const queryParam = ref<any>({});
const jclist = (queryParam) => defHttp.get({ url: '/kcJieci/kcJieci/getIndexJcList', params:queryParam });
//
// window.onresize = () => {
// return (() => {
@ -125,6 +129,23 @@
// maxClassName.value = {width:width+"px"}
// }
jclist(queryParam.value).then(res=>{
var list = res
let sjsksj = list[0].sjsksj
console.log(`🚀 ~ file: index.vue:135 ~ jclist ~ sjsksj:`, sjsksj)
if(sjsksj){
let nowDate = new Date();
let nowDate2 = new Date(sjsksj);
console.log(`🚀 ~ file: index.vue:140 ~ jclist ~ nowDate.getTime():`, nowDate.getTime(),nowDate2.getTime())
if(nowDate.getTime()<nowDate2.getTime()){
zzskTitle.value = "即将上课";
}else{
zzskTitle.value = "正在上课";
}
}else{
zzskTitle.value = "正在上课";
}
})
});
/**

View File

@ -28,7 +28,7 @@
</a-col>
<a-col :span="24">
<div style="width:100%;text-align: center;font-weight: 700;">
线下上课地点
线下上课地点
</div>
</a-col>
<a-col :span="24">