开放平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

214 lines
4.8 KiB

  1. <template>
  2. <div class="big-box">
  3. <!-- 标题 -->
  4. <div class="head-bar">
  5. <img class="favicon-svg" src="../static/img/login-title.png" alt="" />
  6. </div>
  7. <div class="login-box">
  8. <div class="login-input">
  9. <span class="left-font">手机号码</span>
  10. <el-input
  11. size="mini"
  12. placeholder="输入您的手机号"
  13. clearable
  14. v-model="formLoginData.phone"
  15. >
  16. </el-input>
  17. </div>
  18. <div class="login-input">
  19. <span class="left-font">验证码</span>
  20. <el-input
  21. size="mini"
  22. placeholder="输入验证码"
  23. clearable
  24. v-model="formLoginData.code"
  25. >
  26. <span slot="append" class="right-font">获取验证码</span>
  27. </el-input>
  28. </div>
  29. <div class="login-input">
  30. <span class="left-font">个人昵称</span>
  31. <el-input
  32. size="mini"
  33. placeholder="输入昵称,以后可修改"
  34. clearable
  35. v-model="formLoginData.name"
  36. >
  37. </el-input>
  38. </div>
  39. <div class="login-input">
  40. <span class="left-font">设置密码</span>
  41. <el-input
  42. size="mini"
  43. placeholder="不少于8位"
  44. clearable
  45. v-model="formLoginData.name"
  46. >
  47. </el-input>
  48. </div>
  49. <div class="login-input">
  50. <span class="left-font">确认密码</span>
  51. <el-input
  52. size="mini"
  53. placeholder="确认密码"
  54. clearable
  55. v-model="formLoginData.name"
  56. >
  57. </el-input>
  58. </div>
  59. <!-- -->
  60. <div class="form-footer-sign">
  61. <el-checkbox v-model="formLoginData.read">
  62. <span class="sign-span-1">已阅读并同意</span>
  63. </el-checkbox>
  64. <span class="sign-span-2" @click="onAgreement">《用户使用协议》</span>
  65. </div>
  66. <!-- 登陆按钮 -->
  67. <div class="button-box" style="margin-top: 18px">
  68. <div class="primary-button">注册</div>
  69. </div>
  70. <div class="form-state" @click="linkLogin">已有账号,立即登录</div>
  71. </div>
  72. <!-- 页脚 -->
  73. <footer class="footer">
  74. Copyright © 2008-2019 珠海方诺信息科技有限公司 版权所有 粤ICP备13020798号
  75. </footer>
  76. </div>
  77. </template>
  78. <script>
  79. export default {
  80. name: "Login",
  81. data() {
  82. return {
  83. formLoginData: {
  84. phone: "", // 手机号
  85. code: "", // 验证码
  86. name: "", // 个人昵称
  87. password: "", // 密码
  88. confirmPassword: "", // 确认密码
  89. isGetCode: false, // 获取验证码
  90. state: "sign", // 登陆或注册
  91. isCode: true, // 是否验证码登陆
  92. read: false, // 是否阅读
  93. },
  94. };
  95. },
  96. methods: {
  97. // 用户协议
  98. onAgreement: function () {
  99. this.$message("开发中~");
  100. },
  101. linkLogin: function () {
  102. this.$router.push("/login");
  103. },
  104. },
  105. };
  106. </script>
  107. <style lang="scss" scoped>
  108. .big-box {
  109. width: 100vw;
  110. height: 100vh;
  111. background-image: url("../static/img/login.png");
  112. background-size: 100vw 100vh;
  113. background-repeat: no-repeat;
  114. display: flex;
  115. flex-flow: column;
  116. user-select: none;
  117. .head-bar {
  118. color: #fff;
  119. font-size: 35px;
  120. margin: 90px auto 0;
  121. letter-spacing: 4px;
  122. .favicon-svg {
  123. vertical-align: -11px;
  124. }
  125. }
  126. .login-box {
  127. margin: 37px auto 0;
  128. width: 550px;
  129. box-shadow: 0px 2px 20px 0px rgba(0, 71, 137, 0.3);
  130. border-radius: 10px;
  131. background: #fff;
  132. box-sizing: border-box;
  133. padding: 40px;
  134. .login-input {
  135. display: flex;
  136. width: 100%;
  137. background: #ffffff;
  138. border-radius: 6px;
  139. border: 1px solid #dddddd;
  140. padding: 12px 0;
  141. box-sizing: border-box;
  142. height: 54px;
  143. align-items: center;
  144. margin-bottom: 20px;
  145. .left-font {
  146. width: 88px;
  147. text-align: center;
  148. color: #333333;
  149. font-size: 14px;
  150. border-right: 1px solid #dddddd;
  151. height: 30px;
  152. line-height: 30px;
  153. }
  154. .right-font {
  155. color: #1890ff;
  156. font-size: 14px;
  157. cursor: pointer;
  158. }
  159. }
  160. .form-footer-sign {
  161. display: flex;
  162. justify-content: center;
  163. font-size: 14px;
  164. align-items: center;
  165. .el-checkbox {
  166. display: flex;
  167. align-items: center;
  168. }
  169. .sign-span-1 {
  170. color: #000000;
  171. opacity: 0.65;
  172. }
  173. .sign-span-2 {
  174. color: #1890ff;
  175. cursor: pointer;
  176. }
  177. }
  178. .button-box {
  179. height: 54px;
  180. }
  181. .form-state {
  182. color: #1890ff;
  183. font-size: 13px;
  184. display: flex;
  185. justify-content: center;
  186. margin-top: 20px;
  187. cursor: pointer;
  188. }
  189. }
  190. .footer {
  191. color: #fff;
  192. opacity: 0.7;
  193. font-size: 14px;
  194. text-align: center;
  195. width: 100vw;
  196. margin-top: 150px;
  197. }
  198. }
  199. </style>