You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
192 lines
9.7 KiB
192 lines
9.7 KiB
<wxs module="filter" src="../../utils/filter.wxs"></wxs>
|
|
<view class="home">
|
|
<view class="nav" bindtap="changeGrid">
|
|
<view class="nav-logo">
|
|
<image src="/images/home/ic_dang.png" />
|
|
</view>
|
|
<view class="nav-subjection">{{departmentName}}</view>
|
|
<view class="nav-next">
|
|
<image class="image" src="/images/home/next.png" />
|
|
</view>
|
|
</view>
|
|
<view class="slider-layout">
|
|
<swiper class="slider" indicator-dots='true' indicator-color='#999999' indicator-active-color='#ffffff' autoplay='true'>
|
|
<swiper-item wx:for="{{swiperBannerList}}" wx:for-item="item" wx:for-index="index" wx:key="{{index}}">
|
|
<navigator wx:if="{{item.newsFlag=='1'}}" url="/subpages/home/pages/newsDetail/newsDetail?id={{item.id}}">
|
|
<image class="banner" src='{{item.imgUrl}}' mode="aspectFill"></image>
|
|
<view class='swiper-label'>
|
|
<view class="swiper-label-text">{{item.title}}</view>
|
|
</view>
|
|
</navigator>
|
|
<navigator wx:if="{{item.newsFlag=='0'}}" url="/subpages/home/pages/webview/webview?url={{item.url}}">
|
|
<image class="banner" src='{{item.imgUrl}}' mode="aspectFill"></image>
|
|
<view class='swiper-label'>
|
|
<view class="swiper-label-text">{{item.title}}</view>
|
|
</view>
|
|
</navigator>
|
|
</swiper-item>
|
|
</swiper>
|
|
</view>
|
|
<view class="border">
|
|
<!-- 我的消息 -->
|
|
<view class="notice">
|
|
<view class="notice-myinfo">
|
|
<view class="notice-myinfo-logo">
|
|
<image src="/images/home/wodexiaoxi.png" />
|
|
</view>
|
|
<view class="notice-myinfo-content" wx:if="{{infoObj.title != ''}}" bindtap="toInfoList">
|
|
<view class="notice-myinfo-content-top">
|
|
<span>{{infoObj.title}}</span>
|
|
<view class="amount" wx:if="{{infoObj.amount != '0'}}">{{infoObj.amount}}</view>
|
|
</view>
|
|
<view class="notice-myinfo-content-bottom">
|
|
<span>{{departmentName}}</span>
|
|
<span>{{infoObj.time.substring(0, 10)}}</span>
|
|
</view>
|
|
</view>
|
|
<view class="notice-myinfo-content" wx:else>暂无更多消息~</view>
|
|
</view>
|
|
<view class="notice-broadcast">
|
|
<view class="notice-broadcast-logo">
|
|
<image src="/images/home/laba.png" />
|
|
</view>
|
|
<view class="havenotice" wx:if="{{noticeList.length > 0}}">
|
|
<view class="notice-broadcast-content" class="scrollNotice">
|
|
<view class="ul list swiper-wrapper" class="notice_list">
|
|
<view class="swiperview swiper-position">
|
|
<swiper class="swiperitem" indicator-dots="true" autoplay="true" vertical="true" circular="true">
|
|
<block wx:for="{{noticeList}}" wx:key="{{index}}" wx:for-item="item" wx:for-index="index">
|
|
<swiper-item>
|
|
<navigator url="/subpages/home/pages/noticeDetail/noticeDetail?id={{item.id}}">
|
|
<text class="swiper-txt">{{item.noticeTitle}}</text>
|
|
</navigator>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="notice-broadcast-more" bindtap="moreNotice">更多</view>
|
|
</view>
|
|
<view wx:else class="nomorenotice">暂无更多通知~</view>
|
|
</view>
|
|
</view>
|
|
<!-- 我的消息 end -->
|
|
<view wx:if="{{issueList.length!==0}}">
|
|
<view class="hotissue">最热议题</view>
|
|
<swiper class='swiper' indicator-dots="{{options.indicatorDots}}" autoplay="{{options.autoplay}}" circular="{{options.circular}}" vertical="{{options.vertical}}" bindchange="swiperChange" interval="{{options.interval}}" duration="{{options.duration}}" previous-margin="{{options.previousMargin}}rpx" next-margin="{{options.nextMargin}}rpx">
|
|
<block wx:for="{{issueList}}" wx:for-index="index" wx:for-item="item" wx:key="{{index}}">
|
|
<swiper-item class="swiper-item {{ index == options.currentSwiper ? 'swiper-slide-active' : 'swiper-slide-scaleY' }}">
|
|
<navigator url="/subpages/discussion/pages/discussionDetail/discussionDetail?detailId={{item.id}}&type=issue">
|
|
<view class='item-content'>
|
|
<!-- #content body -->
|
|
<view class="swiper-wrapper">
|
|
<view class="swiper-slide">
|
|
<view class="content" style="background: {{colorList[index]}}">
|
|
<view class="top">
|
|
<view class="div yellowrect">正在热议</view>
|
|
<view class="p">表达态度 {{item.statementNum}}次</view>
|
|
</view>
|
|
<view class="title">{{item.issueContent}}</view>
|
|
<view class="remark" wx:if="{{item.comment.content}}">
|
|
{{item.comment.content}}
|
|
</view>
|
|
<view class="remark" wx:else>暂无最新评论~</view>
|
|
<view class="attitude">
|
|
<view>支持 {{item.approveNum}}</view>
|
|
<view>{{item.opposeNum}} 不支持</view>
|
|
</view>
|
|
<view class="info">
|
|
<view class="left">
|
|
<image src="{{item.avatar}}" />
|
|
<span>{{item.nickname}}</span>
|
|
</view>
|
|
<view class="right">
|
|
<view class="div">去评论</view>
|
|
<image src="/images/home/happy.png" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- #content body end -->
|
|
</view>
|
|
</navigator>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
<view class="dots">
|
|
<block wx:for="{{ issueList }}" wx:key="{{index}}" wx:for-index="index" wx:for-item="item">
|
|
<view class="dot{{index == options.currentSwiper ? ' active' : '' }}"></view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{projectList.length!==0}}">
|
|
<view class="hotissue">最新处理项目</view>
|
|
<swiper class='swiper item-project' indicator-dots="{{options2.indicatorDots}}" autoplay="{{options2.autoplay}}" circular="{{options2.circular}}" vertical="{{options2.vertical}}" bindchange="swiperChange2" interval="{{options2.interval}}" duration="{{options2.duration}}" previous-margin="{{options2.previousMargin}}rpx" next-margin="{{options2.nextMargin}}rpx">
|
|
<block wx:for="{{projectList}}" wx:key="index">
|
|
<swiper-item class="swiper-item2 {{ index == options2.currentSwiper ? 'swiper-slide-active' : 'swiper-slide-scaleY2' }}">
|
|
<navigator url="/subpages/discussion/pages/discussionDetail/discussionDetail?detailId={{item.id}}&type=project">
|
|
<!-- <image src="{{ item.headUrl }}" binderror="errImg" class="slide-image" data-err-img="item[{{index}}].img" /> -->
|
|
<view class='item-content2'>
|
|
<!-- #project content body -->
|
|
<view class="swiper-wrapper new-project-swiper item-project">
|
|
<view class="swiper-slide item-project">
|
|
<view class="content item-project">
|
|
<view class="top">
|
|
<view class="div {{item.stateName === '已结案' ? 'greenrect' : 'yellowrect'}}">
|
|
{{item.stateName}}
|
|
</view>
|
|
<view class="p">表达态度 {{item.statementNum}}次</view>
|
|
</view>
|
|
<view class="picture">
|
|
<image wx:if="{{item.images.length > 0}}" src="{{item.images[0]}}" mode="aspectFill" />
|
|
<image wx:else src="/images/home/index-empty.png" />
|
|
</view>
|
|
<view class="title">{{item.itemContent}}</view>
|
|
<view class="progress">
|
|
<view class="tip">处理进展</view>
|
|
<view class="handle-content">{{item.latestProgress.advice}}</view>
|
|
</view>
|
|
<view class="info">
|
|
<view class="left">
|
|
<image src="{{item.avatar}}" />
|
|
<span>{{item.nickname}}</span>
|
|
</view>
|
|
<view class="right">
|
|
<view class="div">去查看</view>
|
|
<image src="/images/home/happy.png" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- #content body end -->
|
|
</view>
|
|
</navigator>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
<view class="dots">
|
|
<block wx:for="{{ projectList }}" wx:key="index">
|
|
<view class="dot{{index == options2.currentSwiper ? ' active' : '' }}"></view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
<!-- 新闻列表 -->
|
|
<view class="news-list">
|
|
<view class="news-list-li" wx:for-index="index" wx:for-item="item" wx:key="{{index}}" wx:for="{{newsList}}" data-id="{{item.id}}" bindtap="toDetail">
|
|
<view class="item-left">
|
|
<view class="title">{{item.newsTitle}}</view>
|
|
<view class="time">{{filter.formatTime(item.newsStartTime, 'yyyy-MM-dd')}}</view>
|
|
<view class="address">{{item.deptName}}-{{item.newsCategoryName}}</view>
|
|
</view>
|
|
<view class="item-right">
|
|
<image preview="1" src="{{item.newsImageUrl}}" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view hidden="{{nomorenews}}" class="nomorenews">没有更多了~</view>
|
|
<!-- 新闻列表 end -->
|
|
</view>
|
|
</view>
|