app-join-member.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="app-join-member" v-if="level_show === 2">
  3. <app-jump-button form open_type="navigate" url="/pages/member/index/index">
  4. <view class="app-orange dir-left-nowrap main-between cross-center">
  5. <view class="cross-center">
  6. <text class="app-title">加入会员,享会员价</text>
  7. <text class="app-symbol">{{groupSparePrice}}</text>
  8. </view>
  9. <view class="cross-center">
  10. <text class="app-title">了解更多</text>
  11. <image class="app-icon" src="../../../static/image/icon/arrow-right.png"></image>
  12. </view>
  13. </view>
  14. </app-jump-button>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name: 'app-join-member',
  20. props: {
  21. group_price_min: {
  22. type: String,
  23. default() {
  24. return '0.00';
  25. }
  26. },
  27. original_price: {
  28. type: String,
  29. default() {
  30. return '0.00';
  31. }
  32. },
  33. level_show: {
  34. type: Number,
  35. default() {
  36. return 0;
  37. }
  38. }
  39. },
  40. computed: {
  41. groupSparePrice: function() {
  42. return (Number(this.original_price) - Number(this.group_price_min)).toFixed(2);
  43. }
  44. }
  45. }
  46. </script>
  47. <style scoped lang="scss">
  48. .app-join-member {
  49. background-color: white;
  50. width: #{750rpx};
  51. height: #{77rpx};
  52. padding: #{10rpx} #{17rpx};
  53. box-sizing: border-box;
  54. .app-orange {
  55. background-color: #faf2d8;
  56. width: #{716rpx};
  57. height: #{57rpx};
  58. border-radius: #{9rpx};
  59. padding: 0 #{17rpx};
  60. box-sizing: border-box;
  61. .app-symbol {
  62. color: #ff4544;
  63. font-size: #{16rpx};
  64. margin-top: #{2rpx};
  65. }
  66. .app-symbol:before {
  67. content: '¥';
  68. }
  69. .app-icon {
  70. width: #{9rpx};
  71. height: #{16rpx};
  72. margin-left: #{10rpx};
  73. }
  74. .app-title {
  75. font-size: #{28rpx};
  76. color: #3a3a39;
  77. }
  78. }
  79. }
  80. </style>