yaoqing.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="yaoqing">
  3. <view class="yaoqing-title">
  4. 输入您的邀请码
  5. </view>
  6. <view class="yaoqing-input u-flex u-row-between">
  7. <input type="text" placeholder="请输入您的邀请码" v-model="invitation_code">
  8. <image src="static/Scanning.png" mode=""></image>
  9. </view>
  10. <view class="login-btn2" @click="touserinfo1(1)">
  11. 登录
  12. </view>
  13. <view class="tiaoguo" @click="touserinfo1(2)">
  14. 跳过
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. invitation_code: ''
  23. }
  24. },
  25. onLoad() {
  26. },
  27. methods: {
  28. touserinfo1(type) {
  29. if(type == 1){
  30. if(!this.invitation_code){
  31. this.$u.toast('请输入您的邀请码')
  32. return
  33. }
  34. }
  35. // uni.navigateTo({
  36. // url: "/pagesA/userinfo?invitation_code=" + this.invitation_code
  37. // })
  38. uni.setStorageSync("invitation_code",this.invitation_code)
  39. uni.navigateTo({
  40. url: "/pagesA/jianlichange"
  41. })
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="scss">
  47. .yaoqing {
  48. padding: 0 52rpx;
  49. .tiaoguo {
  50. text-align: center;
  51. font-size: 32rpx;
  52. font-family: PingFangSC-Regular, PingFang SC;
  53. font-weight: 400;
  54. color: #222222;
  55. }
  56. .login-btn2 {
  57. line-height: 96rpx;
  58. border-radius: 16rpx;
  59. text-align: center;
  60. font-size: 32rpx;
  61. font-family: PingFangSC-Regular, PingFang SC;
  62. font-weight: 400;
  63. color: #fff;
  64. margin-bottom: 48rpx;
  65. background-color: #0C66C2;
  66. }
  67. .yaoqing-input {
  68. height: 124rpx;
  69. border-bottom: 2rpx solid #F4F4F4;
  70. margin-bottom: 54rpx;
  71. input {
  72. flex: 1;
  73. font-size: 32rpx;
  74. }
  75. image {
  76. width: 48rpx;
  77. height: 48rpx;
  78. }
  79. }
  80. .yaoqing-title {
  81. margin: 82rpx 0 66rpx 0;
  82. font-size: 44rpx;
  83. font-family: PingFangSC-Medium, PingFang SC;
  84. font-weight: 500;
  85. color: #222222;
  86. }
  87. }
  88. </style>