step1.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="step1">
  3. <view class="step1-from">
  4. <view class="title">填写邀请码</view>
  5. <view class="input-item" style="margin-top: 180upx;">
  6. <input type="text" placeholder="请输入邀请码" v-model="invite_code">
  7. <view class="scan">
  8. <image src="../../static/images/scan.png" mode="scaleToFill" style="width: 46upx;height: 45upx;"></image>
  9. </view>
  10. </view>
  11. <view class="button-item" style="margin-top: 220upx;">
  12. <navigator :url="'/pages/register/step2?invite_code='+invite_code" open-type="navigate">
  13. <button class="next">下一步</button>
  14. </navigator>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data() {
  22. return {
  23. invite_code:""
  24. }
  25. },
  26. methods: {
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .step1 {
  32. background: $primary-color;
  33. height: 100vh;
  34. width: 750rpx;
  35. overflow: hidden;
  36. }
  37. .step1-from {
  38. margin: auto;
  39. width: 600upx;
  40. height: 700upx;
  41. background-color: white;
  42. border-radius: 20rpx;
  43. padding: 72upx;
  44. padding-top: 40upx;
  45. box-sizing: border-box;
  46. position: relative;
  47. z-index: 2;
  48. margin-top: 200upx;
  49. &::after {
  50. content: "";
  51. background: url(../../static/images/login/box-bottom.png) no-repeat;
  52. background-size: contain;
  53. width: 564upx;
  54. height: 30upx;
  55. display: block;
  56. position: absolute;
  57. bottom: -30upx;
  58. left: 18upx;
  59. z-index: -1;
  60. }
  61. .title {
  62. font-size: 30upx;
  63. color: #999999;
  64. font-weight: bold;
  65. text-align: center;
  66. margin-bottom: 80upx;
  67. }
  68. }
  69. .input-item {
  70. display: flex;
  71. position: relative;
  72. margin-bottom: 30upx;
  73. border-bottom: 2upx solid $primary-color;
  74. .scan {
  75. position: absolute;
  76. top: 0;
  77. right: 0;
  78. }
  79. input {
  80. flex-grow: 1;
  81. font-size: 30upx;
  82. text-align: center;
  83. padding: 5upx 55upx;
  84. }
  85. }
  86. .next {
  87. height: 80upx;
  88. border: 2upx solid $primary-color;
  89. line-height: 80upx;
  90. margin: 30upx 0;
  91. font-size: 32upx;
  92. background: $primary-color;
  93. color: white;
  94. &::after {
  95. border: none;
  96. }
  97. }
  98. </style>