PersonalRegistration.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. <template>
  2. <div class="register">
  3. <div class="container">
  4. <div class="content">
  5. <div class="content-top">
  6. <h3>个人注册</h3>
  7. <a class="go" @click="goRegister"><i class="fa fa-long-arrow-right"></i>企业注册</a>
  8. </div>
  9. <div>
  10. <el-form :model="item" :rules="rules2" ref="item" label-width="100px" class="demo-ruleForm">
  11. <el-form-item prop="vipName">
  12. <el-input type="text" v-model="item.vipName" auto-complete="off" placeholder="会员名"></el-input>
  13. </el-form-item>
  14. <el-form-item prop="password">
  15. <el-input type="password" v-model="item.password" auto-complete="new-password" placeholder="登录密码"></el-input>
  16. <div class="pwd sm" v-show="showMsgTip1">密码强度 <em></em><em></em><em></em><span>弱</span></div>
  17. <div class="pwd md" v-show="showMsgTip2">密码强度 <em></em><em></em><em></em><span>中</span></div>
  18. <div class="pwd lar" v-show="showMsgTip3">密码强度 <em></em><em></em><em></em><span>强</span></div>
  19. <div class="pwd low" v-show="showMsgTip4">密码强度 <em></em><em></em><em></em></div>
  20. </el-form-item>
  21. <el-form-item prop="confirm">
  22. <el-input type="password"
  23. v-model="item.confirm"
  24. v-bind:class="{active: showPasswordError}"
  25. auto-complete="new-password"
  26. placeholder="密码确认"></el-input>
  27. <span class="tip passwordError" v-show="showPasswordError">两次输入密码不一致</span>
  28. </el-form-item>
  29. <el-form-item prop="mobile">
  30. <el-input v-model="item.mobile"
  31. v-bind:class="{active: mobileRegister}"
  32. placeholder="手机号码"></el-input>
  33. <span class="tip" v-show="showMsgTip">单个手机号只能注册一个用户</span>
  34. <span class="tip tip-mobile" v-show="mobileRegister">该手机号已被注册</span>
  35. </el-form-item>
  36. <el-form-item prop="code">
  37. <el-input type="text" v-model="item.code"
  38. v-bind:class="{ active: codeErrorChecked }" auto-complete="off" class="msg" placeholder="短信验证码"></el-input>
  39. <el-button type="primary" class="code"
  40. v-show="sendPersonalCode"
  41. @click="getCheckCode"
  42. :disabled="this.checkMobile">获取验证码</el-button>
  43. <el-button type="primary" v-show="!sendPersonalCode" class="code code-send">已发送({{personal_time}}s)</el-button>
  44. <span v-show="codeErrorChecked" class="codeError-tip">{{codeErrorMsg}}</span>
  45. </el-form-item>
  46. <el-form-item>
  47. <a class="btn finish" @click="submit">确认注册</a>
  48. </el-form-item>
  49. <el-form-item>
  50. <el-checkbox name="type" v-model="checked" @click="checkboxChecked"></el-checkbox>
  51. <span class="agree" v-if="!agreementUrl || (agreementUrl && (JSON.parse(agreementUrl.terms).isUrl))">我已阅读并同意 <a href="/common/agreement">《优软云服务条款》</a></span>
  52. <span class="agree" v-else>我已阅读并同意<a :href="`/common/cityAgreement/?appId=${this.$route.query.appId}`">《{{JSON.parse(agreementUrl.terms).name || ''}}》</a></span>
  53. </el-form-item>
  54. </el-form>
  55. </div>
  56. </div>
  57. <div class="login">已有账号?<a :href="returnLogin">立即登录</a></div>
  58. <loading v-show="isShowLoading"/>
  59. </div>
  60. <!--尾部-->
  61. <div v-html="loginStyle.footUrl" class="footer"></div>
  62. </div>
  63. </template>
  64. <script>
  65. import Loading from '~components/common/loading/Loading.vue'
  66. export default {
  67. name: 'PersonalRegistration',
  68. components: {
  69. Loading
  70. },
  71. data () {
  72. var validateName = (rule, value, callback) => {
  73. if (value === '') {
  74. callback(new Error('会员名不能为空'))
  75. this.vipNameChecked = false
  76. } else {
  77. if (this.item.vipName !== '') {
  78. if (value.length < 2 || value.length > 20) {
  79. callback(new Error('请填写合适的会员名称,2~20个字符'))
  80. this.vipNameChecked = false
  81. } else {
  82. this.vipNameChecked = true
  83. }
  84. }
  85. }
  86. callback()
  87. }
  88. var validatePass = (rule, value, callback) => {
  89. if (this.item.password !== '') {
  90. if (value.length <= 20 && value.length >= 8) {
  91. var reg1 = /^(?=.{8,20})(((?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]))|((?=.*[0-9])((?=.*[a-zA-Z]))(?=.*[^a-zA-Z0-9]))).*$/
  92. var reg2 = /^(?=.{8,20})(((?=.*[0-9])(?=.*[a-z]))|((?=.*[0-9])(?=.*[A-Z]))).*$/
  93. if (reg1.test(value)) {
  94. // callback(new Error('密码强度强'))
  95. this.showMsgTip3 = true
  96. this.showMsgTip2 = false
  97. this.showMsgTip1 = false
  98. this.showMsgTip4 = false
  99. this.passwordChecked = true
  100. } else if (reg2.test(value)) {
  101. // callback(new Error('密码强度中'))
  102. this.showMsgTip2 = true
  103. this.showMsgTip3 = false
  104. this.showMsgTip1 = false
  105. this.showMsgTip4 = false
  106. this.passwordChecked = true
  107. } else {
  108. this.showMsgTip1 = true
  109. this.showMsgTip3 = false
  110. this.showMsgTip2 = false
  111. this.showMsgTip4 = false
  112. this.passwordChecked = false
  113. }
  114. } else {
  115. this.showMsgTip3 = false
  116. this.showMsgTip2 = false
  117. this.showMsgTip1 = false
  118. this.showMsgTip4 = true
  119. this.passwordChecked = false
  120. }
  121. }
  122. callback()
  123. }
  124. var validatePassTip = (rule, value, callback) => {
  125. if (value === '') {
  126. callback(new Error('请输入密码'))
  127. this.passwordChecked = false
  128. } else {
  129. if (this.item.password !== '') {
  130. if (value.length <= 20 && value.length >= 8) {
  131. var reg1 = /^(?=.{8,20})(((?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]))|((?=.*[0-9])((?=.*[a-zA-Z]))(?=.*[^a-zA-Z0-9]))).*$/
  132. var reg2 = /^(?=.{8,20})(((?=.*[0-9])(?=.*[a-z]))|((?=.*[0-9])(?=.*[A-Z]))).*$/
  133. if (reg1.test(value)) {
  134. this.passwordChecked = true
  135. } else if (reg2.test(value)) {
  136. this.passwordChecked = true
  137. } else {
  138. callback(new Error('密码须为8-20字符的英文、数字混合'))
  139. this.passwordChecked = false
  140. }
  141. } else {
  142. callback(new Error('密码须为8-20字符的英文、数字混合'))
  143. this.passwordChecked = false
  144. }
  145. if (this.item.confirm !== '') {
  146. if (value !== this.item.confirm) {
  147. this.showPasswordError = true
  148. // callback(new Error('两次输入密码不一致!'))
  149. this.confirmChecked = false
  150. } else {
  151. this.confirmChecked = true
  152. this.showPasswordError = false
  153. callback()
  154. }
  155. }
  156. }
  157. callback()
  158. }
  159. }
  160. var validatePass2 = (rule, value, callback) => {
  161. if (value === '') {
  162. callback(new Error('请再次输入密码'))
  163. this.confirmChecked = false
  164. this.showPasswordError = false
  165. } else if (value !== this.item.password) {
  166. // callback(new Error('两次输入密码不一致!'))
  167. this.showPasswordError = true
  168. this.confirmChecked = false
  169. } else {
  170. this.confirmChecked = true
  171. this.showPasswordError = false
  172. callback()
  173. }
  174. }
  175. var validateMobile = (rule, value, callback) => {
  176. if (value === '') {
  177. callback(new Error('请填写正确的手机号'))
  178. this.showMsgTip = false
  179. this.checkMobile = true
  180. this.mobileRegister = false
  181. this.mobileChecked = false
  182. } else {
  183. if (this.item.mobile !== '') {
  184. var reg = /^1([0-9]{10})$/
  185. if (!reg.test(value)) {
  186. callback(new Error('请填写正确的手机号'))
  187. this.showMsgTip = false
  188. this.checkMobile = true
  189. this.mobileRegister = false
  190. this.mobileChecked = false
  191. } else {
  192. this.$http.get(`/api/user/checkMobile`, {params: {mobile: this.item.mobile, mobileArea: ''}})
  193. .then(response => {
  194. if (response.data.hasRegister) {
  195. this.mobileRegister = true
  196. this.showMsgTip = false
  197. this.checkMobile = true
  198. this.mobileChecked = false
  199. } else {
  200. this.showMsgTip = false
  201. this.checkMobile = false
  202. this.mobileRegister = false
  203. this.mobileChecked = true
  204. }
  205. })
  206. }
  207. }
  208. callback()
  209. }
  210. }
  211. var validateCode = (rule, value, callback) => {
  212. if (value === '') {
  213. callback(new Error('请填写正确的验证码'))
  214. this.codeErrorChecked = false
  215. this.codeChecked = false
  216. } else {
  217. if (this.item.mobile === '') {
  218. callback(new Error('请先填写正确的手机号'))
  219. } else {
  220. if (this.token) {
  221. if (this.item.code.length === 6) {
  222. let param = new FormData()
  223. param.append('mobile', this.item.mobile)
  224. param.append('code', this.item.code)
  225. param.append('token', this.token)
  226. let config = {
  227. headers: {'Content-Type': 'multipart/form-data'}
  228. }
  229. this.$http.post(`/sso/personal/register/checkCode`, param, config)
  230. .then(response => {
  231. if (response.data.success) {
  232. this.codeChecked = true
  233. this.codeErrorChecked = false
  234. } else {
  235. this.codeErrorChecked = true
  236. this.codeChecked = false
  237. // callback(new Error('验证码输入错误'))
  238. return Promise.reject(response.data)
  239. }
  240. }).catch(err => {
  241. this.codeErrorMsg = err.errMsg
  242. // this.$message.error(err.errMsg)
  243. })
  244. } else {
  245. callback(new Error('请输入正确的验证码'))
  246. this.codeChecked = false
  247. this.codeErrorChecked = false
  248. }
  249. } else {
  250. callback(new Error('请先获取验证码'))
  251. this.codeChecked = false
  252. this.codeErrorChecked = false
  253. }
  254. }
  255. callback()
  256. }
  257. }
  258. var validateCodeIsEmpty = (rule, value, callback) => {
  259. if (value === '') {
  260. callback(new Error('请填写正确的验证码'))
  261. this.codeErrorChecked = false
  262. this.codeChecked = false
  263. } else {
  264. if (this.item.mobile === '') {
  265. callback(new Error('请先填写正确的手机号'))
  266. } else {
  267. if (this.token) {
  268. if (this.item.code.length === 6) {
  269. let param = new FormData()
  270. param.append('mobile', this.item.mobile)
  271. param.append('code', this.item.code)
  272. param.append('token', this.token)
  273. let config = {
  274. headers: {'Content-Type': 'multipart/form-data'}
  275. }
  276. this.$http.post(`/sso/personal/register/checkCode`, param, config)
  277. .then(response => {
  278. if (response.data.success) {
  279. this.codeChecked = true
  280. this.codeErrorChecked = false
  281. } else {
  282. this.codeErrorChecked = true
  283. this.codeChecked = false
  284. return Promise.reject(response.data)
  285. }
  286. }).catch(err => {
  287. this.codeErrorMsg = err.errMsg
  288. })
  289. } else {
  290. callback(new Error('请输入正确的验证码'))
  291. this.codeChecked = false
  292. this.codeErrorChecked = false
  293. }
  294. } else {
  295. callback(new Error('请先获取验证码'))
  296. this.codeChecked = false
  297. this.codeErrorChecked = false
  298. }
  299. }
  300. callback()
  301. }
  302. }
  303. return {
  304. item: {
  305. vipName: '',
  306. password: '',
  307. confirm: '',
  308. mobile: '',
  309. code: ''
  310. },
  311. isShowLoading: false,
  312. showPasswordError: false,
  313. vipNameChecked: false,
  314. passwordChecked: false,
  315. confirmChecked: false,
  316. mobileChecked: false,
  317. codeChecked: false,
  318. codeErrorChecked: false,
  319. showMsgTip: true,
  320. showMsgTip1: false,
  321. showMsgTip2: false,
  322. showMsgTip3: false,
  323. showMsgTip4: false,
  324. checkMobile: true,
  325. checked: true,
  326. token: '',
  327. mobileRegister: false,
  328. sendPersonalCode: true,
  329. codeErrorMsg: '',
  330. personal_time: 0,
  331. queryLink: '',
  332. appId: '',
  333. returnLogin: '',
  334. rules2: {
  335. vipName: [
  336. { validator: validateName, trigger: 'blur' }
  337. ],
  338. password: [
  339. { validator: validatePassTip, trigger: 'blur' },
  340. { validator: validatePass, trigger: 'change' }
  341. ],
  342. confirm: [
  343. { required: true, validator: validatePass2, trigger: 'blur' }
  344. ],
  345. mobile: [
  346. { validator: validateMobile, trigger: 'blur' }
  347. ],
  348. code: [
  349. { validator: validateCode, trigger: 'change' },
  350. { validator: validateCodeIsEmpty, trigger: 'blur' }
  351. ]
  352. }
  353. }
  354. },
  355. mounted () {
  356. // 获取链接
  357. this.$nextTick(() => {
  358. this.getUrl()
  359. })
  360. },
  361. computed: {
  362. loginStyle () {
  363. return this.$store.state.login.loginStyle.data.content
  364. },
  365. agreementUrl () {
  366. return this.$store.state.login.agreementUrl.data.content
  367. }
  368. },
  369. methods: {
  370. // 获取链接
  371. getUrl () {
  372. var url = window.location.search
  373. var request = {}
  374. var origin = window.location.origin
  375. this.returnLogin = origin + url
  376. if (url.indexOf('?' !== -1)) {
  377. var str = url.substr(1)
  378. var strs = str.split('&')
  379. this.queryLink = str
  380. for (var i = 0; i < strs.length; i++) {
  381. request[strs[i].split('=')[0]] = decodeURI(strs[i].split('=')[1])
  382. }
  383. }
  384. this.appId = request['appId'] || ''
  385. },
  386. // 注册
  387. goRegister () {
  388. window.location.href = `/register/enterpriseRegistration?${this.queryLink}`
  389. },
  390. // 我同意是否被选中
  391. checkboxChecked () {
  392. this.checked = !this.checked
  393. },
  394. // 表单提交
  395. submit () {
  396. if (this.vipNameChecked && this.passwordChecked && this.confirmChecked && this.mobileChecked && this.codeChecked && this.checked) {
  397. if (this.item.password !== this.item.confirm) {
  398. this.$message.error('请确认两次填写密码是否一致')
  399. } else {
  400. this.isShowLoading = true
  401. let param = new FormData()
  402. param.append('vipName', this.item.vipName)
  403. param.append('password', this.item.password)
  404. param.append('mobile', this.item.mobile)
  405. // param.append('mobileArea', '')
  406. param.append('appId', this.appId)
  407. param.append('code', this.item.code)
  408. param.append('token', this.token)
  409. let config = {
  410. headers: {'Content-Type': 'multipart/form-data'}
  411. }
  412. this.$http.post('/sso/personal/register', param, config)
  413. .then(response => {
  414. this.isShowLoading = false
  415. if (response.data.success) {
  416. if (response.data.content.type === 'mall') {
  417. let param = response.data.content.data
  418. let a = ''
  419. for (let n in param) {
  420. a += (n + '=' + encodeURIComponent(param[n]) + '&')
  421. }
  422. let params = a.substr(0, a.length - 1)
  423. this.isShowLoading = true
  424. if (response.data.content.currentUrl) {
  425. this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
  426. name: 'successCallback',
  427. timeout: 3000
  428. }, (err, data) => {
  429. if (err) {
  430. this.$message.error('注册成功,请点击下方“立即登录”完成登录')
  431. this.isShowLoading = false
  432. throw err
  433. } else {
  434. this.loginOther(response, params)
  435. }
  436. })
  437. } else {
  438. this.loginOther(response, params, 3000)
  439. }
  440. } else if (response.data.content.type === 'city') {
  441. let param = response.data.content.data
  442. let a = ''
  443. for (let n in param) {
  444. a += (n + '=' + encodeURIComponent(param[n]) + '&')
  445. }
  446. let params = a.substr(0, a.length - 1)
  447. this.isShowLoading = true
  448. if (response.data.content.currentUrl) {
  449. this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
  450. name: 'successCallback',
  451. timeout: 3000
  452. }, (err, data) => {
  453. if (err) {
  454. this.$message.error('注册成功,请点击下方“立即登录”完成登录')
  455. this.isShowLoading = false
  456. throw err
  457. } else {
  458. this.loginCityOther(response, params)
  459. }
  460. })
  461. } else {
  462. this.loginCityOther(response, params, 3000)
  463. }
  464. } else {
  465. window.location.href = '/overRegister/overEnterprise'
  466. }
  467. } else {
  468. return Promise.reject(response.data)
  469. }
  470. }).catch(err => {
  471. this.$message.error(err.errMsg)
  472. this.isShowLoading = false
  473. this.personal_time = 0
  474. })
  475. }
  476. } else {
  477. if (!this.item.vipName) {
  478. this.$message.error('会员名不能为空')
  479. } else if (!this.vipNameChecked) {
  480. this.$message.error('会员名输入有误,请按提示重新输入')
  481. } else if (!this.item.password) {
  482. this.$message.error('密码不能为空')
  483. } else if (!this.passwordChecked) {
  484. this.$message.error('密码输入有误,请按提示重新输入')
  485. } else if (!this.item.confirm) {
  486. this.$message.error('请再次输入密码')
  487. } else if (!this.confirmChecked) {
  488. this.$message.error('请确认两次填写密码是否一致')
  489. } else if (!this.item.mobile) {
  490. this.$message.error('手机号不能为空')
  491. } else if (!this.mobileChecked) {
  492. this.$message.error('手机号输入有误,请按提示重新输入')
  493. } else if (!this.token) {
  494. this.$message.error('请先获取验证码')
  495. } else if (!this.item.code) {
  496. this.$message.error('验证码不能为空')
  497. } else if (!this.codeChecked) {
  498. this.$message.error('验证码输入有误,请按提示重新输入')
  499. } else if (!this.checked) {
  500. this.$message.error('您对阅读条款未做勾选')
  501. }
  502. }
  503. },
  504. // 获取验证码
  505. // async getCode () {
  506. // let { data } = await this.$http.get(`/sso/personal/register/checkCode`, {params: {mobile: this.item.mobile}})
  507. // this.token = data.token
  508. // },
  509. getCheckCode () {
  510. this.isShowLoading = true
  511. // this.getCode()
  512. this.$http.get(`/sso/personal/register/checkCode`, {params: {mobile: this.item.mobile}})
  513. .then(response => {
  514. this.isShowLoading = false
  515. if (response.data) {
  516. this.token = response.data.token
  517. if (this.token !== '') {
  518. this.$message({
  519. message: '验证码已经发送到您的手机,请注意查收',
  520. type: 'success'
  521. })
  522. this.sendPersonalCode = false
  523. this.personal_time = 60
  524. var personalTime = setInterval(() => {
  525. this.personal_time--
  526. if (this.personal_time <= 0) {
  527. this.sendPersonalCode = true
  528. clearInterval(personalTime)
  529. }
  530. }, 1000)
  531. }
  532. } else {
  533. return Promise.reject(response.data)
  534. }
  535. }).catch(err => {
  536. this.isShowLoading = false
  537. this.$message.error(err.errMsg)
  538. })
  539. },
  540. getJsonp: function (url, timeout = 500) {
  541. return new Promise((resolve, reject) => {
  542. this.$jsonp(url, {
  543. name: 'successCallback',
  544. timeout: timeout
  545. }, function (err, data) {
  546. if (err) {
  547. reject(err)
  548. throw err
  549. } else {
  550. resolve(data)
  551. }
  552. })
  553. })
  554. },
  555. crossAfter (url) {
  556. try {
  557. window.location.href = url
  558. } catch (err) {
  559. console.log(err)
  560. }
  561. },
  562. loginOther (response, a, timeout) {
  563. const crossAfter = this.crossAfter
  564. let promises = []
  565. for (let i in response.data.content.loginUrls) {
  566. promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a}`))
  567. }
  568. let returnUrl = decodeURIComponent(this.$route.query.returnURL)
  569. Promise.all(promises).then(() => {
  570. crossAfter(returnUrl || 'http://www.ubtob.com', timeout)
  571. }).catch(() => {
  572. crossAfter(returnUrl || 'http://www.ubtob.com', timeout)
  573. })
  574. },
  575. loginCityOther (response, a, timeout) {
  576. const crossAfter = this.crossAfter
  577. let promises = []
  578. for (let i in response.data.content.loginUrls) {
  579. promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a}`))
  580. }
  581. Promise.all(promises).then(() => {
  582. crossAfter('/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath || '/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath, timeout)
  583. }).catch(() => {
  584. crossAfter('/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath || '/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath, timeout)
  585. })
  586. }
  587. }
  588. }
  589. </script>
  590. <style lang="scss" scoped>
  591. .register {
  592. margin: 0 auto;
  593. width: 100%;
  594. background: #eee;
  595. .container{
  596. padding-top: 50px;
  597. margin: 0 auto;
  598. width: 980px;
  599. text-align: center;
  600. .content{
  601. padding: 0 50px;
  602. margin: 50px auto 0;
  603. width: 100%;
  604. text-align: center;
  605. background: #fff;
  606. .content-top{
  607. position: relative;
  608. height: 80px;
  609. line-height: 80px;
  610. border-bottom: 1px solid #dcdcdc;
  611. h3{
  612. font-family: 'SimHei';
  613. font-size: 24px;
  614. color: #000;
  615. }
  616. a.go{
  617. position: absolute;
  618. top: 0;
  619. right: 0;
  620. font-size: 14px;
  621. i{
  622. margin-right: 3px;
  623. }
  624. }
  625. }
  626. form {
  627. padding-bottom: 44px;
  628. margin-top: 35px;
  629. input{
  630. padding: 0 0 0 18px;
  631. width: 360px;
  632. height: 44px;
  633. line-height: 44px;
  634. font-size: 14px;
  635. color: #000;
  636. border-radius: 0;
  637. }
  638. span.help{
  639. position: absolute;
  640. right: -230px;
  641. top:0;
  642. font-size: 12px;
  643. color: #f00;
  644. }
  645. i.fa{
  646. position: absolute;
  647. top: 10px;
  648. right: 18px;
  649. font-size: 24px;
  650. color: #a0a0a0;
  651. cursor: pointer;
  652. }
  653. .pwd {
  654. margin: 6px 0 -15px 0;
  655. text-align: left;
  656. font-size: 13px;
  657. em{
  658. display: inline-block;
  659. margin: 0 8px 2px 0;
  660. width: 24px;
  661. height: 6px;
  662. &:first-child{
  663. margin-left: 10px;
  664. }
  665. }
  666. span{
  667. margin-left: 10px;
  668. font-size: 13px;
  669. }
  670. }
  671. .pwd.sm{
  672. color: #8c8c8c;
  673. em {
  674. background: #bfbfbf;
  675. &:first-child{
  676. background: #ff4e00;
  677. }
  678. }
  679. span{
  680. color: #ff4e00;
  681. }
  682. }
  683. .pwd.md{
  684. color: #8c8c8c;
  685. em {
  686. background: #22ac38;
  687. &:nth-child(3){
  688. background: #bfbfbf;
  689. }
  690. }
  691. span{
  692. color: #22ac38;
  693. }
  694. }
  695. .pwd.lar{
  696. color: #8c8c8c;
  697. em {
  698. background: #00a0e9;
  699. }
  700. span{
  701. color: #00a0e9;
  702. }
  703. }
  704. .pwd.low{
  705. color: #8c8c8c;
  706. em{
  707. background: #bfbfbf;
  708. }
  709. }
  710. span.tip{
  711. position: absolute;
  712. top: 3px;
  713. right: -190px;
  714. font-size: 13px;
  715. color: #8c8c8c;
  716. }
  717. span.tip.tip-mobile{
  718. top: 3px;
  719. right: -118px;
  720. color: #ff4949;
  721. font-size: 12px;
  722. }
  723. span.codeError-tip{
  724. position: absolute;
  725. top: 3px;
  726. left: 378px;
  727. width: 200px;
  728. text-align: left;
  729. color: #ff4949;
  730. font-size: 12px;
  731. }
  732. span.tip.passwordError{
  733. position: absolute;
  734. top: 3px;
  735. left: 380px;
  736. width: 200px;
  737. text-align: left;
  738. color: #ff4949;
  739. font-size: 12px;
  740. }
  741. input.msg{
  742. float: left;
  743. width: 210px;
  744. }
  745. button.msg{
  746. float: right;
  747. width: 130px;
  748. height: 44px;
  749. font-size: 14px;
  750. color: #5a5a5a;
  751. background: #f4f4f4;
  752. border: 1px solid #dcdcdc;
  753. cursor: pointer;
  754. &:disabled{
  755. cursor: not-allowed ;
  756. opacity: .7;
  757. }
  758. }
  759. span.msg.send{
  760. float: right;
  761. width: 130px;
  762. height: 44px;
  763. line-height: 44px;
  764. font-size: 14px;
  765. background: #d2d2d2;
  766. color: #fff;
  767. border: 1px solid #dcdcdc;
  768. }
  769. input[type='checkbox']{
  770. margin: 0 14px 0 55px;
  771. float: left;
  772. width: 16px;
  773. height: 16px;
  774. }
  775. span.agree{
  776. float: left;
  777. margin: 1px 0 0 10px;
  778. font-size: 14px;
  779. color: #8b8b8b;
  780. a{
  781. color: #0076ad;
  782. }
  783. }
  784. .form-group.agree{
  785. margin: 20px auto 0 !important;
  786. }
  787. .submitBtn {
  788. display: inline-block;
  789. margin-top: 34px;
  790. width: 360px;
  791. height: 44px;
  792. line-height: 44px;
  793. font-size: 16px;
  794. color: #fff;
  795. background: #0076AD;
  796. border-radius: 3px;
  797. border: none;
  798. &:disabled{
  799. cursor: not-allowed ;
  800. opacity: .7;
  801. }
  802. }
  803. }
  804. }
  805. .login{
  806. margin-top: 20px;
  807. font-size: 14px;
  808. color: #8c8c8c;
  809. a{
  810. font-size: 14px;
  811. color: #0076ad;
  812. }
  813. }
  814. }
  815. }
  816. .footer{
  817. padding: 50px 0;
  818. }
  819. </style>