patient-mini/pages/home/index.wxml
码农搬砖工 9018a4f868 xxx
2025-04-23 18:23:41 +08:00

54 lines
1.8 KiB
Plaintext

<!-- <nav nav-type="search" /> -->
<view class="home-container">
<view class="home-content">
<view class="item-content">
<view class="item-title">宝宝成长曲线</view>
<view class="echarts-legend">
<view class="{{ activeIndex == 0 ? 'active' : '' }}" data-index="0" bindtap="changeChart">
身高曲线
</view>
<view class="{{ activeIndex == 1 ? 'active' : '' }}" data-index="1" bindtap="changeChart">
体重曲线
</view>
</view>
<view class="echarts-canvas-container">
<ec-canvas wx:if="{{ activeIndex == 0 }}" class="echarts-canvas" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
<ec-canvas wx:else class="echarts-canvas" id="mychart-dom-bar" canvas-id="mychart-bar2" ec="{{ ec2 }}"></ec-canvas>
</view>
</view>
<view class="item-content">
<view class="item-title">每日用药提醒
<view class="item-title-right-text">
更多
</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>
</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" /> -->