index.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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 + 1}}</view>
  6. <swiper class="bannerSwiper" indicator-dots="{{false}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" bindchange="changeSwiper">
  7. <swiper-item>
  8. <view class="swiper-item swiper-video">
  9. <block wx:if="{{bannerImageloaded}}">
  10. <image class="bg" src="https://oss.dayaedu.com/ktyq/1738923944096.png"></image>
  11. <video style="height: {{videoHeight}};" object-fit="contain" bindplay="onBannerVideoPlay" picture-in-picture-mode="[]" id="bannerVideo" src="https://oss.dayaedu.com/ktyq/17337413498130cfedaf1.mp4"></video>
  12. <!-- poster="https://oss.dayaedu.com/ktyq/1738923944096.png" -->
  13. <!-- https://oss.dayaedu.com/ktyq/17334015356119a704b08.mp4 100M -->
  14. <!-- https://oss.dayaedu.com/ktyq/1733405365311b760c974.mp4 30M -->
  15. <!-- https://oss.dayaedu.com/ktyq/17334057618630fc77dba.mp4 60M -->
  16. </block>
  17. <block wx:if="{{ !bannerPlay }}">
  18. <image bindload="onBannerVideoLoad" src="https://oss.dayaedu.com/ktyq/1738923944096.png"></image>
  19. <image catch:tap="onBannerPlay" src="./images/icon-video.png" class="icon-video"></image>
  20. </block>
  21. </view>
  22. </swiper-item>
  23. <swiper-item wx:for="{{ imgList }}" wx:key="index">
  24. <view class="swiper-item ">
  25. <image bind:tap="onPreivewBannerImg" src="{{ item }}" data-src="{{ item }}"></image>
  26. </view>
  27. </swiper-item>
  28. </swiper>
  29. <view id="scroll-header" class="scroll-header" style="opacity: {{opacity}}; pointer-events: {{opacity > 0 ? 'all' : 'none'}};">
  30. <navigation-bar back="{{false}}" title="商品详情"></navigation-bar>
  31. <view class="product-catagory">
  32. <view class="item {{ scrolIntoViewStr == 'type1' || !scrolIntoViewStr ? 'selected' : '' }}" bind:tap="onTapAnchor" data-type="type1">
  33. 产品介绍
  34. </view>
  35. <view class="item {{ scrolIntoViewStr == 'type3' ? 'selected' : '' }}" bind:tap="onTapAnchor" data-type="type3">
  36. 互通案例
  37. </view>
  38. <view class="item {{ scrolIntoViewStr == 'type2' ? 'selected' : '' }}" bind:tap="onTapAnchor" data-type="type2">
  39. 使用场景
  40. </view>
  41. </view>
  42. </view>
  43. <!-- <view class="scroll-current-item" wx:if="{{!isOverSaled && selected.id }}">
  44. 您已选中:
  45. <text>{{ selected.typeName }}</text>
  46. ,合计:
  47. <text>¥ {{ selected.showSalePrice }}</text>
  48. <block wx:if="{{ selected.originalPrice > selected.salePrice }}">
  49. ,已优惠:
  50. <text>¥ {{ selected.discountPrice }}</text>
  51. </block>
  52. </view> -->
  53. <view class="goodsSection">
  54. <view class="title">
  55. <view class="before"></view>
  56. <view>商品详情</view>
  57. <view class="after"></view>
  58. </view>
  59. <view class="goodsIntro">
  60. <view class="images">
  61. <image id="type1" mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1738822393434.png" data-src="https://oss.dayaedu.com/ktyq/1738822393434.png"></image>
  62. <image mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1738822501555.png" data-src="https://oss.dayaedu.com/ktyq/1738822501555.png"></image>
  63. <image mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1738822528040.png" data-src="https://oss.dayaedu.com/ktyq/1738822528040.png"></image>
  64. <!-- <image mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/173339759143825859f65.png" data-src="https://oss.dayaedu.com/ktyq/173339759143825859f65.png"></image> -->
  65. <!-- <view id="type3" class="liu-section">
  66. <view class="liu-img1">
  67. <image mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1733457722973.png" data-src="https://oss.dayaedu.com/ktyq/1733457722973.png"></image>
  68. </view>
  69. <view class="liu-img2">
  70. <image mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/173340695604938755d8b.png" data-src="https://oss.dayaedu.com/ktyq/173340695604938755d8b.png"></image>
  71. </view>
  72. </view> -->
  73. <!-- <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> -->
  74. <view id="type3" class="type2s title-section">
  75. <image src="./images/title1.png" class="title"></image>
  76. <view class="topSection">
  77. <view class="content1">
  78. 音乐数字课堂已赢得超过100万名注册师生的喜爱与赞誉,成为学生乐器学习旅程中的得力伙伴,更是一路陪伴他们从初探音乐世界走向精通乐器。为学生带来极佳的学习体验。
  79. </view>
  80. <view class="titleVideoSection">
  81. <video object-fit="contain" show-center-play-btn="{{false}}" picture-in-picture-mode="[]" controls="{{titleControls}}" bindplay="onTitlePlay" class="videoItem" id="titleVideo" src="https://oss.dayaedu.com/ktyq/1733395673461fc6123ca.mp4"></video>
  82. <image wx:if="{{!titleControls}}" bind:tap="onTItleVideoPlay" src="./images/icon-video.png" class="icon-video"></image>
  83. </view>
  84. <view class="content2">实践知真章,合作学校仅用两节课便完成母亲节主题演奏</view>
  85. </view>
  86. <view class="titleSwiper">
  87. <swiper indicator-dots="{{false}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" bindchange="changeSwiperDetail">
  88. <swiper-item wx:for="{{ detailImgList }}" wx:key="index">
  89. <view class="swiper-item-detail">
  90. <image bind:tap="onPreivewDetailImg" src="{{ item.url }}" data-src="{{ item.url }}"></image>
  91. <view class="text">{{item.text}}</view>
  92. </view>
  93. </swiper-item>
  94. </swiper>
  95. <view class="title-dot">
  96. <view wx:for="{{ detailImgList }}" wx:key="index" class="title-dot--item {{ detailCurrent === index ? 'title-dot--item-active' : '' }}"></view>
  97. </view>
  98. </view>
  99. </view>
  100. <image id="type2" mode="widthFix" bind:tap="onPreivewGoodsImg" src="https://oss.dayaedu.com/ktyq/1738822590749.png" data-src="https://oss.dayaedu.com/ktyq/1738822590749.png"></image>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="bottom-section">
  105. <view class="orders" bind:tap="onOrder">
  106. <image src="./images/icon-order.png" />
  107. <text>订单</text>
  108. </view>
  109. <view class="btnSection">
  110. <button bind:tap="onBuyShop" type="primary" disabled="{{ isOverSaled }}">立即购买</button>
  111. <view class="btnInnerFree" wx:if="{{ selected.giftFlag }}">
  112. 当天激活
  113. <text>赠{{selected.giftLongTime}}</text>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="popup-section" wx:if="{{popupShow}}">
  118. <view class="popup-mask" bind:tap="onClose"></view>
  119. <view class="popup-container">
  120. <image catch:tap="onClose" src="./images/icon-close.png" class="iconClose"></image>
  121. <view class="shop-section">
  122. <view class="main-goods">
  123. <view class="showPrice">
  124. <view class="left">
  125. <view class="left-top">
  126. <image class="t1" src="./images/t1.png"></image>
  127. </view>
  128. <view class="left-bottom">
  129. <view class="currentPrice">
  130. <text class="stuff">¥</text>
  131. <text class="priceZ">{{ selected.integerPart || 0 }}</text>
  132. <text class="priceF">.{{ selected.decimalPart || '00' }}</text>
  133. </view>
  134. </view>
  135. </view>
  136. <view class="right">
  137. <view class="right-top">
  138. <block wx:if="{{ selected.originalPrice > selected.salePrice }}">
  139. <view class="originPrice">日常价 ¥{{ selected.originalPrice || '0.00' }}</view>
  140. <text style="padding: 0 6rpx">|</text>
  141. </block>
  142. <view class="saleNum">已售10W+</view>
  143. </view>
  144. <view class="right-bottom">
  145. <view class="shopName">{{ selected.name }}</view>
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. <view class="goodsInfo">
  151. <text class="desc">选择期限</text>
  152. <view class="goodsList">
  153. <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 }}">
  154. <image class="select-arrow" src="./images/icon-down-arrow.png"></image>
  155. <image class="imgSale" wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  156. <image class="pic" src="{{ item.pic }}"></image>
  157. <view class="nameorprice">
  158. <view class="name">{{ item.typeName }}</view>
  159. <view class="price">¥{{ item.showSalePrice }}</view>
  160. </view>
  161. </view>
  162. </view>
  163. <!-- <image wx:if="{{ list.length > 3 }}" bind:tap="onLookMore" class="iconMore" src="./images/icon-more.png"></image> -->
  164. </view>
  165. <view class="combo-section">
  166. <view class="combo-title">
  167. 超值组合,乐器随心选
  168. <text class="select-one">(可选1件)</text>
  169. </view>
  170. <view class="combo-tips">乐器图片仅供参考,具体产品请以实物为准</view>
  171. <view class="combo-list">
  172. <view class="combo-item {{ item.id === selectInstrumentId ? 'active' : '' }}" wx:for="{{ instrumentList }}" wx:key="index" bind:tap="onSelectInstrument" data-id="{{ item.id }}">
  173. <image src="./images/check-good.png" wx:if="{{ item.id === selectInstrumentId }}" class="check-good" />
  174. <image class="combo-item-img" src="{{ item.pic }}"></image>
  175. <view class="combo-item-name">{{ item.name }}</view>
  176. <view class="combo-item-price">¥ {{ item.salePrice }}</view>
  177. <view class="combo-item-origin">日常价 ¥ {{ item.originalPrice }}</view>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. <view class="popupBottom">
  183. <!-- 有选择商品的时候 -->
  184. <view class="current-item" wx:if="{{!isOverSaled && selected.id}}">
  185. <view class="current-item-text">您已选择:</view>
  186. <text>{{ formatSelectGood.typeName }}</text>
  187. ,合计:
  188. <text>¥ {{ formatSelectGood.showSalePrice }}</text>
  189. <block wx:if="{{ formatSelectGood.originalPrice > formatSelectGood.salePrice }}">
  190. ,已省
  191. <text>¥ {{ formatSelectGood.discountPrice }}</text>
  192. </block>
  193. </view>
  194. <view class="btnGroup">
  195. <view class="left-section">
  196. <image src="./images/icon1.png" class="icon1" />
  197. <view class="currentPrice2">
  198. <text class="stuff">¥</text>
  199. <text class="priceZ">{{ formatSelectGood.integerPart || "0" }}</text>
  200. <text class="priceF">.{{ formatSelectGood.decimalPart || '00' }}</text>
  201. </view>
  202. </view>
  203. <button type="primary" catch:tap="onSubmit">去结算</button>
  204. <!-- <view class="btnInnerFree" wx:if="{{ selected.giftFlag }}">
  205. 当天激活
  206. <text>赠{{selected.giftLongTime}}</text>
  207. </view> -->
  208. </view>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. <!-- 客服功能 -->
  214. <service wx:if="{{serviceShow}}"></service>
  215. </scroll-view>