index.wxml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!--index.wxml-->
  2. <scroll-view class="scrollarea" id="scroll-view" scroll-y="{{popupShow ? false : true}}" type="list" bindscroll="onScrollView" enable-passive="true" scroll-into-view="{{scrolIntoView}}" scroll-top="{{ scrollTop }}">
  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" src="{{ item }}" data-src="{{ item }}"></image>
  10. </view>
  11. </swiper-item>
  12. </swiper>
  13. <view id="scroll-header" class="scroll-header" style="opacity: {{opacity}}">
  14. <navigation-bar back="{{false}}" title="商品详情"></navigation-bar>
  15. <view class="product-catagory">
  16. <view class="item {{ scrolIntoViewStr == 'type1' || !scrolIntoViewStr ? 'selected' : '' }}" bind:tap="onTapAnchor" data-type="type1">产品介绍</view>
  17. <view class="item {{ scrolIntoViewStr == 'type3' ? 'selected' : '' }}" bind:tap="onTapAnchor" data-type="type3">购买流程</view>
  18. <view class="item {{ scrolIntoViewStr == 'type2' ? 'selected' : '' }}" bind:tap="onTapAnchor" data-type="type2">互通案例</view>
  19. </view>
  20. </view>
  21. <view class="scroll-current-item" wx:if="{{!isOverSaled && selected.id && opacity >= 1}}">
  22. 您已选中:<text>{{ selected.typeName }}</text> ,合计:<text>¥ {{ selected.showSalePrice }}</text>
  23. <block wx:if="{{ selected.originalPrice > selected.salePrice }}">,已优惠:<text>¥ {{ selected.discountPrice }}</text></block>
  24. </view>
  25. <view class="goodsSection">
  26. <view class="title">
  27. <view class="before"></view>
  28. <view>商品详情</view>
  29. <view class="after"></view>
  30. </view>
  31. <view class="goodsIntro">
  32. <view class="images">
  33. <image id="type1" mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1732175006625.png" data-src="https://oss.dayaedu.com/ktyq/1732175006625.png"></image>
  34. <image mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1732175021350.png" data-src="https://oss.dayaedu.com/ktyq/1732175021350.png"></image>
  35. <image mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1732175031878.png" data-src="https://oss.dayaedu.com/ktyq/1732175031878.png"></image>
  36. <image id="type3" mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1732617269723.png" data-src="https://oss.dayaedu.com/ktyq/1732617269723.png"></image>
  37. <image id="type2" class="type2s" mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1732617388991.png" data-src="https://oss.dayaedu.com/ktyq/1732617388991.png"></image>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="bottom-section">
  42. <view class="orders" bind:tap="onOrder">
  43. <image src="./images/icon-order.png" />
  44. <text>订单</text>
  45. </view>
  46. <view class="btnSection">
  47. <button bind:tap="onBuyShop" type="primary" disabled="{{ isOverSaled }}">立即购买</button>
  48. </view>
  49. </view>
  50. <view class="popup-section" wx:if="{{popupShow}}">
  51. <view class="popup-mask" bind:tap="onClose"></view>
  52. <view class="popup-container">
  53. <image catch:tap="onClose" src="./images/icon-close.png" class="iconClose"></image>
  54. <!-- <view class="product-section">
  55. <view class="product-img">
  56. <image bind:tap="onPreivewGoods" data-src="{{ selected.pic }}" src="{{ selected.pic }}"></image>
  57. </view>
  58. <view>
  59. <view class="product-left">
  60. <view class="currentPrice">
  61. <text class="stuff">¥ </text>
  62. <text class="priceZ">{{ selected.integerPart }}</text>
  63. <text class="priceF">.{{ selected.decimalPart }}</text>
  64. </view>
  65. <view class="originPrice">原价 ¥{{ selected.originalPrice }}</view>
  66. </view>
  67. <view class="selected-info">
  68. 您已选中:<text>{{ selected.typeName }}</text> <block wx:if="{{ selected.originalPrice > selected.salePrice }}">,已优惠:<text>¥ {{ selected.discountPrice }}</text></block>
  69. </view>
  70. </view>
  71. </view> -->
  72. <!-- <view class="goodsInfo">
  73. <view class="goodsList">
  74. <view wx:for="{{ list }}" wx:key="index" class="goodsItem {{ item.id == selected.id ? 'selected' : '' }} {{ item.stockNum <= 0 ? 'nosale' : '' }}" catch:tap="onSelectGoods" data-id="{{ item.id }}">
  75. <image class="select-arrow" src="./images/icon-down-arrow.png"></image>
  76. <image class="imgSale" wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  77. <image class="pic" src="{{ item.pic }}"></image>
  78. <view class="nameorprice">
  79. <view class="name">{{ item.typeName }}</view>
  80. <view class="price">¥{{ item.showSalePrice }}</view>
  81. </view>
  82. </view>
  83. </view>
  84. </view> -->
  85. <view class="shop-section">
  86. <view class="main-goods">
  87. <view class="showPrice">
  88. <view class="left">
  89. <view class="left-top">
  90. <image class="t1" src="./images/t1.png"></image>
  91. </view>
  92. <view class="left-bottom">
  93. <view class="currentPrice">
  94. <text class="stuff">¥ </text>
  95. <text class="priceZ">{{ selected.integerPart || 0 }}</text>
  96. <text class="priceF">.{{ selected.decimalPart || '00' }}</text>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="right">
  101. <view class="right-top">
  102. <block wx:if="{{ selected.originalPrice > selected.salePrice }}">
  103. <view class="originPrice">原价 ¥{{ selected.originalPrice || '0.00' }}</view><text style="padding: 0 6rpx"> | </text>
  104. </block>
  105. <view class="saleNum">已售10W+</view>
  106. </view>
  107. <view class="right-bottom">
  108. <view class="shopName">
  109. {{ selected.name }}
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="goodsInfo">
  116. <text class="desc">规格选择</text>
  117. <view class="goodsList">
  118. <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 }}">
  119. <image class="select-arrow" src="./images/icon-down-arrow.png"></image>
  120. <image class="imgSale" wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  121. <image class="pic" src="{{ item.pic }}"></image>
  122. <view class="nameorprice">
  123. <view class="name">{{ item.typeName }}</view>
  124. <view class="price">¥{{ item.showSalePrice }}</view>
  125. </view>
  126. </view>
  127. </view>
  128. <!-- <image wx:if="{{ list.length > 3 }}" bind:tap="onLookMore" class="iconMore" src="./images/icon-more.png"></image> -->
  129. </view>
  130. <!-- 有选择商品的时候 -->
  131. <view class="current-item" wx:if="{{!isOverSaled && selected.id}}">
  132. 您已选中:<text>{{ selected.typeName }}</text>,合计:<text>¥ {{ selected.showSalePrice }}</text>
  133. <block wx:if="{{ selected.originalPrice > selected.salePrice }}">,已优惠:<text>¥ {{ selected.discountPrice }}</text></block>
  134. </view>
  135. </view>
  136. <button type="primary" catch:tap="onSubmit">立即购买</button>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- 客服功能 -->
  141. <service wx:if="{{serviceShow}}"></service>
  142. </scroll-view>