30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
<!--pages/message/detail/index.wxml-->
|
|
<wxs src="./index.wxs" module="_index" />
|
|
<view class="message-detail">
|
|
|
|
<view wx:if="{{loading}}" class="detail-loading">
|
|
<t-loading theme="circular" size="40rpx" text="加载中..." />
|
|
</view>
|
|
|
|
<block wx:elif="{{detail}}">
|
|
<view class="detail-card">
|
|
<view class="detail-header">
|
|
<text class="detail-title">{{detail.title}}</text>
|
|
<t-tag size="small" variant="light" theme="{{_index.tagTheme(detail.message_type)}}">{{detail.message_type_text}}</t-tag>
|
|
</view>
|
|
<view class="detail-time">{{detail.createtime_text}}</view>
|
|
<view class="detail-content">{{detail.content}}</view>
|
|
</view>
|
|
|
|
<!-- 有跳转页面时才展示入口:不想前往可直接返回,不会被强制跳转 -->
|
|
<view class="detail-actions" wx:if="{{jumpPage}}">
|
|
<t-button theme="primary" size="large" block bind:tap="onJumpTap">前往查看</t-button>
|
|
</view>
|
|
</block>
|
|
|
|
<view wx:else class="detail-empty">
|
|
<t-empty icon="chat-bubble-error" description="消息不存在或已被删除" />
|
|
</view>
|
|
|
|
</view>
|