配置所有轮播图点击事件

main
hcj 10 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> <template>
<div class="teacherSign"> <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="container">
<div class="contitle">北京关键科技股份有限公司&河南科技大学</div> <div class="contitle">北京关键科技股份有限公司&河南科技大学</div>
<div class="contitle">2024软件可靠性测试暑期师资培训</div> <div class="contitle">2024软件可靠性测试暑期师资培训</div>

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

Loading…
Cancel
Save