wx-app/pages/init/userinfo.wxml
2019-06-23 22:26:19 +08:00

103 lines
4.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--pages/init/userinfo.wxml-->
<view class="container">
<view class="page-title text-center">基本信息采集表</view>
<view class="container-card">请据实填写您的基本情况,为评估提供依据:</view>
<view class="card">
<view class="form-group">
<label>1、您的姓名</label>
<input bindinput="onBoxInput" data-key="realname" />
</view>
<view class="form-group">
<label>2、您的性别</label>
<radio-group bindchange="onSelectChange" data-key="gender">
<label class="radio" c>
<radio value="1" checked="true" />男
</label>
<label class="radio">
<radio value="0" />女
</label>
</radio-group>
</view>
<view class="form-group">
<label>3、您的年龄</label>
<input bindinput="onBoxInput" data-key="age" />
</view>
<view class="form-group">
<label>4、您是否第一次进藏</label>
<radio-group bindchange="onSelectChange" data-key="is_first_to_tibet">
<label class="radio">
<radio value="1" checked="true" />是
</label>
<label class="radio">
<radio value="0" />否
</label>
</radio-group>
</view>
<view class="form-group">
<label>5、您的世居地居住十年以上</label>
<picker bindchange="bindProvinceChange" value="{{provinceId}}" range="{{provinces}}" range-key="name">
<view class="select-input">{{provinceId==-1?"请选择省份":provinces[provinceId].name}}</view>
</picker>
<picker bindchange="bindCityChange" value="{{cityId}}" range="{{cities}}" range-key="name">
<view class="select-input">{{cityId == -1?"请选择城市":cities[cityId].name}}</view>
</picker>
</view>
<view class="form-group">
<label>6、您的身高cm</label>
<input bindinput="onBoxInput" data-key="height" />
</view>
<view class="form-group">
<label>7、您的体重kg</label>
<input bindinput="onBoxInput" data-key="weight" />
</view>
<view class="form-group">
<label>8、您是否长期吸烟吸烟量支/天):</label>
<radio-group bindchange="onSelectChange" data-key="smoke">
<view class="item" wx:key="smoke" wx:for="{{subjects.smoke}}">
<label>
<radio value="{{index}}" checked="{{index == 0}}" />{{item}}</label>
</view>
</radio-group>
</view>
<view class="form-group">
<label>9、您是否长期饮酒</label>
<radio-group bindchange="onSelectChange" data-key="drink">
<label class="radio">
<radio value="1" checked="true" />是
</label>
<label class="radio">
<radio value="0" />否
</label>
</radio-group>
</view>
<view class="form-group">
<label>10、您是否有既往基础疾病</label>
<radio-group bindchange="onMedicalChange">
<label class="radio">
<radio value="1" />是
</label>
<label class="radio">
<radio value="0" checked="true" />否
</label>
</radio-group>
</view>
<view class="form-group" hidden="{{hiddenSelect}}">
<label>11、既往疾病包括多选</label>
<checkbox-group bindchange="onMedicalValueChange">
<view class="item" wx:key="medical" wx:for="{{subjects.medical_histories}}">
<label>
<checkbox value="{{index}}" />
<text>{{item}}</text>
</label>
</view>
</checkbox-group>
</view>
</view>
<view class="text-center container-card">
<button bindtap="updateAndEvaluation" class="btn-green go-to-next btn-round">下一步</button>
</view>
</view>