index.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!--index.wxml-->
  2. <view class="container">
  3. <!-- <navBar
  4. title-text="CoffeeTalk"
  5. back-icon="/img/nav/back@3x.png"
  6. background="none"
  7. bindback="back"/> -->
  8. <!-- <navBar title-text="CoffeeTalk" background="none" /> -->
  9. <view class="title-img"></view>
  10. <view class="list">
  11. <scroll-view style="height: 100%;" scroll-y>
  12. <view class="black-112"></view>
  13. <view class="no-msg" wx:if='{{!list.length}}'>暂无数据~</view>
  14. <block wx:else>
  15. <view wx:for='{{list}}' wx:key='index'>
  16. <view class="item" catchtap="goDetail" data-id='{{item.id}}'>
  17. <view class="me-active" wx:if='{{item.organizer == userInfo.phone}}'>
  18. <image src="../../img/me.png"></image>
  19. </view>
  20. <view class="item-img">
  21. <image src="{{item.imgList[0]}}" mode='aspectFill'></image>
  22. </view>
  23. <view class="item-content">
  24. <view class="content-title">{{item.title}}</view>
  25. <view class="content-addr">
  26. <view class='addr-icon'>
  27. <image src="../../img/location.png"></image>
  28. </view>
  29. <view>
  30. <text class="addr">{{item.location}}</text>
  31. <text class="addr-m" wx:if='{{item.distance}}'>距您{{item.distance}} m</text>
  32. </view>
  33. </view>
  34. <view class="content-time">
  35. <view class="time-icon">
  36. <image src="../../img/time.png"></image>
  37. </view>
  38. <view>
  39. <text class="time">{{item.starttime}}</text>
  40. <text class="number">(最多{{item.capacity}} 人)</text>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="line"></view>
  45. <view class="item-fn">
  46. <view class="fn-l">
  47. <view class="fn-t" wx:if='{{item.attendfee == 0}}'>免费</view>
  48. <view class="fn-d" wx:else>{{item.attendfee}}/人</view>
  49. </view>
  50. <view class="fn-r" catchtap="touchHandler">
  51. <view class="go-detail" wx:if='{{item.organizer == userInfo.phone}}' catchtap='goEdit' data-id='{{item.id}}'>
  52. 编 辑
  53. </view>
  54. <view class="go-detail" wx:elif='{{item.shareMember == 1}}' catchtap='goDetail' data-id='{{item.id}}'>
  55. 已参加
  56. </view>
  57. <block wx:else>
  58. <button data-actid='{{item.id}}' wx:if='{{!userInfo.phone}}' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
  59. <button wx:else catchtap='add' data-actid='{{item.id}}'></button>
  60. 立即参加
  61. </block>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="black-38"></view>
  66. </view>
  67. </block>
  68. </scroll-view>
  69. </view>
  70. <view class="add" bindtap="goAdd">
  71. <text>+</text>
  72. </view>
  73. <!-- <view class="userinfo">
  74. <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
  75. <block wx:else>
  76. <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
  77. <text class="userinfo-nickname">{{userInfo.nickName}}</text>
  78. </block>
  79. </view> -->
  80. </view>