112 lines
4.4 KiB
Plaintext
112 lines
4.4 KiB
Plaintext
<!-- <nav nav-type="search" /> -->
|
||
<view class="home-container">
|
||
<image class="home-top-bg" mode="widthFix" src="../../assets/images/home/top-bg.png" />
|
||
<view class="home-content">
|
||
<view class="item-title">
|
||
<image class="item-title-icon" src="../../assets/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 }}" force-use-old-canvas="true"></ec-canvas>
|
||
<ec-canvas wx:else id="mychart-dom-weight" canvas-id="mychart-weight" ec="{{ ec2 }}" force-use-old-canvas="true"></ec-canvas>
|
||
</view>
|
||
</view>
|
||
<view class="item-content item-content-1">
|
||
<image class="item-content-1-bg" src="../../assets/images/home/img_1.png" mode="widthFix"></image>
|
||
<view class="item-title">
|
||
<image class="item-title-img" src="../../assets/images/home/img_title_1.png" mode="heightFix"></image>
|
||
<view class="item-title-right-text" bindtap="toClockIn">
|
||
更多
|
||
</view>
|
||
</view>
|
||
<!-- <view class="item-box"> -->
|
||
<!-- <view class="item-box-title">
|
||
<view class="item-box-title-left">
|
||
中午 12:00
|
||
</view>
|
||
<view class="item-box-title-right">
|
||
未完成
|
||
</view>
|
||
</view>
|
||
<view class="drug-name">
|
||
布洛芬
|
||
</view>
|
||
|
||
<view class="drug-usage">
|
||
1片 饭后复用
|
||
</view>
|
||
|
||
<t-button theme="primary" block>打卡</t-button> -->
|
||
<view class="image-text_3">
|
||
<view class="box_6"></view>
|
||
<text lines="1" class="text-group_3">08:00</text>
|
||
</view>
|
||
<view class="box_9">
|
||
<view class="image-text_5">
|
||
<view class="box_10"></view>
|
||
<view class="text-group_5">
|
||
<text lines="1" class="text_21">优思弗</text>
|
||
<text lines="1" class="text_22">1片,饭后服用</text>
|
||
</view>
|
||
</view>
|
||
<view class="box_11"></view>
|
||
<view class="text-wrapper_6">
|
||
<text lines="1" class="text_23">打卡</text>
|
||
</view>
|
||
</view>
|
||
<!-- </view> -->
|
||
</view>
|
||
<view class="item-content item-content-2" wx:if="{{sfListLength > 0}}">
|
||
<image class="item-content-1-bg" src="../../assets/images/home/img_2.png" mode="widthFix"></image>
|
||
<view class="item-title">
|
||
<image class="item-title-img-2" src="../../assets/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="../../assets/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="home-release">
|
||
<t-button theme="primary" size="large" icon="add" shape="round" bindtap="goRelease">
|
||
发布
|
||
</t-button>
|
||
</view> -->
|
||
<!-- <t-message id="t-message" /> -->
|
||
|
||
<view class="emergency-access" bindtap="toEmergency">
|
||
<t-icon name="call-1-filled" size="42rpx" />
|
||
</view> |