index.wxml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!--pages/detail/index.wxml-->
  2. <view class="container">
  3. <!-- <navBar title-text="CoffeeTalk" back-icon="/img/nav/back@3x.png" background="none" bindback="back" /> -->
  4. <!-- <view class="container-bg {{background[current]}}" style="height: {{navHeight}}px;"></view> -->
  5. <view class="swiper" style="height: {{isScroll?'468':'686'}}rpx;">
  6. <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%;">
  7. <block wx:for="{{currentActivity.imgList}}" wx:key="*this">
  8. <swiper-item>
  9. <view class="swiper-item">
  10. <image src="{{item}}" mode="aspectFill"></image>
  11. </view>
  12. </swiper-item>
  13. </block>
  14. </swiper>
  15. <!--重置小圆点的样式 -->
  16. <view class="dots" style='bottom:{{isScroll?"100":"12"}}rpx'>
  17. <block wx:for="{{currentActivity.imgList}}" wx:for-index="index" wx:key="index">
  18. <view class="dot {{index == current?'active':''}}"></view>
  19. </block>
  20. </view>
  21. <!--重置小圆点的样式 end -->
  22. </view>
  23. <view class="section {{isScroll?'section-scroll':''}}">
  24. <view class="black-70 pd-top" bindtap="scrollView">
  25. <view class="line-active"></view>
  26. </view>
  27. <scroll-view style="height:100%;" scroll-y>
  28. <!-- <scroll-view style="height:100%;" scroll-y bindscroll="scroll"> -->
  29. <view class="pd">
  30. <view class="title">
  31. <view class="title-l">{{currentActivity.title}}</view>
  32. <view class="title-r">
  33. <text class="fee" wx:if='{{currentActivity.attendfee == 0}}'>免费</text>
  34. <text wx:else>{{currentActivity.attendfee}}/人</text>
  35. </view>
  36. </view>
  37. <view class="label">
  38. <view class="label-icon">
  39. <image src="../../img/location.png"></image>
  40. </view>
  41. <view class="label-text text-overflow">{{currentActivity.location}}</view>
  42. </view>
  43. <view class="label">
  44. <view class="label-icon">
  45. <image src="../../img/time.png"></image>
  46. </view>
  47. <view class="label-text text-overflow time-text">
  48. {{currentActivity.starttime}}
  49. <text>(最多{{currentActivity.capacity}} 人)</text>
  50. </view>
  51. </view>
  52. <view class="label">
  53. <view class="label-icon">
  54. <image src="../../img/over_time.png"></image>
  55. </view>
  56. <view class="label-text text-overflow time-text">
  57. 报名截止:{{currentActivity.endtime}}
  58. </view>
  59. </view>
  60. <view class="activity" wx:if='{{currentActivity.content}}'>
  61. <view class="activity-title">活动介绍</view>
  62. <view class="activity-content">
  63. <view>
  64. {{currentActivity.content}}
  65. </view>
  66. </view>
  67. </view>
  68. <view class="sign-up">
  69. <view class="sign-up-title">
  70. 已报名 <text>({{currentActivity.membersList.length || 0}}人)</text>
  71. </view>
  72. <!-- <view class="sign-up-list">
  73. <view class="sign-up-item"></view>
  74. </view> -->
  75. </view>
  76. <view class="traffic" wx:if='{{currentActivity.lat && currentActivity.lng}}'>
  77. <!-- <view class="traffic-title"></view> -->
  78. <!-- <view class="traffic-desc"></view> -->
  79. <view class="traffic-map">
  80. <map id="map" longitude="{{currentActivity.lng}}" latitude="{{currentActivity.lat}}" scale="14" markers="{{markers}}"></map>
  81. </view>
  82. </view>
  83. <view class="black-210"></view>
  84. </view>
  85. </scroll-view>
  86. </view>
  87. <view class="submit">
  88. <view class="share">
  89. <button open-type="share"></button>
  90. 分享
  91. </view>
  92. <view class="add" wx:if='{{currentActivity.organizer != userInfo.phone}}'>
  93. <block wx:if='{{currentActivity.shareMember == 1}}'>已参加</block>
  94. <block wx:else>
  95. <button wx:if='{{!userInfo.phone}}' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
  96. <button wx:else catchtap='add'></button>
  97. 参加
  98. </block>
  99. </view>
  100. <!-- <view class="go-share" wx:if='{{currentActivity.organizer == userInfo.phone || currentActivity.shareMember == 1}}'>
  101. 分享
  102. </view>
  103. <block wx:else>
  104. <button wx:if='{{!userInfo.phone}}' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
  105. <button wx:else catchtap='add'></button>
  106. 立即参加
  107. </block> -->
  108. </view>
  109. </view>