信达小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

171 lines
7.1 KiB

3 months ago
<view class="page">
<image class="bg" mode="widthFix" src="{{imageUrl}}za-images/1/login-bg.png?t={{Timestamp}}"></image>
<view class="page-container">
<pageNavbar></pageNavbar>
<view class="title">录入信息</view>
<view class="content">
<view class="viewider">
<van-divider contentPosition="center" textColor="#aaaaaa">选择身份</van-divider>
</view>
<view class="switch">
<!-- <view class="name {{relationType==1 && 'active'}}" bind:tap="handleRelationType" data-id="1">患者本人</view> -->
<!-- <view class="name {{relationType==2 && 'active'}}" bind:tap="handleRelationType" data-id="2">患者亲友</view> -->
<view class="item {{relationType==1 && 'active'}}" bind:tap="handleRelationType" data-id="1">
<image
wx:if="{{relationType==1}}"
class="icon"
src="{{imageUrl}}za-images/1/enter-switch1-active.png?t={{Timestamp}}"
></image>
<image wx:else class="icon" src="{{imageUrl}}za-images/1/enter-switch1.png?t={{Timestamp}}"></image>
<view class="name">患者本人</view>
</view>
<view class="item {{relationType==2 && 'active'}}" bind:tap="handleRelationType" data-id="2">
<image
wx:if="{{relationType==2}}"
class="icon"
src="{{imageUrl}}za-images/1/enter-switch2-active.png?t={{Timestamp}}"
></image>
<image wx:else class="icon" src="{{imageUrl}}za-images/1/enter-switch2.png?t={{Timestamp}}"></image>
<view class="name">患者亲友</view>
</view>
</view>
<view class="row">
<input
model:value="{{name}}"
class="input input-required"
focus
maxlength="{{8}}"
placeholder="怎么称呼{{relationType==1?'您':'患者'}}?"
/>
</view>
<view class="tip">请您输入真实姓名,便于医生识别随访</view>
<view class="viewider">
<van-divider contentPosition="center" textColor="#aaaaaa">患者性别</van-divider>
</view>
<view class="row">
<view class="item {{gender==2 && 'active'}}" bind:tap="handleGender" data-id="2">
<image class="icon" src="{{imageUrl}}za-images/1/woman{{gender==2 ? '-active' : ''}}.png?t={{Timestamp}}"></image>
女性用户
</view>
<view class="item {{gender==1 && 'active'}}" bind:tap="handleGender" data-id="1">
<image class="icon" src="{{imageUrl}}za-images/1/man{{gender==1 ? '-active' : ''}}.png?t={{Timestamp}}"></image>
男性用户
</view>
</view>
<view class="viewider">
<van-divider contentPosition="center" textColor="#aaaaaa">患者年龄范围</van-divider>
</view>
<view class="row row-age">
<view class="age-item {{ageRange==5 && 'active'}}" data-id="5" bind:tap="handleSelectAge">18岁以下</view>
<view class="age-item {{ageRange==1 && 'active'}}" data-id="1" bind:tap="handleSelectAge">18岁-44岁</view>
<view class="age-item {{ageRange==2 && 'active'}}" data-id="2" bind:tap="handleSelectAge">45岁-59岁</view>
<view class="age-item {{ageRange==3 && 'active'}}" data-id="3" bind:tap="handleSelectAge">60岁-74岁</view>
<view class="age-item {{ageRange==4 && 'active'}}" data-id="4" bind:tap="handleSelectAge">75岁以上</view>
</view>
<!-- <view class="row"> -->
<!-- <picker -->
<!-- class="picker" -->
<!-- value="{{birth}}" -->
<!-- bind:change="bindChangeDate" -->
<!-- mode="date" -->
<!-- fields="month" -->
<!-- end="{{currentDate}}" -->
<!-- data-key="birth" -->
<!-- > -->
<!-- <view class="select"> -->
<!-- <input -->
<!-- class="picker-input" -->
<!-- value="{{birth}}" -->
<!-- type="text" -->
<!-- placeholder="请选择{{relationType==1?'您':'患者'}}的出生年月" -->
<!-- disabled="{{true}}" -->
<!-- /> -->
<!-- <view class="icons"> -->
<!-- <view class="required"></view> -->
<!-- <van-icon class="icon" name="arrow-down" color="#CCCCCC" size="20" /> -->
<!-- </view> -->
<!-- </view> -->
<!-- </picker> -->
<!-- </view> -->
<!-- <view class="row"> -->
<!-- <picker -->
<!-- class="picker" -->
<!-- value="{{diagnosisTime}}" -->
<!-- bind:change="bindChangeDate" -->
<!-- fields="month" -->
<!-- mode="date" -->
<!-- end="{{currentDate}}" -->
<!-- data-key="diagnosisTime" -->
<!-- > -->
<!-- <view class="select"> -->
<!-- <input -->
<!-- class="picker-input" -->
<!-- value="{{diagnosisTime}}" -->
<!-- type="text" -->
<!-- placeholder="请选择{{relationType==1?'您':'患者'}}的确诊时间" -->
<!-- disabled="{{true}}" -->
<!-- /> -->
<!-- <view class="icons"> -->
<!-- <view class="required"></view> -->
<!-- <van-icon class="icon" name="arrow-down" color="#CCCCCC" size="20" /> -->
<!-- </view> -->
<!-- </view> -->
<!-- </picker> -->
<!-- </view> -->
<!-- <view class="row"> -->
<!-- <picker -->
<!-- class="picker" -->
<!-- bind:change="bindChange" -->
<!-- value="{{diagnoseTypeIndex}}" -->
<!-- range="{{DiagnoseType}}" -->
<!-- range-key="name" -->
<!-- disabled="{{true}}" -->
<!-- > -->
<!-- <view class="select" bind:tap="handleDiagnoseTypeShow"> -->
<!-- <input -->
<!-- wx:if="{{!diagnoseTypeName}}" -->
<!-- class="picker-input" -->
<!-- value="{{diagnoseTypeName}}" -->
<!-- type="text" -->
<!-- placeholder="请选择{{relationType==1?'您':'患者'}}的诊断分型" -->
<!-- disabled="{{true}}" -->
<!-- /> -->
<!-- <view class="select-content" wx:else>{{diagnoseTypeName}}</view> -->
<!-- <view class="icons"> -->
<!-- <van-icon class="icon" name="arrow-down" color="#CCCCCC" size="20" /> -->
<!-- </view> -->
<!-- </view> -->
<!-- </picker> -->
<!-- </view> -->
</view>
</view>
<view class="footer">
<view bind:tap="handleSubmit" class="next">立即进入</view>
</view>
</view>
<van-popup
class="popup"
show="{{ diagnoseTypeShow }}"
position="bottom"
round
close-on-click-overlay
bind:close="handleDiagnoseTypeShow"
>
<view class="popup-title">
<view class="close" bind:tap="handleDiagnoseTypeShow">关闭</view>
<view class="sure" bind:tap="handleDiagnoseTypeSave">保存</view>
</view>
<picker-view
class="popup-picker"
indicator-style="height: 50px;"
style="width: 100%; height: 300px"
value="{{value}}"
bindchange="bindChange"
>
<picker-view-column>
<view class="picker-col" wx:for="{{DiagnoseType}}">{{item.name}}</view>
</picker-view-column>
</picker-view>
</van-popup>