index.wxml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <!--pages/detail/index.wxml-->
  2. <!-- <view class="container" bindtouchstart="touchStart" bindtouchend="touchEnd"> -->
  3. <view class="loading" wx:if="{{loading}}"></view>
  4. <view class="container">
  5. <!-- <navBar title-text="CoffeeTalk" back-icon="/img/nav/back@3x.png" background="none" bindback="back" /> -->
  6. <!-- <view class="container-bg {{background[current]}}" style="height: {{navHeight}}px;"></view> -->
  7. <view class="swiper" style="max-height: 60vh;">
  8. <image lazy-load="{{true}}" wx:if="{{currentActivity.imgList.bigImg[0]}}" src="{{BASEIMGURL + currentActivity.imgList.bigImg[0]}}" style="height: {{isScroll?'200rpx':'auto'}}; width: 100%;display:block;" mode="{{isScroll?'aspectFill':'widthFix'}}"></image>
  9. <!-- <swiper bindchange="change" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" current="{{current}}" indicator-color='rgba(255,255,255,.3)' indicator-active-color='#fff' style="height: 100%;">
  10. <block wx:for="{{currentActivity.imgList}}" wx:key="*this">
  11. <swiper-item>
  12. <view class="swiper-item">
  13. <image src="{{BASEIMGURL + item}}" mode="aspectFill"></image>
  14. </view>
  15. </swiper-item>
  16. </block>
  17. </swiper> -->
  18. <!--重置小圆点的样式 -->
  19. <!-- <view class="dots" hidden="{{isScroll}}">
  20. <block wx:for="{{currentActivity.imgList}}" wx:for-index="index" wx:key="index">
  21. <view class="dot {{index == current?'active':''}}"></view>
  22. </block>
  23. </view> -->
  24. <!--重置小圆点的样式 end -->
  25. </view>
  26. <view class="section {{isScroll?'section-scroll':''}}">
  27. <!-- <view wx:if="{{isScroll}}" class="black-70 pd-top" bindtap="scrollView">
  28. <view class="line-active"></view>
  29. </view> -->
  30. <!-- <scroll-view style="height:100%;" scroll-y> -->
  31. <scroll-view style="height:100%;" scroll-y bindscroll="scroll" scroll-top='{{scrollTop}}'>
  32. <view class="pd">
  33. <view class="title">
  34. <view class="title-l">{{currentActivity.title}}</view>
  35. <view class="title-r">
  36. <text class="fee" wx:if='{{currentActivity.attendfee == 0}}'>免费</text>
  37. <text class="fee" wx:else>{{currentActivity.attendfee}}</text>
  38. <text>/人</text>
  39. </view>
  40. </view>
  41. <view wx:if="{{currentActivity.category}}">{{currentActivity.category}}</view>
  42. <view class="label">
  43. <view class="label-icon">
  44. <image src="../../img/location.png"></image>
  45. </view>
  46. <view class="label-text text-overflow">{{currentActivity.location}}</view>
  47. </view>
  48. <view class="label">
  49. <view class="label-icon">
  50. <image src="../../img/time.png"></image>
  51. </view>
  52. <view class="label-text text-overflow time-text">
  53. 开始时间:{{currentActivity.starttime}}
  54. <text wx:if="{{currentActivity.capacity}}">(最多{{currentActivity.capacity}} 人)</text>
  55. </view>
  56. </view>
  57. <view class="label" wx:if="{{currentActivity.endtime}}">
  58. <view class="label-icon">
  59. <image src="../../img/time.png"></image>
  60. </view>
  61. <view class="label-text text-overflow time-text">
  62. 结束时间:{{currentActivity.endtime}}
  63. <!-- <text wx:if="{{currentActivity.capacity}}">(最多{{currentActivity.capacity}} 人)</text> -->
  64. </view>
  65. </view>
  66. <view class="label">
  67. <view class="label-icon">
  68. <image src="../../img/over_time.png"></image>
  69. </view>
  70. <view class="label-text text-overflow time-text">
  71. 报名截止:{{currentActivity.deadline || 'None'}}
  72. </view>
  73. </view>
  74. <view class="label" wx:if="{{currentActivity.organizer}}">
  75. <view class="label-icon">
  76. <image src="../../img/tel.png"></image>
  77. </view>
  78. <view class="label-text text-overflow time-text">
  79. 联系电话:{{currentActivity.organizer}}
  80. </view>
  81. </view>
  82. <view class="activity" wx:if='{{currentActivity.speaker}}'>
  83. <view class="activity-title">主讲人:</view>
  84. <view class="activity-content">
  85. <text>
  86. {{currentActivity.speaker}}
  87. </text>
  88. </view>
  89. </view>
  90. <!-- <view class="activity" wx:if='{{currentActivity.organizer}}'>
  91. <view class="activity-title">联系电话:</view>
  92. <view class="activity-content">
  93. <view>
  94. {{currentActivity.organizer}}
  95. </view>
  96. </view>
  97. </view> -->
  98. <view class="activity-title">活动介绍</view>
  99. <view class="activity" wx:if='{{currentActivity.attention}}'>
  100. <view class="activity-content">
  101. <text>
  102. {{currentActivity.attention}}
  103. </text>
  104. </view>
  105. </view>
  106. <view class="activity" wx:if='{{currentActivity.content}}'>
  107. <text class="activity-content" wx:if='{{currentActivity.content}}'>
  108. {{currentActivity.content}}
  109. </text>
  110. </view>
  111. <!-- <view class="sign-up">
  112. <view class="sign-up-title">
  113. 发起人
  114. </view>
  115. <view class="sign-up-list">
  116. <view class="sign-up-item">
  117. <image wx:if='{{userInfo.avatar}}' src="{{userInfo.avatar}}"></image>
  118. <text wx:else>{{currentActivity.organizer}}</text>
  119. </view>
  120. </view>
  121. </view> -->
  122. <view class="sign-up">
  123. <view class="sign-up-title">
  124. 已报名 <text>({{currentActivity.members.length || 0}}人)</text>
  125. </view>
  126. <view class="sign-up-list">
  127. <view class="sign-up-item" wx:for="{{currentActivity.members}}" wx:key='index'>
  128. <image lazy-load="{{true}}" wx:if="{{item.avatar}}" src="{{item.avatar}}"></image>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="traffic" wx:if='{{currentActivity.latitude && currentActivity.longitude}}'>
  133. <!-- <view class="traffic-title"></view> -->
  134. <view class="traffic-desc" wx:if="{{currentActivity.traffic}}">{{currentActivity.traffic}}</view>
  135. <view class="traffic-map">
  136. <map id="map" longitude="{{currentActivity.longitude}}" latitude="{{currentActivity.latitude}}" scale="14" markers="{{markers}}"></map>
  137. </view>
  138. </view>
  139. <view class="black-210"></view>
  140. </view>
  141. </scroll-view>
  142. </view>
  143. <view class="submit">
  144. <view class="share">
  145. <button open-type="share"></button>
  146. 分享
  147. </view>
  148. <view class="add" wx:if='{{currentActivity.organizer != userInfo.phone}}'>
  149. <block wx:if='{{currentActivity.shareMember == 1}}'>已参加</block>
  150. <block wx:else>
  151. <button wx:if='{{!userInfo.phone}}' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
  152. <button wx:else catchtap='add' data-actid='{{currentActivity.id}}'></button>
  153. 参加
  154. </block>
  155. </view>
  156. </view>
  157. <!-- <view class="get-info" wx:if='{{!userInfo.phone}}'>
  158. <view class="in">
  159. <view class="get-info-head">提示</view>
  160. <view class="get-info-content">请授权您的手机号!</view>
  161. <view class="get-info-footer">
  162. <text>确定</text>
  163. <button data-type='getPhone' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
  164. </view>
  165. </view>
  166. </view> -->
  167. <view class="get-info-mask" hidden="{{hideGetInfo}}">
  168. <view class="in {{!hideGetInfo?'scroll-in':''}}">
  169. <view class="avatar">
  170. <image src="{{ BASEIMGURL1 + 'coffeetalk_small.jpg'}}"></image>
  171. </view>
  172. <view class="name">Coffee Talk</view>
  173. <view class="des">申请获得你的微信头像</view>
  174. <view class="btn">
  175. <button open-type="getUserInfo" bindgetuserinfo="userInfoHandler">获取微信头像</button>
  176. </view>
  177. </view>
  178. </view>
  179. </view>