merchantExamine.vue 2.7 KB

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