优化+宣传页

main
lijingyu007 7 months ago
parent f1ee6a22ee
commit 15a202ede3
  1. 2
      .env.development
  2. 17
      src/api/train/index.js
  3. 83
      src/page/homepage/traininstitute/teacherDetail.vue
  4. 4
      src/page/homepage/traininstitute/teacherSign.vue
  5. 11
      src/page/homepage/traininstitute/train.vue
  6. 3
      src/page/personalpage/myBm/index.vue

@ -5,8 +5,8 @@ ENV = 'development'
VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
# VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999'
# VUE_APP_BASE_TARGET = 'http://172.16.36.180:9999'
# VUE_APP_BASE_TARGET = 'http://172.16.36.176:9998'

@ -63,10 +63,25 @@ export function getTeacherList() {
})
}
// 师资力量表单获取
// 师资力量表单获取-不需要token
export function getTeacherForm() {
return request({
url: `/train/trainTeacherClass`,
method: 'get',
headers: {
isToken: false
}
})
}
// 师资报名-不需要token
export function BaomingNoToken(data) {
return request({
url: '/train/training/offApply',
method: 'post',
data,
headers: {
isToken: false
}
})
}

@ -130,14 +130,14 @@
<div class="modellineLR2TL">培训收费</div>
<div class="modellineLR2TM">
<div class="modellineLRAcom">2980/含考证费</div>
<div class="modellineLRAcom">汇款账户北京关键科技股份有限公司</div>
<div class="modellineLRAcom">开户银行招商银行北京分行大屯路支行</div>
<div class="modellineLRAcom">银行账户8661 8062 8710 001</div>
<div class="modellineLRAcom">汇款账户西安关键软件科技有限公司</div>
<div class="modellineLRAcom">开户银行招商银行股份有限公司西安电子二路支行</div>
<div class="modellineLRAcom">银行账户129907883710606</div>
</div>
<div class="modellineLR2TB">
<!-- <div class="modellineLR2TB">
<img src="/assets/newtrain/teainfo5.png" alt="" />
<div class="modellineLRAcom modellineLRAcom1">扫码查看发票详情信息</div>
</div>
</div> -->
</div>
<div class="modellineLR2B">
<div class="modellineLR2TL">备注</div>
@ -157,21 +157,26 @@
<div class="modellineLRAcom">
<span>报到地点</span>润华君悦酒店本次培训食宿统一安排费用自理不安排接站
</div>
<div class="modellineLRAcom">
<!-- <div class="modellineLRAcom">
住宿费单间330元//人含三餐标间230元//人含三餐暑期资源有限优先选择
</div>
</div> -->
</div>
</div>
<div class="modelConT">报名方式及联系人</div>
<div class="modellineL">
<div class="modellineLL modellineLL3">
<div class="modellineLL modellineLL3" style="height: 250px">
<div class="modellineLLCricle modellineLLCricle1"></div>
</div>
<div class="modellineLR3">
<div class="modellineLRAcom"><span>报名方式</span>点击右侧报名入口</div>
<div class="modellineLRAcom">
<span> 项目负责人</span>牛中东 13683248482同微信项目联系人王博洋 1521099799
<span>报名方式1</span><span @click="gosign" class="alink">点击报名</span>
</div>
<div class="modellineLRAcom">
<span>报名方式2</span><span class="alink1">扫描右侧二维码报名</span>
</div>
<div class="modellineLRAcom"><span> 项目负责人</span>牛中东 13683248482同微信</div>
<div class="modellineLRAcom"><span> 项目联系人</span>王博洋 1521099799</div>
<img class="posiimg" src="/assets/newtrain/teainfo5.png" alt="" />
</div>
</div>
</div>
@ -205,30 +210,30 @@
</template>
<script>
import { mapGetters } from 'vuex'
// import { mapGetters } from 'vuex'
export default {
data() {
return {}
},
computed: {
...mapGetters(['token']),
// ...mapGetters(['token']),
},
created() {},
methods: {
gosign() {
if (!this.token) {
this.$confirm('您未登录,请您先去登录', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$router.push('/login?type=log')
})
.catch(() => {})
} else {
this.$router.push('/college/teacherSign')
}
// if (!this.token) {
// this.$confirm(',', '', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning',
// })
// .then(() => {
// this.$router.push('/login?type=log')
// })
// .catch(() => {})
// } else {
// }
this.$router.push('/college/teacherSign')
},
},
}
@ -388,6 +393,17 @@ export default {
.modellineLRAcom span {
font-weight: 800;
}
.modellineLRAcom .alink {
cursor: pointer;
font-weight: 500;
color: #1b68de;
}
.modellineLRAcom .alink1 {
cursor: pointer;
font-weight: 500;
color: #fb6827;
}
.modellineLRAcom1 {
font-size: 15px;
}
@ -425,6 +441,11 @@ export default {
padding: 25px 0;
box-sizing: border-box;
}
.modellineLRAcomflex {
display: flex;
align-items: flex-start;
margin: 10px 0;
}
.modellineLR2TL {
font-size: 16px;
color: #4d4d4d;
@ -450,14 +471,22 @@ export default {
}
.modellineLR3 {
width: 1087px;
height: 110px;
background: #f8f9fa;
border-radius: 6px;
padding: 0 40px;
padding: 20px 40px;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
}
.posiimg {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 50px;
width: 114px;
height: 108px;
}
.fixBtn {
width: 160px;

@ -50,7 +50,7 @@
</template>
<script>
import { getTeacherForm, postBaoming } from '@/api/train'
import { getTeacherForm, BaomingNoToken } from '@/api/train'
export default {
data() {
@ -97,7 +97,7 @@ export default {
classType: '3',
data: JSON.stringify(newData),
}
postBaoming(data).then((res) => {
BaomingNoToken(data).then((res) => {
if (res.data.code == 200) {
this.$message.success('报名成功')
this.form = {}

@ -380,6 +380,7 @@
</div>
</el-form-item>
<div v-if="calltext" class="infoadad" style="color: #e9941aff">{{ calltext }}</div>
<div v-if="timetext" class="infoadad" style="color: #000000">{{ timetext }}</div>
<div v-else class="infoadad">培训班代号由校企合作老师统一发送请联系培训老师</div>
<!-- <el-form-item label="" prop="homeCollege">
<div class="rowboxi">
@ -471,6 +472,13 @@ export default {
if (res.total == 1) {
let schooldata = res.rows[0]
this.calltext = schooldata.schoolName + '-' + schooldata.trainClassName
if (schooldata.trainStartTime && schooldata.trainEndTime) {
this.timetext =
'课程周期:'+schooldata.trainStartTime.slice(0,10) +
'--' +
schooldata.trainEndTime.slice(0,10)
}
// console.log('calltext',calltext)
// callback(calltext)
callback()
@ -495,6 +503,7 @@ export default {
timerScroll: null,
activeVal: 0,
calltext: '',
timetext: '',
isshowSubmitDialog: false,
unlineData: [
{
@ -1169,7 +1178,7 @@ export default {
trainClassId: this.classInfo.classId,
classType: this.classInfo.classType,
}
await postBaoming(data).then((res) => {
await postBaomingNoToken(data).then((res) => {
if (res.data.code == 200) {
this.$message.success('报名成功')
this.isPcshow = false

@ -22,7 +22,8 @@
"
>
<p style="color: #666666">报名时间{{ dateFormat(new Date(item.registrationTime)) }}</p>
<p style="color: #333333">开课时间{{ dateFormat(new Date(item.trainStartTime), 'yyyy-MM-dd') }}</p>
<p style="color: #333333">开课日期{{ dateFormat(new Date(item.trainStartTime), 'yyyy-MM-dd') }}</p>
<p style="color: #333333">结课时间{{ dateFormat(new Date(item.trainEndTime), 'yyyy-MM-dd') }}</p>
</div>
<div class="unloadFire" v-if="item.attachment" @click="downLoad(item)">资料下载</div>
</div>

Loading…
Cancel
Save