index.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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" catchtap='goEdit' data-id='{{item.id}}'>
  52. 编 辑
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="black-38"></view>
  58. </view>
  59. </block>
  60. </scroll-view>
  61. </view>
  62. <view class="get-info" wx:if='{{!userInfo.avatar}}'>
  63. <view class="in">
  64. <view class="get-info-head">提示</view>
  65. <view class="get-info-content">请授权您的个人信息!</view>
  66. <view class="get-info-footer">
  67. <text>确定</text>
  68. <button open-type="getUserInfo" bindgetuserinfo="userInfoHandler"></button>
  69. </view>
  70. </view>
  71. </view>
  72. </view>