helpfarm-detail.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <import src="../../../utils/wxParse/wxParse.wxml"/>
  2. <view class="bg">
  3. <swiper class="swiper" bindchange='onSlideChangeEnd' indicator-active-color="#eab86a" indicator-color="#fff" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}">
  4. <block wx:for="{{imgUrls}}" wx:key="{{index}}">
  5. <swiper-item>
  6. <image src="{{item}}" class="slide-image"/>
  7. </swiper-item>
  8. </block>
  9. </swiper>
  10. <view class="mokuai" wx:if="{{imgUrls.length > 1}}">{{imgindex}}/{{imgUrls.length}}</view>
  11. <view class="mokuai1">
  12. <view class="start" wx:if="{{project.state == 0}}" style="background:#8fcd85">{{project.state_cn}}</view>
  13. <view class="start" wx:if="{{project.state == 1}}">{{project.state_cn}}</view>
  14. <view class="start" wx:if="{{project.state == 2}}" style="background:skyblue">{{project.state_cn}}</view>
  15. <image wx:if="{{ctime > 0 && project.state == 1}}" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/custom/clock.png" class="clock"/>
  16. <!--<view class="time"><format-time type="formatTime" value="{{ctime}}" ></format-time></view>-->
  17. <view class="time" wx:if="{{ctime > 0 && project.state == 1}}">剩余{{day}}天{{hour}}时{{min}}分{{second}}秒</view>
  18. <!--<view class="time" wx:if="{{ctime <= 0}}">剩余0天</view>-->
  19. <view class="clean"></view>
  20. <view class="describe">{{project.title}}</view>
  21. <view class="danjia">单价</view>
  22. <view style="width: 400rpx;">
  23. <view class="money"><text style="font-size: 32rpx">{{project.min_project_way_price / 100}}</text>元起</view>
  24. <view class="count" wx:if="{{project.state !== 2}}">
  25. <text wx:if="{{project.min_funding === project.max_funding}}">剩余{{InvestWayList.total_left_copies_min}}份</text>
  26. <text wx:if="{{project.min_funding !== project.max_funding && !InvestWayList.total_left_copies_min}}">剩余{{InvestWayList.total_left_copies_max}}份</text>
  27. <text wx:if="{{project.min_funding !== project.max_funding && InvestWayList.total_left_copies_min}}">剩余{{InvestWayList.total_left_copies_min}}~{{InvestWayList.total_left_copies_max}}份</text>
  28. </view>
  29. <view class="count" wx:if="{{project.state === 2}}">
  30. <text wx:if="{{project.min_funding === project.max_funding}}">共团购{{project.current_funding / project.unit_price}}份</text>
  31. <text wx:if="{{project.min_funding !== project.max_funding}}">共团购{{project.min_funding / project.unit_price}}~{{project.current_funding / project.unit_price}}份</text>
  32. </view>
  33. <view class="clean"></view>
  34. </view>
  35. <view class="line"></view>
  36. <!--背景圆-->
  37. <view class="circle">
  38. <!--左半边圆-->
  39. <view class="circle_left" style="transform:rotate({{progress1}}deg)">
  40. <view class="clip_left"></view>
  41. </view>
  42. <!--右半边圆-->
  43. <view class="circle_right" style="transform:rotate({{progress}}deg);background:{{bgcolor}}">
  44. <view class="clip_right"></view>
  45. </view>
  46. <view class="mask">
  47. <text>{{percent}}</text>%
  48. </view>
  49. </view>
  50. <view class="end">完成度</view>
  51. <view class="clean"></view>
  52. </view>
  53. <view>
  54. <view class="detail-text">
  55. <view class="detail-line"></view>
  56. 详情介绍
  57. <view class="detail-line1"></view>
  58. </view>
  59. <!-- <scroll-view scroll-x="true" class="tab-h" scroll-left="{{scrollLeft}}">
  60. <view class="tab-item {{currentTab==0?'active':''}}" data-current="0" bindtap="swichNav">农场介绍</view>
  61. <view class="tab-item {{currentTab==1?'active':''}}" data-current="1" bindtap="swichNav">团购规则</view>
  62. </scroll-view> -->
  63. <view class="showImage" wx:if="{{currentTab == 0 && project.is_detail_pics}}">
  64. <image class="project-imgList" src="{{item.img}}" wx:for="{{project.introduce_pics}}" wx:key="index" mode="widthFix"></image>
  65. </view>
  66. <view class="show" wx:if="{{currentTab == 0 && !project.is_detail_pics}}">
  67. <template is="wxParse" data="{{wxParseData:parse.nodes}}"/>
  68. </view>
  69. <!-- <view class="show" wx:if="{{currentTab == 1}}">
  70. <template is="wxParse" data="{{wxParseData:parse1.nodes}}"/>
  71. </view> -->
  72. </view>
  73. <!--<view class="projects-title">—————————— <text style="color: #98a4b0">购买者</text> ——————————</view>-->
  74. <view class="projects-title"><view class="projects-line"></view><text style="color: #98a4b0">购买者</text><view class="projects-line1"></view></view>
  75. <view class="personList">
  76. <view class="personList-li" wx:for="{{personList}}" wx:key="{{index}}">
  77. <image src="{{item.head}}" class="p-head" />
  78. <view class="p-name">{{item.user_name}}</view>
  79. <view class="p-money">¥{{item.investment / 100}}</view>
  80. <view class="p-time"><format-time type="formatChTime" value="{{item.invest_time}}" ></format-time></view>
  81. <view class="clean"></view>
  82. </view>
  83. <view wx:if="{{btn}}" class="p-more" bindtap="getPersonList">加载更多</view>
  84. </view>
  85. <view class="p-footer">
  86. <view class="p-footer-bar" style="padding-bottom: {{value}}rpx;">
  87. <view class="p-footer-item" style="flex: 0.18;">
  88. <navigator url="../../home/home" open-type="switchTab">
  89. <image src="../../../images/footer/home.png" class="p-footer-icon"></image>
  90. <text class="p-footer-text">首页</text>
  91. </navigator>
  92. </view>
  93. <view class="p-footer-item" style="flex: 0.18;" wx:if="{{project.state !== 2}}">
  94. <navigator url="../othercustom/othercustom" open-type="navigate">
  95. <image src="../../../images/footer/weixin.png" class="p-footer-icon"></image>
  96. <text class="p-footer-text">客服</text>
  97. </navigator>
  98. </view>
  99. <view class="p-footer-item" style="flex: 0.18;" wx:if="{{project.state == 2}}">
  100. <navigator url="../group/group" open-type="navigate">
  101. <image src="../../../images/footer/weixin.png" class="p-footer-icon"></image>
  102. <text class="p-footer-text">客服</text>
  103. </navigator>
  104. </view>
  105. <view class="p-footer-item" style="flex: 0.18;" bindtap="createPoster">
  106. <image src="../../../images/footer/poster.png" class="p-footer-icon"></image>
  107. <text class="p-footer-text">分享</text>
  108. </view>
  109. <!--<view wx:if="{{project.state == 5}}" class="p-footer-item p-other">
  110. <text>未开放购买</text>
  111. </view>-->
  112. <!--<form wx:if="{{project.state == 1 || project.state == 0}}" bindsubmit="toPay" report-submit="{{true}}" class="p-footer-item p-red">
  113. <button class="p-red__button" formType="submit">立即购买</button>
  114. </form>-->
  115. <!--<view wx:if="{{project.state == 2}}" class="p-footer-item p-other">
  116. <text>团购已成功</text>
  117. </view>-->
  118. <form bindsubmit="toPay" report-submit="{{true}}" class="p-footer-item p-red">
  119. <button class="p-red__button" formType="submit">立即购买</button>
  120. </form>
  121. </view>
  122. </view>
  123. <view wx:if="{{showDialog}}" catchtouchmove='stopPageScroll'>
  124. <view class="p-panel" animation="{{animationData}}" style="padding-bottom: {{value}}rpx;">
  125. <view class="p-item">
  126. <image class="p-cancel" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/cancel.png" bindtap="closePay"></image>
  127. <view class="one-part">
  128. <!--<view class="p-title">{{title}}</view>-->
  129. <view class="p-title">¥{{price / 100}}</view>
  130. <scroll-view scroll-y style="height: 200rpx;" scroll-into-view="{{toView}}" scroll-top="{{scrollTop}}">
  131. <view class="p-dec">
  132. <template is="wxParse" data="{{wxParseData:parse2.nodes}}"/>
  133. </view>
  134. </scroll-view>
  135. </view>
  136. <view class="two-part">
  137. <view class="p-choose">选择</view>
  138. <!--<view class="p-count {{changenum==index?'active':''}}" wx:for="{{InvestWayList.invest_way}}" wx:key="{{index}}" data-item="{{index}}" bindtap="changeCount">¥{{item.price / 100}}</view>-->
  139. <view class="p-count {{changenum==index?'active':''}}" wx:for="{{InvestWayList.invest_way}}" wx:key="{{index}}" data-item="{{index}}" bindtap="changeCount">{{item.title}}</view>
  140. </view>
  141. <view class="three-part">
  142. <view class="p-choose1">选择数量</view>
  143. <view class="p-input">
  144. <button bindtap="mius">-</button>
  145. <input type="number" value="{{count}}" bindinput="changeSum" disabled="disabled" wx:if="{{project.state !== 2}}"/>
  146. <input type="number" value="{{count1}}" bindinput="changeSum" disabled="disabled" wx:if="{{project.state == 2}}"/>
  147. <button bindtap="add">+</button>
  148. </view>
  149. </view>
  150. <view class="p-btn__bg">
  151. <view class="p-btn__count" bindtap="toCount">代销评估</view>
  152. <!--<form bindsubmit="{{!buttonClicked?'pay':''}}" report-submit="{{true}}" wx:if="{{project.state == 1}}">-->
  153. <!--<button class="p-btn" formType="{{!buttonClicked?'submit':''}}">立即购买</button>-->
  154. <form bindsubmit="pay" report-submit="{{true}}" class="p-btn" wx:if="{{ (project.state == 1 || project.state == 0) && InvestWayList.invest_way[itemindex].left_copies > 0}}">
  155. <button class="p-btn__button" formType="submit">立即购买</button>
  156. </form>
  157. <button class="sellout-btn" formType="submit" describe="false" wx:if="{{ (project.state == 1 || project.state == 0) && InvestWayList.invest_way[itemindex].left_copies <= 0}}">已售罄</button>
  158. <button class="p-btn" formType="submit" describe="false" style="background:#999" wx:if="{{project.state == 2}}">团购已成功</button>
  159. <button class="p-btn" formType="submit" describe="false" style="background:#999" wx:if="{{project.state == 5}}">未开放购买</button>
  160. </view>
  161. </view>
  162. </view>
  163. <view class="p-dialog"></view>
  164. </view>
  165. <view class="poster" wx:if="{{posterPopup}}" catchtouchmove="stopPageScroll">
  166. <view class="poster-main">
  167. <view style="height: 60rpx;"></view>
  168. <view class="poster-close" bindtap="posterClose"></view>
  169. <image class="poster-img" src="{{posterImage}}"></image>
  170. <view class="poster-text">保存图片,叫伙伴们来围观吧</view>
  171. <view class="poster-btn" bindtap="saveImage">
  172. <view class="poster-icon"></view>
  173. <view class="poster-save" >保存</view>
  174. <view class="clear"></view>
  175. </view>
  176. </view>
  177. </view>
  178. <view class="use_modal" wx:if="{{showModalDialog}}" bindtap="closeModalDialog">
  179. <view class="content">
  180. <view class="title">提示</view>
  181. <view class="info">
  182. <view class="secTitle">
  183. <text>当前账户余额</text>
  184. </view>
  185. <view class="num">
  186. <currency class="price1" symbol="¥" value="{{cashTotal}}"></currency>
  187. </view>
  188. <view class="tip">
  189. <text>是否使用余额支付?</text>
  190. </view>
  191. </view>
  192. <view class="btn">
  193. <view>
  194. <text class="bblr" bindtap="toWeixinPay">使用微信支付</text>
  195. <text class="bbrr" bindtap="toBalancePay">是</text>
  196. </view>
  197. </view>
  198. </view>
  199. </view>
  200. <view class="canvas-position">
  201. <canvas class="canvas" style="width: 750px; height: 1334px" canvas-id="myCanvas" ></canvas>
  202. </view>
  203. <view class="popup-bg" wx:if="{{popup}}">
  204. <view class="popup" >
  205. <view class="popup-title">提示</view>
  206. <view class="popup-logobg">
  207. <view class="popup-image" src="../../../images/slogo.png"></view>
  208. </view>
  209. <text class="popup-hint">FOHOW玖玖申请同意相册保存\n以确保正常使用保存相册功能</text>
  210. <button class="popup-bottom" open-type="openSetting" bindopensetting="setting">确认</button>
  211. </view>
  212. </view>
  213. </view>