project-detail.wxml 16 KB

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