index.wxml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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">{{ smallGoods.integerPart || 0 }}</text>
  38. <text class="priceF">.{{ smallGoods.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">
  72. <image src="./images/icon-home-active.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-1.png" class="iconClose"></image>
  87. <view class="popup-scroll">
  88. <image src="https://oss.dayaedu.com/ktyq/1739242193106.png" mode="widthFix" class="top-vip-img"></image>
  89. <!-- 添加权益人 -->
  90. <view class="addBuyer">
  91. <view class="addBuyer-left" bind:tap="onSelectBuyer">
  92. <image src="./images/icon-man.png" class="icon-man"></image>
  93. <view class="info">
  94. <view class="users">
  95. <text>请填写享用者的个人信息</text>
  96. <!-- <text>15527282726</text> -->
  97. </view>
  98. <!-- <view class="address">武汉市洪山区第二十一小学一年级3班</view> -->
  99. </view>
  100. </view>
  101. <image src="./images/icon-arrow-right.png" class="arrow-right"></image>
  102. </view>
  103. <view class="goodsInfo">
  104. <view class="desc">会员有效期</view>
  105. <view class="goodsList">
  106. <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 }}
  107. <image wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  108. </view>
  109. </view>
  110. </view>
  111. <view class="goodsInfo">
  112. <view class="desc">乐器搭配<text>(非必选)</text></view>
  113. <view class="goodsList">
  114. <view wx:for="{{ instrumentList }}" wx:key="index" class="goodsItem {{ item.id == selectInstrumentId ? 'selected' : '' }}" bind:tap="onSelectInstrument" data-id="{{ item.id }}">
  115. {{ item.name }} <text>¥{{ item.showSalePrice }}</text>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <view class="popupBottom">
  121. <!-- 有选择商品的时候 -->
  122. <view class="current-item" wx:if="{{!isOverSaled && selected.id}}">
  123. <!-- <view class="current-item-text">您已选择:</view> -->
  124. <view class="current-top">
  125. 共计 <view class="prices"><text class="stuff">¥</text>
  126. <text class="priceZ">{{ formatSelectGood.integerPart || 0 }}</text>
  127. <text class="priceF">.{{ formatSelectGood.decimalPart || '00' }}</text>
  128. </view>
  129. <text class="line">|</text>原价 ¥ {{ formatSelectGood.originalPrice }}
  130. <block wx:if="{{ formatSelectGood.originalPrice > formatSelectGood.salePrice }}">
  131. <text class="line">|</text>
  132. <text>优惠 ¥ {{ formatSelectGood.discountPrice }}</text>
  133. </block>
  134. </view>
  135. <view class="current-select-text">已选:{{ formatSelectGood.typeName }}</view>
  136. </view>
  137. <view class="btnGroup">
  138. <button type="primary" catch:tap="onSubmit">立即享受专属权益</button>
  139. </view>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <!-- <service popShow="{{ showService }}" bind:changePop="changePop"></service> -->
  145. <buyerInformation popShow="{{ showBuyer }}" bind:cancel="onCloseBuyer" />
  146. </scroll-view>
  147. </view>
  148. </swiper-item>
  149. </swiper>