97 lines
4.4 KiB
Plaintext
97 lines
4.4 KiB
Plaintext
<view class="home-container">
|
||
<image class="home-top-bg" mode="widthFix" src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/home/top-bg.png" />
|
||
<t-navbar
|
||
t-class-placeholder="t-navbar-placeholder"
|
||
t-class-content="t-navbar-content"
|
||
class="block"
|
||
title="首页"
|
||
/>
|
||
<view class="home-content">
|
||
|
||
<view class="item-title">
|
||
<image class="item-title-icon" src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/home/icon_1.svg"></image>
|
||
宝宝生长曲线</view>
|
||
<view class="item-content">
|
||
<view class="box_3">
|
||
<view class="{{activeIndex == 0 ? 'text-wrapper_1 text-act' : 'text-wrapper_1'}}" data-index="0" bindtap="changeChart">
|
||
<text lines="1" class="text_2">身高曲线</text>
|
||
</view>
|
||
<view class="{{activeIndex == 1 ? 'text-wrapper_1 text-act' : 'text-wrapper_1'}}" data-index="1" bindtap="changeChart">
|
||
<text lines="1" class="text_2">体重曲线</text>
|
||
</view>
|
||
</view>
|
||
<text class="echarts-title">{{activeIndex == 0 ? '身高(cm)':'体重(g)'}}</text>
|
||
<view class="echarts-canvas-container">
|
||
<ec-canvas wx:if="{{ activeIndex == 0 }}" id="mychart-dom-height" canvas-id="mychart-height" ec="{{ ec }}" ></ec-canvas>
|
||
<ec-canvas wx:else id="mychart-dom-weight" canvas-id="mychart-weight" ec="{{ ec2 }}" ></ec-canvas>
|
||
</view>
|
||
</view>
|
||
<view class="item-content item-content-1" wx:if="{{carList.length > 0}}">
|
||
<image class="item-content-1-bg" src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/home/img_1.png" mode="widthFix"></image>
|
||
<view class="item-title">
|
||
<image class="item-title-img" src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/home/img_title_1.png" mode="heightFix"></image>
|
||
<view class="item-title-right-text" bindtap="toClockIn">
|
||
更多
|
||
</view>
|
||
</view>
|
||
<view wx:for="{{carList}}" wx:key="id" class="car-item">
|
||
<view class="after"></view>
|
||
<view class="image-text_3">
|
||
<view class="box_6"></view>
|
||
<text lines="1" class="text-group_3">{{item.medicine_time}}</text>
|
||
<view class="text-wrapper_6 {{item.status=='2'?'':'catArt'}}" data-id="{{item.id}}" data-status="{{item.status}}" bind:tap="medicineRecord">
|
||
<text lines="1" class="text_23">{{item.status=='2'?'已打卡':'打卡'}}</text>
|
||
</view>
|
||
</view>
|
||
<view class="box_9" wx:for="{{item.detail}}" wx:for-item="item2">
|
||
<view class="image-text_5">
|
||
<!-- <view class="box_10"></view> -->
|
||
<view class="text-group_5">
|
||
<view lines="1" class="text_21">{{item2.name}}</view>
|
||
<view lines="1" class="text_22">{{item2.frequency}}片,{{item2.time}}服用</view>
|
||
</view>
|
||
</view>
|
||
<!-- <view class="box_11"></view> -->
|
||
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="item-content item-content-2" wx:if="{{sfListLength > 0}}">
|
||
<image class="item-content-1-bg" src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/home/img_2.png" mode="widthFix"></image>
|
||
<view class="item-title">
|
||
<image class="item-title-img-2" src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/home/img_title_2.png" mode="heightFix"></image>
|
||
</view>
|
||
<view class="item-box">
|
||
<view class="drug-name">
|
||
{{sfData.plan_name}}
|
||
</view>
|
||
|
||
<view class="follow-up-itme">
|
||
随访时间:{{sfData.plan_date}}
|
||
</view>
|
||
<text class="follow-itme-ed">{{sfData.daysUntilPlan}}天后</text>
|
||
</view>
|
||
</view>
|
||
<view class="item-content item-content-3" wx:if="articlesLength > 0">
|
||
<view class="item-title">
|
||
<image class="item-title-icon" src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/home/icon_2.png"></image> 健康推送
|
||
<view class="item-title-right-text" bind:tap="toArticle">
|
||
更多
|
||
</view>
|
||
</view>
|
||
<view class="item-box" wx:for="{{articles}}" wx:key="index" bind:tap="toArticleDelit" data-index="{{index}}">
|
||
<view class="drug-name">
|
||
{{item.title}}
|
||
</view>
|
||
<view class="article-content">
|
||
{{item.contentText}}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
|
||
<view class="emergency-access" bindtap="toEmergency">
|
||
<text class="iconfont icon-xiaoxi1" ></text>
|
||
</view> |