index.vue 4.3 KB

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