index.wxml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!--pages/select-goods/index.wxml-->
  2. <view class="container">
  3. <navigation-bar title=" " background="transparent"></navigation-bar>
  4. <view class="top-bar"></view>
  5. <view class="select-good-section">
  6. <view class="select-good-img">
  7. <image src="{{ selected.pic }}"></image>
  8. </view>
  9. <view class="good-info">
  10. <view class="good-name">{{ selected.name }}</view>
  11. <view class="good-price">
  12. <!-- <view class="desc">共计</view> -->
  13. <view class="currentPrice">
  14. <text class="stuff">¥</text>
  15. <text class="priceZ">{{ formatSelectGood.integerPart }}</text>
  16. <text class="priceF">.{{ formatSelectGood.decimalPart }}</text>
  17. </view>
  18. <text class="line"></text>
  19. <text class="discountPrice">优惠前 ¥{{ formatSelectGood.originalPrice }}</text>
  20. </view>
  21. <!-- <image class="img_back" bind:tap="onBack" src="./images/icon-back.png"></image> -->
  22. </view>
  23. </view>
  24. <view class="section-block">
  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" wx:if="{{ item.id == selectInstrumentId }}" src="./images/icon-select.png"></image>
  50. <image class="checkbox" wx:else src="./images/icon-default.png"></image>
  51. <image class="instrument-img" src="{{ item.pic }}"></image>
  52. <view class="instrment-info">
  53. <view class="name">{{ item.name }}</view>
  54. <view class="prices">
  55. <view class="currentPrice">
  56. <text class="stuff">¥</text>
  57. <text class="priceZ">{{ item.integerPart }}</text>
  58. <text class="priceF">.{{ item.decimalPart }}</text>
  59. </view>
  60. <text class="line"></text>
  61. <text class="discountPrice"><text>优惠前</text>¥{{ item.originalPrice }}</text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </scroll-view>
  69. <view class="popupBottom">
  70. <view class="select-buyer" wx:if="{{ !userBeneficiaryId }}">
  71. <view class="desc">
  72. <image src="./images/icon2.png" class="iconBefore"></image>选择权益享用人
  73. </view>
  74. <view class="btn-add" bind:tap="onAddBuyer">添加</view>
  75. </view>
  76. <view class="select-buyer selected" wx:else bind:tap="onAddBuyer">
  77. <view class="desc">
  78. <image src="./images/icon2.png" class="iconBefore"></image>选择权益享用人
  79. </view>
  80. <view class="users">
  81. <image class="checkbox" src="./images/icon-select.png"></image>
  82. <view class="user">
  83. <view class="name"><text>{{ userBeneficiaryInfo.name }}</text>{{ userBeneficiaryInfo.phoneNumber }}</view>
  84. <view class="detail">{{ userBeneficiaryInfo.schoolInfo }}</view>
  85. </view>
  86. <image class="icon-edit" src="./images/icon-edit.png"></image>
  87. </view>
  88. </view>
  89. <!-- 有选择商品的时候 -->
  90. <view class="current-good" wx:if="{{!isOverSaled && selected.id}}">
  91. <view class="current-item-text">您已选中</view>
  92. <text>{{ formatSelectGood.typeName }}</text>,<block wx:if="{{ formatSelectGood.originalPrice > formatSelectGood.salePrice }}">
  93. 共减 <text>¥ {{ formatSelectGood.discountPrice }}</text>,
  94. </block>应付:
  95. <text>¥ {{ formatSelectGood.showSalePrice }}</text>
  96. </view>
  97. <view class="btnGroup">
  98. <button type="primary" catch:tap="onSubmit">
  99. <view class="btn-prices">
  100. 立即支付<text class="stuff">¥</text>
  101. <text class="priceZ">{{ formatSelectGood.integerPart || 0 }}</text>
  102. <text class="priceF">.{{ formatSelectGood.decimalPart || '00' }}</text>
  103. </view>
  104. </button>
  105. </view>
  106. </view>
  107. </view>
  108. </view>