PersonalRegistration.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  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) {
  417. console.log(111)
  418. if (response.data.content.type === 'mall') {
  419. let param = response.data.content.data
  420. let a = ''
  421. for (let n in param) {
  422. a += (n + '=' + encodeURIComponent(param[n]) + '&')
  423. }
  424. let params = a.substr(0, a.length - 1)
  425. this.isShowLoading = true
  426. if (response.data.content.currentUrl) {
  427. this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
  428. name: 'successCallback',
  429. timeout: 3000
  430. }, (err, data) => {
  431. if (err) {
  432. this.$message.error('注册成功,请点击下方“立即登录”完成登录')
  433. this.isShowLoading = false
  434. throw err
  435. } else {
  436. this.loginOther(response, params)
  437. }
  438. })
  439. } else {
  440. this.loginOther(response, params, 3000)
  441. }
  442. } else if (response.data.content.type === 'city') {
  443. let param = response.data.content.data
  444. let a = ''
  445. for (let n in param) {
  446. a += (n + '=' + encodeURIComponent(param[n]) + '&')
  447. }
  448. let params = a.substr(0, a.length - 1)
  449. this.isShowLoading = true
  450. if (response.data.content.currentUrl) {
  451. this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
  452. name: 'successCallback',
  453. timeout: 3000
  454. }, (err, data) => {
  455. if (err) {
  456. this.$message.error('注册成功,请点击下方“立即登录”完成登录')
  457. this.isShowLoading = false
  458. throw err
  459. } else {
  460. this.loginCityOther(response, params)
  461. }
  462. })
  463. } else {
  464. this.loginCityOther(response, params, 3000)
  465. }
  466. }
  467. } else {
  468. let userUU = response.data.content.userUU
  469. console.log(userUU)
  470. window.location.href = `/overRegister/${userUU}`
  471. }
  472. } else {
  473. return Promise.reject(response.data)
  474. }
  475. }).catch(err => {
  476. this.$message.error(err.errMsg)
  477. this.isShowLoading = false
  478. this.personal_time = 0
  479. })
  480. }
  481. } else {
  482. if (!this.item.vipName) {
  483. this.$message.error('会员名不能为空')
  484. } else if (!this.vipNameChecked) {
  485. this.$message.error('会员名输入有误,请按提示重新输入')
  486. } else if (!this.item.password) {
  487. this.$message.error('密码不能为空')
  488. } else if (!this.passwordChecked) {
  489. this.$message.error('密码输入有误,请按提示重新输入')
  490. } else if (!this.item.confirm) {
  491. this.$message.error('请再次输入密码')
  492. } else if (!this.confirmChecked) {
  493. this.$message.error('请确认两次填写密码是否一致')
  494. } else if (!this.item.mobile) {
  495. this.$message.error('手机号不能为空')
  496. } else if (!this.mobileChecked) {
  497. this.$message.error('手机号输入有误,请按提示重新输入')
  498. } else if (!this.token) {
  499. this.$message.error('请先获取验证码')
  500. } else if (!this.item.code) {
  501. this.$message.error('验证码不能为空')
  502. } else if (!this.codeChecked) {
  503. this.$message.error('验证码输入有误,请按提示重新输入')
  504. } else if (!this.checked) {
  505. this.$message.error('您对阅读条款未做勾选')
  506. }
  507. }
  508. },
  509. // 获取验证码
  510. // async getCode () {
  511. // let { data } = await this.$http.get(`/sso/personal/register/checkCode`, {params: {mobile: this.item.mobile}})
  512. // this.token = data.token
  513. // },
  514. getCheckCode () {
  515. this.isShowLoading = true
  516. // this.getCode()
  517. this.$http.get(`/sso/personal/register/checkCode`, {params: {mobile: this.item.mobile}})
  518. .then(response => {
  519. this.isShowLoading = false
  520. if (response.data) {
  521. this.token = response.data.token
  522. if (this.token !== '') {
  523. this.$message({
  524. message: '验证码已经发送到您的手机,请注意查收',
  525. type: 'success'
  526. })
  527. this.sendPersonalCode = false
  528. this.personal_time = 60
  529. var personalTime = setInterval(() => {
  530. this.personal_time--
  531. if (this.personal_time <= 0) {
  532. this.sendPersonalCode = true
  533. clearInterval(personalTime)
  534. }
  535. }, 1000)
  536. }
  537. } else {
  538. return Promise.reject(response.data)
  539. }
  540. }).catch(err => {
  541. this.isShowLoading = false
  542. this.$message.error(err.errMsg)
  543. })
  544. },
  545. getJsonp: function (url, timeout = 500) {
  546. return new Promise((resolve, reject) => {
  547. this.$jsonp(url, {
  548. name: 'successCallback',
  549. timeout: timeout
  550. }, function (err, data) {
  551. if (err) {
  552. reject(err)
  553. throw err
  554. } else {
  555. resolve(data)
  556. }
  557. })
  558. })
  559. },
  560. crossAfter (url) {
  561. try {
  562. window.location.href = url
  563. } catch (err) {
  564. console.log(err)
  565. }
  566. },
  567. loginOther (response, a, timeout) {
  568. const crossAfter = this.crossAfter
  569. let promises = []
  570. for (let i in response.data.content.loginUrls) {
  571. promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a}`))
  572. }
  573. let returnUrl = decodeURIComponent(this.$route.query.returnURL)
  574. Promise.all(promises).then(() => {
  575. crossAfter(returnUrl || 'http://www.ubtob.com', timeout)
  576. }).catch(() => {
  577. crossAfter(returnUrl || 'http://www.ubtob.com', timeout)
  578. })
  579. },
  580. loginCityOther (response, a, timeout) {
  581. const crossAfter = this.crossAfter
  582. let promises = []
  583. for (let i in response.data.content.loginUrls) {
  584. promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a}`))
  585. }
  586. Promise.all(promises).then(() => {
  587. crossAfter('/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath || '/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath, timeout)
  588. }).catch(() => {
  589. crossAfter('/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath || '/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath, timeout)
  590. })
  591. }
  592. }
  593. }
  594. </script>
  595. <style lang="scss" scoped>
  596. .register {
  597. margin: 0 auto;
  598. width: 100%;
  599. background: #eee;
  600. .container{
  601. padding-top: 50px;
  602. margin: 0 auto;
  603. width: 980px;
  604. text-align: center;
  605. .content{
  606. padding: 0 50px;
  607. margin: 50px auto 0;
  608. width: 100%;
  609. text-align: center;
  610. background: #fff;
  611. .content-top{
  612. position: relative;
  613. height: 80px;
  614. line-height: 80px;
  615. border-bottom: 1px solid #dcdcdc;
  616. h3{
  617. font-family: 'SimHei';
  618. font-size: 24px;
  619. color: #000;
  620. }
  621. a.go{
  622. position: absolute;
  623. top: 0;
  624. right: 0;
  625. font-size: 14px;
  626. i{
  627. margin-right: 3px;
  628. }
  629. }
  630. }
  631. form {
  632. padding-bottom: 44px;
  633. margin-top: 35px;
  634. input{
  635. padding: 0 0 0 18px;
  636. width: 360px;
  637. height: 44px;
  638. line-height: 44px;
  639. font-size: 14px;
  640. color: #000;
  641. border-radius: 0;
  642. }
  643. span.help{
  644. position: absolute;
  645. right: -230px;
  646. top:0;
  647. font-size: 12px;
  648. color: #f00;
  649. }
  650. i.fa{
  651. position: absolute;
  652. top: 10px;
  653. right: 18px;
  654. font-size: 24px;
  655. color: #a0a0a0;
  656. cursor: pointer;
  657. }
  658. .pwd {
  659. margin: 6px 0 -15px 0;
  660. text-align: left;
  661. font-size: 13px;
  662. em{
  663. display: inline-block;
  664. margin: 0 8px 2px 0;
  665. width: 24px;
  666. height: 6px;
  667. &:first-child{
  668. margin-left: 10px;
  669. }
  670. }
  671. span{
  672. margin-left: 10px;
  673. font-size: 13px;
  674. }
  675. }
  676. .pwd.sm{
  677. color: #8c8c8c;
  678. em {
  679. background: #bfbfbf;
  680. &:first-child{
  681. background: #ff4e00;
  682. }
  683. }
  684. span{
  685. color: #ff4e00;
  686. }
  687. }
  688. .pwd.md{
  689. color: #8c8c8c;
  690. em {
  691. background: #22ac38;
  692. &:nth-child(3){
  693. background: #bfbfbf;
  694. }
  695. }
  696. span{
  697. color: #22ac38;
  698. }
  699. }
  700. .pwd.lar{
  701. color: #8c8c8c;
  702. em {
  703. background: #00a0e9;
  704. }
  705. span{
  706. color: #00a0e9;
  707. }
  708. }
  709. .pwd.low{
  710. color: #8c8c8c;
  711. em{
  712. background: #bfbfbf;
  713. }
  714. }
  715. span.tip{
  716. position: absolute;
  717. top: 3px;
  718. right: -190px;
  719. font-size: 13px;
  720. color: #8c8c8c;
  721. }
  722. span.tip.tip-mobile{
  723. top: 3px;
  724. right: -118px;
  725. color: #ff4949;
  726. font-size: 12px;
  727. }
  728. span.codeError-tip{
  729. position: absolute;
  730. top: 3px;
  731. left: 378px;
  732. width: 200px;
  733. text-align: left;
  734. color: #ff4949;
  735. font-size: 12px;
  736. }
  737. span.tip.passwordError{
  738. position: absolute;
  739. top: 3px;
  740. left: 380px;
  741. width: 200px;
  742. text-align: left;
  743. color: #ff4949;
  744. font-size: 12px;
  745. }
  746. input.msg{
  747. float: left;
  748. width: 210px;
  749. }
  750. button.msg{
  751. float: right;
  752. width: 130px;
  753. height: 44px;
  754. font-size: 14px;
  755. color: #5a5a5a;
  756. background: #f4f4f4;
  757. border: 1px solid #dcdcdc;
  758. cursor: pointer;
  759. &:disabled{
  760. cursor: not-allowed ;
  761. opacity: .7;
  762. }
  763. }
  764. span.msg.send{
  765. float: right;
  766. width: 130px;
  767. height: 44px;
  768. line-height: 44px;
  769. font-size: 14px;
  770. background: #d2d2d2;
  771. color: #fff;
  772. border: 1px solid #dcdcdc;
  773. }
  774. input[type='checkbox']{
  775. margin: 0 14px 0 55px;
  776. float: left;
  777. width: 16px;
  778. height: 16px;
  779. }
  780. span.agree{
  781. float: left;
  782. margin: 1px 0 0 10px;
  783. font-size: 14px;
  784. color: #8b8b8b;
  785. a{
  786. color: #0076ad;
  787. }
  788. }
  789. .form-group.agree{
  790. margin: 20px auto 0 !important;
  791. }
  792. .submitBtn {
  793. display: inline-block;
  794. margin-top: 34px;
  795. width: 360px;
  796. height: 44px;
  797. line-height: 44px;
  798. font-size: 16px;
  799. color: #fff;
  800. background: #0076AD;
  801. border-radius: 3px;
  802. border: none;
  803. &:disabled{
  804. cursor: not-allowed ;
  805. opacity: .7;
  806. }
  807. }
  808. }
  809. }
  810. .login{
  811. margin-top: 20px;
  812. font-size: 14px;
  813. color: #8c8c8c;
  814. a{
  815. font-size: 14px;
  816. color: #0076ad;
  817. }
  818. }
  819. }
  820. }
  821. .footer{
  822. padding: 50px 0;
  823. }
  824. </style>