<view class="containerView public">
    <view class="headView">
        <view class="leftLineTitle">预约信息</view>
    </view>
    <view class="contentView">
        <view class="rowView" bind:tap="jumpIndexBar" data-title="单位">
            <view class="label must">被访单位</view>
            <view class="input">{{detail.customerName}}</view>
        </view>
        <view class="rowView" bind:tap="jumpIndexBar" data-title="人员">
            <view class="label must">被访人姓名</view>
            <view class="input">{{detail.username}}</view>
        </view>
        <view class="rowView" bind:tap="jumpIndexBar" data-title="人员">
            <view class="label must">被访人电话</view>
            <view class="input">{{detail.mobile}}</view>
        </view>
        <view class="rowView">
            <view class="label must">访客姓名</view>
            <view class="input">{{detail.name}}</view>
        </view>
        <view class="rowView">
            <view class="label must">手机号码</view>
            <view class="input">{{detail.phone}}</view>
        </view>
        <view class="rowView">
            <view class="label must">身份证类型</view>
            <view class="input">{{detail.cardType}}</view>
        </view>
        <view class="rowView">
            <view class="label must">身份证号</view>
            <view class="input">{{detail.cardNo }}</view>
        </view>
        <view class="rowView" bind:tap="showVisitTime">
            <view class="label must">到访时间</view>
            <view class="input">{{detail.visitTime}}</view>
        </view>
        <view class="rowView" bind:tap="showLeaveTime">
            <view class="label must">离开时间</view>
            <view class="input">{{detail.leaveTime}}</view>
        </view>

        <view class="rowView">
            <view class="label must">来访事由</view>
            <view class="input">{{detail.visitContent}}</view>
        </view>
        <view class="rowView">
            <view class="label">审核状态</view>
            <view class="input" style="color: {{detail.fontColor}};">{{detail.statusName}}</view>
        </view>
        <view class="rowView">
            <view class="label">审核内容</view>
            <view class="input">{{detail.rejectContent ? detail.rejectContent : ''}}</view>
        </view>
        <view class="rowView">
            <view class="label must">访客照片</view>
        </view>
    </view>

    <!-- 上传图片 -->
    <view class="uploadImgView">
        <van-uploader file-list="{{ fileList }}" upload-text="点击上传照片" use-before-read bind:before-read="beforeRead" bind:after-read="afterRead" deletable="{{ true }}" bind:delete="deleteImg" max-count="1" />
        <view class="tipsView">提示:请保持五官清晰，以方便系统精准识</view>
    </view>

    <!-- 审核 -->
    <view class="submitBtnView" wx:if="{{verifyShow}}" bind:tap="showDialog" data-id="{{id}}">审核</view>

</view>

<!-- 消息通知 -->
<van-notify id="van-notify" />

<!-- 审核弹出框 -->
<van-dialog use-slot title="审核" show="{{ dialogShow }}" show-confirm-button="{{false}}" show-cancel-button="{{false}}" close-on-click-overlay>
    <van-field input-class="textarea" bind:input="dialogInput" value="{{ dialogContent }}" type="textarea" placeholder="请输入描述信息" />
    <view class="dialogBtnView">
        <view class="rejectBtn" data-status="2" bind:tap="dialogVerify">驳回</view>
        <view class="successBtn" data-status="1" bind:tap="dialogVerify">通过</view>
    </view>
</van-dialog>