| | |
| | | cirNewPassword: "", // 确认新密码 |
| | | userInfo: [], |
| | | onlineService: "", |
| | | language: "", |
| | | language: "" |
| | | }; |
| | | }, |
| | | components: { Language }, |
| | |
| | | // 判断是否登录 |
| | | this.$store.commit("dialogVisible", false); |
| | | this.$store.state.userInfo = data.data; |
| | | document.title = 'Setting' |
| | | document.title = "Setting"; |
| | | this.userInfo = data.data; |
| | | } else { |
| | | this.$store.commit("dialogVisible", true); |
| | |
| | | // 退出登录 |
| | | MessageBox.confirm(this.$t("hj149"), this.$t(""), { |
| | | confirmButtonText: this.$t("qr"), |
| | | cancelButtonText: this.$t("hj106"), |
| | | cancelButtonText: this.$t("hj106") |
| | | }) |
| | | .then(() => { |
| | | this.toRegister(); |
| | |
| | | if (this.newPassword === this.cirNewPassword) { |
| | | let opts = { |
| | | oldPwd: this.oldPassword, |
| | | newPwd: this.newPassword, |
| | | newPwd: this.newPassword |
| | | }; |
| | | let data = await api.changePassword(opts); |
| | | if (data.status === 0) { |
| | |
| | | this.settingDialog = false; |
| | | Notify({ |
| | | type: "success", |
| | | message: this.$t("密码修改成功"), |
| | | message: this.$t("密码修改成功") |
| | | }); |
| | | this.toRegister(); |
| | | } else { |
| | |
| | | // 支持 |
| | | navigator.vibrate([55]); |
| | | } |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | /deep/ .van-nav-bar__content { |
| | | height: 65px; |
| | | } |
| | | /deep/ .van-nav-bar__title { |
| | | font-family: "DINPro"; |
| | | width: 100%; |
| | | height: 1.17333rem; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-style: normal; |
| | | font-weight: 500; |
| | | font-size: 0.48rem; |
| | | color: #14181f; |
| | | } |
| | | @green: #c4d600; |
| | | /deep/ .van-nav-bar__content { |
| | | height: 65px; |
| | | } |
| | | /deep/ .van-nav-bar__title { |
| | | font-family: "DINPro"; |
| | | width: 100%; |
| | | height: 1.17333rem; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-style: normal; |
| | | font-weight: 500; |
| | | font-size: 0.48rem; |
| | | color: #14181f; |
| | | } |
| | | |
| | | .right_gos_txt { |
| | | margin-right: 15px; |
| | |
| | | width: 100%; |
| | | height: 1.3rem; |
| | | border-radius: 0.15rem; |
| | | background: #2d6ae9; |
| | | background: @green; |
| | | color: #fff; |
| | | font-size: 0.4615rem; |
| | | margin-top: 0.5rem; |
| | |
| | | } |
| | | |
| | | .btn_s_box { |
| | | border: none; |
| | | background: #409eff; |
| | | color: #fff; |
| | | border: @green solid 0.01em; |
| | | background: #fff; |
| | | color: @green; |
| | | height: 70px; |
| | | width: 100%; |
| | | line-height: 70px; |
| | | font-size: 16px; |
| | | text-align: center; |
| | | border-radius: 15px; |
| | | border-radius: 5px; |
| | | font-weight: 600; |
| | | margin: 40px 20px 0 20px; |
| | | } |