话不多说直接上代码
<!--
* @Description:
* @Author: xiexy
* @Date: 2021-07-19 14:50:35
* @LastEditTime: 2021-09-13 10:32:46
* @LastEditors: Please set LastEditors
* @Reference:
-->
<template>
<div class="upload-health-certificate">
<van-form
ref="form"
class="form"
error-message-align="right"
input-align="right"
:show-error="false"
>
<van-field
clickable
label="发证时间"
placeholder="请选择发证时间"
readonly
right-icon="arrow"
:rules="rules.checkDate"
:value="form.checkDate"
@click="picker.show = true"
/>
<van-field
clickable
label="发证时间"
name="uploader"
placeholder="请选择发证时间"
readonly
:rules="rules.photo"
>
<template #input>
<div class="file-wrapper">
<!-- <div
v-show="form.photo.length < 3"
class="upload"
@click="chooseImg"
>
<i></i>
<p>上传照片</p>
</div> -->
<van-uploader