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.
101 lines
4.4 KiB
101 lines
4.4 KiB
<view |
|
class="page" |
|
style="background: url({{imageUrl}}za-images//1/adl-test-bg.png?t={{Timestamp}}) no-repeat top center / 100% ;padding-top:{{bottom}}px" |
|
> |
|
<navBar background="{{background}}" title="测评" back bind:back="handleBack" fixed></navBar> |
|
<view class="page-container"> |
|
<view class="nav"> |
|
<view class="nav-title">测评{{nav+1}}/9</view> |
|
<view class="nav-wrap"> |
|
<view class="nav-item {{index<=nav && 'active'}}" wx:for="{{9}}" wx:key="index"></view> |
|
</view> |
|
</view> |
|
<swiper class="swiper" current="{{nav}}" bindtransition="bindtransition"> |
|
<!-- catchtouchmove="stopTouchMove" --> |
|
<swiper-item wx:for="{{question}}" wx:key="index" wx:for-item="questionItem"> |
|
<view class="container" wx:if="{{questionItem.type==='question'}}"> |
|
<image class="c-icon" src="{{imageUrl}}za-images/1/adl-icon{{questionItem.icon}}.png?t={{Timestamp}}"></image> |
|
<view class="title">{{questionItem.title}}</view> |
|
<view class="en-title">Please answer the question below</view> |
|
<view class="question"> |
|
<view |
|
class="question-item {{item.active && 'active'}}" |
|
wx:for="{{question[nav].list}}" |
|
wx:key="id" |
|
catch:tap="handleSelect" |
|
data-index="{{index}}" |
|
> |
|
<view class="label"> |
|
<image class="icon" src="{{imageUrl}}za-images/1/question-true.png?t={{Timestamp}}"></image> |
|
</view> |
|
<view class="content">{{item.title}}</view> |
|
</view> |
|
</view> |
|
</view> |
|
<view class="intense-dose" wx:elif="{{questionItem.type==='intenseDose'}}"> |
|
<image class="c-icon" src="{{imageUrl}}za-images/1/adl-icon{{questionItem.icon}}.png?t={{Timestamp}}"></image> |
|
<view class="title">{{questionItem.title}}</view> |
|
<view class="en-title">Please answer the question below</view> |
|
<view class="wrap"> |
|
<view class="w-title">请选择您最近每天的激素用量</view> |
|
<view class="w-num"> |
|
{{SteroidDailyDose}} |
|
<text class="sub">mg</text> |
|
</view> |
|
</view> |
|
<view class="select"> |
|
<view class="item" wx:for="{{5}}" wx:key="index" data-id="{{(item+1)*5}}" bind:tap="handleHorSelect"> |
|
<image class="i-icon" src="{{imageUrl}}za-images/double-standard/adl-drug.png?t={{Timestamp}}"></image> |
|
<view class="name">{{item+1}}片</view> |
|
<view wx:if="{{SteroidDailyDose===(item+1)*5}}" class="i-active"><van-icon name="success" /></view> |
|
</view> |
|
<view class="item" bind:tap="handleHorSelect"> |
|
<view class="input">{{SteroidDailyDose || '请输入其它毫克'}}</view> |
|
<view class="name">其它</view> |
|
<view wx:if="{{SteroidDailyDose > 25 || SteroidDailyDose%5 !== 0 }}" class="i-active"> |
|
<van-icon name="success" /> |
|
</view> |
|
</view> |
|
</view> |
|
<view class="s-tip"> |
|
说明:此处按醋酸泼尼松片用量计算,每片为5mg |
|
<view>若其它激素药物根据规格做等量换算,如5mg醋酸泼尼松 =4mg 甲泼尼龙*</view> |
|
</view> |
|
</view> |
|
</swiper-item> |
|
</swiper> |
|
<view class="footer" wx:if="{{nav>0}}"> |
|
<view class="prev" bind:tap="handlePrev"> |
|
<image class="icon" src="{{imageUrl}}za-images/1/question-prev.png?t={{Timestamp}}"></image> |
|
<view class="name">上一题</view> |
|
</view> |
|
<view class="submit" wx:if="{{nav==8 && showSubmit}}" bind:tap="handleSubmit">完成</view> |
|
</view> |
|
</view> |
|
</view> |
|
|
|
<customTable params="{{params}}" bind:finish="handleFinish"></customTable> |
|
|
|
<van-popup show="{{ popupShow }}" position="bottom" bind:close="handlePopupCancel" round> |
|
<view class="popup"> |
|
<view class="p-title">请输入当天的激素用量</view> |
|
<view class="input-wrap"> |
|
<input |
|
class="input" |
|
type="digit" |
|
maxlength="{{5}}" |
|
value="{{popupHormone}}" |
|
placeholder="请输入" |
|
focus="{{popupFocus}}" |
|
cursor-spacing="{{140}}" |
|
always-embed |
|
bind:input="handleInput" |
|
/> |
|
<view class="sub">mg/天</view> |
|
</view> |
|
<view class="p-footer"> |
|
<view class="cancel" bind:tap="handlePopupCancel">取消</view> |
|
<view class="sure" bind:tap="handlePopupSure">确认</view> |
|
</view> |
|
</view> |
|
</van-popup>
|
|
|