riku
2024-11-12 befd1f21839939b54254bd316bbd158b136fcd15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<view class="notice-list-wrap">
  <block wx:if="{{values.length > 0}}">
    <block wx:for="{{values}}" wx:for-index="index" wx:key="index">
              <view
          class="notice-list-item"
          data-index="{{index}}"
          bindtap="showDialog"
        >
        <t-badge dot="{{!item.hasRead}}" offset="{{ [0, 0] }}" style="margin-top: 6px;">
      </t-badge>
        <view>
          <!-- <view class="notice-list-type"> {{item.subTypeName}} </view> -->
          <view class="notice-list-title limit-line"> {{item.title}} </view>
          <view class="notice-list-content limit-line" user-select>
            {{item.content}}
          </view>
          <view class="notice-list-time"> {{item.updateTime}} </view>
        </view>
        </view>
    </block>
  </block>
  <t-empty-page wx:else description="{{emptyText}}"></t-empty-page>
  <load-more
    list-is-empty="{{!values.length}}"
    status="{{loadStatus}}"
    bind:retry="retry"
  />
</view>
 
<t-dialog
  visible="{{showNoticeDetail}}"
  title="{{showTitle}}"
  confirm-btn="{{confirmBtn}}"
  prevent-scroll-through
  bind:confirm="closeDialog"
>
  <scroll-view slot="content" scroll-y class="long-content">
    <text class="content-container" user-select="{{true}}"
      >{{showContent}}
    </text>
  </scroll-view>
</t-dialog>