common-buttom.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view>
  3. <view>
  4. <app-empty-bottom :height="Number(96)" backgroundColor="#f7f7f7"></app-empty-bottom>
  5. </view>
  6. <view>
  7. <app-iphone-x>
  8. <view slot="empty-area" class='lottery-bottom dir-left-nowrap cross-center'>
  9. <view @click="nav1" class="box-grow-1 dir-left-nowrap main-center cross-center">
  10. <icon class="icon icon-hf" :class="status==='index' ? theme+ '-m-back ' + theme: 'gray-back'"></icon>
  11. <view :class="status ==='index' ? theme+ '-m-text ' + theme : 'gray'">砍价会场</view>
  12. </view>
  13. <view class="line"></view>
  14. <view @click="nav2" class="box-grow-1 dir-left-nowrap main-center cross-center">
  15. <icon class="icon icon-jf" :class="status !=='index' ? theme+ '-m-back ' + theme: 'gray-back'"></icon>
  16. <view :class="status !=='index' ? theme+ '-m-text ' + theme : 'gray'">我的砍价</view>
  17. </view>
  18. </view>
  19. </app-iphone-x>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import { mapState } from 'vuex';
  25. import appIphonexBottom from "../../components/page-component/app-iphonex-bottom/app-iphonex-bottom.vue";
  26. import appIphoneX from '../../components/basic-component/app-iphone-x/app-iphone-x.vue';
  27. import appEmptyBottom from '../../components/basic-component/app-empty-bottom/app-empty-bottom.vue';
  28. export default {
  29. name: 'common-buttom',
  30. components: {appIphonexBottom, appEmptyBottom, appIphoneX},
  31. computed: {
  32. ...mapState('gConfig', {
  33. iphone: (data) => {
  34. return data.iphone;
  35. },
  36. iphoneHeight: (state) => {
  37. return state.iphoneHeight;
  38. },
  39. })
  40. },
  41. props: {
  42. status: {
  43. type: String,
  44. default: 'index',
  45. },
  46. theme: String
  47. },
  48. data() {
  49. return {}
  50. },
  51. methods: {
  52. nav1() {
  53. uni.redirectTo({url: `/plugins/bargain/index/index`});
  54. },
  55. nav2() {
  56. uni.redirectTo({url: `/plugins/bargain/order-list/order-list`});
  57. }
  58. }
  59. }
  60. </script>
  61. <style scoped lang="scss">
  62. .lottery-bottom {
  63. width: 100%;
  64. height: #{96rpx};
  65. background-color: #fff;
  66. border-top: #{1rpx} solid #e2e2e2;
  67. color: #999;
  68. .line {
  69. height: #{48rpx};
  70. width: #{1rpx};
  71. background: #e2e2e2;
  72. }
  73. .icon {
  74. width: #{34rpx};
  75. height: #{33rpx};
  76. background-repeat: no-repeat;
  77. background-size: 100% 100%;
  78. margin: 0 #{16rpx};
  79. }
  80. .icon.icon-hf {
  81. background-image: url('./image/bargain-list.png');
  82. }
  83. .icon.icon-jf {
  84. background-image: url('./image/bargain-my.png');
  85. }
  86. .gray {
  87. color: #999999;
  88. }
  89. .red {
  90. color: #ff4544;
  91. }
  92. }
  93. .navbar + .body {
  94. padding-bottom: #{115rpx};
  95. }
  96. .navbar + .body .lottery-bottom {
  97. bottom: #{115rpx};
  98. }
  99. .gray-back {
  100. background-color: #999999;
  101. }
  102. </style>