project-detail.wxml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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="comment_head">
  82. <h4>
  83. 商品评价
  84. <navigator url="../project-comment/project-comment?id={{project.id}}" open-type="navigate" class="showmore">查看更多 > </navigator>
  85. </h4>
  86. </view>
  87. <view class="comment_box">
  88. <view class="comment_box_list">
  89. <view class="comment_list" wx:for="{{projectComment}}">
  90. <image src="{{item.head}}"></image>
  91. <view class="comment_user">
  92. {{item.nick_name}}
  93. <view class="comment_star">
  94. <view class="evaluateLv"><view class="list-item" wx:for="{{item.star}}" wx:for-item="item2"><image class="block" src="{{item2}}"></image></view></view>
  95. </view>
  96. </view>
  97. <p class="comment_txt">{{item.detail}}</p>
  98. <span class="comment_time"><format-time type="formatTime" value="{{item.create_time}}" ></format-time></span>
  99. </view>
  100. <!-- <view class="comment_list">
  101. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/parner.png"></image>
  102. <view class="comment_user">
  103. name
  104. <view class="comment_star">
  105. <view class="evaluateLv"><view class="list-item" wx:for="{{lvList}}" wx:key="item"><image class="block" src="{{item}}" data-index="{{index}}"></image></view></view>
  106. </view>
  107. </view>
  108. <p class="comment_txt">asdfasdfasdffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</p>
  109. <span class="comment_time">2021-2-2 11:11:11</span>
  110. </view> -->
  111. </view>
  112. </view>
  113. <view class="detail-content">
  114. <text class="detail-content-title">———— 商品详情 ————</text>
  115. <!-- <view class="detail-content-desc">
  116. {{project.detail}}
  117. </view> -->
  118. <view class="detail-parse">
  119. <template is="wxParse" data="{{wxParseData:parse.nodes}}"/>
  120. <!-- <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> -->
  121. </view>
  122. </view>
  123. <view class="detail-footer" wx:if="{{readOnly == 0}}">
  124. <view class="detail-footer-bar" style="padding-bottom: {{value}}rpx;">
  125. <view class="detail-footer-item" style="flex: 0.18;">
  126. <navigator url="../../home/home" open-type="switchTab">
  127. <image src="../../../images/footer/home.png" class="detail-footer-icon"></image>
  128. <text class="detail-footer-text">首页</text>
  129. </navigator>
  130. </view>
  131. <view class="detail-footer-item" style="flex: 0.18;">
  132. <navigator url="../../cart/cart" open-type="switchTab">
  133. <image src="../../../images/footer/shoppingcart.png" class="p-footer-icon"></image>
  134. <text class="p-footer-text">购物车</text>
  135. </navigator>
  136. </view>
  137. <!--
  138. <view class="detail-footer-item" style="flex: 0.18;">
  139. <navigator url="../../helpfarm/othercustom/othercustom" open-type="navigate">
  140. <image src="../../../images/footer/weixin.png" class="p-footer-icon"></image>
  141. <text class="p-footer-text">客服</text>
  142. </navigator>
  143. </view>
  144. -->
  145. <view class="detail-footer-item" style="flex: 0.18;" bindtap="createPoster">
  146. <image src="../../../images/footer/poster.png" class="p-footer-icon"></image>
  147. <text class="p-footer-text">分享</text>
  148. </view>
  149. <!-- <view class="detail-footer-item" style="flex: 0.5;">
  150. <image src="../../../images/footer/shoppingcart.png" class="detail-footer-icon"></image>
  151. <text class="detail-footer-text">购物车</text>
  152. </view> -->
  153. <button class="detail-footer-item detail-yellow" bindtap="toCart" wx:if="{{project.seckill_show_price <= 0 && project.left_count > 0}}">
  154. <text>加入购物车</text>
  155. </button>
  156. <form bindsubmit="toPay" report-submit="{{true}}" wx:if="{{project.left_count > 0 && project.seckill_state !='end'}}" class="detail-footer-item">
  157. <button class=" detail-red" formType="submit">
  158. 立即购买
  159. </button>
  160. </form>
  161. <form wx:if="{{project.left_count > 0 && project.seckill_state =='end'}}" class="detail-footer-item">
  162. <button class="detail-red" disabled="disabled" style="background: #ccc !important;color: #FFF !important;">
  163. 秒杀已结束
  164. </button>
  165. </form>
  166. <view class="detail-footer-item detail-black" wx:if="{{project.left_count <= 0}}">
  167. <text>已售罄</text>
  168. </view>
  169. </view>
  170. </view>
  171. <view class="detail-footer" wx:if="{{readOnly == 1}}">
  172. <button bindtap="back" style="background: #fff;color: #eab86a;"> 返回</button>
  173. </view>
  174. </view>
  175. <view wx:if="{{showDialog}}">
  176. <view class="dialog-panel" animation="{{animationData}}" style="padding-bottom: {{value}}rpx;">
  177. <view class="dialog-project">
  178. <image class="dialog-cancel" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/cancel.png" bindtap="toPay"></image>
  179. <view class="dialog-content">
  180. <image class="dialog-img" src="{{project.pics[0].img}}"></image>
  181. <view class="dialog-info" style="margin-top: 20rpx;">
  182. <h6 style="font-size: 35rpx;font-weight: bold;color: #666;">{{project.name}}</h6>
  183. <view class="dialog-word dialog-black" style="margin-top: 15rpx;color: #999;">库存{{project.left_count}}件 <text wx:if="{{project.have_size && (sname || cname)}}">(已选:{{cname}} {{sname}})</text></view>
  184. <view class="dialog-word dialog-red" style="font-size: 35rpx;margin-top: 25rpx;">
  185. <!-- {{project.price}}提货券 -->
  186. <currency symbol="¥" value="{{project.price}}"></currency>
  187. </view>
  188. <!-- <view class="dialog-word dialog-gray">或{{project.price}}提货券</view> -->
  189. </view>
  190. <view class="clean"></view>
  191. </view>
  192. <view class="select-count">
  193. <view class="select-word">数量</view>
  194. <view class="select-input">
  195. <button bindtap="mius">-</button>
  196. <input type="number" value="{{count}}" bindinput="changeCount" />
  197. <button bindtap="add">+</button>
  198. </view>
  199. <view class="clean"></view>
  200. </view>
  201. <view wx:if="{{project.have_size}}" class="select-count">
  202. <view wx:for="{{productSize}}" wx:for-item="i" wx:key="{{index}}">
  203. <view wx:if="{{index != 'product'}}">
  204. <h5 class="sizeTitle">{{i.name}}</h5>
  205. <view wx:for="{{i.attr_values}}" wx:for-index="index2" wx:for-item="j" class="checkList">
  206. <span bindtap="checkSize" data-type='{{index}}' data-tname="{{j.name}}" data-list="{{index2}}" data-id="{{j.id}}" class="{{j.is_select?'active':''}}">
  207. {{j.name}}
  208. </span>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. <form bindsubmit="pay" report-submit="{{true}}" >
  214. <button class="dialog-btn" formType="submit" wx:if="{{showpay}}" disabled="{{canpay?'':'true'}}"><text wx:if="{{!noproduct}}">立即购买</text><text wx:if="{{noproduct}}">暂无库存</text></button>
  215. </form>
  216. <button class="dialog-btn" open-type="share" wx:if="{{!showpay}}"><text wx:if="{{!noproduct}}">立即购买</text><text wx:if="{{noproduct}}">暂无库存</text></button>
  217. </view>
  218. </view>
  219. <view class="detail-dialog" bindtap="toPay"></view>
  220. </view>
  221. <view wx:if="{{showCartDialog}}">
  222. <view class="dialog-panel" animation="{{animationData}}" style="padding-bottom: {{value}}rpx;">
  223. <view class="dialog-project">
  224. <image class="dialog-cancel" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/cancel.png" bindtap="toCart"></image>
  225. <view class="dialog-content">
  226. <image class="dialog-img" src="{{project.pics[0].img}}"></image>
  227. <view class="dialog-info" style="margin-top: 20rpx;">
  228. <h6 style="font-size: 35rpx;font-weight: bold;color: #666;">{{project.name}}</h6>
  229. <view class="dialog-word dialog-black" style="margin-top: 15rpx;color: #999;">库存{{project.left_count}}件 <text wx:if="{{project.have_size && (sname || cname)}}">(已选:{{cname}} {{sname}})</text></view>
  230. <view class="dialog-word dialog-red" style="font-size: 35rpx;margin-top: 25rpx;">
  231. <!-- {{project.price}}提货券 -->
  232. <currency symbol="¥" value="{{project.price}}"></currency>
  233. </view>
  234. <!-- <view class="dialog-word dialog-gray">或{{project.price}}提货券</view> -->
  235. </view>
  236. <view class="clean"></view>
  237. </view>
  238. <view class="select-count">
  239. <view class="select-word">数量</view>
  240. <view class="select-input">
  241. <button bindtap="mius">-</button>
  242. <input type="number" value="{{count}}" bindinput="changeCount" />
  243. <button bindtap="add">+</button>
  244. </view>
  245. <view class="clean"></view>
  246. </view>
  247. <view wx:if="{{project.have_size}}" class="select-count">
  248. <view wx:for="{{productSize}}" wx:for-item="i" wx:key="{{index}}">
  249. <view wx:if="{{index != 'product'}}">
  250. <h5 class="sizeTitle">{{i.name}}</h5>
  251. <view wx:for="{{i.attr_values}}" wx:for-index="index2" wx:for-item="j" class="checkList">
  252. <span bindtap="checkSize" data-type='{{index}}' data-tname="{{j.name}}" data-list="{{index2}}" data-id="{{j.id}}" class="{{j.is_select?'active':''}}">
  253. {{j.name}}
  254. </span>
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. <button class="detail-yellow" bindtap="addCart" style="width:100%" disabled="{{!canpay?'true':''}}"><text wx:if="{{!noproduct}}">加入购物车</text><text wx:if="{{noproduct}}">暂无库存</text></button>
  260. </view>
  261. </view>
  262. <view class="detail-dialog" bindtap="toCart"></view>
  263. </view>
  264. <view class="poster" wx:if="{{posterPopup}}" catchtouchmove="stopPageScroll">
  265. <view class="poster-main">
  266. <view style="height: 60rpx;"></view>
  267. <view class="poster-close" bindtap="posterClose"></view>
  268. <image class="poster-img" src="{{posterImage}}"></image>
  269. <view class="poster-text">保存图片,叫伙伴们来围观吧</view>
  270. <view class="poster-btn" bindtap="saveImage">
  271. <view class="poster-icon"></view>
  272. <view class="poster-save" >保存</view>
  273. <view class="clear"></view>
  274. </view>
  275. </view>
  276. </view>
  277. <view class="canvas-position">
  278. <canvas class="canvas" style="width: 750px; height: 1334px" canvas-id="myCanvas" ></canvas>
  279. </view>
  280. <view class="popup-bg" wx:if="{{popup}}">
  281. <view class="popup" >
  282. <view class="popup-title">提示</view>
  283. <view class="popup-logobg">
  284. <view class="popup-image" ></view>
  285. </view>
  286. <text class="popup-hint">FOHOW玖玖申请同意相册保存\n以确保正常使用保存相册功能</text>
  287. <button class="popup-bottom" open-type="openSetting" bindopensetting="setting">确认</button>
  288. </view>
  289. </view>