| | |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- <div class="jy" @click="handleGoToTransfer()"> |
| | | <div class="left_gn"> |
| | | <div class="l_icon"> |
| | | </div> |
| | | <div class="r_title"> |
| | | <span>{{ $t('hj145') }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="right_gos"> |
| | | <img src="../../assets/img/youjiantou.png" alt /> |
| | | </div> |
| | | </div> --> |
| | | <div class="jy" @click="handleGoToAuthentication()"> |
| | | <div class="left_gn"> |
| | | <div class="l_icon"> |
| | |
| | | <img v-else src="../../assets/img/youjiantou.png" alt /> |
| | | </div> |
| | | </div> |
| | | <!-- |
| | | <div class="jy" @click="subclick()"> |
| | | <div class="left_gn"> |
| | | <div class="l_icon"> |
| | | </div> |
| | | <div class="r_title"> |
| | | <span>{{ $t('subdk') }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="right_gos"> |
| | | <img src="../../assets/img/youjiantou.png" alt /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="jy" @click="yebclick()"> |
| | | <div class="left_gn"> |
| | | <div class="l_icon"> |
| | | </div> |
| | | <div class="r_title"> |
| | | <span>{{ $t('yeb') }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="right_gos"> |
| | | <img src="../../assets/img/youjiantou.png" alt /> |
| | | </div> |
| | | </div> --> |
| | | <div class="jy" @click="clicklang()"> |
| | | <div class="left_gn"> |
| | | <div class="l_icon"></div> |
| | |
| | | import { Toast, MessageBox } from "mint-ui"; |
| | | import { isNull, pwdReg } from "@/utils/utils"; |
| | | import { mapMutations } from "vuex"; |
| | | import { Notify } from "vant"; |
| | | |
| | | export default { |
| | | name: "newUser", |
| | |
| | | }, |
| | | methods: { |
| | | ...mapMutations(["undataToken"]), |
| | | |
| | | popClose() { |
| | | this.settingDialog = false; |
| | | }, |
| | |
| | | } |
| | | }, |
| | | goWall() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/wallet"); |
| | | }, |
| | | gotoa(e) { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | if (e == 0) { |
| | | this.$router.push("/wallet"); |
| | | } else if (e == 1) { |
| | |
| | | handleZh() { |
| | | this.selectUserFlag = !this.selectUserFlag; |
| | | |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | if (navigator.vibrate) { |
| | | // 支持 |
| | | navigator.vibrate([55]); |
| | |
| | | .catch(() => {}); |
| | | }, |
| | | goToSettings() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | // 每次打开dialog 清空密码数据 |
| | | this.pswDialog = !this.pswDialog; |
| | | if (this.pswDialog) { |
| | |
| | | } |
| | | }, |
| | | handleGoToTransfer() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/transfers"); |
| | | }, |
| | | handleGoToAuthentication() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/authentications"); |
| | | }, |
| | | handleGoToAuthenticationaz() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/download"); |
| | | }, |
| | | handleGoToBankCard() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/bankCard"); |
| | | }, |
| | | async toRegister() { |
| | | // 注销登陆 |
| | | |
| | | window.localStorage.removeItem("USERTOKEN"); // 清空本地存储 USERTOKEN字段 |
| | | this.clearCookie(); |
| | | let data = await api.logout(); |
| | | if (data.status === 0) { |
| | | this.undataToken(""); |
| | | // Toast(data.msg) |
| | | this.undataToken(null); |
| | | this.$router.push("/login"); |
| | | } else { |
| | | Toast(data.msg); |
| | |
| | | let data = await api.changePassword(opts); |
| | | if (data.status === 0) { |
| | | this.changeLoginPsdBox = false; |
| | | Toast(data.msg); |
| | | |
| | | this.pswDialog = false; |
| | | this.settingDialog = false; |
| | | Notify({ type: "success", message: this.$t("密码修改成功") }); |
| | | } else { |
| | | Toast(data.msg); |
| | | this.settingDialog = false; |