From 068be2757aa2d51e3f6604dae54287683160ad0e Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 19 一月 2026 17:29:48 +0800
Subject: [PATCH] 2026.1.19
---
pages/mNotice/notice/notice.wxml | 66 ++++++++++++++++++++++++++-------
1 files changed, 52 insertions(+), 14 deletions(-)
diff --git a/pages/mNotice/notice/notice.wxml b/pages/mNotice/notice/notice.wxml
index 0753be8..2812442 100644
--- a/pages/mNotice/notice/notice.wxml
+++ b/pages/mNotice/notice/notice.wxml
@@ -3,34 +3,60 @@
<view class="page">
<view class="swiper-tab">
- <scroll-view scroll-left="{{navScrollLeft}}" scroll-x="true" show-scrollbar="false" scroll-with-animation="true">
+ <scroll-view
+ scroll-left="{{navScrollLeft}}"
+ scroll-x="true"
+ show-scrollbar="false"
+ scroll-with-animation="true"
+ >
<block wx:for="{{tabList}}" wx:key="i">
- <view class="swiper-tab-list {{currentTab==index ? 'on' : ''}}" data-current="{{index}}" bindtap="swichNav">{{item.name}}</view>
+ <view
+ class="swiper-tab-list {{currentTab==index ? 'on' : ''}}"
+ data-current="{{index}}"
+ bindtap="swichNav"
+ >{{item.name}}
+ <view class="badge" wx:if="{{unReadList[index] > 0}}">{{unReadList[index]}}</view>
+ </view>
</block>
</scroll-view>
</view>
- <swiper current="{{currentTab}}" class="swiper-box" duration="300" bindchange="bindChange" style="height: {{pageheight}};">
- <block wx:for="{{pageList}}" wx:for-item="page" wx:key="n">
+ <swiper
+ current="{{currentTab}}"
+ class="swiper-box"
+ duration="300"
+ bindchange="bindChange"
+ style="height: {{pageheight}};"
+ >
+ <block wx:for="{{pageList}}" wx:for-item="page" wx:key="index">
<swiper-item>
<view class="page{{index}}">
<block wx:if="{{page.length > 0}}">
- <view wx:for="{{page}}" wx:for-item="notice" wx:key="index">
- <view class="fyui-box fyui-box__text">
+ <view wx:for="{{page}}" wx:for-item="notice" wx:for-index="index2" wx:key="index2">
+ <view class="fyui-box fyui-box__text" data-index="{{[index, index2]}}" bindtap="showDialog">
+ <view
+ class="{{notice.hasRead ? 'notice-read' : 'notice-not-read'}}"
+ ></view>
<view class="fyui-box__hd">
- <image src="/res/icons/notice.png" class=""></image>
+ <!-- <image src="/res/icons/notice.png" class=""></image> -->
<view class="title">
- <view>宸ヤ綔閫氱煡</view>
- <text>{{notice.updateTime}}</text>
+ <view class="limit-line">{{notice.title}}</view>
</view>
</view>
<view class="fyui-box__bd">
<!-- <view class="fyui-box__content tag">鐩稿叧琛屼笟 -> {{item.fileIndustry}}</view> -->
- <text class="fyui-box__content des">{{notice.content}}</text>
+ <view class="fyui-box__content des limit-line">{{notice.content}}</view>
+ <view class="right-time">{{notice.updateTime}}</view>
</view>
- <view class="fyui-box__ft">
+ <view class="fyui-box__ft" wx:if="{{notice.needSigned}}">
<!-- <text class="detail">鏌ョ湅璇︽儏 ></text> -->
- <button wx:if="{{notice.needSigned}}" class="sign" size="mini" type="{{notice.hasSigned ? 'default' : 'primary'}}" plain="{{notice.hasSigned}}" loading="">
+ <button
+ class="sign"
+ size="mini"
+ type="{{notice.hasSigned ? 'default' : 'primary'}}"
+ plain="{{notice.hasSigned}}"
+ loading=""
+ >
{{notice.hasSigned ? '宸茬鏀�' : '绛炬敹'}}
</button>
</view>
@@ -43,6 +69,18 @@
</swiper-item>
</block>
</swiper>
+</view>
-
-</view>
\ No newline at end of file
+<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>
\ No newline at end of file
--
Gitblit v1.9.3