index.vue 2.0 KB

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