index.wxml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. <van-popup show="{{ popupShow }}" safe-area-inset-bottom="{{false}}" lock-scroll="{{true}}" bind:close="onClose" position="bottom" round z-index="101">
  84. <view class="popup-section">
  85. <image bind:tap="onClose" src="./images/icon-close-1.png" class="iconClose"></image>
  86. <!-- wx:if="{{popupShow}}" -->
  87. <!-- <view class="popup-mask" bind:tap="onClose"></view> -->
  88. <scroll-view class="popup-container" bounces="false" scroll-y="true" type="list">
  89. <view class="popup-scroll">
  90. <image src="https://oss.dayaedu.com/ktyq/1739242193106.png" mode="widthFix" class="top-vip-img"></image>
  91. <!-- 添加权益人 -->
  92. <view class="addBuyer" bind:tap="onSelectBuyer">
  93. <view class="addBuyer-left">
  94. <image src="./images/icon-man.png" class="icon-man"></image>
  95. <view class="info" wx:if="{{ userBeneficiaryId }}">
  96. <view class="users">
  97. <text>{{ userBeneficiaryInfo.name }}</text>
  98. <text>{{ userBeneficiaryInfo.phoneNumber }}</text>
  99. </view>
  100. <view class="address">{{ userBeneficiaryInfo.schoolInfo }}</view>
  101. </view>
  102. <view class="info" wx:else>
  103. <view class="users">
  104. <text>请填写享用者的个人信息</text>
  105. </view>
  106. </view>
  107. </view>
  108. <image src="./images/icon-arrow-right.png" class="arrow-right"></image>
  109. </view>
  110. <view class="goodsInfo">
  111. <view class="desc">会员有效期</view>
  112. <view class="goodsList">
  113. <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 }}
  114. <image wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="goodsInfo">
  119. <view class="desc">乐器搭配<text>(非必选)</text></view>
  120. <view class="goodsList">
  121. <view wx:for="{{ instrumentList }}" wx:key="index" class="goodsItem {{ item.id == selectInstrumentId ? 'selected' : '' }}" bind:tap="onSelectInstrument" data-id="{{ item.id }}">
  122. {{ item.name }} <text>¥{{ item.showSalePrice }}</text>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. <view style="padding-bottom: 300rpx;"></view>
  128. <view class="popupBottom">
  129. <!-- 有选择商品的时候 -->
  130. <view class="current-item" wx:if="{{!isOverSaled && selected.id}}">
  131. <!-- <view class="current-item-text">您已选择:</view> -->
  132. <view class="current-top">
  133. 共计 <view class="prices"><text class="stuff">¥</text>
  134. <text class="priceZ">{{ formatSelectGood.integerPart || 0 }}</text>
  135. <text class="priceF">.{{ formatSelectGood.decimalPart || '00' }}</text>
  136. </view>
  137. <text class="line">|</text>原价 ¥ {{ formatSelectGood.originalPrice }}
  138. <block wx:if="{{ formatSelectGood.originalPrice > formatSelectGood.salePrice }}">
  139. <text class="line">|</text>
  140. <text>优惠 ¥ {{ formatSelectGood.discountPrice }}</text>
  141. </block>
  142. </view>
  143. <view class="current-select-text">已选:{{ formatSelectGood.typeName }}</view>
  144. </view>
  145. <view class="btnGroup">
  146. <button type="primary" catch:tap="onSubmit">立即享受专属权益</button>
  147. </view>
  148. </view>
  149. </scroll-view>
  150. <!-- <view class="popup-container">
  151. </view> -->
  152. </view>
  153. </van-popup>
  154. </view>
  155. <!-- <service popShow="{{ showService }}" bind:changePop="changePop"></service> -->
  156. <van-popup show="{{ showBuyer }}" safe-area-inset-bottom="{{false}}" lock-scroll="{{true}}" bind:close="onCloseBuyer" position="bottom" round z-index="101">
  157. <image src="./images/icon-back.png" class="icon-close-pop" bind:tap="onCloseBuyer" />
  158. <view class="container-pop">
  159. <view class="pop-address-title">享用者信息</view>
  160. <view class="section">
  161. <view class="section-content">
  162. <van-field label="姓名" model:value="{{ name }}" placeholder="请填写享用者姓名" />
  163. <van-field label="电话号码" model:value="{{ phone }}" maxlength="11" type="number" placeholder="请填写电话号码" />
  164. <van-field label="性别" placeholder="请选择性别" value="{{ gender ? (gender === '1' ? '男' : '女') : '' }}" is-link readonly bind:tap="onCheckedGender"></van-field>
  165. <van-field label="学校地区" value="{{ provinceName ? provinceName + '/' + cityName + '/' + regionName : '' }}" bind:tap="onShowAreaList" placeholder="请选择学校地区" is-link readonly />
  166. <van-field model:value="{{ schoolAreaName }}" label="所在学校" placeholder="请选择所在学校" is-link readonly bind:tap="onSelectSchool" />
  167. <van-field value="{{ currentGradeTxt }}" label="所在年级" placeholder="请选择所在年级" is-link readonly bind:tap="onSelectGradeClass" />
  168. <van-field value="{{ currentClassTxt }}" label="所在班级" placeholder="请选择所在年级" is-link readonly bind:tap="onSelectClass" />
  169. </view>
  170. </view>
  171. <view class="pop-btn-group">
  172. <button disabled="{{ buyerLoading }}" class="submit-btn" bind:tap="onSubmitBuyer">保存信息</button>
  173. </view>
  174. </view>
  175. </van-popup>
  176. <!-- 性别 -->
  177. <van-action-sheet z-index="103" show="{{ showGender }}" actions="{{ genderList }}" description="选择性别" cancel-text="取消" bind:close="onCloseGender" bind:cancel="onCloseGender" bind:select="onSelectGender" />
  178. <!-- 地区 -->
  179. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{103}}" show="{{showArea}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseAreaList">
  180. <van-area id='area1' areaList="{{areaList}}" visible-item-count="8" item-height="46" value="{{ regionCode }}" bind:cancel="onCloseAreaList" bind:confirm="submitArea" />
  181. </van-popup>
  182. <!-- 学校 -->
  183. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showSchool}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseSchool" bind:after-leave="onSchoolAfterLeave" bind:before-enter="onSchoolBeforeEnter">
  184. <view class="toolbar-top">
  185. <view class="toolbar-cancel" bind:tap="onCloseSchool">取消</view>
  186. <view class="toolbar-confirm" bind:tap="onSubmitSchool">确认</view>
  187. </view>
  188. <view class="select-school">
  189. <van-field border="false" value="{{ provinceName ? provinceName + ' ' + cityName + ' ' + regionName : '' }}" bind:tap="onShowAreaList" placeholder="请选择学校地区" is-link readonly />
  190. </view>
  191. <view class="searchList" wx:if="{{ !showSchoolAfterLeave }}">
  192. <van-search value="{{ searchName }}" use-left-icon-slot use-action-slot show-action custom-class="searchInput" placeholder="请输入学校名称关键词" bind:search="onSearch" bind:clear="onSearch" bind:change="onSearchChange">
  193. <image slot="left-icon" src="./images/icon-search.png" class="icon-search" />
  194. <view slot="action" class="searchBtn" bind:tap="onSearch">搜索</view>
  195. </van-search>
  196. </view>
  197. <van-picker loading="{{ schoolLoading }}" wx:if="{{ !showSchoolAfterLeave && schoolAreaList.length > 0 }}" columns="{{ schoolAreaList }}" bind:change="onChangeSchool" visible-item-count="6" default-index="{{ schoolAreaIndex }}">
  198. </van-picker>
  199. <view class="empty-box" wx:if="{{ schoolAreaList.length <= 0 }}">
  200. <view class="empty_loading" wx:if="{{ schoolLoading }}">
  201. <van-loading color="#1989fa" />
  202. </view>
  203. <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1731839238916.png"></image>
  204. <view class="empty-text">暂无数据</view>
  205. </view>
  206. </van-popup>
  207. <!-- 年级 -->
  208. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showGradeClass}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseGradeClass" bind:after-leave="onGradeClassAfterLeave" bind:before-enter="onGradeClassBeforeEnter">
  209. <van-picker wx:if="{{ !showGradeClassAfterLeave }}" columns="{{ gradeGradeList }}" visible-item-count="6" show-toolbar default-index="{{ gradeGradeIndex }}" bind:cancel="onCloseGradeClass" bind:confirm="onSubmitGradeClass">
  210. </van-picker>
  211. </van-popup>
  212. <!-- 班级 -->
  213. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showClass}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseClass" bind:after-leave="onClassAfterLeave" bind:before-enter="onClassBeforeEnter">
  214. <van-picker wx:if="{{ !showClassAfterLeave }}" columns="{{ classList }}" visible-item-count="6" show-toolbar default-index="{{ classIndex }}" bind:cancel="onCloseClass" bind:confirm="onSubmitClass">
  215. </van-picker>
  216. </van-popup>
  217. </scroll-view>
  218. </view>
  219. </swiper-item>
  220. </swiper>