app-join-member.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="app-goods-join-member">
  3. <app-jump-button url="/pages/member/index/index" open_type="navigate">
  4. <view class="member dir-left cross-center">
  5. <view class="box-grow-0">加入会员,享会员价</view>
  6. <view class="box-grow-1 price" :class="theme + '-color'">
  7. <app-price type="text-price-all"
  8. :max="memberMaxPrice"
  9. :min="memberMinPrice"
  10. :default-price="price"
  11. ></app-price>
  12. </view>
  13. <view class="dir-left cross-center box-grow-0">
  14. <view>了解更多</view>
  15. <image src="../../../static/image/icon/arrow-right.png" class="right"></image>
  16. </view>
  17. </view>
  18. </app-jump-button>
  19. </view>
  20. </template>
  21. <script>
  22. import {mapState} from 'vuex';
  23. import appPrice from "../../page-component/goods/app-price.vue";
  24. export default {
  25. name: "app-goods-join-member",
  26. components: {
  27. 'app-price': appPrice,
  28. },
  29. props: {
  30. memberMaxPrice: String,
  31. memberMinPrice: String,
  32. price: String,
  33. },
  34. computed: {
  35. ...mapState({
  36. theme: state => state.mallConfig.theme
  37. }),
  38. },
  39. }
  40. </script>
  41. <style scoped lang="scss">
  42. .member {
  43. background-color: #faf2d8;
  44. width: 100%;
  45. height: #{80rpx};
  46. padding: 0 #{24rpx};
  47. font-size: $uni-font-size-weak-one;
  48. margin: #{24rpx} 0;
  49. border-radius: #{16rpx};
  50. .right {
  51. width: #{12rpx};
  52. height: #{22rpx};
  53. margin-left: #{16rpx};
  54. }
  55. .price {
  56. font-size: $uni-font-size-general-one;
  57. }
  58. }
  59. </style>