index.wxml 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='group-con'>
  3. <view class='header acea-row row-between-wrapper'>
  4. <view class='pictrue'><image src='{{storeCombination.image}}'></image></view>
  5. <view class='text'>
  6. <view class='line1'>{{storeCombination.title}}</view>
  7. <view class='money'>¥<text class='num'>{{storeCombination.price}}</text><text class='team cart-color'>{{storeCombination.people}} 人拼</text></view>
  8. </view>
  9. <!--拼团失败 -->
  10. <view class='iconfont icon-pintuanshibai' wx:if="{{isOk && count}}"></view>
  11. <!-- 拼团成功时把icon-pintuanshibai换成 icon-pintuanchenggong font-color -->
  12. <view class='iconfont icon-pintuanchenggong font-color' wx:if="{{isOk && !count}}"></view>
  13. </view>
  14. <view class='wrapper'>
  15. <!-- 拼团失败或者成功不显示倒计时 -->
  16. <view class='title acea-row row-center-wrapper' wx:if="{{!isOk}}">
  17. <view class='line'></view>
  18. <view class='name acea-row row-center-wrapper'>
  19. 剩余
  20. <view class='time font-color acea-row row-center-wrapper'>
  21. <text>{{countDownHour || 00}}</text>:
  22. <text>{{countDownMinute || 00}}</text>:
  23. <text>{{countDownSecond || 00}}</text>
  24. </view>
  25. 结束
  26. </view>
  27. <view class='line'></view>
  28. </view>
  29. <!-- 恭喜您拼团成功 -->
  30. <!-- 还差2人,拼团失败 去掉:font-color -->
  31. <view class='tips font-color ' wx:if="{{isOk && !count}}">恭喜您拼团成功</view>
  32. <view class='tips ' wx:elif="{{isOk && !count}}">还差{{count}}人,拼团失败</view>
  33. <view class='tips font-color' wx:elif="{{!isOk && count}}">拼团中,还差{{count}}人拼团成功</view>
  34. <!-- 成功或失败时加:result -->
  35. <view class='list acea-row row-middle {{iShidden?"on":""}} {{isOk ? "result": ""}}' >
  36. <view class='pictrue'><image src='{{pinkT.avatar}}'></image></view>
  37. <view class='pictrue' wx:for="{{pinkAll}}" wx:key='index'><image src='{{item.avatar}}'></image></view>
  38. <view class='pictrue' wx:for="{{count}}" wx:key='index'><image src='/images/vacancy.png'></image></view>
  39. </view>
  40. <!-- 分享团后进入页面-我要参团 -->
  41. <form bindsubmit="goPinkOrder" report-submit='true' wx:if="{{!isOk && !userBool}}" >
  42. <button class='teamBnt bg-color' form-type="submit" hover-class='none'>我要参团</button>
  43. </form>
  44. <!-- 本人开团或者拼团后按钮邀请好友参团 -->
  45. <!-- <button class='teamBnt bg-color' open-type='share' wx:elif="{{!isOk && userBool}}">邀请好友参团</button> -->
  46. <view class='teamBnt bg-color' bindtap='getPinkPoster' wx:elif="{{!isOk && userBool}}">邀请好友参团</view>
  47. <form bindsubmit="removePink" report-submit='true' wx:if="{{!isOk && userBool && pinkT.uid==userInfo.uid}}" >
  48. <button class='cancel' form-type="submit" hover-class='none'>
  49. <text class='iconfont icon-guanbi3'></text>取消开团
  50. </button>
  51. </form>
  52. <!-- 拼团成功和失败: -->
  53. <view class='lookAll acea-row row-center-wrapper' wx:if="{{isOk && (pinkAll.length+count+1) > 5}}" bindtap='lookAll'>{{iShidden?'收起':'查看全部'}}<text class="iconfont {{iShidden?'icon-xiangshang':'icon-xiangxia'}}"></text></view>
  54. <!-- 再次开团 -->
  55. <view class='teamBnt bg-color' wx:if="{{isOk && !count}}" bindtap='againPink'>再次开团</view>
  56. <!-- 重新开团 -->
  57. <view class='teamBnt bg-color' wx:if="{{isOk && count}}" bindtap='againPink'>重新开团</view>
  58. <!-- 拼团成功: -->
  59. <navigator class='lookOrder' hover-class='none' url='/pages/order_details/index?order_id={{current_pink_order}}' wx:if="{{isOk && !count}}">查看订单信息<text class='iconfont icon-xiangyou'></text></navigator>
  60. </view>
  61. <view class='group-recommend'>
  62. <view class='title acea-row row-between-wrapper'>
  63. <view>大家都在拼</view>
  64. <navigator hover-class='none' url='/pages/activity/goods_combination/index' class='more'>更多拼团<text class='iconfont icon-jiantou'></text></navigator>
  65. </view>
  66. <view class='list acea-row row-middle'>
  67. <navigator hover-class='none' class='item' wx:for="{{storeCombinationHost}}" wx:key='index' url='/pages/activity/goods_combination_details/index?id={{item.id}}'>
  68. <view class='pictrue'>
  69. <image src='{{item.image}}'></image>
  70. <view class='team'>{{item.people}}人团</view>
  71. </view>
  72. <view class='name line1'>{{item.title}}</view>
  73. <view class='money font-color'>¥{{item.price}}</view>
  74. </navigator>
  75. </view>
  76. </view>
  77. </view>
  78. <product-window
  79. iSplus="{{iSplus}}"
  80. limitNum="{{limitNum}}"
  81. iSbnt='{{iSbnt}}'
  82. attribute='{{attribute}}'
  83. productAttr="{{productAttr}}"
  84. productSelect="{{productSelect}}"
  85. bind:myevent="onMyEvent"
  86. bind:ChangeAttr="ChangeAttr"
  87. bind:ChangeCartNum="ChangeCartNum"
  88. bind:iptCartNum="iptCartNum"
  89. bind:goCat="goCat"
  90. ></product-window>
  91. <authorize bind:onLoadFun="onLoadFun"></authorize>
  92. <home></home>