|
@@ -191,33 +191,32 @@
|
|
<van-field type="tel" @blur='checkchangePhone' maxlength="11" minlength="11" label="联系电话(直接监护人)"
|
|
<van-field type="tel" @blur='checkchangePhone' maxlength="11" minlength="11" label="联系电话(直接监护人)"
|
|
v-model="stu.phone" name="phone" :rules="[{ pattern, message: '输入监护人手机号码有误' }]" placeholder="请输入监护人手机号码">
|
|
v-model="stu.phone" name="phone" :rules="[{ pattern, message: '输入监护人手机号码有误' }]" placeholder="请输入监护人手机号码">
|
|
</van-field>
|
|
</van-field>
|
|
- <van-field label="学员姓名" :rules="[{ validator, message }]" @click="onCheckInsertPhone" name="username"
|
|
|
|
- v-model="stu.username" placeholder="请填写学员真实姓名" :disabled='checkPhone'></van-field>
|
|
|
|
- <van-field label="性别" name="sex" :disabled='checkPhone' @click="onCheckInsertPhone"
|
|
|
|
- :rules="[{ required: true, message: '请选择性别' }]">
|
|
|
|
|
|
+ <van-field label="学员姓名" :rules="[{ validator, message }]" name="username" v-model="stu.username"
|
|
|
|
+ placeholder="请填写学员真实姓名"></van-field>
|
|
|
|
+ <van-field label="性别" name="sex" :rules="[{ required: true, message: '请选择性别' }]">
|
|
<template #input>
|
|
<template #input>
|
|
- <van-radio-group v-model="stu.sex" :disabled='checkPhone' checked-color="#9A64FF" direction="horizontal">
|
|
|
|
- <van-tag size="large" type="primary" :color="!(stu.sex === 1) || checkPhone ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
- :text-color="!(stu.sex === 1) || checkPhone ? '#AAA' : '#FFF'" class="radioSection" round>
|
|
|
|
|
|
+ <van-radio-group v-model="stu.sex" checked-color="#9A64FF" direction="horizontal">
|
|
|
|
+ <van-tag size="large" type="primary" :color="!(stu.sex === 1) ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
+ :text-color="!(stu.sex === 1) ? '#AAA' : '#FFF'" class="radioSection" round>
|
|
<van-radio class="radioItem" :name="1"></van-radio>男生
|
|
<van-radio class="radioItem" :name="1"></van-radio>男生
|
|
</van-tag>
|
|
</van-tag>
|
|
- <van-tag size="large" type="primary" :color="!(stu.sex === 0) || checkPhone? '#EAEAEA' : '#64A9FF'"
|
|
|
|
- :text-color="!(stu.sex === 0) || checkPhone? '#AAA' : '#FFF'" class="radioSection" round>
|
|
|
|
|
|
+ <van-tag size="large" type="primary" :color="!(stu.sex === 0) ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
+ :text-color="!(stu.sex === 0) ? '#AAA' : '#FFF'" class="radioSection" round>
|
|
<van-radio class="radioItem" :name="0"></van-radio>女生
|
|
<van-radio class="radioItem" :name="0"></van-radio>女生
|
|
</van-tag>
|
|
</van-tag>
|
|
</van-radio-group>
|
|
</van-radio-group>
|
|
</template>
|
|
</template>
|
|
</van-field>
|
|
</van-field>
|
|
- <van-field label="在读年级" :disabled='checkPhone' @click="onCheckInsertPhone" v-model="stu.currentGrade" readonly
|
|
|
|
- name="currentGrade" :rules="[{ required: true, message: '请选择在读年级', trigger: 'onChange' }]"
|
|
|
|
- @click="pickerChange" placeholder="请选择在读年级">
|
|
|
|
|
|
+ <van-field label="在读年级" v-model="stu.currentGrade" readonly name="currentGrade"
|
|
|
|
+ :rules="[{ required: true, message: '请选择在读年级', trigger: 'onChange' }]" @click="pickerChange"
|
|
|
|
+ placeholder="请选择在读年级">
|
|
<template #right-icon>
|
|
<template #right-icon>
|
|
<van-icon name="arrow" :color="checkPhone ? '#aaa' : '#323233'" size="16"></van-icon>
|
|
<van-icon name="arrow" :color="checkPhone ? '#aaa' : '#323233'" size="16"></van-icon>
|
|
</template>
|
|
</template>
|
|
</van-field>
|
|
</van-field>
|
|
- <van-field label="所在班级" :disabled='checkPhone' @click="onCheckInsertPhone" v-model="stu.currentClass" readonly
|
|
|
|
- name="currentClass" :rules="[{ required: true, message: '请选择所在班级', trigger: 'onChange' }]"
|
|
|
|
- @click="pickerChange1" placeholder="请选择所在班级">
|
|
|
|
|
|
+ <van-field label="所在班级" v-model="stu.currentClass" readonly name="currentClass"
|
|
|
|
+ :rules="[{ required: true, message: '请选择所在班级', trigger: 'onChange' }]" @click="pickerChange1"
|
|
|
|
+ placeholder="请选择所在班级">
|
|
<template #right-icon>
|
|
<template #right-icon>
|
|
<van-icon name="arrow" :color="checkPhone ? '#aaa' : '#323233'" size="16"></van-icon>
|
|
<van-icon name="arrow" :color="checkPhone ? '#aaa' : '#323233'" size="16"></van-icon>
|
|
</template>
|
|
</template>
|
|
@@ -225,50 +224,46 @@
|
|
</van-cell-group>
|
|
</van-cell-group>
|
|
|
|
|
|
<van-cell-group inset class="cell-group">
|
|
<van-cell-group inset class="cell-group">
|
|
- <van-field label="选报声部" :disabled='checkPhone' @click="onCheckInsertPhone" v-model="stu.registerSubjectId"
|
|
|
|
- readonly name="registerSubjectId" :rules="[{ required: true, message: '请选择选报声部', trigger: 'onChange' }]"
|
|
|
|
- @click="pickerChange2" placeholder="请选择选报声部">
|
|
|
|
|
|
+ <van-field label="选报声部" v-model="stu.registerSubjectId" readonly name="registerSubjectId"
|
|
|
|
+ :rules="[{ required: true, message: '请选择选报声部', trigger: 'onChange' }]" @click="pickerChange2"
|
|
|
|
+ placeholder="请选择选报声部">
|
|
<template #right-icon>
|
|
<template #right-icon>
|
|
<van-icon name="arrow" :color="checkPhone ? '#aaa' : '#323233'" size="16"></van-icon>
|
|
<van-icon name="arrow" :color="checkPhone ? '#aaa' : '#323233'" size="16"></van-icon>
|
|
</template>
|
|
</template>
|
|
</van-field>
|
|
</van-field>
|
|
|
|
|
|
- <van-field label="乐器准备方式" :disabled='checkPhone' @click="onCheckInsertPhone" name="instrumentsPrepareMode"
|
|
|
|
- :rules="[{ required: true, message: '请选择乐器准备方式' }]">
|
|
|
|
|
|
+ <van-field label="乐器准备方式" name="instrumentsPrepareMode" :rules="[{ required: true, message: '请选择乐器准备方式' }]">
|
|
<template #input>
|
|
<template #input>
|
|
- <van-radio-group v-model="stu.instrumentsPrepareMode" :disabled='checkPhone' checked-color="#9A64FF"
|
|
|
|
- direction="horizontal">
|
|
|
|
|
|
+ <van-radio-group v-model="stu.instrumentsPrepareMode" checked-color="#9A64FF" direction="horizontal">
|
|
<van-tag size="large" type="primary"
|
|
<van-tag size="large" type="primary"
|
|
- :color="!(stu.instrumentsPrepareMode === 'GROUP_PURCHASE') || checkPhone ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
- :text-color="!(stu.instrumentsPrepareMode === 'GROUP_PURCHASE') || checkPhone ? '#AAA' : '#FFF'"
|
|
|
|
- class="radioSection" round>
|
|
|
|
|
|
+ :color="!(stu.instrumentsPrepareMode === 'GROUP_PURCHASE') ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
+ :text-color="!(stu.instrumentsPrepareMode === 'GROUP_PURCHASE') ? '#AAA' : '#FFF'" class="radioSection"
|
|
|
|
+ round>
|
|
<van-radio class="radioItem" name="GROUP_PURCHASE"></van-radio>团购
|
|
<van-radio class="radioItem" name="GROUP_PURCHASE"></van-radio>团购
|
|
</van-tag>
|
|
</van-tag>
|
|
<van-tag size="large" type="primary"
|
|
<van-tag size="large" type="primary"
|
|
- :color="!(stu.instrumentsPrepareMode === 'ONESELF') || checkPhone ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
- :text-color="!(stu.instrumentsPrepareMode === 'ONESELF') || checkPhone ? '#AAA' : '#FFF'"
|
|
|
|
- class="radioSection" round>
|
|
|
|
|
|
+ :color="!(stu.instrumentsPrepareMode === 'ONESELF') ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
+ :text-color="!(stu.instrumentsPrepareMode === 'ONESELF') ? '#AAA' : '#FFF'" class="radioSection" round>
|
|
<van-radio class="radioItem" name="ONESELF"></van-radio>自备
|
|
<van-radio class="radioItem" name="ONESELF"></van-radio>自备
|
|
</van-tag>
|
|
</van-tag>
|
|
</van-radio-group>
|
|
</van-radio-group>
|
|
</template>
|
|
</template>
|
|
</van-field>
|
|
</van-field>
|
|
|
|
|
|
- <van-field label="乐团学习系统准备方式" :disabled='checkPhone' @click="onCheckInsertPhone"
|
|
|
|
- name="learningSystemPrepareMode" :rules="[{ required: true, message: '请选择乐团学习系统准备方式' }]">
|
|
|
|
|
|
+ <van-field label="乐团学习系统准备方式" name="learningSystemPrepareMode"
|
|
|
|
+ :rules="[{ required: true, message: '请选择乐团学习系统准备方式' }]">
|
|
<template #input>
|
|
<template #input>
|
|
- <van-radio-group v-model="stu.learningSystemPrepareMode" :disabled='checkPhone' checked-color="#9A64FF"
|
|
|
|
- direction="horizontal">
|
|
|
|
|
|
+ <van-radio-group v-model="stu.learningSystemPrepareMode" checked-color="#9A64FF" direction="horizontal">
|
|
<!-- :color="checkPhone ? '#ccc': '#9A64FF'" -->
|
|
<!-- :color="checkPhone ? '#ccc': '#9A64FF'" -->
|
|
<van-tag size="large" type="primary"
|
|
<van-tag size="large" type="primary"
|
|
- :color="!(stu.learningSystemPrepareMode === 'GROUP_PURCHASE') || checkPhone ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
- :text-color="!(stu.learningSystemPrepareMode === 'GROUP_PURCHASE') || checkPhone ? '#AAA' : '#FFF'"
|
|
|
|
|
|
+ :color="!(stu.learningSystemPrepareMode === 'GROUP_PURCHASE') ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
+ :text-color="!(stu.learningSystemPrepareMode === 'GROUP_PURCHASE') ? '#AAA' : '#FFF'"
|
|
class="radioSection" round>
|
|
class="radioSection" round>
|
|
<van-radio class="radioItem" name="GROUP_PURCHASE"></van-radio>团购
|
|
<van-radio class="radioItem" name="GROUP_PURCHASE"></van-radio>团购
|
|
</van-tag>
|
|
</van-tag>
|
|
<van-tag size="large" type="primary"
|
|
<van-tag size="large" type="primary"
|
|
- :color="!(stu.learningSystemPrepareMode === 'ONESELF') || checkPhone ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
- :text-color="!(stu.learningSystemPrepareMode === 'ONESELF') || checkPhone ? '#AAA' : '#FFF'"
|
|
|
|
|
|
+ :color="!(stu.learningSystemPrepareMode === 'ONESELF') ? '#EAEAEA' : '#64A9FF'"
|
|
|
|
+ :text-color="!(stu.learningSystemPrepareMode === 'ONESELF') ? '#AAA' : '#FFF'"
|
|
:color="checkPhone ? '#ccc': '#9A64FF'" class="radioSection" round>
|
|
:color="checkPhone ? '#ccc': '#9A64FF'" class="radioSection" round>
|
|
<van-radio class="radioItem" name="ONESELF"></van-radio>自备
|
|
<van-radio class="radioItem" name="ONESELF"></van-radio>自备
|
|
</van-tag>
|
|
</van-tag>
|
|
@@ -507,11 +502,6 @@
|
|
}
|
|
}
|
|
this.btnLoading = false
|
|
this.btnLoading = false
|
|
},
|
|
},
|
|
- onCheckInsertPhone() {
|
|
|
|
- if (this.checkPhone) {
|
|
|
|
- vant.showToast('请输入手机号码')
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
setLoading(status) {
|
|
setLoading(status) {
|
|
if (status) {
|
|
if (status) {
|
|
vant.showLoadingToast({
|
|
vant.showLoadingToast({
|