invite-passive-user.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <div>
  3. <!-- 微信环境提示浏览器打开 -->
  4. <WxPopTpis v-if="isWeChatBrowser" />
  5. <div class="padssive">
  6. <div>
  7. <div class="bright-wrap">
  8. <div class="bright-item mb-6"></div>
  9. <div class="bright-item mb-6"></div>
  10. <div class="bright-item"></div>
  11. <div class="bright-item"></div>
  12. </div>
  13. <div class="input-wrap">
  14. <div class="input-cell">
  15. <div class="input-cell-label">
  16. <span class="required">*</span><span class="label-name">手机号</span>
  17. </div>
  18. <div class="input-cell-value">
  19. <input class="input" v-model.trim="value" type="number" placeholder="请输入11位手机号" />
  20. </div>
  21. <div class="input-error-msg">手机号码不正确,请重新输入!</div>
  22. </div>
  23. <div class="input-cell">
  24. <div class="input-cell-label">
  25. <span class="required">*</span><span class="label-name">短信验证</span>
  26. </div>
  27. <div class="code-cell">
  28. <div class="input-cell-value">
  29. <input class="input" v-model.trim="value" type="number" placeholder="请输入验证码" />
  30. </div>
  31. <div class="get-code ml-2">获取验证码</div>
  32. </div>
  33. <div class="input-error-msg">手机号码不正确,请重新输入!</div>
  34. </div>
  35. <div class="req-btn-wrap">
  36. <van-button class="mb-3" type="primary" round block color="#435EFB" text="注册并下载APP" />
  37. </div>
  38. <div class="tips">
  39. 通过登录即可完成注册,成为我们的新用户,登录后表示同意双子星云手机服务协议
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </template>
  46. <script>
  47. import WxPopTpis from './components/WxPopTpis';
  48. export default {
  49. auth: false,
  50. name: 'InvitePassiveUser',
  51. head: {
  52. title: '受邀验证',
  53. },
  54. components: { WxPopTpis },
  55. data() {
  56. return {
  57. value: ''
  58. }
  59. },
  60. computed: {
  61. // 是否为微信浏览器环境
  62. isWeChatBrowser() {
  63. return this.$userAgent.isWx;
  64. }
  65. },
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. .padssive{
  70. padding: 80px 16px 16px 16px;
  71. }
  72. .bright-wrap{
  73. display: flex;
  74. justify-content: space-around;
  75. align-items: center;
  76. flex-wrap: wrap;
  77. align-content: space-around;
  78. .bright-item{
  79. width: 155px;
  80. height: 82px;
  81. background: linear-gradient( 160deg, #62A9FF 0%, #3370FF 100%);
  82. border-radius: 8px;
  83. }
  84. }
  85. .input-wrap{
  86. background-color: #fff;
  87. padding: 16px;
  88. border-radius: 8px;
  89. .input-cell{
  90. margin-bottom: 16px;
  91. .input-cell-label{
  92. font-size: 14px;
  93. line-height: 20px;
  94. margin-bottom: 8px;
  95. .required{
  96. color: #FE5C5B;
  97. }
  98. .label-name{
  99. font-weight: 600;
  100. color: #242424;
  101. }
  102. }
  103. .input-cell-value{
  104. background-color: #F3F3F3;
  105. border-radius: 4px;
  106. display: flex;
  107. height: 48px;
  108. padding: 0 12px;
  109. align-items: center;
  110. flex: 1;
  111. position: relative;
  112. .input{
  113. flex: 1;
  114. background-color: transparent;
  115. border: none;
  116. outline: none;
  117. font-size: 14px;
  118. line-height: 20px;
  119. color: #242424;
  120. }
  121. }
  122. .input-error-msg{
  123. bottom: 0;
  124. left: 0;
  125. font-size: 12px;
  126. color: #FE5C5B
  127. }
  128. .code-cell{
  129. display: flex;
  130. .get-code{
  131. font-weight: 400;
  132. font-size: 14px;
  133. color: #3370FF;
  134. display: flex;
  135. align-items: center;
  136. }
  137. }
  138. }
  139. .req-btn-wrap{
  140. margin-top: 56px;
  141. }
  142. .tips{
  143. font-weight: 400;
  144. font-size: 14px;
  145. color: #979797;
  146. line-height: 20px;
  147. }
  148. }
  149. </style>