Commit 6bd12288 authored by gengchunlei's avatar gengchunlei

Merge branch 'chronic-master' of…

Merge branch 'chronic-master' of http://gitlab.yiboshi.com/nightkis1995/frontend-h5 into chronic-master
parents ec6aceed c875d7df
......@@ -52,7 +52,7 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
token = '68ed3e17-1713-4a85-8eeb-f79037e5b679'
token = '599c5ba1-d338-4569-a245-681566a79098'
}
}
if (token) {
......
......@@ -302,7 +302,13 @@ export default {
this.$refs.form.validate().then(() => {
this.recordForm.base = {...this.form}
this.$parent.onNext()
}).catch(err => console.warn(err))
}).catch(err => {
console.warn(err)
const array = err || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
},
// 性别
genderConfirm({ selectedValues, selectedOptions }) {
......
......@@ -466,13 +466,20 @@ export default {
})).then(() => {
this.$parent.onNext()
})
}).catch(err => console.warn(err))
}).catch(err => {
console.warn(err)
const array = err || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
},
onPrev() {
this.$refs.form.validate().then(() => {
this.recordForm.screen = {...this.form}
this.$parent.onBack()
}).catch(err => console.warn(err))
this.$parent.onBack()
// this.$refs.form.validate().then(() => {
// this.recordForm.screen = {...this.form}
// this.$parent.onBack()
// }).catch(err => console.warn(err))
},
// 既往史
medicalConfirm() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment