index.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. if(this.isSelect==1){
  56. }
  57. let type =
  58. this.isSelect === 1 ? "USER" : this.isSelect === 2 ? "BIZ" : "FRAME";
  59. console.log(type);
  60. uni.navigateTo({
  61. url: "/pages/login/login?type=" + type,
  62. });
  63. },
  64. },
  65. };
  66. </script>
  67. <style lang="scss">
  68. .login {
  69. background: white;
  70. height: 100%;
  71. overflow: hidden;
  72. .logTit {
  73. width: 80vw;
  74. left: 10vw;
  75. top: 45vw;
  76. display: flex;
  77. flex-direction: column;
  78. justify-content: center;
  79. align-items: center;
  80. position: absolute;
  81. z-index: 1;
  82. color: rgba(51, 51, 51, 1);
  83. font-size: 4vw;
  84. p {
  85. color: rgba(102, 102, 102, 1);
  86. font-size: 4vw;
  87. margin-top: 0.5vw;
  88. }
  89. .titletxt {
  90. font-size: 48rpx;
  91. font-family: Taipei Sans TC Beta-Bold, Taipei Sans TC Beta;
  92. font-weight: bold;
  93. color: #333333;
  94. }
  95. .titletxt2 {
  96. font-size: 32rpx;
  97. font-family: PingFang SC-Regular, PingFang SC;
  98. font-weight: 400;
  99. color: #666666;
  100. }
  101. }
  102. .logobig {
  103. width: 100vw;
  104. height: 100vh;
  105. position: absolute;
  106. left: 0;
  107. z-index: 0;
  108. }
  109. .title {
  110. font-weight: bold;
  111. font-size: 52rpx;
  112. color: #222222;
  113. position: absolute;
  114. top: 342rpx;
  115. left: 52rpx;
  116. }
  117. .title1 {
  118. position: absolute;
  119. top: 400rpx;
  120. left: 52rpx;
  121. font-weight: 400;
  122. font-size: 28rpx;
  123. color: #666666;
  124. }
  125. .huan {
  126. width: 40rpx;
  127. height: 40rpx;
  128. border: 4rpx solid #c0c2c3;
  129. background: #ffffff;
  130. color: #c0c2c3;
  131. border-radius: 50%;
  132. text-align: center;
  133. line-height: 40rpx;
  134. }
  135. .choose {
  136. position: absolute;
  137. top: 40vh;
  138. width: 100%;
  139. .headerImg {
  140. height: 88rpx;
  141. width: 88rpx;
  142. }
  143. .select {
  144. margin: auto;
  145. display: flex;
  146. align-items: center;
  147. justify-content: space-between;
  148. width: 654rpx;
  149. height: 128rpx;
  150. background: #ffffff;
  151. border-radius: 16rpx 16rpx 16rpx 16rpx;
  152. padding: 20rpx 32rpx;
  153. box-sizing: border-box;
  154. }
  155. .name {
  156. // margin-right: 160rpx;
  157. width: 400rpx;
  158. }
  159. }
  160. .isselect {
  161. border: 2rpx solid #8a0554;
  162. .huan {
  163. background: rgba(138, 5, 84, 1);
  164. color: white;
  165. }
  166. }
  167. .btnbox {
  168. position: absolute;
  169. bottom: 170rpx;
  170. width: 100%;
  171. display: flex;
  172. justify-content: center;
  173. .btn {
  174. button {
  175. width: 594rpx;
  176. height: 96rpx;
  177. background: #8a0554;
  178. border-radius: 48rpx 48rpx 48rpx 48rpx;
  179. text-align: center;
  180. line-height: 96rpx;
  181. color: white;
  182. }
  183. text-align: center;
  184. }
  185. }
  186. }
  187. </style>