switchRoles.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view class="switch-roles">
  3. <nav-bar title="切换身份"></nav-bar>
  4. <view class="roles-content">
  5. <view class="content">
  6. <image src="/static/images/my/zhaopingzhe.svg" mode="scaleToFill" />
  7. <view class="roles-desc">你当前的身份是“招聘者”</view>
  8. <view class="roles-btn" @click="goBusinessLicense">切换为“求职者”身份</view>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import navBar from "@/components/nav-bar/index.vue";
  15. export default {
  16. data() {
  17. return {};
  18. },
  19. components: {
  20. navBar,
  21. },
  22. methods: {
  23. goBusinessLicense(){
  24. uni.navigateTo({ url: '/pages/my/businessLicense' })
  25. }
  26. },
  27. };
  28. </script>
  29. <style lang="scss" scoped>
  30. .switch-roles {
  31. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  32. position: absolute;
  33. left: 0;
  34. right: 0;
  35. top: 0;
  36. bottom: 0;
  37. display: flex;
  38. flex-direction: column;
  39. .roles-content {
  40. width: 100%;
  41. flex: 1;
  42. overflow: hidden;
  43. overflow-y: auto;
  44. padding-top: 10vh;
  45. box-sizing: border-box;
  46. .content {
  47. padding: 62rpx;
  48. box-sizing: border-box;
  49. display: flex;
  50. flex-direction: column;
  51. align-items: center;
  52. justify-content: center;
  53. image {
  54. width: 364rpx;
  55. height: 364rpx;
  56. }
  57. .roles-desc {
  58. color: rgba(255, 255, 255, 1);
  59. font-family: DM Sans;
  60. font-size: 32rpx;
  61. font-weight: 400;
  62. line-height: 48rpx;
  63. text-align: center;
  64. padding: 24rpx 0 36rpx 0;
  65. box-sizing: border-box;
  66. }
  67. .roles-btn {
  68. color: #016bf6;
  69. font-family: DM Sans;
  70. font-size: 32rpx;
  71. font-weight: 400;
  72. line-height: 48rpx;
  73. letter-spacing: 0%;
  74. background-color: #fff;
  75. text-align: center;
  76. padding: 16rpx 32rpx;
  77. box-sizing: border-box;
  78. border-radius: 100rpx;
  79. }
  80. }
  81. }
  82. }
  83. </style>