PersonalRegistration.vue 29 KB

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