groupDetails.wxml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <view>
  2. <i-solitaire-head class="mb10" community="{{community}}" showShare="{{soli_info.appstate!=0}}" bind:share="handleShareModal"></i-solitaire-head>
  3. <view class="mb10 bg-f p30">
  4. <view class="weight fsz-30 mb5">{{soli_info.solitaire_name}}</view>
  5. <view class="fsz-26 mb10">
  6. <parser html="{{soli_info.content}}" />
  7. </view>
  8. <view class="fsz-24 text-gray mb10">接龙时间:{{soli_info.begin_time_str}}~{{soli_info.end_time_str}}</view>
  9. <view class="img-list i-flex i-flex-wrap" wx:if="{{soli_info.images_list.length}}">
  10. <image class="img-item" bindtap="showImgPrev" src="{{item}}" lazy-load mode="aspectFill" wx:for="{{soli_info.images_list}}" wx:key="id" data-idx="{{index}}"></image>
  11. </view>
  12. </view>
  13. <view class="bg-f mb10" wx:if="{{soli_info.goods_list.length}}">
  14. <view class="fsz-30 weight text-dark border-bottom p30">商品信息</view>
  15. <view class="goods-list">
  16. <view class="item border-bottom p30" wx:for="{{soli_info.goods_list}}" wx:key="id">
  17. <i-solitaire-good spuItem="{{item}}" idx="{{index}}"></i-solitaire-good>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="bg-f mb10">
  22. <view class="fsz-30 weight text-dark border-bottom p30">活动统计</view>
  23. <view class='three'>
  24. <view class='three-item'>
  25. <view class='three-money'>{{soli_info.invite_count|0}}</view>
  26. <view class='three-title'>浏览(人)</view>
  27. </view>
  28. <view class='three-item'>
  29. <view class='three-money'>{{soli_info.order_count|0}}</view>
  30. <view class='three-title'>参与接龙(人)</view>
  31. </view>
  32. <view class='three-item'>
  33. <view class='three-money'>{{soli_info.soli_total_money|0}}</view>
  34. <view class='three-title'>接龙金额(元)</view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="bg-f">
  39. <view class="fsz-30 weight text-dark border-bottom p30">接龙记录</view>
  40. <view class="list order" wx:if="{{orderList.length}}">
  41. <view class="item border-bottom" wx:for="{{orderList}}" wx:key="order_id">
  42. <view class="i-flex i-aic">
  43. <image class="avatar" src="{{item.avatar}}"></image>
  44. <view class="username i-flex-item fsz-28 weight">{{item.username}}</view>
  45. <view class="fsz-24 text-gray">{{item.addtime}}</view>
  46. </view>
  47. <view class="order-goods i-flex i-aic" wx:if="{{item.goodslist.length}}">
  48. <image wx:for="{{item.goodslist}}" wx:for-item="goods" wx:for-index="idx" wx:key="goods_id" wx:if="{{idx<4}}" src="{{goods.goods_images}}" class="order-goods-img" mode="aspectFill" lazy-load></image>
  49. <image src="../../images/moreBuyer.png" class="order-goods-img" wx:if="{{item.goodslist.length>=4}}" bindtap="handleGoodsModal" data-idx="{{index}}"></image>
  50. <view class="fsz-24 i-flex-item text-right" bindtap="handleGoodsModal" data-idx="{{index}}">
  51. 共<text class="red">{{item.goodsnum}}</text>件</view>
  52. </view>
  53. </view>
  54. <view class="more fsz-26 text-center bule" wx:if="{{!noOrderMore}}" bindtap="getMoreOrder">查看更多订单信息
  55. <text class="iconfont icon-zhankai fsz-24"></text>
  56. </view>
  57. </view>
  58. <view wx:if="{{noOrderData}}" class="list order">
  59. <view class="no-comment text-center text-gray p15">暂无订单记录~</view>
  60. </view>
  61. </view>
  62. <view class="bg-f p30 mb10 text-center" wx:if="{{soli_info.end==0}}">
  63. <block wx:if="{{soli_info.activity_state==1}}">
  64. <view class="text-center mb10 fsz-24" wx:if="{{solitaire_target_type==0}}">
  65. <block wx:if="{{diffMember>0}}">
  66. 预计接龙完成还差<text class="red">{{diffMember}}</text>人,分享邀请尽快完成目标!
  67. </block>
  68. <block wx:else>已完成目标人数</block>
  69. </view>
  70. <view class="text-center mb10 fsz-24" wx:if="{{solitaire_target_type==1}}">
  71. <block wx:if="{{diffMoney>0}}">
  72. 还差<text class="red">{{diffMoney}}</text>元订单金额完成接龙,分享邀请尽快完成目标
  73. </block>
  74. <block wx:else>已完成目标金额</block>
  75. </view>
  76. </block>
  77. <block wx:if="{{soli_info.activity_state==0}}">
  78. <view class="i-flex i-flex-alc mb10">开始倒计时:<i-count-down itemClass="item-time" showDay="{{true}}" target="{{(soli_info.begin_time)*1000}}" clearTimer="{{clearTime}}" wx:if="{{!clearTime}}" bind:callback="initFn"></i-count-down>
  79. </view>
  80. <view class="btn mb10 text-white">
  81. <view class="fsz-32 weight">接龙未开始</view>
  82. </view>
  83. </block>
  84. <view class="btn mb10 text-white" wx:elif="{{soli_info.activity_state==1}}">
  85. <view class="i-flex i-flex-alc">接龙倒计时:<i-count-down showDay="{{true}}" target="{{(soli_info.end_time)*1000}}" clearTimer="{{clearTime}}" wx:if="{{!clearTime}}"></i-count-down></view>
  86. <!-- <view>立即接龙</view> -->
  87. </view>
  88. <view class="btn mb10 text-white" wx:else>已结束</view>
  89. <view class="end-btn text-white" wx:if="{{soli_info.activity_state==1}}" bindtap="endSolitaire">终止活动</view>
  90. </view>
  91. <view class="bg-f p30 mb10 text-center" wx:else>
  92. <view class="btn mb10 text-white">已结束</view>
  93. </view>
  94. <!-- 留言 -->
  95. <view class="bg-f" wx:if="{{solitaire_is_message==1}}">
  96. <view class="text-center p30" style="padding-bottom:0;">
  97. <view class="comment text-gray" bindtap="handleCommentModal">
  98. <text class="iconfont icon-shuru"></text>
  99. <block wx:if="{{soli_info.comment_total}}"> 已有{{soli_info.comment_total}}条留言,</block>快来说说您的感想!</view>
  100. </view>
  101. <view class="fsz-30 weight text-dark border-bottom p30">接龙留言</view>
  102. <view class="msg order" wx:if="{{list.length}}">
  103. <view class="item border-bottom i-flex" wx:for="{{list}}" wx:key="id">
  104. <image class="avatar" src="{{item.avatar}}"></image>
  105. <view class="i-flex-item">
  106. <view class="i-flex i-aic">
  107. <view class="i-flex-item">
  108. <view class="username fsz-28 weight">{{item.username}}</view>
  109. <view class="fsz-24 text-gray my10">{{item.addtime}}</view>
  110. </view>
  111. <view class="fsz-26 text-gray" bindtap="favComment" data-idx="{{index}}" data-post_id="{{item.id}}">
  112. <text class="iconfont fsz-30 {{item.is_agree?'icon-good-fill bule':'icon-good'}}"></text> {{item.fav_count}}
  113. </view>
  114. </view>
  115. <view class="content my10">{{item.content}}</view>
  116. <view class="my10 text-right">
  117. <text class="handled text-gray" bindtap="deleteComment" data-id="{{item.id}}" data-idx="{{index}}">删除</text>
  118. <text class="handled bule" wx:if="{{item.reply.length==0}}" bindtap="replyComment" data-id="{{item.id}}">回复</text>
  119. </view>
  120. <view class="reply" wx:if="{{item.reply.length}}">
  121. <text class="text-gray">{{community.head_name}}:</text>{{item.reply[0].content}}
  122. </view>
  123. </view>
  124. </view>
  125. <i-load-more iClass="loadMore" loading="{{loadMore}}" tip="{{loadText}}" wx:if="{{!noMore}}"></i-load-more>
  126. </view>
  127. <view class="msg order" wx:if="{{noData}}">
  128. <view class="no-comment text-center text-gray p15">暂无留言~</view>
  129. </view>
  130. </view>
  131. <!-- 留言弹窗 -->
  132. <i-modal scrollUp="{{true}}" visible="{{showCommentModal}}" bind:cancel="handleCommentModal">
  133. <view class="comment-modal p30">
  134. <form bindsubmit="subComment">
  135. <view class="i-flex i-flex-spb mb10">
  136. <view class="bule" bindtap="handleCommentModal">取消</view>
  137. <view>
  138. <button class="send bg-blue text-white" formType="submit"><text class="iconfont icon-fabu"></text> 发送</button>
  139. </view>
  140. </view>
  141. <view>
  142. <textarea hidden="{{!showCommentModal}}" class="textarea" name="content" placeholder="内容" auto-focus="{{false}}" value="{{content}}"></textarea>
  143. </view>
  144. </form>
  145. </view>
  146. </i-modal>
  147. <!-- 商品弹窗 -->
  148. <i-modal scrollUp="{{false}}" visible="{{showGoodsModal}}">
  149. <view class="goods-modal">
  150. <view class="bg-f rounded">
  151. <scroll-view class="goods-modal-body" scroll-y>
  152. <view class="item border-bottom p30" wx:if="{{goodsModalList.length}}" wx:for="{{goodsModalList}}" wx:key="id">
  153. <i-solitaire-good spuItem="{{item}}" type="3" idx="{{index}}" hasIpt="{{false}}"></i-solitaire-good>
  154. </view>
  155. </scroll-view>
  156. </view>
  157. <view class="text-center text-white modal-close" bindtap="handleGoodsModal"><text class="iconfont icon-guanbi"></text></view>
  158. </view>
  159. </i-modal>
  160. </view>
  161. <!-- 分享弹窗 -->
  162. <i-modal scrollUp="{{true}}" iClass="shareModal-box" visible="{{showShareModal}}" maskClosable="{{true}}" bind:cancel="handleShareModal">
  163. <view class="i-flex-col shareModal">
  164. <image src="{{image}}" mode="widthFix" class="mb10" style="width: 100%;"/>
  165. <view class="shareBtn fsz-32 bg-primary text-white rounded text-center" bindtap="saveImage">
  166. <text class="iconfont icon-fenxiang fsz-30"></text> 保存图片</view>
  167. </view>
  168. </i-modal>
  169. <i-painter customStyle='position: absolute; left: -9999rpx;' palette="{{template}}" bind:imgOK="onImgOK"/>