特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.2 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="page">
  3. <view class="title">
  4. 请选择您的身份
  5. </view>
  6. <view class="box1"
  7. @click="toBoss">
  8. 我要找师傅
  9. <image src="../static/auth/boss.png" mode=""></image>
  10. </view>
  11. <view class="box2"
  12. @click="toEmployee">
  13. 我要找工作
  14. <image src="../static/auth/gr.png" mode=""></image>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. }
  23. },
  24. methods: {
  25. toBoss(){
  26. this.$store.commit('setRole', true)
  27. uni.reLaunch({
  28. url: '/pages/index/index'
  29. })
  30. },
  31. toEmployee(){
  32. this.$store.commit('setRole', false)
  33. uni.reLaunch({
  34. url: '/pages/index/index'
  35. })
  36. },
  37. }
  38. }
  39. </script>
  40. <style scoped lang="scss">
  41. .page{
  42. background-color: #fff;
  43. min-height: 100vh;
  44. text-align: center;
  45. .title{
  46. font-size: 36rpx;
  47. font-weight: 900;
  48. padding-top: 300rpx;
  49. }
  50. image{
  51. width: 140rpx;
  52. height: 140rpx;
  53. margin-left: 60rpx;
  54. }
  55. .box1, .box2{
  56. padding: 40rpx 0;
  57. margin: 60rpx;
  58. color: #fff;
  59. border-radius: 20rpx;
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. font-size: 36rpx;
  64. font-weight: 900;
  65. }
  66. .box1{
  67. background-color: #F0A921;
  68. }
  69. .box2{
  70. background-color: #FC8955;
  71. }
  72. }
  73. </style>