merchantExamine.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <!-- 商户审核 -->
  3. <view>
  4. <view class="select">
  5. <view class="text font-color4" :class="{active1:shows === 1}" @click="active('001')">
  6. 未审核
  7. </view>
  8. <view class="text font-color4" :class="{active:shows === 2}" @click="active('002')">
  9. 审核未通过
  10. </view>
  11. <view class="text font-color4" :class="{active2:shows === 3}" @click="active('003')">
  12. 审核通过
  13. </view>
  14. </view>
  15. <view>
  16. <view v-if="shows === 1">
  17. <noexamine ref="noexamine"></noexamine>
  18. </view>
  19. <view v-if="shows === 2">
  20. <noadopt ref="noadopt"></noadopt>
  21. </view>
  22. <view v-if="shows === 3">
  23. <examined ref="examined"></examined>
  24. </view>
  25. </view>
  26. <!-- <u-tabbar :list="tabBarList" :active-color="activeColor" :inactive-color="inactiveColor"
  27. :border-top="borderTop"></u-tabbar> -->
  28. </view>
  29. </template>
  30. <script>
  31. import examined from './examined.vue'
  32. import noadopt from './noadopt.vue'
  33. import noexamine from './noexamine.vue'
  34. import { mapGetters } from 'vuex'
  35. export default {
  36. data() {
  37. return {
  38. shows: 1,
  39. borderTop: false,
  40. inactiveColor: '#ccc',
  41. activeColor: '#2E4F1C',
  42. }
  43. },
  44. components:{
  45. examined,
  46. noadopt,
  47. noexamine
  48. },
  49. computed: {
  50. ...mapGetters([
  51. 'tabBarList',
  52. 'role'
  53. ])
  54. },
  55. onLoad(e) {
  56. if(e.id){
  57. console.log('e.id', e.id)
  58. }
  59. this.shows = 1;
  60. this.show();
  61. },
  62. methods: {
  63. show(){
  64. console.log('001')
  65. if(this.shows === 1){
  66. this.$refs.noexamine.showModel();
  67. }else if(this.shows === 2){
  68. this.$refs.noadopt.showModel();
  69. }else if(this.shows === 3){
  70. this.$refs.examined.showModel();
  71. }
  72. },
  73. active(type) {
  74. if (type === '001') {
  75. this.shows = 1;
  76. } else if (type === '002') {
  77. this.shows = 2;
  78. } else {
  79. this.shows = 3;
  80. }
  81. }
  82. }
  83. }
  84. </script>
  85. <style lang="scss">
  86. page {
  87. background-color: #F9F9F9;
  88. }
  89. .select {
  90. border: 2rpx solid #2E4F1C;
  91. border-radius: 48rpx;
  92. margin: 30rpx 36rpx 0;
  93. display: flex;
  94. justify-content: space-between;
  95. .text {
  96. padding: 22rpx 60rpx;
  97. text-align: center;
  98. }
  99. }
  100. .text:nth-child(3) {
  101. border: none;
  102. }
  103. .active {
  104. background-color: #2E4F1C;
  105. color: #ffffff;
  106. }
  107. .active1 {
  108. background-color: #2E4F1C;
  109. color: #ffffff;
  110. border-radius: 48rpx 0rpx 0rpx 48rpx;
  111. }
  112. .active2 {
  113. background-color: #2E4F1C;
  114. color: #ffffff;
  115. border-radius: 0rpx 48rpx 48rpx 0rpx;
  116. }
  117. </style>