index.wxml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <swiper indicator-dots="{{false}}" vertical="true" class="firstConainer">
  2. <!-- <swiper-item>
  3. <view class="pageContainer firstPageContainer">
  4. <navigation-bar title="器乐数字AI工具" back="{{false}}"></navigation-bar>
  5. <swiper indicator-dots="{{false}}" class="fistSwiperSection" previous-margin="78rpx" next-margin="78rpx" bindchange="onFirstChange">
  6. <swiper-item wx:for="{{firstImgList}}" wx:key="index">
  7. <view class="swiper-item {{ firstCurrent == index ? 'current' : '' }}">
  8. <image data-src="{{ item }}" src="{{ item }}"></image>
  9. </view>
  10. </swiper-item>
  11. </swiper>
  12. <view class="pageDot">
  13. <view wx:for="{{firstImgList}}" wx:key="index" class="dot-item {{ firstCurrent == index ? 'current' : '' }}"></view>
  14. </view>
  15. <image src="./images/up-arrow.png" class="upArrow"></image>
  16. </view>
  17. </swiper-item> -->
  18. <swiper-item>
  19. <view class="pageContainer">
  20. <!--index.wxml-->
  21. <scroll-view class="scrollarea" bounces="false" scroll-y="{{popupShow ? false : true}}" type="list">
  22. <view class="container">
  23. <!-- <view class="topShadow"></view> -->
  24. <view class="slider-count">{{current + 1}}/{{imgList.length}}</view>
  25. <swiper indicator-dots="{{false}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" bindchange="changeSwiper">
  26. <swiper-item wx:for="{{imgList}}" wx:key="index">
  27. <view class="swiper-item">
  28. <image bind:tap="onPreivewBannerImg" data-src="{{ item }}" src="{{ item }}"></image>
  29. </view>
  30. </swiper-item>
  31. </swiper>
  32. <view class="shop-section">
  33. <view class="showPrice">
  34. <view class="left">
  35. <view class="currentPrice">
  36. <text class="stuff">¥</text>
  37. <text class="priceZ">{{ selected.integerPart || 0 }}</text>
  38. <text class="priceF">.{{ selected.decimalPart || '00' }}</text>
  39. <text class="after">起</text>
  40. </view>
  41. <!-- <view class="originPrice"></view> -->
  42. </view>
  43. <view class="right">
  44. 已售1w+
  45. </view>
  46. </view>
  47. <view class="shopName">
  48. <!-- {{ selected.name }} -->
  49. 器乐数字AI工具会员卡
  50. </view>
  51. <view class="shopInfo">
  52. 一款专为音乐学习者、爱好者设计的音乐学习软件。通过先进的人工智能技术,为您提供全方位的乐理知识、日常练习和智能评分等功能,帮助您在音乐道路上更上一层楼。
  53. </view>
  54. <view class="shop-btn">
  55. <button bind:tap="onBuyShop" type="primary" disabled="{{ isOverSaled }}">立即享受专属权益</button>
  56. </view>
  57. <!-- <view class="btn-submit">立即享受专属权益</view> -->
  58. </view>
  59. <view class="goodsSection">
  60. <view class="goodsIntro">
  61. <view class="title">图文详情</view>
  62. <view class="images">
  63. <block wx:for="{{goodsImgList}}" wx:key="index">
  64. <!-- bind:tap="onPreivewGoodsImg" -->
  65. <image mode="widthFix" data-src="{{item}}" src="{{item}}"></image>
  66. </block>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="bottom-section">
  71. <view class="orders active" bind:tap="onOrder">
  72. <image src="./images/icon-order.png" />
  73. <text>首页</text>
  74. </view>
  75. <view class="orders" bind:tap="onOrder">
  76. <image src="./images/icon-order.png" />
  77. <text>订单</text>
  78. </view>
  79. <!-- <view class="btnSection">
  80. <button bind:tap="onBuyShop" type="primary" disabled="{{ isOverSaled }}">立即购买</button>
  81. </view> -->
  82. </view>
  83. <view class="popup-section" wx:if="{{popupShow}}">
  84. <view class="popup-mask" bind:tap="onClose"></view>
  85. <view class="popup-container">
  86. <image bind:tap="onClose" src="./images/icon-close.png" class="iconClose"></image>
  87. <!-- <view class="product-section">
  88. <view class="product-img">
  89. <image bind:tap="onPreivewGoods" data-src="{{ selected.pic }}" src="{{ selected.pic }}"></image>
  90. </view>
  91. <view class="product-left">
  92. <view class="currentPrice">
  93. <text class="stuff">¥</text>
  94. <text class="priceZ">{{ selected.integerPart }}</text>
  95. <text class="priceF">.{{ selected.decimalPart }}</text>
  96. </view>
  97. <view class="originPrice">¥{{ selected.originalPrice }}</view>
  98. </view>
  99. </view> -->
  100. <view class="goodsInfo">
  101. <view class="desc">会员有效期</view>
  102. <view class="goodsList">
  103. <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 }}">{{ item.typeName }}
  104. <image wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="goodsInfo">
  109. <view class="desc">乐器搭配<text>(非必选)</text></view>
  110. <view class="goodsList">
  111. <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 }}">{{ item.typeName }}
  112. <image wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="popupBottom">
  117. <!-- 有选择商品的时候 -->
  118. <view class="current-item" wx:if="{{!isOverSaled && selected.id}}">
  119. <view class="current-item-text">您已选择:</view>
  120. <text>{{ formatSelectGood.typeName }}</text>
  121. ,合计:
  122. <text>¥ {{ formatSelectGood.showSalePrice }}</text>
  123. <block wx:if="{{ formatSelectGood.originalPrice > formatSelectGood.salePrice }}">
  124. ,已省
  125. <text>¥ {{ formatSelectGood.discountPrice }}</text>
  126. </block>
  127. </view>
  128. <view class="btnGroup">
  129. <button type="primary" catch:tap="onSubmit">立即享受专属权益</button>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. <!-- <service popShow="{{ showService }}" bind:changePop="changePop"></service> -->
  136. </scroll-view>
  137. </view>
  138. </swiper-item>
  139. </swiper>