|
@@ -1,15 +1,13 @@
|
|
-import ColField from '@/components/col-field'
|
|
|
|
-import ColFieldGroup from '@/components/col-field-group'
|
|
|
|
-import ColHeader from '@/components/col-header'
|
|
|
|
import request from '@/helpers/request'
|
|
import request from '@/helpers/request'
|
|
import { verifyIdCard } from '@/helpers/toolsValidate'
|
|
import { verifyIdCard } from '@/helpers/toolsValidate'
|
|
import { postMessage } from '@/helpers/native-message'
|
|
import { postMessage } from '@/helpers/native-message'
|
|
import { state } from '@/state'
|
|
import { state } from '@/state'
|
|
-import { Button, CellGroup, Checkbox, Field, Form, Icon, Toast } from 'vant'
|
|
|
|
|
|
+import { Button, CellGroup, Checkbox, Field, Form, Icon, showToast, Toast } from 'vant'
|
|
import { defineComponent } from 'vue'
|
|
import { defineComponent } from 'vue'
|
|
import activeButtonIcon from '@common/images/icon_checkbox.png'
|
|
import activeButtonIcon from '@common/images/icon_checkbox.png'
|
|
import inactiveButtonIcon from '@common/images/icon_checkbox_default.png'
|
|
import inactiveButtonIcon from '@common/images/icon_checkbox_default.png'
|
|
import styles from './index.module.less'
|
|
import styles from './index.module.less'
|
|
|
|
+import OHeader from '@/components/o-header'
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'UserAuth',
|
|
name: 'UserAuth',
|
|
@@ -49,7 +47,7 @@ export default defineComponent({
|
|
async onSubmit() {
|
|
async onSubmit() {
|
|
try {
|
|
try {
|
|
if (!this.checked) {
|
|
if (!this.checked) {
|
|
- Toast('请先阅读并同意《用户注册协议》')
|
|
|
|
|
|
+ showToast('请先阅读并同意《用户注册协议》')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
const url =
|
|
const url =
|
|
@@ -63,13 +61,15 @@ export default defineComponent({
|
|
save: true
|
|
save: true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- Toast('实名成功')
|
|
|
|
|
|
+ showToast('实名成功')
|
|
state.user.data.realName = this.form.realName
|
|
state.user.data.realName = this.form.realName
|
|
state.user.data.idCardNo = this.form.idCardNo
|
|
state.user.data.idCardNo = this.form.idCardNo
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.onSuccess()
|
|
this.onSuccess()
|
|
}, 500)
|
|
}, 500)
|
|
- } catch {}
|
|
|
|
|
|
+ } catch {
|
|
|
|
+ //
|
|
|
|
+ }
|
|
},
|
|
},
|
|
getContractDetail() {
|
|
getContractDetail() {
|
|
// 查看协议
|
|
// 查看协议
|
|
@@ -87,9 +87,9 @@ export default defineComponent({
|
|
render() {
|
|
render() {
|
|
return (
|
|
return (
|
|
<Form class={styles.userAuth} onSubmit={this.onSubmit}>
|
|
<Form class={styles.userAuth} onSubmit={this.onSubmit}>
|
|
- {!this.hideHeader && <ColHeader title="实名认证" />}
|
|
|
|
|
|
+ {!this.hideHeader && <OHeader title="实名认证" />}
|
|
|
|
|
|
- <ColFieldGroup style={{ marginTop: '15px' }}>
|
|
|
|
|
|
+ {/* <CellGroup style={{ marginTop: '15px' }}>
|
|
<ColField title="姓名" required>
|
|
<ColField title="姓名" required>
|
|
<Field
|
|
<Field
|
|
name="lessonName"
|
|
name="lessonName"
|
|
@@ -114,7 +114,7 @@ export default defineComponent({
|
|
placeholder="请输入身份证号"
|
|
placeholder="请输入身份证号"
|
|
/>
|
|
/>
|
|
</ColField>
|
|
</ColField>
|
|
- </ColFieldGroup>
|
|
|
|
|
|
+ </CellGroup> */}
|
|
<div class={styles.colProtocol}>
|
|
<div class={styles.colProtocol}>
|
|
{!this.exists && (
|
|
{!this.exists && (
|
|
<Checkbox
|
|
<Checkbox
|