|
|
@@ -0,0 +1,122 @@
|
|
|
+<!--medical-record-detail.wxml-->
|
|
|
+<view class="container">
|
|
|
+ <!-- 自定义导航栏 -->
|
|
|
+ <view class="custom-navbar">
|
|
|
+ <view class="navbar-content">
|
|
|
+ <view class="back-btn" bindtap="goBack">
|
|
|
+ <text class="back-icon">‹</text>
|
|
|
+ </view>
|
|
|
+ <view class="navbar-title">
|
|
|
+ <text>病历详情</text>
|
|
|
+ </view>
|
|
|
+ <view class="navbar-right"></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 基本信息 -->
|
|
|
+ <view class="basic-info-section">
|
|
|
+ <view class="section-title">
|
|
|
+ <text>基本信息</text>
|
|
|
+ </view>
|
|
|
+ <view class="info-card">
|
|
|
+ <view class="info-row">
|
|
|
+ <text class="info-label">就诊日期:</text>
|
|
|
+ <text class="info-value">{{record.date}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="info-row">
|
|
|
+ <text class="info-label">医院:</text>
|
|
|
+ <text class="info-value">{{record.hospital}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="info-row">
|
|
|
+ <text class="info-label">科室:</text>
|
|
|
+ <text class="info-value">{{record.department}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="info-row">
|
|
|
+ <text class="info-label">医生:</text>
|
|
|
+ <text class="info-value">{{record.doctor}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 诊断信息 -->
|
|
|
+ <view class="diagnosis-section">
|
|
|
+ <view class="section-title">
|
|
|
+ <text>诊断信息</text>
|
|
|
+ </view>
|
|
|
+ <view class="diagnosis-card">
|
|
|
+ <view class="diagnosis-item">
|
|
|
+ <text class="diagnosis-label">诊断结果:</text>
|
|
|
+ <text class="diagnosis-value">{{record.diagnosis}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="symptoms-list">
|
|
|
+ <text class="symptoms-title">症状描述:</text>
|
|
|
+ <view class="symptoms-tags">
|
|
|
+ <view class="symptom-tag" wx:for="{{record.symptoms}}" wx:key="*this">
|
|
|
+ <text>{{item}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="notes-item">
|
|
|
+ <text class="notes-label">医生建议:</text>
|
|
|
+ <text class="notes-value">{{record.notes}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 药品信息 -->
|
|
|
+ <view class="medicines-section">
|
|
|
+ <view class="section-title">
|
|
|
+ <text>处方药品</text>
|
|
|
+ </view>
|
|
|
+ <view class="medicine-list">
|
|
|
+ <view class="medicine-item" wx:for="{{record.medicines}}" wx:key="id">
|
|
|
+ <view class="medicine-icon">
|
|
|
+ <text>💊</text>
|
|
|
+ </view>
|
|
|
+ <view class="medicine-info">
|
|
|
+ <text class="medicine-name">{{item.name}}</text>
|
|
|
+ <text class="medicine-spec">数量:{{item.quantity}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="medicine-price">
|
|
|
+ <text class="price-text">¥{{item.price}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 共享状态 -->
|
|
|
+ <view class="share-section">
|
|
|
+ <view class="section-title">
|
|
|
+ <text>共享设置</text>
|
|
|
+ </view>
|
|
|
+ <view class="share-card">
|
|
|
+ <view class="share-info">
|
|
|
+ <text class="share-label">病历共享:</text>
|
|
|
+ <text class="share-status {{record.shared ? 'shared' : 'unshared'}}">
|
|
|
+ {{record.shared ? '已共享' : '未共享'}}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view class="share-desc">
|
|
|
+ <text>共享后医院可以查看您的病历信息,便于后续诊疗</text>
|
|
|
+ </view>
|
|
|
+ <view class="share-action">
|
|
|
+ <button class="share-btn {{record.shared ? 'unshare' : 'share'}}" bindtap="toggleShare">
|
|
|
+ <text>{{record.shared ? '取消共享' : '立即共享'}}</text>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 操作按钮 -->
|
|
|
+ <view class="action-section">
|
|
|
+ <button class="action-btn primary" bindtap="reorder">
|
|
|
+ <text>再次购买药品</text>
|
|
|
+ </button>
|
|
|
+ <button class="action-btn secondary" bindtap="contactDoctor">
|
|
|
+ <text>联系医生</text>
|
|
|
+ </button>
|
|
|
+ <button class="action-btn danger" bindtap="deleteRecord">
|
|
|
+ <text>删除病历</text>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+</view>
|