riderLogin.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="riderr_login">
  3. <view class="rider_type">
  4. <view class="type_name">请选择注册类型</view>
  5. <view class="type_tit">请选择您是那种注册用户类型</view>
  6. </view>
  7. <view class="type_box" v-for="(item,index) in list" :key="item.id" @click="bindrider(item.name)">
  8. <view class="name">{{item.name}}</view>
  9. <view class="icon">
  10. <u-icon name="arrow-right"></u-icon>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. list: [{
  20. id: 1,
  21. name: '跑腿骑手'
  22. }, {
  23. id: 2,
  24. name: '同城师傅'
  25. }]
  26. }
  27. },
  28. methods: {
  29. bindrider(name) {
  30. console.log(name)
  31. if(name == '跑腿骑手'){
  32. uni.navigateTo({
  33. url:'/pages/login/login'
  34. })
  35. }
  36. }
  37. }
  38. }
  39. </script>
  40. <style>
  41. .riderr_login {
  42. width: 100%;
  43. }
  44. .rider_type {
  45. width: 90%;
  46. margin: 0 auto;
  47. margin-top: 50rpx;
  48. margin-bottom: 135rpx;
  49. }
  50. .type_name {
  51. font-size: 38rpx;
  52. font-weight: bold;
  53. letter-spacing: 2rpx;
  54. }
  55. .type_tit {
  56. color: #999999;
  57. font-size: 21rpx;
  58. margin-top: 10rpx;
  59. }
  60. .type_box {
  61. width: 90%;
  62. margin: 0 auto;
  63. height: 110rpx;
  64. background: #F2F2F2;
  65. display: flex;
  66. margin-bottom: 20rpx;
  67. border-radius: 18rpx;
  68. }
  69. .name {
  70. flex: 1;
  71. font-size: 30rpx;
  72. color: black;
  73. display: flex;
  74. justify-content: left;
  75. align-items: center;
  76. margin-left: 60rpx;
  77. }
  78. .icon {
  79. flex: 1;
  80. display: flex;
  81. justify-content: flex-end;
  82. align-items: center;
  83. margin-right: 30rpx;
  84. }
  85. .icon image {
  86. width: 15rpx;
  87. height: 25rpx;
  88. }
  89. </style>