exchange.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view class="recommend">
  3. <view class="re-list" v-for="b in bastList" :key="b.id">
  4. <view class="re-img">
  5. <image :src="b.image" mode=""></image>
  6. </view>
  7. <view class="re-right">
  8. <view class="re-right-top">
  9. {{b.store_name}}<br>
  10. </view>
  11. <view class="re-right-bottom">
  12. <view class="re-right-bottom-left">
  13. <b>¥{{b.vip_price}}</b><span>¥{{b.price}}</span>
  14. </view>
  15. <view class="re-right-bottom-right">
  16. <button type="default" @click="goDhqDetai(b.id)">立即购买</button>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import { getCombinationList, getProductslist, getProductHot, getIntegralList, getOrderStock ,getProductList} from '@/api/product.js';
  25. export default {
  26. data() {
  27. return {
  28. bastList: []
  29. }
  30. },
  31. mounted() {
  32. this.bastList = this.$store.state.user.dhqList
  33. },
  34. methods: {
  35. goDhqDetai(id) {
  36. uni.navigateTo({
  37. url: '/pages/product/product?id=' + id + '&type=3'
  38. });
  39. },
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .re-list {
  45. margin: 20rpx;
  46. height: 280rpx;
  47. background-color: #FFFFFF;
  48. border-radius: 8rpx;
  49. display: flex;
  50. $wi: 200rpx;
  51. .re-img {
  52. margin: auto 0;
  53. image {
  54. width: $wi;
  55. height: $wi;
  56. border-radius: 10rpx;
  57. margin: 0 25rpx;
  58. }
  59. }
  60. .re-right {
  61. height: $wi;
  62. width: 100%;
  63. margin: auto 0;
  64. font-family: PingFang-SC-Medium;
  65. position: relative;
  66. .re-right-top {
  67. color: #333333;
  68. font-size: 30rpx;
  69. span {
  70. color: #DCB876;
  71. font-size: 22rpx;
  72. }
  73. }
  74. .re-right-bottom {
  75. width: 100%;
  76. display: flex;
  77. justify-content:space-between;
  78. position: absolute;
  79. bottom: 0;
  80. .re-right-bottom-left {
  81. height: 60rpx;
  82. line-height: 60rpx;
  83. margin: auto 0;
  84. font-size: 32rpx;
  85. color: #901B21;
  86. span {
  87. margin-left: 5rpx;
  88. color: #989B9F;
  89. font-size: 15rpx;
  90. text-decoration: line-through;
  91. }
  92. }
  93. .re-right-bottom-right {
  94. margin-right: 20rpx;
  95. button {
  96. width: 170rpx;
  97. background-color: #901B21;
  98. border-radius: 50rpx;
  99. height: 60rpx;
  100. line-height: 60rpx;
  101. color: #FFFFFF;
  102. font-size: 28rpx;
  103. }
  104. }
  105. }
  106. }
  107. }
  108. </style>