index.wxml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!--pages/select-goods/index.wxml-->
  2. <view class="container">
  3. <navigation-bar title=" " background="transparent" back="{{ false }}"></navigation-bar>
  4. <view class="top-bar"></view>
  5. <view class="section-block">
  6. <view class="select-good-section">
  7. <view class="select-good-img">
  8. <image src="{{ selected.pic }}"></image>
  9. </view>
  10. <view class="good-info">
  11. <view class="good-name">{{ selected.name }}</view>
  12. <view class="good-price">
  13. <!-- <view class="desc">共计</view> -->
  14. <view class="currentPrice">
  15. <text class="stuff">¥</text>
  16. <text class="priceZ">{{ formatSelectGood.integerPart }}</text>
  17. <text class="priceF">.{{ formatSelectGood.decimalPart }}</text>
  18. </view>
  19. <text class="line"></text>
  20. <text class="discountPrice">优惠 ¥{{ formatSelectGood.discountPrice }}</text>
  21. </view>
  22. <image class="img_back" bind:tap="onBack" src="./images/icon-back.png"></image>
  23. </view>
  24. </view>
  25. <scroll-view class="popup-container" bounces="false" scroll-y="true" type="list">
  26. <view class="popup-scroll">
  27. <!-- <view class="goodsInfo">
  28. <view class="desc">
  29. <image src="./images/icon2.png" class="iconBefore"></image>选择规格({{ list.length }})
  30. </view>
  31. <view class="goodsList">
  32. <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 }}">
  33. <image class="goodImg" src="{{ item.pic }}"></image>
  34. <view class="infos">
  35. <view class="name">{{ item.typeName }}</view>
  36. <view class="price">¥<text>{{ item.showSalePrice }}</text></view>
  37. </view>
  38. <image class="nosale" wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
  39. </view>
  40. </view>
  41. </view> -->
  42. <view class="goodsInfo">
  43. <view class="desc">
  44. <image src="./images/icon2.png" class="iconBefore"></image>选择乐器({{ instrumentList.length }})
  45. </view>
  46. <view class="tips">乐器图片仅供参考,实际产品以实物为准</view>
  47. <view class="goodsInstrument">
  48. <view class="instrument-item {{ item.id == selectInstrumentId ? 'selected' : '' }}" wx:for="{{ instrumentList }}" wx:key="index" bind:tap="onSelectInstrument" data-id="{{ item.id }}">
  49. <image class="checkbox" src="./images/icon-default.png"></image>
  50. <image class="instrument-img" src="{{ item.pic }}"></image>
  51. <view class="instrment-info">
  52. <view class="name">{{ item.name }}</view>
  53. <view class="prices">
  54. <view class="currentPrice">
  55. <text class="stuff">¥</text>
  56. <text class="priceZ">{{ formatSelectGood.integerPart }}</text>
  57. <text class="priceF">.{{ formatSelectGood.decimalPart }}</text>
  58. </view>
  59. <text class="line"></text>
  60. <text class="discountPrice">优惠前 ¥{{ formatSelectGood.discountPrice }}</text>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </scroll-view>
  68. <view class="popupBottom">
  69. <!-- 有选择商品的时候 -->
  70. <view class="current-item" wx:if="{{!isOverSaled && selected.id}}">
  71. <!-- <view class="current-item-text">您已选择:</view> -->
  72. <view class="current-top">
  73. 共计 <view class="prices"><text class="stuff">¥</text>
  74. <text class="priceZ">{{ formatSelectGood.integerPart || 0 }}</text>
  75. <text class="priceF">.{{ formatSelectGood.decimalPart || '00' }}</text>
  76. </view>
  77. <text class="line">|</text>原价 ¥ {{ formatSelectGood.originalPrice }}
  78. <block wx:if="{{ formatSelectGood.originalPrice > formatSelectGood.salePrice }}">
  79. <text class="line">|</text>
  80. <text>优惠 ¥ {{ formatSelectGood.discountPrice }}</text>
  81. </block>
  82. </view>
  83. <view class="current-select-text">已选:{{ formatSelectGood.typeName }}</view>
  84. </view>
  85. <view class="btnGroup">
  86. <button type="primary" catch:tap="onSubmit">立即享受专属权益</button>
  87. </view>
  88. </view>
  89. </view>
  90. </view>