chooserole.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="register">
  3. <!-- <view class="login-title">
  4. <uni-icons @click="backLogin" type="back" size="25"></uni-icons>
  5. </view> -->
  6. <view class="login-title">
  7. <span>{{$t("login.pleaseSelectUserType")}}</span>
  8. <p class="text">{{$t("login.morePreciseService")}}</p>
  9. </view>
  10. <view class="role-card jxs" @click="toRegister('3')">
  11. <view class="role-info">
  12. <p class="title">{{$t("login.myIsDealer")}}</p>
  13. <p class="text">{{$t("login.aKeyOrder")}}</p>
  14. </view>
  15. <uni-icons type="forward" color="rgb(114, 65, 0)" size="22"></uni-icons>
  16. </view>
  17. <view class="role-card sj" @click="toRegister('4')">
  18. <view class="role-info">
  19. <p class="title">{{$t("login.myIsDriver")}}</p>
  20. <p class="text">{{$t("login.odersTheNearest")}}</p>
  21. </view>
  22. <uni-icons color="rgb(42, 90, 122)" type="forward" size="22"></uni-icons>
  23. </view>
  24. <view class="role-card yss" @click="toRegister('7')">
  25. <view class="role-info">
  26. <p class="title">{{$t("login.myIsTrans")}}</p>
  27. <p class="text">{{$t("login.onTimeArrive")}}</p>
  28. </view>
  29. <uni-icons color="rgb(42, 90, 122)" type="forward" size="22"></uni-icons>
  30. </view>
  31. <!-- <view class="role-card qy" @click="toRegister('5')">
  32. <view class="role-info">
  33. <p class="title">{{$t("login.myIsEnterprise")}}</p>
  34. <p class="text">{{$t("login.auditTheOperate")}}</p>
  35. </view>
  36. <uni-icons color="rgb(42, 90, 122)" type="forward" size="22"></uni-icons>
  37. </view> -->
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data(){
  43. return {
  44. }
  45. },
  46. methods:{
  47. backLogin(){
  48. uni.navigateBack({ delta: 1 })
  49. },
  50. toRegister(type){
  51. uni.navigateTo({
  52. url: `/pages/login/register?type=${type}`
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="less" scoped>
  59. .register {
  60. // height: 100%;
  61. width: 630rpx;
  62. padding:80rpx 60rpx 0;
  63. overflow: hidden !important;
  64. .login-title{
  65. line-height: 100rpx;
  66. font-size: 40rpx;
  67. .text{
  68. font-size: 32rpx;
  69. line-height: 32rpx;
  70. color: #999;
  71. }
  72. }
  73. .role-card{
  74. display: flex;
  75. padding: 40rpx;
  76. border-radius: 10rpx;
  77. align-items: center;
  78. .role-info{
  79. flex: 1;
  80. }
  81. }
  82. .jxs{
  83. background: linear-gradient(to left , rgb(224, 202, 170),rgb(240, 228, 211));
  84. margin-top: 60rpx;
  85. .title{
  86. font-size: 32rpx;
  87. line-height: 60rpx;
  88. color: rgb(114, 65, 0);
  89. }
  90. .text{
  91. font-size: 28rpx;
  92. line-height: 60rpx;
  93. color: rgb(155, 124, 84);
  94. }
  95. }
  96. .sj{
  97. background: linear-gradient(to left , rgb(113, 205, 233),rgb(161, 225, 245));
  98. margin-top: 32rpx;
  99. .title{
  100. font-size: 32rpx;
  101. line-height: 60rpx;
  102. color: rgb(42, 90, 122);
  103. }
  104. .text{
  105. font-size: 28rpx;
  106. line-height: 60rpx;
  107. color: rgb(105, 145, 160);
  108. }
  109. }
  110. .yss{
  111. background: linear-gradient(to left , #11c198, #a1f5e3);
  112. margin-top: 32rpx;
  113. .title{
  114. font-size: 32rpx;
  115. line-height: 60rpx;
  116. color: rgb(42, 90, 122);
  117. }
  118. .text{
  119. font-size: 28rpx;
  120. line-height: 60rpx;
  121. color: rgb(105, 145, 160);
  122. }
  123. }
  124. .qy{
  125. background: linear-gradient(to left , #11c198, #a1f5e3);
  126. margin-top: 32rpx;
  127. .title{
  128. font-size: 32rpx;
  129. line-height: 60rpx;
  130. color: rgb(42, 90, 122);
  131. }
  132. .text{
  133. font-size: 28rpx;
  134. line-height: 60rpx;
  135. color: rgb(105, 145, 160);
  136. }
  137. }
  138. }
  139. </style>