index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="container">
  3. <view>
  4. <image src="/static/images/logo-long.png" class="logo"></image>
  5. <image src="/static/images/invite.png" class="main-img"></image>
  6. </view>
  7. <view class="tip">欢迎加入亿职赞</view>
  8. <u-button class="button" shape="circle" :hair-line="false" @click="join">立即加入</u-button>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. inviteCode: '', // 邀请码
  16. userName: '', // 用户名
  17. companyName: '' // 公司名
  18. };
  19. },
  20. onLoad(options) {
  21. if (options.inviteCode) {
  22. this.inviteCode = decodeURIComponent(options.inviteCode)
  23. }
  24. },
  25. methods: {
  26. join() {
  27. // type: 2.手机验证码登录
  28. // scene: 1.H5邀请
  29. // uni.navigateTo({
  30. // url: `/pages/public/loginphone?type=2&scene=1&inviteCode=${this.inviteCode}`
  31. // })
  32. uni.navigateTo({
  33. url: `/pages/public/loginV2?type=2&scene=1&inviteCode=${this.inviteCode}`
  34. })
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. .container {
  41. display: flex;
  42. flex-direction: column;
  43. justify-content: space-between;
  44. height: 100vh;
  45. padding: 72rpx 30rpx 200rpx;
  46. }
  47. .logo {
  48. display: block;
  49. width: 204rpx;
  50. height: 56rpx;
  51. margin: 0 auto 92rpx;
  52. }
  53. .main-img {
  54. display: block;
  55. width: 400rpx;
  56. height: 400rpx;
  57. margin: 0 auto 72rpx;
  58. }
  59. .company-info {
  60. width: 670rpx;
  61. text-align: center;
  62. margin: 0 auto 72rpx;
  63. .name {
  64. font-size: 40rpx;
  65. font-weight: bold;
  66. line-height: 52rpx;
  67. color: #333333;
  68. margin-bottom: 12rpx;
  69. }
  70. .company-name {
  71. line-height: 36rpx;
  72. color: #999999;
  73. }
  74. }
  75. .tip {
  76. text-align: center;
  77. margin-bottom: 100rpx;
  78. font-size: 48rpx;
  79. }
  80. .button {
  81. width: 686rpx;
  82. height: 90rpx;
  83. border-radius: 126px;
  84. background: var(--线性渐变, linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1) 100%));
  85. color: #fff;
  86. font-size: 32rpx;
  87. }
  88. </style>