PersonalRegistration.vue 27 KB

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