|
@@ -10,31 +10,31 @@
|
|
<u-form-item label="学生性别" prop="sex" required>
|
|
<u-form-item label="学生性别" prop="sex" required>
|
|
<u-input v-model="subscribelForm.sex" placeholder="请选择学生性别" :select-open="sexShow" type="select" @click="sexShow = true" />
|
|
<u-input v-model="subscribelForm.sex" placeholder="请选择学生性别" :select-open="sexShow" type="select" @click="sexShow = true" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="学生生日" prop="birthday" required>
|
|
|
|
|
|
+ <u-form-item label="学生生日" prop="birthday" required v-show="showinput">
|
|
<u-input v-model="subscribelForm.birthday" placeholder="请选择学生生日" :select-open="birthdayShow" type="select" @click="birthdayShow = true" />
|
|
<u-input v-model="subscribelForm.birthday" placeholder="请选择学生生日" :select-open="birthdayShow" type="select" @click="birthdayShow = true" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<!-- <u-form-item label="学生年龄" prop="age" required>
|
|
<!-- <u-form-item label="学生年龄" prop="age" required>
|
|
<u-input v-model="subscribelForm.age" placeholder="请输入学生年龄" type="number" />
|
|
<u-input v-model="subscribelForm.age" placeholder="请输入学生年龄" type="number" />
|
|
</u-form-item> -->
|
|
</u-form-item> -->
|
|
- <u-form-item label="身份类型" prop="studentCardName">
|
|
|
|
|
|
+ <u-form-item label="身份类型" prop="studentCardName" v-show="showinput">
|
|
<u-input v-model="subscribelForm.studentCardName" placeholder="请选择身份类型" type="select" @click="handletypeShowclick(1)" />
|
|
<u-input v-model="subscribelForm.studentCardName" placeholder="请选择身份类型" type="select" @click="handletypeShowclick(1)" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item :label="subscribelForm.studentCardName || '身份证号'" prop="studentCardNumber">
|
|
|
|
|
|
+ <u-form-item :label="subscribelForm.studentCardName || '身份证号'" prop="studentCardNumber" v-show="showinput">
|
|
<u-input v-model="subscribelForm.studentCardNumber" placeholder="请输入证件号" @click="handleWriteCardClick(1)" />
|
|
<u-input v-model="subscribelForm.studentCardNumber" placeholder="请输入证件号" @click="handleWriteCardClick(1)" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="家长姓名" prop="fatherName" required>
|
|
|
|
|
|
+ <u-form-item label="家长姓名" prop="fatherName" required v-show="showinput">
|
|
<u-input v-model="subscribelForm.fatherName" placeholder="请输入家长姓名" />
|
|
<u-input v-model="subscribelForm.fatherName" placeholder="请输入家长姓名" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="关系" prop="relation" required>
|
|
|
|
|
|
+ <u-form-item label="关系" prop="relation" required v-show="showinput">
|
|
<u-input v-model="subscribelForm.relation" placeholder="请输入关系" />
|
|
<u-input v-model="subscribelForm.relation" placeholder="请输入关系" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="身份类型" prop="parentCardName" required>
|
|
|
|
|
|
+ <u-form-item label="身份类型" prop="parentCardName" required v-show="showinput">
|
|
<u-input v-model="subscribelForm.parentCardName" placeholder="请选择身份类型" type="select" @click="handletypeShowclick(2)" />
|
|
<u-input v-model="subscribelForm.parentCardName" placeholder="请选择身份类型" type="select" @click="handletypeShowclick(2)" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item :label="subscribelForm.parentCardName || '身份证号'" prop="parentCardNumber" required>
|
|
|
|
|
|
+ <u-form-item :label="subscribelForm.parentCardName || '身份证号'" prop="parentCardNumber" required v-show="showinput">
|
|
<u-input v-model="subscribelForm.parentCardNumber" placeholder="请输入证件号" @click="handleWriteCardClick(2)" />
|
|
<u-input v-model="subscribelForm.parentCardNumber" placeholder="请输入证件号" @click="handleWriteCardClick(2)" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="手机号码" prop="phone" required>
|
|
|
|
|
|
+ <u-form-item label="手机号码" prop="phone" required v-show="showinput">
|
|
<u-input v-model="subscribelForm.phone" type="number" placeholder="请输入手机号码" />
|
|
<u-input v-model="subscribelForm.phone" type="number" placeholder="请输入手机号码" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<!-- <u-form-item label="体验日期" placeholder="请选择体验日期" prop="experience">
|
|
<!-- <u-form-item label="体验日期" placeholder="请选择体验日期" prop="experience">
|
|
@@ -73,6 +73,7 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ showinput:true,
|
|
subscribelForm: {
|
|
subscribelForm: {
|
|
studentName: '',
|
|
studentName: '',
|
|
sex: '',
|
|
sex: '',
|
|
@@ -82,7 +83,7 @@
|
|
studentCardName: '',
|
|
studentCardName: '',
|
|
studentCardNumber: '',
|
|
studentCardNumber: '',
|
|
fatherName: '',
|
|
fatherName: '',
|
|
- relation: '',
|
|
|
|
|
|
+ relation: '',
|
|
parentCard: '',
|
|
parentCard: '',
|
|
parentCardName: '',
|
|
parentCardName: '',
|
|
parentCardNumber: '',
|
|
parentCardNumber: '',
|
|
@@ -181,6 +182,9 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
|
+ if(Date.parse(new Date())<1660190400000){
|
|
|
|
+ this.showinput=false
|
|
|
|
+ }
|
|
// this.subscribelForm.phone = uni.getStorageSync('userData').phone
|
|
// this.subscribelForm.phone = uni.getStorageSync('userData').phone
|
|
const info = JSON.parse(decodeURIComponent(options.info))
|
|
const info = JSON.parse(decodeURIComponent(options.info))
|
|
if(info) {
|
|
if(info) {
|