|
@@ -202,6 +202,19 @@ export default function Index (props) {
|
202
|
202
|
|
203
|
203
|
<view>
|
204
|
204
|
|
|
205
|
+ {/* 通知栏 */}
|
|
206
|
+ <view className='NoticeContent'>
|
|
207
|
+ <view className='flex-h'>
|
|
208
|
+ <text className='iconfont icontongzhi1'></text>
|
|
209
|
+ <view id='NoticeParent' className='flex-item' onClick={() => { Taro.navigateTo({ url: `/pages/WuYe/GongGaoDetail/index?id=${NoticeInfo.id}` }) }}>
|
|
210
|
+ <view style={{ width: `${NoticeWidth > NoticeParentWidth ? NoticeWidth : NoticeParentWidth}px` }}>
|
|
211
|
+ <text id='NoticeText'>{NoticeInfo === null ? '' : NoticeInfo.announcementTitle}</text>
|
|
212
|
+ </view>
|
|
213
|
+ </view>
|
|
214
|
+ <text className='iconfont iconguanbi' onClick={() => { setShowNotice(false) }}></text>
|
|
215
|
+ </view>
|
|
216
|
+ </view>
|
|
217
|
+
|
205
|
218
|
{/* 欢迎词 */}
|
206
|
219
|
<Text className='Welcome'>欢迎来到远道智慧社区!</Text>
|
207
|
220
|
|
|
@@ -224,19 +237,6 @@ export default function Index (props) {
|
224
|
237
|
</view>
|
225
|
238
|
</view>
|
226
|
239
|
|
227
|
|
- {/* 通知栏 */}
|
228
|
|
- <view className='NoticeContent'>
|
229
|
|
- <view className='flex-h'>
|
230
|
|
- <text className='iconfont icontongzhi1'></text>
|
231
|
|
- <view id='NoticeParent' className='flex-item' onClick={() => { Taro.navigateTo({ url: `/pages/WuYe/GongGaoDetail/index?id=${NoticeInfo.id}` }) }}>
|
232
|
|
- <view style={{ width: `${NoticeWidth > NoticeParentWidth ? NoticeWidth : NoticeParentWidth}px` }}>
|
233
|
|
- <text id='NoticeText'>{NoticeInfo === null ? '' : NoticeInfo.announcementTitle}</text>
|
234
|
|
- </view>
|
235
|
|
- </view>
|
236
|
|
- {/* <text className='iconfont iconguanbi' onClick={() => { setShowNotice(false) }}></text> */}
|
237
|
|
- </view>
|
238
|
|
- </view>
|
239
|
|
-
|
240
|
240
|
{/* 导航 */}
|
241
|
241
|
<view className='NavContainer flex-h'>
|
242
|
242
|
{
|