|
@@ -2,18 +2,18 @@
|
|
|
<view class="search-box">
|
|
|
<view class="search-input">
|
|
|
<image src="/static/icon-16.png"></image>
|
|
|
- <input type="text" confirm-type='search' placeholder="搜索成员" placeholder-class="input-placeholder" />
|
|
|
+ <input type="text" confirm-type='search' placeholder="{{optionItem==0?'搜索成员':'搜索群'}}" placeholder-class="input-placeholder" />
|
|
|
</view>
|
|
|
<view class="newly-built">
|
|
|
- <van-button custom-class='newButton'>
|
|
|
+ <van-button custom-class='newButton' catchtap="createDialogue">
|
|
|
<image class="newly-built-icon" src="/static/icon-15.png"></image>创建
|
|
|
</van-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 个人聊天 -->
|
|
|
-<view style="margin-top: 30rpx;">
|
|
|
+<view hidden="{{optionItem!=0}}" style="margin-top: 30rpx;">
|
|
|
<view class="msg-box">
|
|
|
- <navigator url="#" wx:for="{{relationList}}" data-item="{{item}}" bindtap="enterTheDialogue">
|
|
|
+ <navigator url="#" wx:for="{{relationList}}" wx:key="index" data-item="{{item}}" bindtap="enterTheDialogue">
|
|
|
<view class="msgImg">
|
|
|
<image wx:if="{{item.latestnews[0].message.sendfrom.headpic}}" src="{{item.latestnews[0].message.sendfrom.headpic}}"></image>
|
|
|
<image wx:else src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/userCenter/userImg.png"></image>
|
|
@@ -34,6 +34,32 @@
|
|
|
</view>
|
|
|
<My_pageReachBottom dummyStatus="{{relationList.length>0}}" loadMore='{{5>=0}}'></My_pageReachBottom>
|
|
|
</view>
|
|
|
+<!-- 讨论组 -->
|
|
|
+<view hidden="{{optionItem!=1}}" style="margin-top: 30rpx;">
|
|
|
+ <view class="msg-box">
|
|
|
+ <navigator url="#" wx:for="{{discussionGroupList}}" wx:key="index" data-item="{{item}}" bindtap="enterTheDialogue">
|
|
|
+ <view class="msgImg">
|
|
|
+ <image wx:if="{{item.latestnews[0].message.sendfrom.headpic}}" src="{{item.latestnews[0].message.sendfrom.headpic}}"></image>
|
|
|
+ <image wx:else src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/userCenter/userImg.png"></image>
|
|
|
+ </view>
|
|
|
+ <view class="borTop">
|
|
|
+ <view class="msgText">
|
|
|
+ <view class="title u-line-1">{{item.latestnews[0].fname}}</view>
|
|
|
+ <view class="msg u-line-1">{{item.latestnews[0].message.ftype=='file'?'[图片]':item.latestnews[0].message.data.fcontent}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="msgCount">
|
|
|
+ <view class="time u-line-1">{{item.fjoindate}}</view>
|
|
|
+ <view class="count u-line-1">
|
|
|
+ <view wx:if="{{item.funreadmsgcount>0}}">{{item.funreadmsgcount}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </navigator>
|
|
|
+ </view>
|
|
|
+ <My_pageReachBottom dummyStatus="{{relationList.length>0}}" loadMore='{{5>=0}}'></My_pageReachBottom>
|
|
|
+</view>
|
|
|
+
|
|
|
+
|
|
|
<!-- 底部 -->
|
|
|
<view class="footer">
|
|
|
<view style="display: flex;justify-content: space-around;">
|