buy.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!--pages/buy/buy.wxml-->
  2. <view class="buy-container">
  3. <view class="header">
  4. <view class="info">
  5. <view class="img">
  6. <image class="headimg" src="{{appuserheadimg}}"></image>
  7. </view>
  8. <text class="name">{{appusername}}</text>
  9. </view>
  10. <view class="span">
  11. <text class="count">{{count}}</text>
  12. <text class="unit">次</text>
  13. </view>
  14. </view>
  15. <view class="chose-pay-type">
  16. <view class="title">选择检测套餐</view>
  17. <view class="pay-type">
  18. <!-- <view class="pay-item one-time {{payType == 0 ? 'pay-item-active' : ''}}" data-type="0" bindtap="handlePayType">
  19. <view class="p-title">一次体验卡</view>
  20. <view class="p-prise">
  21. <text class="p-tag">¥</text>
  22. <text class="p-num">199</text>
  23. </view>
  24. <view class="mark ittflex" wx:if="{{payType == 0}}">
  25. <van-icon name="success" color="#fff" />
  26. </view>
  27. </view> -->
  28. <block wx:for="{{goodsList}}" wx:key="index">
  29. <view class="pay-item four-time {{index == activeIndex ? 'pay-item-active' : ''}}" data-index="{{index}} {{goodsList.length == 1 ? 'pay-item-nomargin' : ''}}" data-goodsinfo="{{item}}" bindtap="handlePayType">
  30. <view class="p-title-flex">
  31. <view class="light-text ittflex" wx:if="{{item.isRecommend}}">荐</view>
  32. <text class="sub-title">{{item.goodsName}}</text>
  33. </view>
  34. <view class="p-prise">
  35. <text class="saleprice">活动价</text>
  36. <text class="p-tag">¥</text>
  37. <text class="p-num">{{item.salePrice}}</text>
  38. </view>
  39. <view class="onceprice">
  40. <view class="line"></view>
  41. <text class="oncepricetext">市场价¥{{item.oncePrice}}</text>
  42. </view>
  43. <!-- <view class="tips">
  44. <text wx:if="{{item.donateNumber > 0}}">加赠{{item.donateNumber}}次,</text>
  45. <text>共{{item.donateNumber + item.useNumber}}次</text>
  46. </view> -->
  47. <!-- <view class="mark ittflex" wx:if="{{index == activeIndex}}">
  48. <van-icon name="success" color="#fff" />
  49. </view> -->
  50. <view class="discount ittflex">
  51. {{item.discount}}折
  52. </view>
  53. </view>
  54. </block>
  55. </view>
  56. </view>
  57. <view class="wxpay">
  58. <view class="pay-con ittflex-jcs">
  59. <image class="wxpaypng" src="./../../imaes/wxpay.png"/>
  60. <text class="p-wxpay">微信</text>
  61. </view>
  62. <view class="check-icnon ittflex">
  63. <van-icon name="success" color="#fff" />
  64. </view>
  65. </view>
  66. <view class="pay-btn default-btn ittflex" bindtap="handleWXPay">立即支付</view>
  67. <view class="s-tips">购买成功后,体验次数立即到账,不可退款</view>
  68. </view>