日照项目的居民端小程序
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.
 
 
 

159 lines
6.8 KiB

<view bind:tap="handleTapRootNode">
<view class="m-info">
<view class="title">{{ info.groupName }}</view>
<view class="menus" wx:if="{{false}}">
<view class="menu-show" catch:tap="showFiltrateListPanel">
<text>{{ topics.state=='discussing' ? '进行中' : (topics.state=='closed' ? '已关闭' : '全部') }}</text>
<image mode="aspectFit"
src="/assets/images/topic/arrow-down.png" />
</view>
<view class="menu-list a-scale-in-right-up" hidden="{{ !isShowedFiltrateListPanle }}">
<view data-state="" bind:tap="filtrateList">全部</view>
<view data-state="discussing" bind:tap="filtrateList">进行中</view>
<view data-state="closed" bind:tap="filtrateList">已关闭</view>
</view>
</view>
</view>
<view class="m-list" bind:tap="blurTopic">
<view class="list">
<view class="item a-fade-in-up"
wx:key="topicId"
wx:for="{{ topics.list }}">
<view class="item-bd">
<view class="user">
<image class="user-avatar" mode="aspectFill"
src="{{ item.releaseUserHeadPhoto }}" />
<view class="user-info">
<view class="user-name">
<text>{{ item.releaseUserName }}</text>
<image wx:for="{{item.badgeList}}"
src="{{ item }}"
mode="aspectFill" />
</view>
<view class="user-date">{{ item.releaseTime }}</view>
</view>
</view>
<view class="cnt">
<view
wx:if="{{ info.leaderFlag=='leader' && item.contentType=='topic' }}"
class="operate {{ item.id==focusedTopicId ? 'z-focused' : '' }}">
<view class="btn-more"
data-id="{{ item.id }}"
catch:tap="focuseTopic">
<image mode="aspectFit"
data-id="{{ item.id }}"
src="/assets/images/topic/more.png" />
</view>
</view>
<image class="pic" mode="aspectFill"
wx:if="{{ item.firstPhoto }}"
src="{{ item.firstPhoto }}" />
<div class="row">
<view class="tag" wx:if="{{item.contentType=='topic'}}">话题</view>
<view class="tag z-1" wx:elif="{{item.contentType=='notice'}}">通知</view>
<view class="tag z-2" wx:elif="{{item.contentType=='act'}}">活动</view>
<view class="tag2" wx:if="{{item.isChanged}}">#已变更#</view>
</div>
<view
class="title {{ item.status=='closed' ? 'z-closed' : (item.status=='canceled' ? 'z-cancel' : (item.isExpirat ? 'z-overdue' : '')) }}">
<view>{{ item.content }}</view>
</view>
<view class="else">
<navigator class="link" wx:if="{{item.contentType=='topic'}}"
url="/pages/group/topic/topicDetail/topicDetail?tid={{ item.id }}&gid={{ groupId }}">查看详情 ></navigator>
<navigator class="link" wx:elif="{{item.contentType=='notice'}}"
data-id="{{item.id}}"
bind:tap="read"
url="/subpages/group/pages/group/notice/detail?noticeId={{ item.id }}&groupId={{ groupId }}">查看详情 ></navigator>
<navigator class="link" wx:elif="{{item.contentType=='act'}}"
data-id="{{item.id}}"
bind:tap="read"
url="/subpages/group/pages/group/activity/detail?groupActId={{ item.id }}&groupId={{ groupId }}">查看详情 ></navigator>
</view>
</view>
<view class="read"
wx:if="{{item.contentType!='topic'}}">
<view wx:if="{{item.readOrUnRead=='read'}}"
class="z-weak z-me">
已读
</view>
<view wx:if="{{item.readOrUnRead!='read'}}"
class="z-me">
未读
</view>
</view>
</view>
</view>
</view>
</view>
<view class="m-more">
<text wx:if="{{ topics.loading }}">正在加载……</text>
<text wx:elif="{{ topics.list.length==0 }}">暂无话题</text>
<text wx:elif="{{ !topics.loading && topics.isNone }}">没有更多了</text>
<text wx:elif="{{ !topics.loading && !topics.isNone }}">上拉查看更多</text>
</view>
<view class="m-fm a-fade-in" hidden="{{ !showedShieldTopicPanel }}">
<view class="fm a-scale-in">
<view class="title">屏蔽话题</view>
<view class="hint"><text>*</text> 屏蔽话题后将无法查看此话题,可在群管理界面恢复已屏蔽话题。</view>
<view class="input">
<textarea type="text"
focus="{{ fmIsFocused }}"
value="{{ fmData.operateReason }}"
placeholder="请描述您屏蔽的理由(必填)"
placeholder-class="z-placeholder"
data-fm="fmData"
data-name="operateReason"
confirm-type="send"
bindinput="inputSync"
cursor-spacing="14"
disable-default-padding="{{true}}"
fixed="{{true}}"
maxlength="300">
</textarea>
</view>
<view class="operate">
<view class="btn btn-off" bind:tap="cancelShieldTopic">取消</view>
<view class="btn" bind:tap="confirmShieldTopic">确认</view>
</view>
</view>
</view>
<view class="m-fm a-fade-in" hidden="{{ !showedCloseTopicPanel }}">
<view class="fm a-scale-in" style="height:650rpx">
<view class="title">关闭话题</view>
<view class="hint"><text>*</text> 关闭话题后,此话题将不能进行评论或回复。</view>
<view class="radio-group">
<radio-group bindchange="closeRadioChange">
<radio class="radio-item" color="#e60000" value="resolved" checked="{{resolved}}">已解决</radio>
<radio class="radio-item" color="#e60000" value="unresolved" checked="{{!resolved}}">无需解决</radio>
</radio-group>
</view>
<view class="input">
<textarea type="text"
focus="{{ fmIsFocused }}"
value="{{ closeFmData.operateReason }}"
placeholder="请描述您关闭的理由(必填)"
placeholder-class="z-placeholder"
data-fm="closeFmData"
data-name="operateReason"
confirm-type="send"
bindinput="inputSync"
cursor-spacing="14"
disable-default-padding="{{true}}"
fixed="{{true}}"
maxlength="300">
</textarea>
</view>
<view class="operate">
<view class="btn btn-off" bind:tap="cancelCloseTopic">取消</view>
<view class="btn" bind:tap="confirmCloseTopic">确认</view>
</view>
</view>
</view>
</view>