chooserole.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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 qy" @click="toRegister('5')">
  25. <view class="role-info">
  26. <p class="title">{{$t("login.myIsEnterprise")}}</p>
  27. <p class="text">{{$t("login.auditTheOperate")}}</p>
  28. </view>
  29. <uni-icons color="rgb(42, 90, 122)" type="forward" size="22"></uni-icons>
  30. </view> -->
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data(){
  36. return {
  37. }
  38. },
  39. methods:{
  40. backLogin(){
  41. uni.navigateBack({ delta: 1 })
  42. },
  43. toRegister(type){
  44. uni.navigateTo({
  45. url: `/pages/login/register?type=${type}`
  46. })
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="less" scoped>
  52. .register {
  53. // height: 100%;
  54. width: 630rpx;
  55. padding:80rpx 60rpx 0;
  56. overflow: hidden !important;
  57. .login-title{
  58. line-height: 100rpx;
  59. font-size: 40rpx;
  60. .text{
  61. font-size: 32rpx;
  62. line-height: 32rpx;
  63. color: #999;
  64. }
  65. }
  66. .role-card{
  67. display: flex;
  68. padding: 40rpx;
  69. border-radius: 10rpx;
  70. align-items: center;
  71. .role-info{
  72. flex: 1;
  73. }
  74. }
  75. .jxs{
  76. background: linear-gradient(to left , rgb(224, 202, 170),rgb(240, 228, 211));
  77. margin-top: 60rpx;
  78. .title{
  79. font-size: 32rpx;
  80. line-height: 60rpx;
  81. color: rgb(114, 65, 0);
  82. }
  83. .text{
  84. font-size: 28rpx;
  85. line-height: 60rpx;
  86. color: rgb(155, 124, 84);
  87. }
  88. }
  89. .sj{
  90. background: linear-gradient(to left , rgb(113, 205, 233),rgb(161, 225, 245));
  91. margin-top: 32rpx;
  92. .title{
  93. font-size: 32rpx;
  94. line-height: 60rpx;
  95. color: rgb(42, 90, 122);
  96. }
  97. .text{
  98. font-size: 28rpx;
  99. line-height: 60rpx;
  100. color: rgb(105, 145, 160);
  101. }
  102. }
  103. .qy{
  104. background: linear-gradient(to left , #11c198, #a1f5e3);
  105. margin-top: 32rpx;
  106. .title{
  107. font-size: 32rpx;
  108. line-height: 60rpx;
  109. color: rgb(42, 90, 122);
  110. }
  111. .text{
  112. font-size: 28rpx;
  113. line-height: 60rpx;
  114. color: rgb(105, 145, 160);
  115. }
  116. }
  117. }
  118. </style>