wupengfei
昨天 acfb2642072dcfd1d5cf789af3cc5cbf3b7cb51e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<template>
  <ContentScrollView :paddingH="false">
    <nut-form :model-value="form" ref="formRef">
      <nut-form-item label="刷脸:" class="bole-form-item alignTop" prop="licenseUrl" required>
      </nut-form-item>
    </nut-form>
  </ContentScrollView>
  <PageFooter :isOnlyAction="false">
    <PageFooterBtn type="primary" @click="handleSubmit()" :loading="loading"
      >刷脸认证</PageFooterBtn
    >
  </PageFooter>
</template>
 
<script setup lang="ts">
import Taro from '@tarojs/taro';
 
defineOptions({
  name: 'InnerPage',
});
 
const form = reactive({
  licenseUrl: [],
});
 
const formRef = ref<any>(null);
const loading = ref(false);
 
function handleSubmit() {
  if (!formRef.value) return;
  formRef.value.validate().then(({ valid, errors }: any) => {
    if (valid) {
      // submit();
    }
  });
}
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
</style>