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

136 lines
5.8 KiB

<view bind:tap="handleTapRootNode">
<view class="m-info">
<view class="title">{{ info.groupName }}</view>
<view class="menus">
<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.shiftIssueFlag }}" class="operate {{ item.topicId==focusedTopicId ? 'z-focused' : '' }}">
<view class="btn-more"
data-id="{{ item.topicId }}"
catch:tap="focuseTopic">
<image mode="aspectFit"
data-id="{{ item.topicId }}"
src="/assets/images/topic/more.png" />
</view>
<view class="btn-list">
<view class="btn" catch:tap="shieldTopic">屏蔽</view>
<view class="btn" wx:if="{{ item.status!='closed' }}" catch:tap="closeTopic">关闭</view>
<view class="btn" wx:if="{{ info.leaderFlag=='leader' && !item.shiftIssueFlag && item.status!='closed' }}" data-topicid="{{item.topicId}}" catch:tap="translateTopic">转议题</view>
</view>
</view>
<image class="pic" mode="aspectFill"
wx:if="{{ false && item.firstPhoto!='' }}"
src="{{ item.firstPhoto }}" />
<view class="tag">话题</view>
<view class="title {{ item.status=='closed' ? 'z-closed' : '' }}">
<view>{{ item.topicContent }}</view>
</view>
<view class="else">
<navigator class="link"
url="/pages/group/topic/topicDetail/topicDetail?tid={{ item.topicId }}&gid={{groupId}}">查看详情 ></navigator>
</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>