login.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <template>
  2. <view class="normal-login-container">
  3. <view style="color: aliceblue;position: fixed;left: 10px;z-index: 999999;top:50px;font-size: 10px;">{{i18('版本')}}:{{version}}</view>
  4. <view style="color: aliceblue;position: fixed;right: 10px;z-index: 999999;top:50px" @click="changeLocale">
  5. {{ $t('login.language') }}:{{localeConfig[locale]}}<uni-icons type="gear" size="15"></uni-icons>
  6. </view>
  7. <view style="height: 80vh;;">
  8. <!-- <image style="width: 750px;height: 807px;" :src="imgUrl+'/login/backImg2.png'" mode="widthFix"/> -->
  9. <!-- <view class="logo-content align-center justify-center flex">
  10. <text class="title" style="font-size: 25px;margin-left:-71px">{{$t('login.title') }}</text>
  11. </view> -->
  12. <view class="" style=" padding-top: 23vh;display: flex;flex-direction: column;flex-wrap: nowrap;align-items: center;">
  13. <image style="height: 3vh;width: 15vh;"
  14. src="../static/images/new/starts/login/backImg2.png"></image>
  15. <text class="welcome" style="margin-top: 20px; height: 20vh;font-size: 16px; color: #a3a3a3;">Welcome</text>
  16. </view>
  17. </view>
  18. <!-- 登录表单 -->
  19. <view class="login-form-content" style="z-index: 99;position: relative;" v-show="isLogin">
  20. <view class="input-item flex align-center" v-if="locale == 'en'">
  21. <!-- <view class="iconfont icon-user icon"></view> -->
  22. <uni-row>
  23. <uni-col :span="2" style="padding-top: 5px;">
  24. <uni-icons class="icon" type="email" style="margin-top: 2px;" size="20" color="#e3e3e3"></uni-icons>
  25. </uni-col>
  26. <uni-col :span="18">
  27. <uni-easyinput style="margin-left:-15px ;color: #9c9c9c;" :clearable="false" :inputBorder="false" v-model="loginForm.username" type="text" class="input" :placeholder="$t('login.mailInput')" maxlength="30" />
  28. <!-- <input style="color: #9c9c9c;" v-model="loginForm.username" class="input" type="text" :placeholder="$t('login.mailInput')" maxlength="30" /> -->
  29. </uni-col>
  30. </uni-row>
  31. </view>
  32. <view class="input-item flex align-center" v-if="locale == 'en'">
  33. <!-- <view class="iconfont icon-password icon"></view> -->
  34. <uni-row
  35. <uni-col :span="2">
  36. <uni-icons class="icon" type="locked-filled" size="20" color="#e3e3e3"></uni-icons>
  37. </uni-col>
  38. <uni-col :span="18">
  39. <uni-easyinput style="margin-left:-15px ;color: #9c9c9c;" :inputBorder="false" v-model="loginForm.password" type="password" class="input" :placeholder="$t('login.pwdInput')" maxlength="30" />
  40. </uni-col>
  41. </uni-row>
  42. </view>
  43. <view class="action-btn" style="z-index: 99;position: relative;margin-top: 10vh;">
  44. <button style="border-radius: 20px;" @click="handleLogin" class="login-btn cu-btn block bg-blue lg round">{{ $t('login.tologin') }}</button>
  45. </view>
  46. <view class="xieyi text-center" style="margin-top: 0px;display: flex;" v-if="locale == 'en'">
  47. <text class="text-grey" style="margin-top: 5px;">{{ $t('login.noAccount') }},</text>
  48. <text @click="toggleLoginMode" class="text-green" style="margin-top: 10px;">{{ $t('login.resiger') }}</text>
  49. <!-- <text @click="handleUserAgrement" class="text-green">立即注册</text> -->
  50. <!-- <text @click="handlePrivacy" class="text-blue">《隐私协议》</text> -->
  51. <text class="text-green" style="margin: 5px 15vw;margin-top:10px;font-size: 12px;;" @click="forgetPwd">{{i18('忘记密码?')}}</text>
  52. </view>
  53. <!-- <view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
  54. <view class="iconfont icon-code icon"></view>
  55. <input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
  56. <view class="login-code"> <image :src="codeUrl" @click="getCode" class="login-code-img"></image></view >
  57. </view> -->
  58. </view>
  59. <view class="login-form-content" style="z-index: 9999;position: relative;" v-show="!isLogin" @submit.prevent="handleRegister">
  60. <!-- 注册表单 -->
  61. <view>
  62. <view class="input-item flex align-center">
  63. <uni-row>
  64. <uni-col :span="2" style="padding-top: 5px;">
  65. <uni-icons class="icon" type="email" size="20" color="#e3e3e3"></uni-icons>
  66. </uni-col>
  67. <uni-col :span="22">
  68. <uni-easyinput style="margin-left:-15px ;color: #9c9c9c;" :inputBorder="false" v-model="loginForm.username" :clearable="false" type="text" class="input" :placeholder="$t('login.mailInput')" maxlength="30" />
  69. <!-- <input style="color: #9c9c9c;" v-model="register.username" class="input" type="text" :placeholder="$t('login.mailInput')" maxlength="30" /> -->
  70. </uni-col>
  71. </uni-row>
  72. </view>
  73. <view>
  74. <view class="input-item flex align-center">
  75. <uni-row>
  76. <uni-col :span="2" style="padding-top: 5px;">
  77. <uni-icons class="icon" type="locked" size="20" color="#e3e3e3"></uni-icons>
  78. </uni-col>
  79. <uni-col :span="18">
  80. <uni-easyinput style="margin-left:-15px ;color: #9c9c9c;" :inputBorder="false" v-model="loginForm.password" type="password" class="input" :placeholder="$t('login.pwdInput')" maxlength="30" />
  81. <!-- <input v-model="register.password" style="color: #9c9c9c;" class="input" type="text" :placeholder="$t('login.pwdInput')" maxlength="30" /> -->
  82. </uni-col>
  83. </uni-row>
  84. </view>
  85. </view>
  86. <view class="xieyi text-center" style="margin-top: -10px;display: contents;">
  87. <p class="text-grey">{{ $t('register.hasAccount') }}<a href="#" @click="toggleLoginMode" class="text-green">{{ $t('register.backLogin') }}</a></p>
  88. </view>
  89. <view class="action-btn" style="z-index: 9999;position: relative;margin-top: 5.5vh;">
  90. <button @click="handleRegister" style="border-radius: 20px;" type="submit" class="login-btn cu-btn block bg-blue lg round">{{ $t('register.register') }}</button>
  91. </view>
  92. </view>
  93. </view>
  94. <!-- <view v-show="isLogin">
  95. <view class="img">
  96. <image @click="buleTeeth" style="width: 31px;" :src="imgUrl+'/login/blueTeeth.png'" mode="widthFix"/>
  97. </view>
  98. <view class="blue-text">
  99. <text @click="buleTeeth">{{ $t('login.buletooth') }}</text>
  100. </view>
  101. </view> -->
  102. <u-picker @cancel="cancelLocale" :confirmText="i18('确认')" :cancelText="i18('取消')" :show="showLocale" keyName="label" :columns="localeList" @confirm="changeLanguage"></u-picker>
  103. <u-popup :zoom="false" :show="showStatus" :mask-close-able="false" mode="center" :closeable="false" border-radius="14" height="150rpx">
  104. <view style="margin:20rpx">
  105. {{i18('检测到有新版本,请点击下载')}} {{newVerson}}
  106. </view>
  107. <view v-if="!isShowProgress" style="text-align: center;text-decoration: underline;margin:10px" @click="downloadFile">
  108. {{i18('立即下载')}}
  109. </view>
  110. <view class="progress-container" v-if="isShowProgress">
  111. <view class="progress-box">
  112. <view class="text"> {{i18('文件下载中,请稍后......')}}</view>
  113. <progress :percent="progress" show-info stroke-width="3" />
  114. </view>
  115. </view>
  116. </u-popup>
  117. <u-popup :show="showCode" :round="10" mode="center" @close="closeCode">
  118. <view style="border-radius: 10px;
  119. width: 250px;">
  120. <image style="border-radius: 10px" src="/static/images/new/code.jpg" mode="widthFix"/>
  121. </view>
  122. </u-popup>
  123. </view>
  124. </template>
  125. <script>
  126. import {checkVersion,forgetPwd} from '@/api/login'
  127. import {getToken} from "@/utils/auth";
  128. import i18 from '@/utils/i18.js'
  129. export default {
  130. data() {
  131. return {
  132. version:"",
  133. newVerson:"",
  134. showLocale:false,
  135. localeList:[[{"label":"简体中文","id":"zh-Hans"},{"label":"英文","id":"en"}]],
  136. localeConfig:{"zh-Hans":"简体中文","en":"英文"},
  137. // currentImg: "",
  138. codeUrl: "",
  139. captchaEnabled: true,
  140. globalConfig: getApp().globalData.config,
  141. loginForm: {
  142. username: "",
  143. password: "",
  144. code: "",
  145. uuid: ''
  146. },
  147. register: {
  148. username: "",
  149. password: "",
  150. locale: "",
  151. },
  152. appVersionCode: "",
  153. showStatus: false,
  154. downloadUrl: "",
  155. iosUrl: "",
  156. isShowProgress: false,
  157. progress: 0,
  158. isLogin: true, // 是否为登录模式
  159. showCode: false,
  160. platom:"",
  161. onlineVersionData:null,
  162. }
  163. },
  164. // mounted() {
  165. // this.addTextEvent()
  166. // },
  167. computed: {
  168. imgUrl: function () {
  169. return getApp().globalData.config.imgUrl;
  170. }
  171. },
  172. created() {
  173. let self = this;
  174. uni.getSystemInfo({
  175. success:function(res){
  176. self.platom = res.platform;
  177. // self.checkVersion();
  178. self.getAppInfo();
  179. }
  180. });
  181. this.setLocale()
  182. uni.getLocation({
  183. type: 'wgs84',
  184. success: function (res) {
  185. console.log('当前位置的经度:' + res.longitude);
  186. console.log('当前位置的纬度:' + res.latitude);
  187. }
  188. });
  189. this.checkLogin();
  190. this.readLoginInfo()
  191. },
  192. methods: {
  193. readLoginInfo(){
  194. let loginForm = uni.getStorageSync("loginInfo");
  195. if(loginForm){
  196. this.loginForm = loginForm;
  197. this.pwdLogin()
  198. }
  199. },
  200. saveLoginInfo(){
  201. if(this.loginForm.username.length>0){
  202. uni.setStorageSync("loginInfo",this.loginForm);
  203. }
  204. },
  205. forgetPwd(){
  206. let self = this;
  207. uni.showModal({
  208. editable:true,
  209. title: i18('请输入邮箱'),
  210. success: function (res) {
  211. if (res.confirm) {
  212. let mail = res.content;
  213. if(!mail){
  214. uni.showToast({
  215. title: i18('邮箱不能为空'),
  216. icon: 'none'
  217. })
  218. return;
  219. }
  220. forgetPwd(mail,self.locale).then(res=>{
  221. if(res.data){
  222. uni.showToast({
  223. title: i18('请查看邮箱进行操作'),
  224. icon: 'none'
  225. })
  226. }else{
  227. uni.showToast({
  228. title: msg,
  229. icon: 'none'
  230. })
  231. }
  232. });
  233. } else if (res.cancel) {
  234. console.log('用户点击取消');
  235. }
  236. }
  237. });
  238. },
  239. closeCode(){
  240. this.showCode = false
  241. },
  242. i18(text){
  243. return i18(text)
  244. },
  245. downloadFile(){
  246. let self = this;
  247. let versionData = this.onlineVersionData;
  248. if(versionData == null){
  249. return;
  250. }
  251. let is_wgt = versionData.is_wgt;
  252. const platform = this.platom.toLowerCase();
  253. if(is_wgt == 0){
  254. if (platform == 'android') {
  255. let downUrl = versionData.app_url;
  256. plus.runtime.openURL(downUrl);
  257. }else{
  258. const appleId = '86726R3L5K'; // 这里替换成你的 apple id
  259. plus.runtime.launchApplication({
  260. action: self.iosUrl
  261. },
  262. function(e) {
  263. }
  264. );
  265. }
  266. }else{
  267. self.isShowProgress = true;
  268. const downloadTask = uni.downloadFile({
  269. url: self.downloadUrl,
  270. success: res => {
  271. if (res.statusCode === 200) {
  272. this.isShowProgress = false;
  273. console.log('下载成功');
  274. }
  275. let that = this;
  276. plus.runtime.install(res
  277. .tempFilePath, {
  278. force: false
  279. },
  280. function() {
  281. plus.runtime
  282. .restart();
  283. });
  284. }
  285. })
  286. console.log(downloadTask)
  287. downloadTask.onProgressUpdate((res) => {
  288. if(res.progress > 0) {
  289. this.isShowProgress = true;
  290. }
  291. this.progress = res.progress;
  292. console.log('下载进度:' + res.progress);
  293. console.log('已下载长度:' + res.totalBytesWritten);
  294. console.log('文件总长度:' + res.totalBytesExpectedToWrite);
  295. })
  296. }
  297. },
  298. getAppInfo() {
  299. let self = this;
  300. plus.runtime.getProperty( plus.runtime.appid, function ( wgtinfo ) {
  301. self.version = wgtinfo.version;
  302. let appVersion = self.version.split(".").join("");
  303. let appVersionCode = parseInt(appVersion);
  304. checkVersion({"versionCode": appVersion,"platom":self.platom}).then(res=>{
  305. let cz_app_version =res.data;
  306. if(cz_app_version != null){
  307. let onlineVersion = cz_app_version.version;
  308. console.log(onlineVersion)
  309. let isForce = cz_app_version.isForce;
  310. let url = cz_app_version.down_url;
  311. self.downloadUrl = url;
  312. self.onlineVersionData = cz_app_version;
  313. self.iosUrl = cz_app_version.ios_url;
  314. if(onlineVersion>appVersionCode){
  315. let versionType = cz_app_version.type_;
  316. if(versionType.toLowerCase() === self.platom.toLowerCase()){
  317. self.newVerson = onlineVersion;
  318. self.showStatus = true;
  319. }else if(versionType.toLowerCase() === 'all'){
  320. self.newVerson = onlineVersion;
  321. self.showStatus = true;
  322. }
  323. }
  324. }
  325. });
  326. } );
  327. },
  328. checkVersion(){
  329. let appBaseInfo = uni.getAppBaseInfo();
  330. let appVersionCode = appBaseInfo.appVersionCode;
  331. this.appVersionCode = appVersionCode;
  332. this.version = appVersionCode;
  333. let self = this;
  334. checkVersion({"versionCode":appVersionCode,"platom":this.platom}).then(res=>{
  335. let cz_app_version =res.data;
  336. console.log(cz_app_version)
  337. if(cz_app_version != null){
  338. let onlineVersion = cz_app_version.version;
  339. console.log(onlineVersion)
  340. let isForce = cz_app_version.isForce;
  341. let url = cz_app_version.down_url;
  342. self.downloadUrl = url;
  343. self.iosUrl = cz_app_version.ios_url;
  344. if(onlineVersion>appVersionCode){
  345. self.newVerson = onlineVersion;
  346. self.showStatus = true;
  347. }
  348. }
  349. });
  350. },
  351. cancelLocale(){
  352. this.showLocale = false;
  353. },
  354. setLocale(){
  355. this.locale = uni.getLocale()
  356. if(this.locale == "en"){
  357. this.localeList = [[{"label":"Chinese","id":"zh-Hans"},{"label":"English","id":"en"}]];
  358. this.localeConfig={"zh-Hans":"Chinese","en":"English"};
  359. }else if(this.locale == "zh-Hans"){
  360. this.localeList = [[{"label":"简体中文","id":"zh-Hans"},{"label":"英文","id":"en"}]];
  361. this.localeConfig={"zh-Hans":"简体中文","en":"英文"};
  362. }
  363. },
  364. changeLanguage(e){
  365. this.showLocale =false;
  366. console.log(e.value[0].id)
  367. uni.setLocale(e.value[0].id);
  368. },
  369. changeLocale(){
  370. this.showLocale = true;
  371. },
  372. buleTeeth(){
  373. this.$tab.navigateTo('/pages/bluetooth/index/index')
  374. },
  375. checkLogin(){
  376. let token = getToken()
  377. if(token){
  378. this.loginSuccess()
  379. }else{
  380. }
  381. },
  382. // // 隐私协议
  383. // handlePrivacy() {
  384. // let site = this.globalConfig.appInfo.agreements[0]
  385. // this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
  386. // },
  387. // 用户协议
  388. handleUserAgrement() {
  389. let site = this.globalConfig.appInfo.agreements[1]
  390. this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
  391. },
  392. // // 获取图形验证码
  393. // getCode() {
  394. // getCodeImg().then(res => {
  395. // this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled
  396. // if (this.captchaEnabled) {
  397. // this.codeUrl = 'data:image/gif;base64,' + res.img
  398. // this.loginForm.uuid = res.uuid
  399. // }
  400. // })
  401. // },
  402. // 登录方法
  403. async handleLogin() {
  404. if(this.locale == "zh-Hans"){
  405. this.showCode = true;
  406. return;
  407. }
  408. if (this.loginForm.username === "") {
  409. this.$modal.msgError(this.$t('login.logintip'))
  410. } else if (this.loginForm.password === "") {
  411. this.$modal.msgError(this.$t('login.pwdtip'))
  412. }
  413. // else if (this.loginForm.code === "" && this.captchaEnabled) {
  414. // this.$modal.msgError("请输入验证码")}
  415. else {
  416. this.$modal.loading(this.$t('login.logining'))
  417. this.pwdLogin()
  418. }
  419. },
  420. // 密码登录
  421. async pwdLogin() {
  422. this.$store.dispatch('Login', this.loginForm).then(() => {
  423. this.$modal.closeLoading()
  424. this.loginSuccess()
  425. }).catch(() => {
  426. // if (this.captchaEnabled) {
  427. // this.getCode()
  428. // }
  429. })
  430. },
  431. // 登录成功后,处理函数
  432. loginSuccess(result) {
  433. //保存用户信息
  434. this.saveLoginInfo()
  435. // 设置用户信息
  436. this.$store.dispatch('GetInfo').then(res => {
  437. this.$tab.reLaunch('/pages/index')
  438. })
  439. },
  440. // async handleRegister() {
  441. // if (this.register.newUsername === '' || this.register.newPassword === '') {
  442. // // 如果用户名或密码为空,则弹出提示框
  443. // uni.showToast({
  444. // title: '请输入用户名和密码',
  445. // icon: 'none'
  446. // })
  447. // return
  448. // }
  449. // // 发送注册请求
  450. // uni.showLoading({
  451. // title: '注册中...'
  452. // })
  453. // uni.request({
  454. // url: 'http://localhost:8080/login/mailRegister',
  455. // method: 'POST',
  456. // data: {
  457. // username: this.register.newUsername,
  458. // password: this.register.newPassword
  459. // },
  460. // success: res => {
  461. // // uni.hideLoading()
  462. // if (res.data.success) {
  463. // // 注册成功,弹出提示框并回到登录模式
  464. // uni.showToast({
  465. // title: '注册成功',
  466. // success: () => {
  467. // this.isLogin = true
  468. // this.register.newUsername = ''
  469. // this.register.newPassword = ''
  470. // }
  471. // })
  472. // } else {
  473. // // 注册失败,弹出提示框显示错误信息
  474. // uni.showToast({
  475. // title: res.data.message || '注册成功',
  476. // icon: 'none'
  477. // })
  478. // }
  479. // },
  480. // fail: err => {
  481. // uni.hideLoading()
  482. // uni.showToast({
  483. // title: err.errMsg || '注册失败',
  484. // icon: 'none'
  485. // })
  486. // }
  487. // })
  488. // },
  489. // 注册方法
  490. async handleRegister() {
  491. // debugger
  492. if (this.register.username === "") {
  493. this.$modal.msgError(this.$t('register.logintip'))
  494. } else if (this.register.password === "") {
  495. this.$modal.msgError(this.$t('register.pwdtip'))
  496. }
  497. // else if (this.loginForm.code === "" && this.captchaEnabled) {
  498. // this.$modal.msgError("请输入验证码")}
  499. else {
  500. // debugger
  501. this.$modal.loading(this.$t('register.logining'))
  502. this.pwdRegister()
  503. }
  504. },
  505. // 用户注册
  506. async pwdRegister() {
  507. this.$store.dispatch("Register",this.register).then(res => {
  508. if (res.msg) {
  509. this.$modal.showToast(res.msg)
  510. return;
  511. }
  512. this.loginForm.username = this.register.username;
  513. this.loginForm.password = this.register.password;
  514. this.$modal.closeLoading()
  515. this.registerSuccess()
  516. });
  517. },
  518. // 注册成功后,处理函数
  519. registerSuccess(result){
  520. // 设置用户信息
  521. this.toggleLoginMode();
  522. },
  523. toggleLoginMode() {
  524. // 切换登录/注册模式
  525. this.isLogin = !this.isLogin
  526. if(this.isLogin){
  527. this.register.username = "";
  528. this.register.password = "";
  529. }
  530. }
  531. }
  532. }
  533. </script>
  534. <style lang="scss">
  535. page {
  536. background-color: #ffffff;
  537. }
  538. .normal-login-container {
  539. background-image: url('../static/images/new/starts/bg1.jpg');
  540. background-size: cover;
  541. background-repeat: no-repeat;
  542. width: 100%;
  543. height: 102.5vh;
  544. font-family: 思源黑体;
  545. margin-top: -20px;
  546. .logo-content {
  547. width: 100%;
  548. font-size: 21px;
  549. text-align: center;
  550. padding-top: 15%;
  551. .image {
  552. border-radius: 4px;
  553. }
  554. .title {
  555. width: 244px;
  556. font-weight: bold;
  557. margin-left: -56px;
  558. text-align: left;
  559. margin-top: -425px;
  560. z-index: 1;
  561. white-space: nowrap;
  562. // line-height: 51px;
  563. text-stroke: 2px #FFFFFF;
  564. font-size: 34px;
  565. // letter-spacing: 2px;
  566. color: #57B03D;
  567. text-shadow: 0 2px white, 2px 0 white, -2px 0 white, 0 -2px white;
  568. }
  569. .welcome {
  570. z-index: 2;
  571. font-size: 15px;
  572. font-family: Source Han Sans CN;
  573. font-weight: 400;
  574. color: aliceblue;
  575. }
  576. .welcome1 {
  577. margin-top: -278px;
  578. margin-left: 8px;
  579. font-family: Alibaba PuHuiTi;
  580. z-index: 2;
  581. font-size: 12px;
  582. }
  583. }
  584. .login-form-content {
  585. text-align: center;
  586. margin: -260px 20px 20px 40px;
  587. // margin-top: 15%;
  588. width: 80%;
  589. // margin-top: -200px;
  590. z-index: 1;
  591. .input-item {
  592. margin: 20px 0 20px 0;
  593. height: 45px;
  594. border-radius: 8px;
  595. background-color: #030404;
  596. border: 1px solid #e3e3e3;
  597. opacity: 1;
  598. color: #e3e3e3;
  599. text-indent:1em;
  600. border-radius: 20px;
  601. .icon {
  602. // margin-left: 10px;
  603. font-size: 38rpx;
  604. margin-left: 0px;
  605. }
  606. .input {
  607. width: 122%;
  608. font-size: 14px;
  609. line-height: 27px;
  610. text-align: left;
  611. padding-left: 15px;
  612. color: #d8d8d8;
  613. margin-left: 10;
  614. }
  615. }
  616. .login-btn {
  617. margin-top: 30px;
  618. height: 40px;
  619. border-radius: 8px;
  620. background-color: #57B03D;
  621. }
  622. .xieyi {
  623. color: #333;
  624. margin-top: 100px;
  625. width: 100vw;
  626. }
  627. .login-code {
  628. height: 38px;
  629. float: right;
  630. .login-code-img {
  631. height: 38px;
  632. position: absolute;
  633. margin-left: 10px;
  634. width: 200rpx;
  635. }
  636. }
  637. }
  638. .text-green {
  639. color: #57B03D;
  640. }
  641. .img {
  642. margin-top: 25px;
  643. text-align:center
  644. }
  645. .blue-text {
  646. color: #666;
  647. text-align:center
  648. }
  649. }
  650. </style>