search.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <div class="page">
  3. <div class="page-top flex flex-col justify-center items-center">
  4. <img class="logo" :src="supplierInfo.logo" />
  5. <div class="name mt-2" v-text="supplierInfo.shopName + '认证记录'"></div>
  6. </div>
  7. <div class="page-content">
  8. <el-form>
  9. <el-form-item label="手机号:">
  10. <el-input placeholder="请输入注册账号手机"></el-input>
  11. </el-form-item>
  12. </el-form>
  13. <div class="control flex flex-col items-center">
  14. <div
  15. class="button search flex justify-center items-center"
  16. @click="onSearch"
  17. >
  18. 查询
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import { mapGetters } from 'vuex'
  26. export default {
  27. layout: 'app',
  28. computed: {
  29. ...mapGetters(['supplierInfo', 'authUserId', 'routePrefix']),
  30. },
  31. methods: {
  32. onSearch() {
  33. this.$router.push(`${this.routePrefix}/record/club/detail`)
  34. },
  35. },
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. @media screen and (min-width: 768px) {
  40. .page {
  41. background: #fff;
  42. }
  43. .page-top {
  44. height: 360px;
  45. @include themify($themes) {
  46. background: themed('banner-club-register');
  47. background-size: auto 360px;
  48. }
  49. .logo {
  50. display: block;
  51. width: 120px;
  52. height: 120px;
  53. border-radius: 50%;
  54. background: #fff;
  55. }
  56. .name {
  57. font-size: 30px;
  58. color: #fff;
  59. }
  60. }
  61. .page-content {
  62. width: 700px;
  63. margin: 0 auto;
  64. overflow: hidden;
  65. min-height: calc(100vh - 80px - 80px - 360px);
  66. box-sizing: border-box;
  67. padding-bottom: 40px;
  68. padding-top: 70px;
  69. .control {
  70. margin-top: 62px;
  71. .button {
  72. width: 295px;
  73. height: 50px;
  74. cursor: pointer;
  75. &.search {
  76. @include themify($themes) {
  77. background-color: themed('color');
  78. color: #fff;
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }
  85. @media screen and (max-width: 768px) {
  86. .page {
  87. background: #fff;
  88. }
  89. .page-top {
  90. height: 46vw;
  91. @include themify($themes) {
  92. background: themed('banner-home-h5');
  93. background-size: auto 46vw;
  94. }
  95. .logo {
  96. display: block;
  97. width: 14.8vw;
  98. height: 14.8vw;
  99. border-radius: 50%;
  100. background: #fff;
  101. }
  102. .name {
  103. font-size: 4vw;
  104. color: #fff;
  105. }
  106. }
  107. .page-content {
  108. padding: 0 7.2vw;
  109. padding-top: 18vw;
  110. box-sizing: border-box;
  111. .control {
  112. margin-top: 12.8vw;
  113. .button {
  114. width: 100%;
  115. height: 12vw;
  116. cursor: pointer;
  117. &.search {
  118. @include themify($themes) {
  119. background-color: themed('color');
  120. color: #fff;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }
  127. </style>