index.vue 4.1 KB

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