index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <template>
  2. <div class="login">
  3. <img src="../../common/assets/image/logobig.png" alt="" class="logobig" />
  4. <div class="title">请选择您的身份</div>
  5. <div class="title1">方便我们为您提供更准确的服务</div>
  6. <div class="choose">
  7. <div @click="chooseIdentity(1)" :class="isSelect === 1 ? 'select isselect' : 'select'">
  8. <div><img class="headerImg" src="./sj.png" alt="" /></div>
  9. <div class="name">我是司机</div>
  10. <div class="huan"><van-icon name="success" /></div>
  11. </div>
  12. <div @click="chooseIdentity(2)" :class="isSelect === 2 ? 'select isselect' : 'select'" class="select"
  13. style="margin-top: 20px">
  14. <div><img class="headerImg" src="./qy.png" alt="" /></div>
  15. <div class="name">我是企业</div>
  16. <div class="huan"><van-icon name="success" /></div>
  17. </div>
  18. </div>
  19. <div class="btnbox">
  20. <van-button class="btn" @click="goLogin">去登陆</van-button>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. loginForm: {},
  29. isSelect: 1,
  30. };
  31. },
  32. mounted() { },
  33. methods: {
  34. chooseIdentity(e) {
  35. this.isSelect = e;
  36. },
  37. goLogin() {
  38. let type = this.isSelect === 1 ? 'USER' : 'BIZ'
  39. console.log(type)
  40. uni.navigateTo({
  41. url: "/pages/login/login?type=" + type,
  42. });
  43. },
  44. },
  45. };
  46. </script>
  47. <style lang="scss">
  48. .login {
  49. background: white;
  50. height: 100%;
  51. overflow: hidden;
  52. .logTit {
  53. width: 80vw;
  54. left: 10vw;
  55. top: 45vw;
  56. display: flex;
  57. flex-direction: column;
  58. justify-content: center;
  59. align-items: center;
  60. position: absolute;
  61. z-index: 1;
  62. color: rgba(51, 51, 51, 1);
  63. font-size: 4vw;
  64. p {
  65. color: rgba(102, 102, 102, 1);
  66. font-size: 4vw;
  67. margin-top: 0.5vw;
  68. }
  69. .titletxt {
  70. font-size: 48rpx;
  71. font-family: Taipei Sans TC Beta-Bold, Taipei Sans TC Beta;
  72. font-weight: bold;
  73. color: #333333;
  74. }
  75. .titletxt2 {
  76. font-size: 32rpx;
  77. font-family: PingFang SC-Regular, PingFang SC;
  78. font-weight: 400;
  79. color: #666666;
  80. }
  81. }
  82. .logobig {
  83. width: 100vw;
  84. height: 100vh;
  85. position: absolute;
  86. left: 0;
  87. z-index: 0;
  88. }
  89. .title {
  90. font-weight: bold;
  91. font-size: 52rpx;
  92. color: #222222;
  93. position: absolute;
  94. top: 342px;
  95. left: 52px;
  96. }
  97. .title1 {
  98. position: absolute;
  99. top: 381px;
  100. left: 52px;
  101. font-weight: 400;
  102. font-size: 28rpx;
  103. color: #666666;
  104. }
  105. .huan {
  106. width: 40rpx;
  107. height: 40rpx;
  108. border: 4rpx solid #c0c2c3;
  109. background: #ffffff;
  110. color: #c0c2c3;
  111. border-radius: 50%;
  112. text-align: center;
  113. line-height: 40rpx;
  114. }
  115. .choose {
  116. position: absolute;
  117. top: 800rpx;
  118. width: 100%;
  119. .headerImg {
  120. height: 88rpx;
  121. width: 88rpx;
  122. }
  123. .select {
  124. margin: auto;
  125. display: flex;
  126. align-items: center;
  127. justify-content: space-between;
  128. width: 654rpx;
  129. height: 128rpx;
  130. background: #ffffff;
  131. border-radius: 16rpx 16rpx 16rpx 16rpx;
  132. padding: 20rpx 32rpx;
  133. box-sizing: border-box;
  134. }
  135. .name {
  136. margin-right: 160px;
  137. }
  138. }
  139. .isselect {
  140. border: 2rpx solid #8a0554;
  141. .huan {
  142. background: rgba(138, 5, 84, 1);
  143. color: white;
  144. }
  145. }
  146. .btnbox {
  147. position: absolute;
  148. bottom: 170rpx;
  149. width: 100%;
  150. display: flex;
  151. justify-content: center;
  152. .btn {
  153. button {
  154. width: 594rpx;
  155. height: 96rpx;
  156. background: #8a0554;
  157. border-radius: 48rpx 48rpx 48rpx 48rpx;
  158. text-align: center;
  159. line-height: 96rpx;
  160. color: white;
  161. }
  162. text-align: center;
  163. }
  164. }
  165. }
  166. </style>