project-detail.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <import src="../../../utils/wxParse/wxParse.wxml"/>
  2. <view class="app detail-bg">
  3. <view class="detail-green" wx:if="{{project.is_support_poor === 1}}"></view>
  4. <view class="detail-info">
  5. <swiper indicator-dots="{{indicatorDots}}"
  6. autoplay="{{autoplay}}" bindchange='onSlideChangeEnd' interval="{{interval}}" indicator-dots="{{false}}" duration="{{duration}}" class="detail-swiper">
  7. <block wx:for="{{project.pics}}" wx:key="id">
  8. <swiper-item>
  9. <image src="{{item.img}}" class="detail-img" />
  10. </swiper-item>
  11. </block>
  12. </swiper>
  13. <view class="mokuai" wx:if="{{project.pics.length > 1}}">{{imgindex}}/{{project.pics.length}}</view>
  14. <view class="seckill-top" wx:if="{{project.is_under_seckill}}">
  15. <view class="seckill-title">
  16. <view class="seckill-time">
  17. <view class="time-click">
  18. <!--<view class="time-item time-kuang1">{{msecond}}</view>-->
  19. <view class="time-item time-kuang">{{second}}</view>
  20. <view class="time-item time-color"> : </view>
  21. <view class="time-item time-kuang">{{min}}</view>
  22. <view class="time-item time-color"> : </view>
  23. <view class="time-item time-kuang">{{hour}}</view>
  24. </view>
  25. <view class="time-text">本期剩余时间</view>
  26. </view>
  27. </view>
  28. <view><image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/neverse/otherskill.png" class="seckill-img" /></view>
  29. </view>
  30. <text class="detail-width detail-title">{{project.name}}</text>
  31. <button open-type="share" class="sharebtn"><image src="../../../images/footer/share.png" /><text>分享</text></button>
  32. <!--<view class="detail-width">
  33. <text class="detail-normal detail-mr">价格</text>
  34. <currency symbol="¥" value="{{project.price}}" class="detail-price"></currency>
  35. </view>-->
  36. <view class="detail-width">
  37. <view style="color: #999;text-decoration: line-through;font-size: 23rpx;">
  38. <text class="detail-normal detail-mr" style="color: #999;text-decoration: line-through;font-size: 23rpx;margin-right:0">海外零售价:</text>
  39. <currency symbol="¥" value="{{project.user_sale_price}}"></currency>
  40. </view>
  41. <view class="detail-fl">
  42. <text class="detail-normal detail-mr">价格</text>
  43. <currency symbol="¥" value="{{project.price}}" class="detail-price"></currency>
  44. <text class="detail-pass" wx:if="{{project.is_under_seckill}}">({{project.seckill_show_price / 100}}元)</text>
  45. </view>
  46. <!-- <view class="detail-fl" wx:if="{{balance === 0 || balance < project.price}}">
  47. <text class="detail-normal detail-mr">价格</text>
  48. <currency symbol="¥" value="{{project.price}}" class="detail-price"></currency>
  49. </view>
  50. <view class="detail-fl" wx:if="{{balance !== 0 && balance >= project.price}}">
  51. <text class="detail-normal detail-mr">兑换</text>
  52. <text class="detail-normal" style="font-size:30rpx;color:#eab86a;">{{project.price}}代金券</text>
  53. </view> -->
  54. <view class="detail-fr">
  55. <text class="detail-normal">已售出{{project.sold_count}}件</text>
  56. </view>
  57. <view class="clean"></view>
  58. <view class="detail-stop" wx:if="{{todaysend < project.deliver_start_time && todaysend > project.deliver_stop_time}}">因物流停运 , <format-time type="formatmonth2" value="{{project.deliver_stop_time}}"></format-time>下单的 , 将于<format-time type="formatmonth2" value="{{project.deliver_start_time}}"></format-time>发货</view>
  59. <!--<view style="float:left">
  60. <view class="detail-normal detail-mr">支持</view>
  61. <image class="detail-icon" wx:if="{{project.robo_balance_price}}" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/rabbitpay_icon.png" />
  62. <image class="detail-icon" wx:if="{{project.mall_balance_price}}" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/integralpay_icon.png" />
  63. <image class="detail-icon" wx:if="{{project.price}}" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/weixinpay.png" />
  64. </view>-->
  65. <!-- <view class="detail-fr">
  66. <text class="detail-normal">已售出{{project.sold_count}}件</text>
  67. </view>-->
  68. <!--<view class="clean"></view>-->
  69. </view>
  70. </view>
  71. <view class="detail-no" wx:if="{{project.specification || project.no_delivery_area}}">
  72. <view class="detail-no-first" wx:if="{{project.specification}}">
  73. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/product/product-icon/maindetail.png" class="detail-no-img"/>
  74. <view class="detail-no-text">规格 : {{project.specification}}</view>
  75. </view>
  76. <view wx:if="{{project.no_delivery_area}}">
  77. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/product/product-icon/noaddress.png" class="detail-no-img1"/>
  78. <view class="detail-no-text">不发货地区 : {{project.no_delivery_area}}</view>
  79. </view>
  80. </view>
  81. <view class="detail-content">
  82. <text class="detail-content-title">———— 商品详情 ————</text>
  83. <!-- <view class="detail-content-desc">
  84. {{project.detail}}
  85. </view> -->
  86. <view class="detail-parse">
  87. <template is="wxParse" data="{{wxParseData:parse.nodes}}"/>
  88. <!-- <image wx:for="{{project.detail_pics}}" src="{{item.img}}" class="detail-project-img" bindload="imageLoad" data-list="{{project.detail_pics}}" data-src="{{item.img}}" data-index="{{index}}" bindtap="detailImg" wx:key="id" style="width:{{images[index].width}}rpx; height:{{images[index].height}}rpx;"></image> -->
  89. </view>
  90. </view>
  91. <view class="detail-footer">
  92. <view class="detail-footer-bar" style="padding-bottom: {{value}}rpx;">
  93. <view class="detail-footer-item" style="flex: 0.18;">
  94. <navigator url="../../home/home" open-type="switchTab">
  95. <image src="../../../images/footer/home.png" class="detail-footer-icon"></image>
  96. <text class="detail-footer-text">首页</text>
  97. </navigator>
  98. </view>
  99. <view class="detail-footer-item" style="flex: 0.18;">
  100. <navigator url="../../cart/cart" open-type="switchTab">
  101. <image src="../../../images/footer/shoppingcart.png" class="p-footer-icon"></image>
  102. <text class="p-footer-text">购物车</text>
  103. </navigator>
  104. </view>
  105. <!--
  106. <view class="detail-footer-item" style="flex: 0.18;">
  107. <navigator url="../../helpfarm/othercustom/othercustom" open-type="navigate">
  108. <image src="../../../images/footer/weixin.png" class="p-footer-icon"></image>
  109. <text class="p-footer-text">客服</text>
  110. </navigator>
  111. </view>
  112. -->
  113. <view class="detail-footer-item" style="flex: 0.18;" bindtap="createPoster">
  114. <image src="../../../images/footer/poster.png" class="p-footer-icon"></image>
  115. <text class="p-footer-text">分享</text>
  116. </view>
  117. <!-- <view class="detail-footer-item" style="flex: 0.5;">
  118. <image src="../../../images/footer/shoppingcart.png" class="detail-footer-icon"></image>
  119. <text class="detail-footer-text">购物车</text>
  120. </view> -->
  121. <button class="detail-footer-item detail-yellow" bindtap="toCart" wx:if="{{project.seckill_show_price <= 0}}">
  122. <text>加入购物车</text>
  123. </button>
  124. <form bindsubmit="toPay" report-submit="{{true}}" wx:if="{{project.left_count > 0 && project.seckill_state !='end'}}" class="detail-footer-item">
  125. <button class=" detail-red" formType="submit">
  126. 立即购买
  127. </button>
  128. </form>
  129. <form wx:if="{{project.left_count > 0 && project.seckill_state =='end'}}" class="detail-footer-item">
  130. <button class="detail-red" disabled="disabled" style="background: #ccc !important;color: #FFF !important;">
  131. 秒杀已结束
  132. </button>
  133. </form>
  134. <view class="detail-footer-item detail-black" wx:if="{{project.left_count <= 0}}">
  135. <text>已售罄</text>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <view wx:if="{{showDialog}}">
  141. <view class="dialog-panel" animation="{{animationData}}" style="padding-bottom: {{value}}rpx;">
  142. <view class="dialog-project">
  143. <image class="dialog-cancel" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/cancel.png" bindtap="toPay"></image>
  144. <view class="dialog-content">
  145. <image class="dialog-img" src="{{project.pics[0].img}}"></image>
  146. <view class="dialog-info">
  147. <view class="dialog-word dialog-red">
  148. <!-- {{project.price}}代金券 -->
  149. <currency symbol="¥" value="{{project.price}}"></currency>
  150. </view>
  151. <!-- <view class="dialog-word dialog-gray">或{{project.price}}代金券</view> -->
  152. <view class="dialog-word dialog-black">库存{{project.left_count}}件</view>
  153. </view>
  154. <view class="clean"></view>
  155. </view>
  156. <view class="select-count">
  157. <view class="select-word">数量</view>
  158. <view class="select-input">
  159. <button bindtap="mius">-</button>
  160. <input type="number" value="{{count}}" bindinput="changeCount" />
  161. <button bindtap="add">+</button>
  162. </view>
  163. <view class="clean"></view>
  164. </view>
  165. <form bindsubmit="pay" report-submit="{{true}}" >
  166. <button class="dialog-btn" formType="submit" wx:if="{{showpay}}">立即购买</button>
  167. </form>
  168. <button class="dialog-btn" open-type="share" wx:if="{{!showpay}}">立即购买</button>
  169. </view>
  170. </view>
  171. <view class="detail-dialog" bindtap="toPay"></view>
  172. </view>
  173. <view wx:if="{{showCartDialog}}">
  174. <view class="dialog-panel" animation="{{animationData}}" style="padding-bottom: {{value}}rpx;">
  175. <view class="dialog-project">
  176. <image class="dialog-cancel" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/cancel.png" bindtap="toCart"></image>
  177. <view class="dialog-content">
  178. <image class="dialog-img" src="{{project.pics[0].img}}"></image>
  179. <view class="dialog-info">
  180. <view class="dialog-word dialog-red">
  181. <!-- {{project.price}}代金券 -->
  182. <currency symbol="¥" value="{{project.price}}"></currency>
  183. </view>
  184. <!-- <view class="dialog-word dialog-gray">或{{project.price}}代金券</view> -->
  185. <view class="dialog-word dialog-black">库存{{project.left_count}}件</view>
  186. </view>
  187. <view class="clean"></view>
  188. </view>
  189. <view class="select-count">
  190. <view class="select-word">数量</view>
  191. <view class="select-input">
  192. <button bindtap="mius">-</button>
  193. <input type="number" value="{{count}}" bindinput="changeCount" />
  194. <button bindtap="add">+</button>
  195. </view>
  196. <view class="clean"></view>
  197. </view>
  198. <button class="detail-yellow" bindtap="addCart" style="width:100%">加入购物车</button>
  199. </view>
  200. </view>
  201. <view class="detail-dialog" bindtap="toCart"></view>
  202. </view>
  203. <view class="poster" wx:if="{{posterPopup}}" catchtouchmove="stopPageScroll">
  204. <view class="poster-main">
  205. <view style="height: 60rpx;"></view>
  206. <view class="poster-close" bindtap="posterClose"></view>
  207. <image class="poster-img" src="{{posterImage}}"></image>
  208. <view class="poster-text">保存图片,叫伙伴们来围观吧</view>
  209. <view class="poster-btn" bindtap="saveImage">
  210. <view class="poster-icon"></view>
  211. <view class="poster-save" >保存</view>
  212. <view class="clear"></view>
  213. </view>
  214. </view>
  215. </view>
  216. <view class="canvas-position">
  217. <canvas class="canvas" style="width: 750px; height: 1334px" canvas-id="myCanvas" ></canvas>
  218. </view>
  219. <view class="popup-bg" wx:if="{{popup}}">
  220. <view class="popup" >
  221. <view class="popup-title">提示</view>
  222. <view class="popup-logobg">
  223. <view class="popup-image" ></view>
  224. </view>
  225. <text class="popup-hint">FOHOW玖玖申请同意相册保存\n以确保正常使用保存相册功能</text>
  226. <button class="popup-bottom" open-type="openSetting" bindopensetting="setting">确认</button>
  227. </view>
  228. </view>