PersonalRegistration.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  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. 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. if (response.data.content.currentUrl !== response.data.content.loginUrls[i]) {
  572. promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a}`))
  573. }
  574. }
  575. let returnUrl = decodeURIComponent(this.$route.query.returnURL)
  576. Promise.all(promises).then(() => {
  577. crossAfter(returnUrl || 'http://www.ubtob.com', timeout)
  578. }).catch(() => {
  579. crossAfter(returnUrl || 'http://www.ubtob.com', timeout)
  580. })
  581. },
  582. loginCityOther (response, a, timeout) {
  583. const crossAfter = this.crossAfter
  584. let promises = []
  585. for (let i in response.data.content.loginUrls) {
  586. if (response.data.content.currentUrl !== response.data.content.loginUrls[i]) {
  587. promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a}`))
  588. }
  589. }
  590. Promise.all(promises).then(() => {
  591. crossAfter('/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath || '/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath, timeout)
  592. }).catch(() => {
  593. crossAfter('/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath || '/overRegister/cityRegisterOver/' + this.$store.state.option.fullPath, timeout)
  594. })
  595. }
  596. }
  597. }
  598. </script>
  599. <style lang="scss" scoped>
  600. .register {
  601. margin: 0 auto;
  602. width: 100%;
  603. background: #eee;
  604. .container{
  605. padding-top: 50px;
  606. margin: 0 auto;
  607. width: 980px;
  608. text-align: center;
  609. .content{
  610. padding: 0 50px;
  611. margin: 50px auto 0;
  612. width: 100%;
  613. text-align: center;
  614. background: #fff;
  615. .content-top{
  616. position: relative;
  617. height: 80px;
  618. line-height: 80px;
  619. border-bottom: 1px solid #dcdcdc;
  620. h3{
  621. font-family: 'SimHei';
  622. font-size: 24px;
  623. color: #000;
  624. }
  625. a.go{
  626. position: absolute;
  627. top: 0;
  628. right: 0;
  629. font-size: 14px;
  630. i{
  631. margin-right: 3px;
  632. }
  633. }
  634. }
  635. form {
  636. padding-bottom: 44px;
  637. margin-top: 35px;
  638. input{
  639. padding: 0 0 0 18px;
  640. width: 360px;
  641. height: 44px;
  642. line-height: 44px;
  643. font-size: 14px;
  644. color: #000;
  645. border-radius: 0;
  646. }
  647. span.help{
  648. position: absolute;
  649. right: -230px;
  650. top:0;
  651. font-size: 12px;
  652. color: #f00;
  653. }
  654. i.fa{
  655. position: absolute;
  656. top: 10px;
  657. right: 18px;
  658. font-size: 24px;
  659. color: #a0a0a0;
  660. cursor: pointer;
  661. }
  662. .pwd {
  663. margin: 6px 0 -15px 0;
  664. text-align: left;
  665. font-size: 13px;
  666. em{
  667. display: inline-block;
  668. margin: 0 8px 2px 0;
  669. width: 24px;
  670. height: 6px;
  671. &:first-child{
  672. margin-left: 10px;
  673. }
  674. }
  675. span{
  676. margin-left: 10px;
  677. font-size: 13px;
  678. }
  679. }
  680. .pwd.sm{
  681. color: #8c8c8c;
  682. em {
  683. background: #bfbfbf;
  684. &:first-child{
  685. background: #ff4e00;
  686. }
  687. }
  688. span{
  689. color: #ff4e00;
  690. }
  691. }
  692. .pwd.md{
  693. color: #8c8c8c;
  694. em {
  695. background: #22ac38;
  696. &:nth-child(3){
  697. background: #bfbfbf;
  698. }
  699. }
  700. span{
  701. color: #22ac38;
  702. }
  703. }
  704. .pwd.lar{
  705. color: #8c8c8c;
  706. em {
  707. background: #00a0e9;
  708. }
  709. span{
  710. color: #00a0e9;
  711. }
  712. }
  713. .pwd.low{
  714. color: #8c8c8c;
  715. em{
  716. background: #bfbfbf;
  717. }
  718. }
  719. span.tip{
  720. position: absolute;
  721. top: 3px;
  722. right: -190px;
  723. font-size: 13px;
  724. color: #8c8c8c;
  725. }
  726. span.tip.tip-mobile{
  727. top: 3px;
  728. right: -118px;
  729. color: #ff4949;
  730. font-size: 12px;
  731. }
  732. span.codeError-tip{
  733. position: absolute;
  734. top: 3px;
  735. left: 378px;
  736. width: 200px;
  737. text-align: left;
  738. color: #ff4949;
  739. font-size: 12px;
  740. }
  741. span.tip.passwordError{
  742. position: absolute;
  743. top: 3px;
  744. left: 380px;
  745. width: 200px;
  746. text-align: left;
  747. color: #ff4949;
  748. font-size: 12px;
  749. }
  750. input.msg{
  751. float: left;
  752. width: 210px;
  753. }
  754. button.msg{
  755. float: right;
  756. width: 130px;
  757. height: 44px;
  758. font-size: 14px;
  759. color: #5a5a5a;
  760. background: #f4f4f4;
  761. border: 1px solid #dcdcdc;
  762. cursor: pointer;
  763. &:disabled{
  764. cursor: not-allowed ;
  765. opacity: .7;
  766. }
  767. }
  768. span.msg.send{
  769. float: right;
  770. width: 130px;
  771. height: 44px;
  772. line-height: 44px;
  773. font-size: 14px;
  774. background: #d2d2d2;
  775. color: #fff;
  776. border: 1px solid #dcdcdc;
  777. }
  778. input[type='checkbox']{
  779. margin: 0 14px 0 55px;
  780. float: left;
  781. width: 16px;
  782. height: 16px;
  783. }
  784. span.agree{
  785. float: left;
  786. margin: 1px 0 0 10px;
  787. font-size: 14px;
  788. color: #8b8b8b;
  789. a{
  790. color: #0076ad;
  791. }
  792. }
  793. .form-group.agree{
  794. margin: 20px auto 0 !important;
  795. }
  796. .submitBtn {
  797. display: inline-block;
  798. margin-top: 34px;
  799. width: 360px;
  800. height: 44px;
  801. line-height: 44px;
  802. font-size: 16px;
  803. color: #fff;
  804. background: #0076AD;
  805. border-radius: 3px;
  806. border: none;
  807. &:disabled{
  808. cursor: not-allowed ;
  809. opacity: .7;
  810. }
  811. }
  812. }
  813. }
  814. .login{
  815. margin-top: 20px;
  816. font-size: 14px;
  817. color: #8c8c8c;
  818. a{
  819. font-size: 14px;
  820. color: #0076ad;
  821. }
  822. }
  823. }
  824. }
  825. .footer{
  826. padding: 50px 0;
  827. }
  828. </style>