PersonalRegistration.vue 30 KB

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