index.wxml 5.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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-into-view='{{toView}}' scroll-y='true' scroll-with-animation="true" style='height:{{scrollY>450?(height+2*navH+20):(height+navH)}}rpx;' 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'>
  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='iconfont icon-jiantou'></view>
  31. </view>
  32. </view>
  33. <view class='wrapper'>
  34. <view class='introduce acea-row row-between'>
  35. <view class='infor'> {{storeInfo.title}}</view>
  36. <button class='iconfont icon-fenxiang' open-type='share'></button>
  37. </view>
  38. <view class='label acea-row row-middle'>
  39. <!-- <view class='stock'>库存:{{storeInfo.stock}}{{storeInfo.unit_name}}</view> -->
  40. <view class='stock'>累计销售:{{storeInfo.total?storeInfo.total:0}}件</view>
  41. <view>限量: {{ storeInfo.quota ? storeInfo.quota : 0 }} 件</view>
  42. </view>
  43. </view>
  44. <view class='attribute acea-row row-between-wrapper' bindtap='selecAttr' wx:if='{{productAttr.length}}'>
  45. <view>{{attr}}:<text class='atterTxt'>{{attrValue}}</text></view>
  46. <view class='iconfont icon-jiantou'></view>
  47. </view>
  48. </view>
  49. <view class='userEvaluation' id="past1">
  50. <view class='title acea-row row-between-wrapper'>
  51. <view>用户评价({{replyCount}})</view>
  52. <navigator class='praise' hover-class='none' url='/pages/goods_comment_list/index?product_id={{storeInfo.product_id}}'>
  53. <text class='font-color'>{{replyChance}}%</text>好评率
  54. <text class='iconfont icon-jiantou'></text>
  55. </navigator>
  56. </view>
  57. <userEvaluation reply="{{reply}}"></userEvaluation>
  58. </view>
  59. <view class='product-intro' id="past2">
  60. <view class='title'>产品介绍</view>
  61. <view class='conter'>
  62. <template is="wxParse" data="{{wxParseData:description.nodes}}"/>
  63. </view>
  64. </view>
  65. <view style='height:100rpx;'></view>
  66. </scroll-view>
  67. <view class='footer acea-row row-between-wrapper'>
  68. <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>
  69. <view class='iconfont icon-kefu'></view>
  70. <view>客服</view>
  71. </button>
  72. <view bindtap='setCollect' class='item'>
  73. <view class='iconfont icon-shoucang1' wx:if="{{storeInfo.userCollect}}"></view>
  74. <view class='iconfont icon-shoucang' wx:else></view>
  75. <view>收藏</view>
  76. </view>
  77. <view class="bnt acea-row" wx:if="{{status == 1 && productSelect.quota > 0 && productSelect.product_stock>0}}">
  78. <view class="joinCart bnts" bindtap="openAlone">单独购买</view>
  79. <view class="buy bnts" bindtap="goCat">立即购买</view>
  80. </view>
  81. <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)}}">
  82. <view class="joinCart bnts" bindtap="openAlone">单独购买</view>
  83. <view class="buy bnts bg-color-hui">已售磬</view>
  84. </view>
  85. <view class="bnt acea-row" wx:if="{{status == 2}}">
  86. <view class="joinCart bnts" bindtap="openAlone">单独购买</view>
  87. <view class="buy bnts bg-color-hui">即将开始</view>
  88. </view>
  89. <view class="bnt acea-row" wx:if="{{status == 0}}">
  90. <view class="joinCart bnts" bindtap="openAlone">单独购买</view>
  91. <view class="buy bnts bg-color-hui">已结束</view>
  92. </view>
  93. </view>
  94. </view>
  95. <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>
  96. <import src="/wxParse/wxParse.wxml"/>
  97. <authorize bind:onLoadFun="onLoadFun"></authorize>
  98. <home></home>