|
|
@ -5,27 +5,33 @@ |
|
|
|
<view class="fingcon"> |
|
|
|
<image src="../../static/tongyonh/zhiwen.png" mode="aspectFit" class="finimg" @click="goFinger"></image> |
|
|
|
<view class="te1"> |
|
|
|
Click to verify fingerprint |
|
|
|
{{i18n.Clicktoverify}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="passTex"> |
|
|
|
Login with wallet password |
|
|
|
<view class="lans" @click="show = true"> |
|
|
|
{{i18n.lans}} |
|
|
|
</view> |
|
|
|
{{i18n.Loginwith}} |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
<u-mask z-index="10" :show="show"></u-mask> |
|
|
|
|
|
|
|
<view class="hou_jia" v-if="showFinger"> |
|
|
|
<view class="Log"> |
|
|
|
<!-- {{i18n.Login}} --> |
|
|
|
Log In |
|
|
|
{{i18n.Login}} |
|
|
|
</view> |
|
|
|
<image src="../../static/tongyonh/zww.png" mode="aspectFit" class="zzw" @click="goFinger()"></image> |
|
|
|
<view class="Log" @click="cancel"> |
|
|
|
<!-- {{i18n.Cancel}} --> |
|
|
|
Cancel |
|
|
|
{{i18n.Cancel}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-select :confirm-text="cnt" :cancel-text="can" v-model="show" :list="list3" @confirm="confirm"></u-select> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</template> |
|
|
@ -35,15 +41,66 @@ |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
cnt:this.$t('index').Confirm, |
|
|
|
can:this.$t('index').Cancel, |
|
|
|
checked: false, |
|
|
|
show: false, |
|
|
|
showFinger: false, |
|
|
|
fingerSuccess: false, |
|
|
|
fingerFail: false, |
|
|
|
hou_jia_w: false, |
|
|
|
language: this.$store.state.language == 'en' ? 'English' : '简体中文', |
|
|
|
show: false, |
|
|
|
list3: [{ |
|
|
|
label: this.$t('index').langfan, |
|
|
|
disabled: false, |
|
|
|
value: "b", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: this.$t('index').langjian, |
|
|
|
disabled: false, |
|
|
|
value: "a", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: this.$t('index').eng, |
|
|
|
disabled: false, |
|
|
|
value: "c", |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
confirm(e){ |
|
|
|
uni.setStorageSync('lang',e[0].value) |
|
|
|
|
|
|
|
if (e[0].value == 'c') { |
|
|
|
this._i18n.locale = 'en' |
|
|
|
this.$store.commit('setLanguage', 'en') |
|
|
|
uni.setStorageSync('langTrue', 'English') |
|
|
|
uni.setStorageSync("language", 'en') |
|
|
|
uni.redirectTo({ |
|
|
|
url:'/pages/fingerPage/index' |
|
|
|
}) |
|
|
|
|
|
|
|
} else if (e[0].value == 'a') { |
|
|
|
this._i18n.locale = 'zh-CN' |
|
|
|
this.$store.commit('setLanguage', 'zh-CN') |
|
|
|
uni.setStorageSync("language", 'zh-CN') |
|
|
|
uni.setStorageSync('langTrue', '简体中文') |
|
|
|
uni.redirectTo({ |
|
|
|
url:'/pages/fingerPage/index' |
|
|
|
}) |
|
|
|
} else if (e[0].value == 'b'){ |
|
|
|
this._i18n.locale = 'zh-CNF' |
|
|
|
this.$store.commit('setLanguage', 'zh-CNF') |
|
|
|
uni.setStorageSync("language", 'zh-CNF') |
|
|
|
uni.setStorageSync('langTrue', '繁體中文') |
|
|
|
uni.redirectTo({ |
|
|
|
url:'/pages/fingerPage/index' |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
goFinger(){ |
|
|
|
this.showFinger=true; |
|
|
|
this.show=true; |
|
|
|