index.wxml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!-- <navbar parameter='{{parameter}}'></navbar> -->
  2. <view class='navbar {{parameter.class}}' style='height:{{navH}}rpx;opacity:{{opacity}}'>
  3. <view class='navbarH' style='height:{{navH}}rpx;'>
  4. <view class='navbarCon acea-row row-center-wrapper'>
  5. <view class="header acea-row row-center-wrapper">
  6. <view class="item {{navActive === index ? 'on' : ''}}" wx:for="{{navList}}" wx:key='index' bindtap="tap"
  7. data-index="{{index}}" data-id='past{{index}}'>
  8. {{ item }}
  9. </view>
  10. </view>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="returnF" style="height:{{navH}}rpx;">
  15. <view class="returnH" style='height:{{navH}}rpx;'>
  16. <view class="returnCon acea-row row-center-wrapper" bindtap="returns">
  17. <view class="iconfont icon-xiangzuo"></view>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- <view class='iconfont icon-xiangzuo' style="top:{{navH/2}}rpx" bindtap='returns'></view> -->
  22. <!-- <view style="height:{{navH+20}}rpx;" wx:if="{{scrollY>450}}"></view> -->
  23. <view class='product-con'>
  24. <scroll-view scroll-top="{{scrollTop}}" scroll-y='true' scroll-with-animation="true" style='height:{{height}}px;'
  25. bindscroll="scroll">
  26. <view id="past0">
  27. <productConSwiper imgUrls='{{imgUrls}}'></productConSwiper>
  28. <view class='nav acea-row row-between-wrapper'>
  29. <view class='money'>¥<text class='num'>{{storeInfo.price}}</text><text
  30. class='y-money'>¥{{storeInfo.ot_price}}</text></view>
  31. <view class='acea-row row-middle'>
  32. <view class='time' wx:if="{{status == 1}}">
  33. <view>距秒杀结束仅剩</view>
  34. <view class='timeCon'>
  35. <text class='num'>{{countDownHour}}</text>:
  36. <text class='num'>{{countDownMinute}}</text>:
  37. <text class='num'>{{countDownSecond}}</text>
  38. </view>
  39. </view>
  40. <!-- <view class="timeState" wx:if="{{status == 0}}">已结束</view>
  41. <view class="timeState" wx:if="{{status == 2}}">即将开始</view> -->
  42. <!-- <view class='iconfont icon-jiantou'></view> -->
  43. </view>
  44. </view>
  45. <view class='wrapper'>
  46. <view class='introduce acea-row row-between'>
  47. <view class='infor'> {{storeInfo.title}}</view>
  48. <button class='iconfont icon-fenxiang' open-type='share'></button>
  49. </view>
  50. <view class='label acea-row row-middle'>
  51. <!-- <view class='stock'>库存:{{storeInfo.stock}}{{storeInfo.unit_name}}</view> -->
  52. <view class='stock'>累计销售:{{storeInfo.total?storeInfo.total:0}}件</view>
  53. <view>限量: {{ storeInfo.quota ? storeInfo.quota : 0 }} 件</view>
  54. </view>
  55. </view>
  56. <view class='attribute acea-row row-between-wrapper' bindtap='selecAttr' wx:if='{{productAttr.length}}'>
  57. <view>{{attr}}:<text class='atterTxt'>{{attrValue}}</text></view>
  58. <view class='iconfont icon-jiantou'></view>
  59. </view>
  60. </view>
  61. <view class='userEvaluation' id="past1">
  62. <view class='title acea-row row-between-wrapper'>
  63. <view>用户评价({{replyCount}})</view>
  64. <navigator class='praise' hover-class='none'
  65. url='/pages/goods_comment_list/index?product_id={{storeInfo.product_id}}'>
  66. <text class='font-color'>{{replyChance}}%</text>好评率
  67. <text class='iconfont icon-jiantou'></text>
  68. </navigator>
  69. </view>
  70. <userEvaluation reply="{{reply}}"></userEvaluation>
  71. </view>
  72. <view class='product-intro' id="past2">
  73. <view class='title'>产品介绍</view>
  74. <view class='conter'>
  75. <template is="wxParse" data="{{wxParseData:description.nodes}}" />
  76. </view>
  77. </view>
  78. <view style='height:120rpx;'></view>
  79. </scroll-view>
  80. <view class='footer acea-row row-between-wrapper'>
  81. <button open-type="contact" hover-class='none' class='item' send-message-title="{{storeInfo.store_name}}"
  82. send-message-img="{{storeInfo.image}}"
  83. send-message-path="/pages/goods_seckill_details/index?id={{storeInfo.id}}" show-message-card>
  84. <view class='iconfont icon-kefu'></view>
  85. <view>客服</view>
  86. </button>
  87. <view bindtap='setCollect' class='item'>
  88. <view class='iconfont icon-shoucang1' wx:if="{{storeInfo.userCollect}}"></view>
  89. <view class='iconfont icon-shoucang' wx:else></view>
  90. <view>收藏</view>
  91. </view>
  92. <view class="bnt acea-row" wx:if="{{status == 1 && productSelect.quota > 0 && productSelect.product_stock>0}}">
  93. <view class="joinCart bnts" bindtap="openAlone">单独购买</view>
  94. <view class="buy bnts" bindtap="goCat">立即购买</view>
  95. </view>
  96. <view class="bnt acea-row"
  97. wx:if="{{(status == 1 && productSelect.quota <= 0) || (status == 3 && productSelect.quota <= 0) || (status == 1 && productSelect.product_stock <= 0) || (status == 3 && productSelect.product_stock <= 0)}}">
  98. <view class="joinCart bnts" bindtap="openAlone">单独购买</view>
  99. <view class="buy bnts bg-color-hui">已售罄</view>
  100. </view>
  101. <view class="bnt acea-row" wx:if="{{status == 2}}">
  102. <view class="joinCart bnts" bindtap="openAlone">单独购买</view>
  103. <view class="buy bnts bg-color-hui">未开始</view>
  104. </view>
  105. <view class="bnt acea-row" wx:if="{{status == 0}}">
  106. <view class="joinCart bnts" bindtap="openAlone">单独购买</view>
  107. <view class="buy bnts bg-color-hui">已结束</view>
  108. </view>
  109. </view>
  110. </view>
  111. <product-window iSplus="{{iSplus}}" limitNum="{{limitNum}}" attribute='{{attribute}}' productAttr="{{productAttr}}"
  112. productSelect="{{productSelect}}" bind:myevent="onMyEvent" bind:ChangeAttr="ChangeAttr"
  113. bind:ChangeCartNum="ChangeCartNum" id='product-window' bind:iptCartNum="iptCartNum"></product-window>
  114. <import src="/wxParse/wxParse.wxml" />
  115. <authorize bind:onLoadFun="onLoadFun"></authorize>
  116. <!-- <home></home> -->