index.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!-- 搜索/新建 -->
  2. <view class="search-box">
  3. <view class="search-input">
  4. <image src="/static/icon-16.png"></image>
  5. <input type="text" confirm-type='search' placeholder="搜索成员" placeholder-class="input-placeholder" />
  6. </view>
  7. <view class="newly-built">
  8. <van-button custom-class='newButton'>
  9. <image class="newly-built-icon" src="/static/icon-15.png"></image>创建
  10. </van-button>
  11. </view>
  12. </view>
  13. <!-- 个人聊天 -->
  14. <view style="margin-top: 30rpx;">
  15. <view class="msg-box">
  16. <navigator url="#" wx:for="{{relationList}}" data-item="{{item}}" bindtap="enterTheDialogue">
  17. <view class="msgImg">
  18. <image wx:if="{{item.latestnews[0].message.sendfrom.headpic}}" src="{{item.latestnews[0].message.sendfrom.headpic}}"></image>
  19. <image wx:else src="/static/tacitly-approve/MRproduct.png"></image>
  20. </view>
  21. <view class="borTop">
  22. <view class="msgText">
  23. <view class="title u-line-1">{{item.latestnews[0].fname}}</view>
  24. <view class="msg u-line-1">{{item.latestnews[0].message.ftype=='file'?'[图片]':item.latestnews[0].message.data.fcontent}}</view>
  25. </view>
  26. <view class="msgCount">
  27. <view class="time u-line-1">{{item.fjoindate}}</view>
  28. <view class="count u-line-1">
  29. <view wx:if="{{item.funreadmsgcount>0}}">{{item.funreadmsgcount}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. </navigator>
  34. </view>
  35. <My_pageReachBottom dummyStatus="{{relationList.length>0}}" loadMore='{{5>=0}}'></My_pageReachBottom>
  36. </view>
  37. <!-- 底部 -->
  38. <view class="footer">
  39. <view style="display: flex;justify-content: space-around;">
  40. <view class="option-item" data-index="0" catchtap="footerOption">
  41. <image hidden="{{optionItem!=0}}" mode="heightFix" src="/static/chatRoom/one-to-one-ac.png"></image>
  42. <image hidden="{{optionItem==0}}" mode="heightFix" src="/static/chatRoom/one-to-one.png"></image>
  43. <view class="item-text">个聊</view>
  44. </view>
  45. <view class="option-item" data-index="1" catchtap="footerOption">
  46. <image hidden="{{optionItem!=1}}" mode="heightFix" src="/static/chatRoom/group-of-people-ac.png"></image>
  47. <image hidden="{{optionItem==1}}" mode="heightFix" src="/static/chatRoom/group-of-people.png"></image>
  48. <view class="item-text">群聊</view>
  49. </view>
  50. </view>
  51. <view wx:if="{{iosX}}" style="height: 34rpx;"></view>
  52. </view>
  53. <!-- 底部占位 -->
  54. <view style="height:{{iosX?'134':'100'}}rpx;"></view>