reset.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. <template>
  2. <view class="container">
  3. <view class="back-btn cuIcon-back" @click="navBack"></view>
  4. <!-- 设置白色背景防止软键盘把下部绝对定位元素顶上来盖住输入框等 -->
  5. <view class="wrapper">
  6. <h2>重置密码</h2>
  7. <view style='width:100%;margin-top:50px;border-bottom:1px solid #E8E9ED;padding:10px;' class="flex">
  8. <view style='width:15%;border-right:1px solid #E8E9ED;'>+86</view>
  9. <view style='width:85%;'><input maxlength="11" @input='phoneinput' style='padding-left:10px;' v-model='phone' placeholder="请输入手机号码" type="text"></view>
  10. </view>
  11. <view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
  12. <view style='width:85%;'><input v-model='verifyCode' placeholder="请输入验证码" type="text"></view>
  13. <button @click='getcode' :class='status&&!sendDisabled?"active":""' class='getcode'>{{sendText}}</button>
  14. </view>
  15. <view style='border-bottom:1px solid #E8E9ED;padding:10px;position:relative;'>
  16. <input class='password' style='height:30px;' v-model='password' placeholder="请输入新密码,6-16位字符" :type="type" value="" />
  17. <view @click='switchover' style='position:absolute;right:0;top:38%;z-index:10;cursor:pointer;' class="iconfont " :class='type=="password"?"icon-yanjing-biyan":"icon-yanjing-zhengyan"'></view>
  18. </view>
  19. <button :class='phone!=""&&verifyCode!=""&&password!=""?"active":""' @click='reset' class='verificationCode'>重置密码</button>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import {
  25. mapMutations
  26. } from 'vuex';
  27. import { openFSqlite, createFSQL, selectFSQL, addFSQL } from '../../util/f.js'
  28. import { queryData, upData, initData } from '../../util/dbUtil.js'
  29. export default {
  30. data() {
  31. return {
  32. inputContent: null,
  33. loginType: "wechat",
  34. phone: '',
  35. password: '',
  36. logining: false,
  37. isPhone: false,
  38. isApple: true,
  39. accessToken:'',
  40. params:{
  41. encryptedData:'',
  42. session_key:'',
  43. iv:'',
  44. },
  45. status:false,
  46. userInfo:{
  47. nickName:'',
  48. avatarUrl:'',
  49. gender:'',
  50. phone:''
  51. },
  52. consentStatus:false,
  53. type:'password',
  54. inputStatus:'none',
  55. verifyCode:null,
  56. sendText:'获取验证码',
  57. sendDisabled: false,
  58. system:'',
  59. platform:'',
  60. userData:undefined,
  61. canIUseProfile:false
  62. }
  63. },
  64. onShow() {
  65. // this.loginType = "wechat"
  66. this.$api.logout()
  67. },
  68. onLoad(options) {
  69. if( wx.getUserProfile ){
  70. console.log('--check getUserProfile--OK');
  71. this.canIUseProfile = true;
  72. }
  73. console.log("login on load")
  74. var that = this
  75. that.$api.request('user', 'sendIsApple', {
  76. }).then(res => {
  77. that.isApple = res.data
  78. })
  79. uni.getSystemInfo({
  80. success:(res) => {
  81. // console.log(res)
  82. this.system = res.system // ios
  83. this.platform = res.platform // 14.3
  84. }
  85. })
  86. },
  87. methods: {
  88. phoneinput(e){
  89. if(e.detail.value.length==11){
  90. this.status=true
  91. }
  92. },
  93. getcode(e){
  94. if(this.phone.length!=11){
  95. uni.showToast({
  96. title: '请输入正确的手机号',
  97. icon:'none',
  98. duration: 2000
  99. })
  100. return
  101. }
  102. if(/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.phone)){
  103. var that=this
  104. this.$api.doRequest('get','/commonUser/sendVerifyCode',{phone:this.phone}).then(res => {
  105. that.sendDisabled = true
  106. let sec = 60
  107. let interval = setInterval(() => {
  108. sec--;
  109. that.sendText = sec + 's后重发'
  110. if (sec <= 0) {
  111. that.sendDisabled = false
  112. that.sendText = "获取验证码"
  113. clearInterval(interval)
  114. }
  115. }, 1000)
  116. })
  117. .catch(res => {
  118. if(res.errmsg){
  119. uni.showToast({
  120. title: res.errmsg,
  121. icon: 'none',
  122. duration: 2000
  123. })
  124. }
  125. else{
  126. uni.showToast({
  127. title: "系统异常,请联系管理员",
  128. icon: 'none',
  129. duration: 2000
  130. })
  131. }
  132. });
  133. }else{
  134. uni.showToast({
  135. title: '请输入正确的手机号',
  136. icon:'none',
  137. duration: 2000
  138. })
  139. }
  140. },
  141. reset(){
  142. var that = this
  143. uni.showLoading({
  144. title: '重置密码中'
  145. })
  146. this.$api.doRequest('post','/commonUser/resetPassword',{phone:this.phone,password:this.password,verifyCode:this.verifyCode}).then(res => {
  147. console.log("重置密码",res)
  148. // 获得数据
  149. if(res.data.code==200){
  150. setTimeout(() => {
  151. uni.navigateBack()
  152. }, 1000)
  153. uni.showToast({
  154. title: '重置成功',
  155. icon: 'none',
  156. duration: 2000
  157. })
  158. }else{
  159. uni.showToast({
  160. title: "系统异常,请联系管理员",
  161. icon:'none',
  162. duration: 2000
  163. })
  164. }
  165. uni.hideLoading()
  166. })
  167. .catch(res => {
  168. console.log("重置密码",res)
  169. uni.showToast({
  170. title: "系统异常,请联系管理员",
  171. icon:'none',
  172. duration: 2000
  173. })
  174. uni.hideLoading()
  175. });
  176. },
  177. consent(){
  178. this.consentStatus=!this.consentStatus
  179. uni.setStorage({
  180. key: 'policyStorageKey',
  181. data: this.consentStatus
  182. });
  183. },
  184. switchover(){
  185. if(this.type=='password'){
  186. this.type='text'
  187. }else{
  188. this.type='password'
  189. }
  190. },
  191. gocode(){
  192. uni.navigateTo({
  193. url:'/pages/public/login'
  194. })
  195. },
  196. forgetpass(){
  197. uni.navigateTo({
  198. url:'/pages/public/reset'
  199. })
  200. },
  201. cancel() {
  202. this.inputShow = false
  203. this.inputStatus = 'none'
  204. this.isPhone = false
  205. },
  206. ...mapMutations(['login']),
  207. inputChange(e) {
  208. const key = e.currentTarget.dataset.key;
  209. this[key] = e.detail.value;
  210. },
  211. chooseLoginType(type) {
  212. this.loginType = type
  213. },
  214. navBack() {
  215. uni.navigateBack();
  216. },
  217. toRegist() {
  218. uni.redirectTo({
  219. url: '/pages/public/register'
  220. })
  221. },
  222. ///发起消息订阅
  223. requestSubscribe(){
  224. const that = this
  225. wx.requestSubscribeMessage({
  226. tmplIds: ['xL_uZEqJz4QP1FbnlzQWAiO2zVBn3Qeu8JwLVOU3hU0','8cVkckXi_8zfHeScXRHhjN6cgZFYYCWIMPDTiPWagXY','IE7WxBsv-fDvPWSrng-97lGWtvZf9rHuECBlhRLlWxI'],//
  227. success :(res)=>{
  228. console.log("订阅消息 成功 "+res);
  229. },
  230. fail :(errMsg) =>{
  231. console.log("订阅消息 失败 "+errMsg.errMsg);
  232. },
  233. complete:(errMsg)=>{
  234. console.log("订阅消息 完成 "+errMsg);
  235. }
  236. });
  237. },
  238. getPhoneNumber(e) {
  239. console.log(e)
  240. if (e.mp.detail.errMsg==="getPhoneNumber:ok") {
  241. this.isPhone = false
  242. this.params.iv = e.mp.detail.iv
  243. this.params.encryptedData = e.mp.detail.encryptedData
  244. this.params.session_key = this.accessToken
  245. console.log(this.params)
  246. this.getTokenAsync(this.params)
  247. }
  248. },
  249. // 请求后获取token
  250. async getTokenAsync(params) {
  251. let that = this
  252. this.$api.request('user', 'getPhoneNumber', params).then(res => {
  253. if(res.data.phoneNumber){
  254. that.userInfo.phone = res.data.phoneNumber
  255. }
  256. if(res.data.unionId){
  257. that.userInfo.unionId = res.data.unionId
  258. }
  259. that.userInfo.cid = uni.getStorageSync("clientId")
  260. console.log(that.userInfo)
  261. that.$api.request('user', 'syncUserInfo', that.userInfo).then(syncRes => {
  262. uni.setStorageSync('userInfo', that.userInfo)
  263. that.$store.commit('login', that.userInfo)
  264. that.$api.setUserInfo(that.userInfo)
  265. uni.hideLoading()
  266. // that.liangxinLogin()
  267. })
  268. if(res.data.phoneNumber){
  269. uni.switchTab({
  270. url: '/pages/sale/information'
  271. });
  272. }
  273. })
  274. },
  275. async toLogin() {
  276. this.verifyCode = ''
  277. const that = this
  278. if (that.phone.length !== 11) {
  279. that.$api.msg('请输入11位中国手机号')
  280. } else if (that.password.length < 8) {
  281. that.$api.msg('密码至少8位')
  282. } else {
  283. that.logining = true;
  284. //#ifdef MP-WEIXIN
  285. //若是小程序平台,则获取到openId。整个过程是静默完成的
  286. uni.login({
  287. provider: 'weixin',
  288. success: (wxres => {
  289. that.$api.request('user', 'login', {
  290. phone: that.phone,
  291. password: that.password,
  292. loginType: 1,
  293. raw: JSON.stringify(wxres)
  294. }, failres => {
  295. that.logining = false
  296. uni.showToast({
  297. title: failres.errmsg,
  298. icon: "none"
  299. });
  300. }).then(res => {
  301. that.logining = false
  302. that.$store.commit('login', res.data)
  303. uni.setStorageSync('userInfo', res.data)
  304. if (that.$api.prePage().lodaData) {
  305. that.$api.prePage().loadData()
  306. }
  307. uni.navigateBack()
  308. })
  309. })
  310. })
  311. //#endif
  312. //#ifdef APP-PLUS || H5
  313. //若是App登录,则不需要保存OpenId。可直接登录
  314. that.$api.request('user', 'login', {
  315. phone: that.phone,
  316. password: that.password,
  317. }, failres => {
  318. that.logining = false
  319. uni.showToast({
  320. title: failres.errmsg,
  321. icon: "none"
  322. });
  323. }).then(res => {
  324. that.logining = false
  325. that.$store.commit('login', res.data)
  326. uni.setStorageSync('userInfo', res.data)
  327. if (that.$api.prePage().lodaData) {
  328. that.$api.prePage().loadData()
  329. }
  330. uni.navigateBack()
  331. })
  332. //#endif
  333. }
  334. },
  335. miniWechatLogin(e) {
  336. const that = this
  337. //旧版本方式
  338. if( this.canIUseProfile == false ){
  339. console.log("旧版本方式")
  340. //获取授权信息
  341. if(e.detail.userInfo){
  342. console.log('用户允许了授权')
  343. console.log( e.detail.userInfo ); //1.拿到基本的微信信息!!
  344. uni.showLoading({
  345. title: '加载中',
  346. mask:true
  347. })
  348. that.logining = true
  349. let loginType = 1
  350. let userInfo = e.detail.userInfo
  351. uni.login({
  352. provider: 'weixin',
  353. success: (wxres => {
  354. that.logining = false
  355. that.$api.request('user', 'thirdPartLogin', {
  356. loginType: loginType,
  357. raw: JSON.stringify(wxres)
  358. }, failres => {
  359. that.$api.msg(failres.errmsg)
  360. uni.hideLoading()
  361. }).then(res => {
  362. that.accessToken = res.data.accessToken
  363. that.$api.setUserInfo(res.data)
  364. that.userInfo = res.data
  365. uni.getUserInfo({
  366. lang: 'zh_CN',
  367. provider: 'weixin',
  368. withCredentials:true,
  369. success: (e) => {
  370. that.params.iv = e.iv
  371. that.params.encryptedData = e.encryptedData
  372. that.params.session_key = that.accessToken
  373. console.log(this.params)
  374. that.getTokenAsync(this.params)
  375. uni.setStorageSync('userInfo', res.data)
  376. that.$store.commit('login', res.data)
  377. e.userInfo.nickname = e.userInfo.nickName
  378. if(e.userInfo.phone == undefined){
  379. e.userInfo.phone = ''
  380. }
  381. e.userInfo.cid = uni.getStorageSync("clientId")
  382. console.log(e.userInfo)
  383. that.$api.request('user', 'syncUserInfo', e.userInfo).then(syncRes => {
  384. //同步过后
  385. res.data.nickname = userInfo.nickName
  386. res.data.avatarUrl = userInfo.avatarUrl
  387. res.data.gender = userInfo.gender
  388. if(userInfo.phone){
  389. res.data.phone = userInfo.phone
  390. // that.liangxinLogin()
  391. }
  392. uni.setStorageSync('userInfo', res.data)
  393. that.$store.commit('login', res.data)
  394. that.$api.setUserInfo(res.data)
  395. uni.hideLoading()
  396. // uni.navigateBack()
  397. })
  398. },
  399. complete: (e) => {
  400. uni.hideLoading()
  401. if(!res.data.phone||res.data.phone==""||res.data.phone ==undefined){
  402. that.isPhone = true//显示自定义的获取手机权限提示框
  403. that.inputStatus = 'inline'
  404. that.inputContent = ''
  405. }
  406. else{
  407. uni.setStorageSync('PageCur', "sale");
  408. // uni.switchTab({
  409. // url: '/pages/sale/sale'
  410. // });
  411. uni.switchTab({
  412. url: '/pages/sale/information'
  413. });
  414. console.log("complete")
  415. }
  416. }
  417. })
  418. })
  419. }),
  420. })
  421. }
  422. //新版本方式
  423. }else{
  424. console.log("新版本方式")
  425. uni.showLoading({
  426. title: '加载中',
  427. mask:true
  428. })
  429. that.logining = true
  430. let loginType = 1
  431. wx.getUserProfile({
  432. desc : '用于完善用户资料',
  433. lang : 'zh_CN',
  434. success : function( proRes ){
  435. console.log('proRes.userInfo',proRes.userInfo)
  436. uni.login({
  437. provider: 'weixin',
  438. success: (wxres => {
  439. that.logining = false
  440. that.$api.request('user', 'thirdPartLogin', {
  441. loginType: loginType,
  442. raw: JSON.stringify(wxres)
  443. }, failres => {
  444. that.$api.msg(failres.errmsg)
  445. uni.hideLoading()
  446. }).then(res => {
  447. console.log('res+++++',res)
  448. that.accessToken = res.data.accessToken
  449. that.$api.setUserInfo(res.data)
  450. that.userInfo = res.data
  451. // that.params.iv = proRes.iv
  452. // that.params.encryptedData = proRes.encryptedData
  453. // that.params.session_key = that.accessToken
  454. // console.log(that.params)
  455. // that.getTokenAsync(that.params)
  456. uni.setStorageSync('userInfo', res.data)
  457. that.$store.commit('login', res.data)
  458. if(proRes.userInfo.phone == undefined){
  459. proRes.userInfo.phone = ''
  460. }
  461. res.data.cid = uni.getStorageSync("clientId")
  462. that.$api.request('user', 'syncUserInfo', res.data).then(syncRes => {
  463. //同步过后
  464. res.data.nickname = proRes.userInfo.nickName
  465. res.data.avatarUrl = proRes.userInfo.avatarUrl
  466. res.data.gender = proRes.userInfo.gender
  467. if(proRes.userInfo.phone){
  468. res.data.phone = proRes.userInfo.phone
  469. }
  470. uni.setStorageSync('userInfo', res.data)
  471. that.$store.commit('login', res.data)
  472. that.$api.setUserInfo(res.data)
  473. uni.hideLoading()
  474. if(!that.userInfo.phone||that.userInfo.phone==""||that.userInfo.phone ==undefined){
  475. that.isPhone = true//显示自定义的获取手机权限提示框
  476. that.inputStatus = 'inline'
  477. that.inputContent = ''
  478. }
  479. else{
  480. uni.setStorageSync('PageCur', "sale");
  481. // uni.switchTab({
  482. // url: '/pages/sale/sale'
  483. // });
  484. uni.reLaunch({
  485. url: '/pages/sale/information'
  486. });
  487. console.log("complete")
  488. // that.liangxinLogin()
  489. }
  490. })
  491. console.log( 'wx.getUserProfile=>用户允许了授权' );
  492. })
  493. })
  494. })
  495. },
  496. fail : function( res ){
  497. console.log('wx.getUserProfile=>用户拒绝了授权');
  498. console.log( res );
  499. }
  500. });
  501. }
  502. // 获取用户的当前设置,判断是否点击了“总是保持以上,不在询问”
  503. // wx.getSetting({
  504. // withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
  505. // success(res){
  506. //
  507. // if(res.subscriptionsSetting.mainSwitch){
  508. // }else{
  509. // }
  510. // }
  511. // })
  512. // uni.showModal({
  513. // title: '温馨提示',
  514. // content: '为更好的与您沟通,小程序需要向您发送通知消息',
  515. // confirmText:"同意",
  516. // cancelText:"拒绝",
  517. // showCancel: false,
  518. // success: function (res) {
  519. // if (res.confirm) {
  520. // //调用订阅消息
  521. // that.requestSubscribe();
  522. // } else if (res.cancel) {
  523. // ///显示第二个弹说明一下
  524. // wx.showModal({
  525. // title: '温馨提示',
  526. // content: '拒绝后您将无法获取实时的交易、物流消息',
  527. // confirmText:"知道了",
  528. // showCancel:false,
  529. // success: function (res) {
  530. // uni.openSetting({ // 打开设置页
  531. // success(res) {
  532. // console.log(res.authSetting)
  533. // }
  534. // });
  535. // }
  536. // });
  537. // }
  538. // }
  539. // });
  540. },
  541. wechatLogin() {
  542. const that = this
  543. that.logining = true
  544. let loginType = 2
  545. uni.showLoading({
  546. title: '正在同步消息',
  547. mask:true
  548. })
  549. uni.login({
  550. provider: 'weixin',
  551. success: (wxres => {
  552. that.$api.request('user', 'thirdPartLogin', {
  553. loginType: loginType,
  554. raw: JSON.stringify(wxres)
  555. }, failres => {
  556. that.$api.msg(failres.errmsg)
  557. uni.hideLoading()
  558. }).then(res => {
  559. console.log("thirdPartLogin:"+res.data.phone)
  560. that.accessToken = res.data.accessToken
  561. that.logining = false
  562. uni.getUserInfo({
  563. lang: 'zh_CN',
  564. success: (e) => {
  565. uni.setStorageSync('userInfo', res.data)
  566. that.$store.commit('login', res.data)
  567. e.userInfo.nickname = e.userInfo.nickName
  568. e.userInfo.cid = uni.getStorageSync("clientId")
  569. console.log(e.userInfo)
  570. that.$api.request('user', 'syncUserInfo', e.userInfo).then(syncRes => {
  571. //同步过后
  572. res.data.nickname = e.userInfo.nickName
  573. res.data.avatarUrl = e.userInfo.avatarUrl
  574. res.data.gender = e.userInfo.gender
  575. if(res.data.phone){
  576. res.data.phone = e.userInfo.phone
  577. // that.liangxinLogin()
  578. }
  579. uni.setStorageSync('userInfo', res.data)
  580. that.$store.commit('login', res.data)
  581. })
  582. },
  583. complete: (e) => {
  584. uni.hideLoading()
  585. if(!res.data.phone||res.data.phone==""||res.data.phone ==undefined){
  586. that.isPhone = true//显示自定义的获取手机权限提示框
  587. that.inputStatus = 'inline'
  588. that.inputContent = ''
  589. }
  590. else{
  591. // uni.switchTab({
  592. // url: '/pages/sale/sale'
  593. // });
  594. uni.switchTab({
  595. url: '/pages/sale/information'
  596. });
  597. console.log("complete")
  598. }
  599. }
  600. })
  601. })
  602. })
  603. })
  604. },
  605. wechatH5Login() {
  606. const that = this
  607. let href = window.location.origin
  608. let page = that.$api.prePage()
  609. let prePath = '/pages/index/index'
  610. if (page) {
  611. prePath = page.__page__.path
  612. }
  613. window.location = 'https://open.weixin.qq.com/connect/oauth2/authorize?'
  614. + 'appid=' + that.$api.defConfig().h5Appid + '&redirect_uri=' + escape(href) + '&response_type=code&scope=snsapi_userinfo&state=' + escape(prePath) + '#wechat_redirect'
  615. },
  616. liangxinLogin(){
  617. const that = this
  618. var userInfoTmp = uni.getStorageSync("userInfo")
  619. console.log('userInfoTmp',userInfoTmp)
  620. that.$socket.login(userInfoTmp.phone, "123456", null, res=>{
  621. console.log('粮信登录',res)
  622. if (res.success) {
  623. that.$socket.showLoginDialog = false
  624. // 缓存用户
  625. that.userData = res.response.data
  626. console.log('userData',that.userData)
  627. that.$u.vuex("userData", that.userData);
  628. // 缓存通讯录
  629. that.$socket.listGuests(that.userData.user.operId, res => {
  630. // #ifdef APP-PLUS
  631. createFSQL(that.userData.user.operId).then();
  632. let contact = res.response.data;
  633. contact.forEach(c=>{
  634. c.members.forEach(m=>{
  635. m.name = c.name;
  636. addFSQL(m, that.userData.user.operId).then();
  637. })
  638. })
  639. // #endif
  640. that.$u.vuex('firendItem', res.response.data)
  641. });
  642. // 缓存消息列表
  643. that.$socket.queryOnlineMessage(that.userData.user.operId,q =>{
  644. let data = q.response.data;
  645. for(var i in data){
  646. initData(data[i].groupMsg.list, data[i].groupInfo.chatId);
  647. }
  648. })
  649. // 缓存链接
  650. that.$socket.getLinks(that.userData.user.operId, res=>{
  651. that.$u.vuex('linkItem',res.response.data)
  652. });
  653. // // 跳转到消息列表
  654. // that.$u.route({
  655. // url: 'pages/home/home',
  656. // type: 'switchTab'
  657. // });
  658. } else {
  659. uni.showModal({
  660. title:res.reason + ",请稍后再试",
  661. showCancel:false
  662. })
  663. }
  664. });
  665. }
  666. },
  667. }
  668. </script>
  669. <style lang='scss' scoped>
  670. .apple{
  671. background: #000;
  672. width: 35px;
  673. height: 35px;
  674. padding: 8px;
  675. border-radius: 50%;
  676. vertical-align: middle;
  677. }
  678. page {
  679. background: #fff;
  680. }
  681. .cuIcon-weixin{
  682. background: #39b54a;
  683. color: #fff;
  684. font-size: 18px;
  685. padding: 9px;
  686. border-radius: 50%;
  687. vertical-align: middle;
  688. margin-right:5px;
  689. }
  690. .container {
  691. padding-top: 85px;
  692. position: relative;
  693. width: 100vw;
  694. height: 100vh;
  695. overflow: hidden;
  696. background: url('~@/static/img/login/bg.png');
  697. background-size:100%;
  698. }
  699. .wrapper {
  700. position: relative;
  701. z-index: 90;
  702. padding-bottom: 40upx;
  703. height:100%;
  704. padding:0 30px;
  705. }
  706. .back-btn {
  707. position: absolute;
  708. left: 40upx;
  709. z-index: 9999;
  710. padding-top: var(--status-bar-height);
  711. top: 40upx;
  712. font-size: 40upx;
  713. color: $font-color-dark;
  714. }
  715. .verificationCode{
  716. margin-top:20px;
  717. background:#F5F6F9;
  718. color:#AFB3BF;
  719. }
  720. .verificationCode:after{
  721. border:none;
  722. }
  723. .verificationCode.active{
  724. background:#22C572;
  725. color:#fff;
  726. }
  727. .register{
  728. position:absolute;
  729. bottom:20px;
  730. left:50%;
  731. transform: translateX(-50%);
  732. color:#333333;
  733. height:50px;
  734. line-height:50px;
  735. border-radius:30px;border: 1px solid #444444;
  736. }
  737. .register:after{
  738. border:none;
  739. }
  740. .getcode{
  741. font-size:14px;
  742. position:absolute;
  743. right:0;
  744. top:50%;
  745. transform: translateY(-50%);
  746. color:#AFB3BF;
  747. background:#F5F6F9;
  748. height:30px;
  749. line-height:30px;
  750. }
  751. .password{
  752. border:none;
  753. outline: none;
  754. }
  755. .getcode:after{
  756. border:none;
  757. }
  758. .getcode.active{
  759. background:#22C572;
  760. color:#fff;
  761. }
  762. uni-navigator{
  763. display:inline-block;
  764. color:#22C572;
  765. }
  766. </style>