|
@@ -73,7 +73,6 @@ export default defineComponent({
|
|
|
)
|
|
|
const detail = data || {}
|
|
|
|
|
|
- console.log(detail, 'detail')
|
|
|
state.detail = detail
|
|
|
|
|
|
const grade: any = state.currentGrade.find((item: any) => item.value == detail.currentGrade)
|
|
@@ -109,7 +108,6 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
)
|
|
|
- console.log(subjects, 'subject')
|
|
|
const rows = subjects.data.rows || []
|
|
|
rows.forEach((item: any) => {
|
|
|
state.subjectList.push({
|
|
@@ -185,6 +183,14 @@ export default defineComponent({
|
|
|
v-model={forms.username}
|
|
|
maxlength={15}
|
|
|
rules={[{ validator, message }]}
|
|
|
+ // onBlur={() => {
|
|
|
+ // setTimeout(function () {
|
|
|
+ // const scrollHeight =
|
|
|
+ // document.documentElement.scrollTop || document.body.scrollTop || 0
|
|
|
+
|
|
|
+ // window.scrollTo(0, Math.max(scrollHeight - 1, 0))
|
|
|
+ // }, 100)
|
|
|
+ // }}
|
|
|
/>
|
|
|
<Field
|
|
|
required
|
|
@@ -278,6 +284,7 @@ export default defineComponent({
|
|
|
placeholder="请输入手机号"
|
|
|
v-model={forms.phone}
|
|
|
maxlength={11}
|
|
|
+ type="tel"
|
|
|
rules={[{ pattern: state.pattern, message: '输入监护人手机号码有误' }]}
|
|
|
/>
|
|
|
</CellGroup>
|
|
@@ -290,7 +297,14 @@ export default defineComponent({
|
|
|
</Form>
|
|
|
|
|
|
{/* 年级 */}
|
|
|
- <Popup v-model:show={state.gradeStatus} position="bottom" round>
|
|
|
+ <Popup
|
|
|
+ v-model:show={state.gradeStatus}
|
|
|
+ position="bottom"
|
|
|
+ round
|
|
|
+ safeAreaInsetBottom
|
|
|
+ // duration={0}
|
|
|
+ lazyRender={false}
|
|
|
+ >
|
|
|
<Picker
|
|
|
showToolbar
|
|
|
columns={state.currentGrade}
|