|
@@ -4,6 +4,10 @@
|
|
|
<view class="banner">
|
|
|
<u-swiper circular :radius="5" :indicator="true" keyName="pic" :list="bannerList" :height="160" class="uni-swiper" @click="click"></u-swiper>
|
|
|
</view>
|
|
|
+ <!--通知公告-->
|
|
|
+ <view class="notice">
|
|
|
+ <u-notice-bar color="#545555" :text="noticeList" :step="true" direction="column" mode="link" bgColor="white" speed="300" url="/pages/notice/index"></u-notice-bar>
|
|
|
+ </view>
|
|
|
<!--菜单-->
|
|
|
<view class="menu">
|
|
|
<view class="cd">
|
|
@@ -87,24 +91,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!--通知公告-->
|
|
|
- <!--新闻-->
|
|
|
- <view class="news">
|
|
|
- <view class="gg">
|
|
|
- <view class="title">通知公告</view>
|
|
|
- <view class="bor"></view>
|
|
|
- <view class="more" @click="go('/pages/notice/index')">
|
|
|
- <text>更多</text>
|
|
|
- <text class="icon"></text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="bhe">
|
|
|
- <view class="item" v-for="(item, index) in noticeList" :key="index" @click="go('/pages/notice/detail?id=' + item.id)">
|
|
|
- <view class="title omit">{{ item.title }}</view>
|
|
|
- <view class="date">{{ item.createTime.substring(5, 10) }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
<!--新闻-->
|
|
|
<view class="news">
|
|
|
<view class="gg">
|
|
@@ -185,7 +171,9 @@ export default {
|
|
|
this.http.request({
|
|
|
url: '/app/home/notice/小程序通知',
|
|
|
success: (res) => {
|
|
|
- this.noticeList = res.data.data;
|
|
|
+ res.data.data.forEach((item) => {
|
|
|
+ this.noticeList.push(item.title);
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
//资讯
|
|
@@ -208,8 +196,9 @@ export default {
|
|
|
margin-top: -10px;
|
|
|
}
|
|
|
.notice {
|
|
|
- border-radius: 5px;
|
|
|
margin-top: 10px;
|
|
|
+ border-radius: 5px;overflow: hidden;
|
|
|
+ box-shadow: $box-shadow;
|
|
|
}
|
|
|
.news {
|
|
|
margin-top: 10px;
|