You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.5 KiB
80 lines
1.5 KiB
<template>
|
|
<view class="">
|
|
<navigation :showBack="true" :bgnum="false">
|
|
<text class="big_title">
|
|
Enter Password
|
|
</text>
|
|
</navigation>
|
|
<view class="main">
|
|
<view class="big_title big_title2">
|
|
Enter Password
|
|
</view>
|
|
<u-message-input @finish="finish2" :inactive-color="info?'#F16063':'#E0E5F2'" active-color="#5B53FF"
|
|
:width="94" :maxlength="6" mode="box" :focus="fes" :dot-fill="true" @change="back">
|
|
</u-message-input>
|
|
|
|
<view class="infoText" v-if="info">
|
|
Password discrepansies
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import cont from "@/components/navigation/navigation.vue"
|
|
export default {
|
|
data() {
|
|
return {
|
|
walletPwd:'',
|
|
msg: '',
|
|
msgLength: 0,
|
|
fes: false,
|
|
info: false,
|
|
transInfoPass: {
|
|
|
|
}
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
// 删除密码触发
|
|
back(e) {
|
|
if (e.length < 6) {
|
|
this.info = false;
|
|
}
|
|
},
|
|
finish2(e) {
|
|
|
|
if (this.walletPwd != e) {
|
|
this.info = true;
|
|
return;
|
|
} else {
|
|
console.log("验证正确")
|
|
this.info = false;
|
|
uni.reLaunch({
|
|
url: '/pages/menu/wallet/index'
|
|
})
|
|
|
|
}
|
|
},
|
|
|
|
},
|
|
onLoad() {
|
|
this.walletPwd=uni.getStorageSync('walletPwd')
|
|
if(this.walletPwd||this.walletPwd==''){
|
|
const walletInfo = uni.getStorageSync('walletInfo')
|
|
this.walletPwd=walletInfo["BTC"][0]["password"];
|
|
uni.setStorageSync('walletPwd',this.walletPwd)
|
|
}
|
|
|
|
}
|
|
};
|
|
</script>
|
|
<style scoped>
|
|
|
|
</style>
|
|
|
|
<style>
|
|
@import './index.css';
|
|
</style>
|
|
|