配置所有轮播图点击事件

main
hcj 7 months ago
parent 0b2332cc47
commit 82bd30a042
  1. BIN
      dist.zip
  2. 2
      src/page/homepage/traininstitute/teacherSign.vue
  3. 40
      src/page/homepage/traininstitute/train.vue

Binary file not shown.

@ -1,6 +1,6 @@
<template>
<div class="teacherSign">
<img src="/assets/newtrain/teacherb.png" class="topbanner" alt="" />
<!-- <img src="/assets/newtrain/teacherb.png" class="topbanner" alt="" /> -->
<div class="container">
<div class="contitle">北京关键科技股份有限公司&河南科技大学</div>
<div class="contitle">2024软件可靠性测试暑期师资培训</div>

@ -104,7 +104,9 @@
<!-- 表格内容 -->
<template v-for="(it, index) in model34Data">
<div class="moedel3_content_r_griditem">{{ index + 1 }}</div>
<div class="moedel3_content_r_griditem moedel3_content_r_griditemmi">
<div
class="moedel3_content_r_griditem moedel3_content_r_griditemmi"
>
{{ it.con }}
</div>
<div class="moedel3_content_r_griditem">{{ it.num }}</div>
@ -593,7 +595,7 @@ import {
getSignUpList,
getClassList,
getTeacherList,
getSwiperImages
getSwiperImages,
} from "@/api/train/index.js";
import { mapGetters } from "vuex";
import { getCodeUserLogin } from "@/api/system/login";
@ -1013,7 +1015,10 @@ export default {
//
topClassList: [],
bottomClassList: [],
classInfo: null,
classInfo: {
classId: "",
classType: "",
},
//
activezcList: {
type: 0,
@ -1078,12 +1083,27 @@ export default {
},
itemClick(item) {
console.log("==========", item);
if (item.classType === "0") {
this.openSubmit();
}
if (item.classType == 3) {
this.$router.push("/college/teacherDetail");
}
//
if (item.classType == 2) {
this.classInfo.classId = item.entityId;
this.classInfo.classType = item.classType;
console.log(this.classInfo);
this.pcBaoming();
}
// 线
if (item.classType == 1) {
this.classInfo.classId = item.entityId;
this.classInfo.classType = item.classType;
this.pcBaoming();
console.log(this.classInfo)
}
},
//
pauseAnimation() {
@ -1132,9 +1152,9 @@ export default {
this.rowClick(this.topClassList[0]);
}
});
getSwiperImages().then(res=>{
this.indexbanner = res.data
})
getSwiperImages().then((res) => {
this.indexbanner = res.data;
});
},
mouseenterFn(i) {
@ -1374,12 +1394,15 @@ export default {
if (valid) {
if (this.token) {
//
console.log(this.classInfo);
console.log(this.classInfo.classId);
let data = {
mobile: this.formjj.mobile,
studentName: this.formjj.studentName,
trainClassId: this.classInfo.classId,
classType: this.classInfo.classType,
};
console.log(data);
await postBaomingNoToken(data).then((res) => {
if (res.data.code == 200) {
this.$message.success("报名成功");
@ -1429,6 +1452,7 @@ export default {
},
//
pcBaoming(item) {
console.log(item);
// if (!this.token) {
// this.$confirm(',', '', {
// confirmButtonText: '',
@ -1446,7 +1470,9 @@ export default {
// this.classInfo = item
// }
this.isPcshow = true;
this.classInfo = item;
if(item){
this.classInfo = item;
}
},
sendCode() {
if (!/^1[34578]\d{9}$/.test(this.formjj.mobile)) {

Loading…
Cancel
Save