patient-mini/pages/my/index.wxml
2025-06-10 00:21:13 +08:00

42 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<t-toast id="t-toast" />
<view class="my">
<nav title-text="我的" />
<view class="my-info">
<t-cell-group>
<t-cell wx:if="{{!isLoad}}" bordered="{{false}}">
<t-avatar image="{{personalInfo.image}}" slot="left-icon" size="large" />
<view class="my-info__person" slot="description">
<view class="name">{{personalInfo.username}}
<text>{{personalInfo.sex == 1 ? '男' : '女'}} {{personalInfo.age}}</text>
<t-icon class="edit" slot="right-icon" name="edit" size="36rpx" color="#000000e6" bindtap="onNavigateTo" />
</view>
<view class="time">胆道闭锁手术时间:{{personalInfo.operative_date}}</view>
<view class="peld">PELD评分{{personalInfo.risk_value}}
<t-tag wx:if="{{personalInfo.risk_type == 1}}" class="tag" theme="success" size="small">低危</t-tag>
<t-tag wx:if="{{personalInfo.risk_type == 2}}" class="tag" theme="warning" size="small">中危</t-tag>
<t-tag wx:if="{{personalInfo.risk_type == 3}}" class="tag" theme="danger" size="small">高危</t-tag>
</view>
</view>
</t-cell>
<t-cell wx:if="{{isLoad}}" title="请先登录/注册" bordered="{{false}}" t-class-title="cell-class-title" t-class-center="cell-class-center" bindtap="onLogin">
<t-avatar slot="left-icon" icon="user" size="128rpx" />
</t-cell>
</t-cell-group>
</view>
<view class="my-cell">
<t-cell-group theme="card">
<t-cell wx:for="{{settingList}}" wx:for-item="item" wx:key="type" title="{{item.label}}" url="{{item.path}}" arrow />
</t-cell-group>
</view>
</view>