index.wxml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!--index.wxml-->
  2. <scroll-view class="scrollarea" scroll-y="{{popupShow ? false : true}}" type="list" bindscroll="onScroll" enable-passive="true">
  3. <view class="container">
  4. <!-- <view class="topShadow"></view>
  5. <view class="slider-count">{{current + 1}}/{{imgList.length}}</view>
  6. <swiper indicator-dots="{{false}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" bindchange="changeSwiper">
  7. <swiper-item wx:for="{{imgList}}" wx:key="index">
  8. <view class="swiper-item">
  9. <image bind:tap="onPreivewBannerImg" data-src="{{ item }}" src="{{ item }}"></image>
  10. </view>
  11. </swiper-item>
  12. </swiper>
  13. <view class="shop-section">
  14. <view class="showPrice">
  15. <view class="left">
  16. <view class="currentPrice">
  17. <text class="stuff">¥</text>
  18. <text class="priceZ">{{ selected.integerPart || 0 }}</text>
  19. <text class="priceF">.{{ selected.decimalPart || '00' }}</text>
  20. </view>
  21. <view class="originPrice" wx:if="{{ selected.originalPrice > selected.salePrice }}">¥{{ selected.originalPrice || '0.00' }}</view>
  22. </view>
  23. <view class="right">
  24. 已售1w+
  25. </view>
  26. </view>
  27. <view class="shopName">
  28. {{ selected.name }}
  29. </view>
  30. <view class="goodsInfo">
  31. <view class="goodsList">
  32. <view wx:for="{{ list }}" wx:key="index" class="goodsItem {{ item.id == selected.id ? 'selected' : '' }} {{ item.stockNum <= 0 ? 'nosale' : '' }}" bind:tap="onSelectGoods" data-id="{{ item.id }}">
  33. <image class="goods-cover" src="{{item.pic}}"></image>
  34. <text class="name">{{ item.typeName }}</text><image class="iconSale" wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  35. </view>
  36. </view>
  37. </view>
  38. </view> -->
  39. <view class="goodsSection">
  40. <view class="goodsIntro">
  41. <!-- <view class="title">
  42. <view class="before"></view>
  43. <view>商品详情</view>
  44. <view class="after"></view>
  45. </view> -->
  46. <view class="images">
  47. <block wx:for="{{goodsImgList}}" wx:key="index">
  48. <image mode="widthFix" bind:tap="onPreivewGoodsImg" data-src="{{item}}" src="{{item}}"></image>
  49. </block>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="bottom-section {{ isShowOperation ? '' : 'hide' }}">
  54. <view class="btnSection">
  55. <button bind:tap="onOrder" type="primary" disabled="{{ isOverSaled }}">我的订单</button>
  56. <button bind:tap="onBuyShop" type="primary" disabled="{{ isOverSaled }}">立即购买</button>
  57. </view>
  58. </view>
  59. <view class="popup-section" wx:if="{{popupShow}}">
  60. <view class="popup-mask" bind:tap="onClose"></view>
  61. <view class="popup-container">
  62. <image bind:tap="onClose" src="./images/icon-close.png" class="iconClose"></image>
  63. <view class="product-section">
  64. <view class="product-img">
  65. <image bind:tap="onPreivewGoods" data-src="{{ selected.pic }}" src="{{ selected.pic }}"></image>
  66. </view>
  67. <view class="product-left">
  68. <view class="price-s">
  69. <view class="currentPrice">
  70. <text class="stuff">¥</text>
  71. <text class="priceZ">{{ selected.integerPart }}</text>
  72. <text class="priceF">.{{ selected.decimalPart }}</text>
  73. </view>
  74. <view class="originPrice">¥{{ selected.originalPrice }}</view>
  75. </view>
  76. <view class="current-s">
  77. 当前选中:<text>{{ selected.typeName }}</text>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="goodsInfo">
  82. <view class="desc">规格类型({{ list.length }})</view>
  83. <view class="goodsList">
  84. <view wx:for="{{ list }}" wx:key="index" class="goodsItem {{ item.id == selected.id ? 'selected' : '' }} {{ item.stockNum <= 0 ? 'nosale' : '' }}" bind:tap="onSelectGoods" data-id="{{ item.id }}">
  85. <image class="goods-cover" src="{{item.pic}}"></image>
  86. <text class="name">{{ item.typeName }}</text><image class="iconSale" wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="btnSections"><button type="primary" bind:tap="onSubmit">立即购买</button></view>
  91. </view>
  92. </view>
  93. <view class="showMoreContainer {{ !isShowOperation ? '' : 'hide' }}">
  94. <image src="./images/icon-up-scroll.png" class="iconUpScroll" />
  95. </view>
  96. </view>
  97. <!-- 客服 -->
  98. <service wx:if="{{serviceShow}}"></service>
  99. </scroll-view>