index.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. </view>
  40. <view class="originPrice" wx:if="{{ selected.originalPrice > selected.salePrice }}">¥{{ selected.originalPrice || '0.00' }}</view>
  41. </view>
  42. <view class="right">
  43. 已售1w+
  44. </view>
  45. </view>
  46. <view class="shopName">
  47. {{ selected.name }}
  48. </view>
  49. <view class="goodsInfo">
  50. <text class="desc">已选:</text>
  51. <view class="goodsList">
  52. <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 }}
  53. <image wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="goodsSection">
  59. <view class="goodsIntro">
  60. <view class="title">图文详情</view>
  61. <view class="images">
  62. <block wx:for="{{goodsImgList}}" wx:key="index">
  63. <image mode="widthFix" bind:tap="onPreivewGoodsImg" data-src="{{item}}" src="{{item}}"></image>
  64. </block>
  65. </view>
  66. </view>
  67. </view>
  68. <view class="bottom-section">
  69. <view class="orders" bind:tap="onService">
  70. <image src="./images/icon-service.png" />
  71. <text>客服</text>
  72. </view>
  73. <view class="orders" bind:tap="onOrder">
  74. <image src="./images/icon-order.png" />
  75. <text>订单</text>
  76. </view>
  77. <view class="btnSection">
  78. <button bind:tap="onBuyShop" type="primary" disabled="{{ isOverSaled }}">立即购买</button>
  79. </view>
  80. </view>
  81. <view class="popup-section" wx:if="{{popupShow}}">
  82. <view class="popup-mask" bind:tap="onClose"></view>
  83. <view class="popup-container">
  84. <image bind:tap="onClose" src="./images/icon-close.png" class="iconClose"></image>
  85. <view class="product-section">
  86. <view class="product-img">
  87. <image bind:tap="onPreivewGoods" data-src="{{ selected.pic }}" src="{{ selected.pic }}"></image>
  88. </view>
  89. <view class="product-left">
  90. <view class="currentPrice">
  91. <text class="stuff">¥</text>
  92. <text class="priceZ">{{ selected.integerPart }}</text>
  93. <text class="priceF">.{{ selected.decimalPart }}</text>
  94. </view>
  95. <view class="originPrice">¥{{ selected.originalPrice }}</view>
  96. </view>
  97. </view>
  98. <view class="goodsInfo">
  99. <view class="desc">规格</view>
  100. <view class="goodsList">
  101. <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 }}
  102. <image wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  103. </view>
  104. </view>
  105. </view>
  106. <button type="primary" bind:tap="onSubmit">立即购买</button>
  107. </view>
  108. </view>
  109. </view>
  110. <service popShow="{{ showService }}" bind:changePop="changePop"></service>
  111. </scroll-view>
  112. </view>
  113. </swiper-item>
  114. </swiper>