发货方式优化及消息功能优化
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
<!--pages/message/index.wxml-->
|
||||
<wxs src="./index.wxs" module="_index" />
|
||||
<view class="message-page">
|
||||
<t-row>
|
||||
<t-col span="4" offset="1" t-class="dark">
|
||||
<!-- <text class="site-message-title">站内消息</text> -->
|
||||
<t-badge count="{{unreadCount}}" content="站内消息" offset="{{ [4] }}" class="wrapper" />
|
||||
</t-col>
|
||||
<t-col span="3" offset="16" t-class="light">
|
||||
<t-icon bindtap="onClearUnreadTap" name="clear" size="40rpx" />
|
||||
</t-col>
|
||||
</t-row>
|
||||
<!-- 顶部标题行:用 flex 保证标题与清除按钮垂直居中对齐 -->
|
||||
<view class="message-header">
|
||||
<!-- 未读数已在下方「全部」tab 的角标展示,此处不再重复显示 -->
|
||||
<text class="site-message-title">站内消息</text>
|
||||
<t-icon class="message-clear" name="clear" size="40rpx" bindtap="onClearUnreadTap" />
|
||||
</view>
|
||||
|
||||
<!-- 消息类型分类 -->
|
||||
<t-tabs value="{{currentTabIndex}}" bind:change="onTabsChange" swipeable="{{false}}" t-class="message-tabs">
|
||||
@@ -24,11 +21,11 @@
|
||||
|
||||
<view class="message-list">
|
||||
<view class="message-item" wx:for="{{list}}" wx:for-item="item" wx:key="id">
|
||||
<t-cell hover bordered data-key="showTextAndTitle" bind:tap="showDialog" data-id="{{item.id}}">
|
||||
<t-cell hover bordered bind:tap="onMessageTap" data-id="{{item.id}}">
|
||||
<t-avatar class="avatar-example" slot="image" image="{{item.image}}" badge-props="{{ {dot: !item.is_read, offset: [0, 4] } }}" />
|
||||
<view slot="title" class="msg-title">
|
||||
<text class="msg-title-text">{{item.title}}</text>
|
||||
<t-tag size="small" variant="light" class="msg-type-tag">{{item.message_type_text}}</t-tag>
|
||||
<t-tag size="small" variant="light" theme="{{_index.tagTheme(item.message_type)}}" class="msg-type-tag">{{item.message_type_text}}</t-tag>
|
||||
</view>
|
||||
<view slot="description">{{_index.ellipsis(item.content, 22)}}</view>
|
||||
<text slot="note">{{item.createtime_text}}</text>
|
||||
@@ -40,12 +37,3 @@
|
||||
</view>
|
||||
<view class="safe-bottom" />
|
||||
</view>
|
||||
<t-dialog visible="{{showTextAndTitle}}" title="{{currentMessage.title}}" confirm-btn="{{ confirmBtn }}" bind:confirm="onDialogConfirm">
|
||||
<!-- 适配skyline,增加type="list" -->
|
||||
<scroll-view slot="content" type="list" scroll-y class="long-content">
|
||||
<view class="content-container">
|
||||
<view class="content-type">{{currentMessage.message_type_text}}</view>
|
||||
{{currentMessage.content}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
</t-dialog>
|
||||
|
||||
Reference in New Issue
Block a user