报名表验证

main
hcj 5 months ago
parent 87a2cf304b
commit b2e67f9a15
  1. 10
      pages/index/testtraining/teacherDetail.vue
  2. 14
      pages/index/testtraining/teacherSign.vue
  3. 26
      pages/index/testtraining/testtraining.vue

@ -234,11 +234,15 @@
</view>
<view class="rightBox">
<view class="rightBox1">
<view class="rightBoxRow">
<!-- <view class="rightBoxRow">
<text>报名方式1</text><text style="cursor: pointer;color: #1B68DE;"
@click="gosign">点击报名</text>
</view> -->
<view class="rightBoxRow">
<text>报名方式</text><text style="cursor: pointer;color: #1B68DE;"
@click="gosign">点击报名</text>
</view>
<view class="rightBoxRow rightBoxRowflex">
<!-- <view class="rightBoxRow rightBoxRowflex">
<text>报名方式2</text>
<view class="" style="display: flex;flex-direction: column;">
<text style="cursor: pointer;color: #FB6827;"
@ -248,7 +252,7 @@
src="http://image.bjkeyware.com/static/index/renliwb/627teacherlogo6.png" mode="">
</image>
</view>
</view>
</view> -->
<view class="rightBoxRow">
<text>项目负责人</text>牛中东 13683248482同微信
</view>

@ -1,6 +1,6 @@
<template>
<view class="boxsxx">
<image src="http://image.bjkeyware.com/static/index/renliwb/627teacherbg.png" class="topbg" mode=""></image>
<!-- <image src="http://image.bjkeyware.com/static/index/renliwb/627teacherbg.png" class="topbg" mode=""></image> -->
<view class="tscontent">
<view class="contitle">北京关键科技股份有限公司&河南科技大学</view>
@ -20,7 +20,7 @@
<u-form :model="form" ref="uForm" label-position="top" class="uformclass" :rules="rules">
<u-form-item v-for="(it,index) in detailForm" :key="it.key" :label="`${index + 1}.${it[it.key]}`">
<u-input v-if="it.type == 'input'" border v-model="form[it.key]" />
<u-radio-group v-if="it.type == 'radio'" wrap v-model="form[it.key]">
<u-radio-group v-if="it.type == 'radio'" wrap v-model="form[it.key]" >
<u-radio v-for="(item, i) in it.value" :key="item" :name="item">
{{ item }}
</u-radio>
@ -53,6 +53,7 @@
this.getformDe()
},
onReady() {
this.$refs.uForm.setRules(this.rules);
},
methods: {
getformDe() {
@ -95,12 +96,21 @@
// rules,
this.detailForm.forEach(it => {
if (!this.form[it.key]) {
console.log("不完整");
return uni.showToast({
title: '请将报名表填写完整',
icon: 'none'
})
}
})
const toggle = this.form.some(item=>{return toggle === ""})
if(toggle){
uni.showToast({
title: '请将报名表填写完整',
icon: 'none'
})
return
}
// json
const newData = JSON.parse(JSON.stringify(this.detailForm))
newData.forEach((it) => {

@ -841,7 +841,10 @@
//
tips: '',
isPCshow: false,
classInfo: {},
classInfo: {
classId:"",
classType:""
},
jjrules: {
studentName: [{
required: true,
@ -1008,9 +1011,13 @@
getSwiperImages(){
this.http.quickGet(`/train/banners?type=app`).then(res => {
this.swipelist = res.data.data.map(item=>{
console.log(item);
return {
'classType':item.classType,
'image':this.http.baseUrl + item.filePath
'image':this.http.baseUrl + item.filePath,
'classId':item.entityId,
'classType':item.classType,
}
})
console.log(this.swipelist);
@ -1018,6 +1025,7 @@
},
bgClick(e) {
const type = this.swipelist[e].classType
const item = this.swipelist[e]
console.log(e);
console.log(this.swipelist);
console.log(type);
@ -1029,6 +1037,16 @@
url: '/pages/index/testtraining/teacherDetail'
})
}
if(type == 1){
this.classInfo.classId = item.entityId
this.classInfo.classType = item.classType
this.jjOpen()
}
if(type == 2){
this.classInfo.classId = item.entityId
this.classInfo.classType = item.classType
this.jjOpen()
}
},
onKeyboardHeightChange(res) {
const {
@ -1210,8 +1228,10 @@
// this.isPCshow = true
// this.classInfo = it
// }
this.isPCshow = true
if(it){
this.classInfo = it
}
this.isPCshow = true
},
//
jjbaoming() {

Loading…
Cancel
Save