<wxs src="../../utils/util/util.wxs" module="util" />
<!-- {{international.Name_Visitor[language]}} -->
<!-- 健康码 -->
<view wx:if="{{util.indexOf(threeCodeList,'1')>-1}}">
    <van-cell border="{{ false }}" class="label-sm" wx:if="{{form.jkm}}">
        <view slot="title">
            {{international.HealthStatus[language]}}
            <van-icon name="checked" style="color:#2dcb92" size="30rpx" wx:if="{{form.jkm=='绿码'}}" />
            <van-icon name="clear" style="color:#ff5552" size="30rpx" wx:else />
        </view>
        <text class="color333">{{form.jkm}}</text>
    </van-cell>
    <view class="cu-form-group" wx:else>
        <view class="title font-size"><text class="{{form.jkmPhoto?'text-green':'text-red'}}">*</text><text>{{international.uploadHealth[language]}}</text>
        </view>
        <view wx:if="{{form.jkmPhoto}}" class="img_box">
            <image src="{{form.jkmPhoto}}" class="img" bindtap="previewImg" data-src="{{form.jkmPhoto}}"></image>
            <image src="../../static/images/delete_img.png" class="DelImg" catchtap="DelImg" data-type="jkmPhoto"></image>
        </view>
        <image bindtap="getValue" class="upload" wx:else data-type="jkmPhoto" src="../../static/images/default_img.png"></image>
    </view>
</view>
<!-- 核酸 -->
<view wx:if="{{util.indexOf(threeCodeList,'2')>-1}}">
    <view class="newnucleate" wx:if="{{form.hs}}">
        <view class="left font-size">{{international.LatestTests[language]}}
            <van-icon name="checked" style="color:#2dcb92" size="30rpx" wx:if="{{form.unqualifiedHS }}" />
            <van-icon name="clear" style="color:#ff5552" size="30rpx" wx:else />
        </view>
        <view class="right font-size">
            <!-- <view class="color333"><text class="color2F8EFF">【采样时间】</text> 2022-08-09 06:25:42</view> -->
            <view class="color333">
            <!-- <text class="color2F8EFF">【{{international.ReportTime[language]}}】</text>  -->
            {{form.hsResultTime}}</view>
            <view class="color333"> {{form.hs}}</view>
        </view>
    </view>
    <view class="cu-form-group marginTop" wx:else>
        <view class="title"><text class="{{form.hsPhoto?'text-green':'text-red'}}">*</text><text>{{international.UploadScreenshot[language]}}{{'（'+hsHour+'小时内）'}}</text>
        </view>
        <view wx:if="{{form.hsPhoto}}" class="img_box">
            <image src="{{form.hsPhoto}}" class="img" bindtap="previewImg" data-src="{{form.hsPhoto}}"></image>
            <image src="../../static/images/delete_img.png" class="DelImg" catchtap="DelImg" data-type="hsPhoto"></image>
        </view>
        <image bindtap="getValue" class="upload" wx:else data-type="hsPhoto" src="../../static/images/default_img.png"></image>
    </view>
</view>
<!-- 行程码 -->
<view wx:if="{{util.indexOf(threeCodeList,'3')>-1}}">
    <view class="line"></view>
    <!-- 手机号验证码 -->
    <view class="cu-form-group" wx:if="{{!form.xc}}">
        <view class="title"><text class="{{form.xcPhone?'text-green':'text-red'}}">*</text><text>{{international.Phone[language]}}</text>
        </view>
        <input class="phone" type="text" value="{{form.xcPhone}}" bindinput="getValue" data-type="xcPhone" type="number" maxlength="11" />
        <button class="get-code" bindtap="getCode" disabled="{{moDisabled}}">{{moCodeMsg}}</button>
    </view>
    <view class="cu-form-group poisition" wx:if="{{!form.xc}}">
        <view class="title"><text class="text-red">*</text><text>{{international.VerificationCode[language]}}</text>
        </view>
        <block wx:for="{{codeLength}}" wx:key="item">
            <input class="Sho_box7 {{inputCodeFocus[index]?'orange':'blue'}}" type="number" focus="{{false}}" cursor-spacing="{{30}}" bindtap="tapInput" value="{{codeVal[index]}}" disabled="{{true}}"></input>
        </block>
        <view><input class="hidden-input" cursor-spacing="{{30}}" focus="{{focus}}" maxlength="{{codeLength}}" type="number" bindinput="inputVal" bindblur="blurInput" bindlongpress="longPressInput" /></view>
    </view>
    <!-- 行程码 -->
    <van-cell border="{{ false }}" class="label-sm" wx:if="{{form.xc}}">
        <view slot="title">
            {{international.TravelInformation[language]}}<image class="icon" src="../../static/images/{{(form.xc==1||form.xcPhoto)?'green':'red'}}.png"></image>
        </view>
        <text class="color333">{{form.xc==1?'未去过高风险地区':form.xc==2?'去过高风险地区':'未知,请上传行程卡截图'}}</text>
    </van-cell>
    <view class="cu-form-group" wx:if="{{form.xc==3}}">
        <view class="title"><text class="{{form.xcPhoto?'text-green':'text-red'}}">*</text><text>{{international.UploadTrip[language]}}</text>
        </view>
        <view wx:if="{{form.xcPhoto}}" class="img_box">
            <image src="{{form.xcPhoto}}" class="img" bindtap="previewImg" data-src="{{form.xcPhoto}}"></image>
            <image src="../../static/images/delete_img.png" class="DelImg" catchtap="DelImg" data-type="xcPhoto"></image>
        </view>
        <image bindtap="getValue" class="upload" wx:else data-type="xcPhoto" src="../../static/images/default_img.png"></image>
    </view>
</view>