index.wxml 5.6 KB

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