| | |
| | | > |
| | | </el-input> |
| | | <el-input |
| | | style="margin-top: 0.46rem;" |
| | | style="margin-top: 0.46rem" |
| | | show-password |
| | | :placeholder="$t('hj10')" |
| | | :size="medium" |
| | |
| | | </div> |
| | | <div class="bottom_btns" :class="btnClass ? 'on' : 'off'"> |
| | | <button |
| | | class="top_btn " |
| | | v-on:touchstart="loginIN" |
| | | class="top_btn" |
| | | @click="loginIN" |
| | | :class="dengl ? 'animated pulse' : ''" |
| | | > |
| | | <span>{{ $t("hj11") }}</span> |
| | | </button> |
| | | <div style="display:flex;align-items:center;justify-content: space-between;"> |
| | | <div |
| | | style=" |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | " |
| | | > |
| | | <div class="myzh"> |
| | | <span class="mes" style="margin: right 0.2rem;">{{ $t("hj14") }}?</span |
| | | <span class="mes" style="margin: right 0.2rem" |
| | | >{{ $t("hj14") }}?</span |
| | | ><span |
| | | @click="$router.push('/register')" |
| | | class="mes" |
| | | style="color: rgb(54,124,248);" |
| | | style="color: rgb(54, 124, 248)" |
| | | >{{ $t("hj15") }}</span |
| | | > |
| | | </div> |
| | |
| | | loginBtn: false, |
| | | docmHeight: document.documentElement.clientHeight, //默认屏幕高度 |
| | | showHeight: document.documentElement.clientHeight, //实时屏幕高度 |
| | | hideshow: true //显示或者隐藏footer |
| | | hideshow: true, //显示或者隐藏footer |
| | | }; |
| | | }, |
| | | components: { |
| | | headers |
| | | headers, |
| | | }, |
| | | mounted() { |
| | | window.onresize = () => { |
| | |
| | | }; |
| | | }, |
| | | watch: { |
| | | showHeight: function() { |
| | | showHeight: function () { |
| | | if (this.docmHeight > this.showHeight) { |
| | | this.hideshow = false; |
| | | } else { |
| | | this.hideshow = true; |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | getApp() { |
| | |
| | | setTimeout(() => { |
| | | this.dengl = false; |
| | | }, 1000); |
| | | console.log(this.loginBtn); |
| | | if (this.loginBtn) { |
| | | return; |
| | | } |
| | | this.loginBtn = true; |
| | | let opts = { |
| | | phone: this.userName, |
| | | userPwd: this.userPassword |
| | | userPwd: this.userPassword, |
| | | }; |
| | | let data = await api.login(opts); |
| | | |
| | | console.log("data.status",data.status); |
| | | console.log("data.status", data.status); |
| | | |
| | | |
| | | if (data.status === 0) { |
| | | this.$store.state.userInfo.phone = this.userName; |
| | | this.$store.state.userInfo.token = data.data.token; |
| | |
| | | // 支持 |
| | | navigator.vibrate([55]); |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | beforeDestroy() {}, |
| | | created() {} |
| | | created() {}, |
| | | }; |
| | | </script> |
| | | |
| | |
| | | margin-top: 0.8528rem; |
| | | |
| | | .top_btn { |
| | | border: none; |
| | | border: none; |
| | | width: 100%; |
| | | height: 1.25rem; |
| | | border-radius: 0.3564rem; |