integral.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!-- 积分 -->
  2. <template>
  3. <view class="wrap">
  4. <image src="../../../static/bg-7.png" mode="widthFix" class="bg"></image>
  5. <view class="header">
  6. <view class="header-top">
  7. <image src="../../../static/return-2.png" @tap="back" class="return" mode="widthFix"></image>
  8. <view class="header-title">
  9. 积分
  10. </view>
  11. </view>
  12. </view>
  13. <view class="card">
  14. <image src="../../../static/bg-6.png" mode="" class="card-bg"></image>
  15. <view class="card-container">
  16. <view class="card-top">
  17. <text class="intergral-label">我的积分</text>
  18. <view class="card-row" @tap="pointsDetails">
  19. <image src="../../../static/icon-6.png" mode=""></image>
  20. 明细
  21. </view>
  22. </view>
  23. <view class="card-bottom">
  24. <text>12590</text>
  25. <button type="default" @tap="exchangeRecord">
  26. <image src="../../../static/icon-5.png" mode=""></image>
  27. 兑换记录
  28. </button>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="bottom">
  33. <view class="label">
  34. 好物兑换
  35. </view>
  36. <view class="list">
  37. <view class="item">
  38. <image src="../../../static/img-4.png" class="item-img" mode="aspectFill"></image>
  39. <view class="item-sidebar">
  40. <view class="item-name">精品小童茸,云南香格里拉松茸,肉质紧实细腻…</view>
  41. <view class="item-row-between">
  42. <view class="row">
  43. ¥<text>94.00</text>+<text>200</text> 积分
  44. </view>
  45. <button type="default"
  46. :class="'item-btn '+ (isExchange ? 'gray-bg' : '')">{{isExchange ? '已兑换' : '兑换'}}</button>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="item">
  51. <image src="../../../static/img-4.png" class="item-img" mode="aspectFill"></image>
  52. <view class="item-sidebar">
  53. <view class="item-name">精品小童茸,云南香格里拉松茸,肉质紧实细腻…</view>
  54. <view class="item-row-between">
  55. <view class="row">
  56. ¥<text>94.00</text>+<text>200</text> 积分
  57. </view>
  58. <button type="default"
  59. :class="'item-btn '+ (isExchange ? 'gray-bg' : '')">{{isExchange ? '已兑换' : '兑换'}}</button>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. export default {
  69. data() {
  70. return {
  71. isExchange: false
  72. }
  73. },
  74. methods: {
  75. /**
  76. * 返回上一页
  77. */
  78. back() {
  79. uni.navigateBack({
  80. delta: 1,
  81. })
  82. },
  83. //跳转兑换记录页面
  84. exchangeRecord(){
  85. uni.navigateTo({
  86. url:'../exchange-record/exchange-record'
  87. })
  88. },
  89. //跳转积分明细
  90. pointsDetails(){
  91. uni.navigateTo({
  92. url:'../points-details/points-details'
  93. })
  94. }
  95. }
  96. }
  97. </script>
  98. <style scoped lang="scss">
  99. @import "./integral.css";
  100. </style>