|
|
@ -4,32 +4,46 @@ |
|
|
|
<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"> |
|
|
|
<swiper-item> |
|
|
|
<view class="swiper-item"> |
|
|
|
<image src="../../static/tongyonh/phone_image.png" class="img1" mode="aspectFit"></image> |
|
|
|
<image src="../../static/tongyonh/Illustration.png" class="img1" mode="aspectFit"></image> |
|
|
|
<view class="text_con"> |
|
|
|
<view class="text1"> |
|
|
|
{{i18n.Decentralised}} |
|
|
|
</view> |
|
|
|
<view class="text2"> |
|
|
|
{{i18n.Localstorage}} |
|
|
|
{{i18n.Localstorage}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</swiper-item> |
|
|
|
<swiper-item> |
|
|
|
<view class="swiper-item"> |
|
|
|
<image src="../../static/tongyonh/phone_image.png" class="img1" mode="aspectFit"></image> |
|
|
|
<view class="text_con"> |
|
|
|
<view class="text1"> |
|
|
|
{{i18n.Decentralised}} |
|
|
|
<swiper-item> |
|
|
|
<view class="swiper-item"> |
|
|
|
<image src="../../static/tongyonh/Frame.png" class="img1" mode="aspectFit"></image> |
|
|
|
<view class="text_con"> |
|
|
|
<view class="text1"> |
|
|
|
{{i18n.EasyDecentralised}} |
|
|
|
</view> |
|
|
|
<view class="text2"> |
|
|
|
{{i18n.EasyLocalstorage}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="text2"> |
|
|
|
{{i18n.Localstorage}} |
|
|
|
</swiper-item> |
|
|
|
<swiper-item> |
|
|
|
<view class="swiper-item"> |
|
|
|
<image src="../../static/tongyonh/Nftimg.png" class="img1" mode="aspectFit"></image> |
|
|
|
<view class="text_con"> |
|
|
|
<view class="text1"> |
|
|
|
{{i18n.NftDecentralised}} |
|
|
|
</view> |
|
|
|
<view class="text2"> |
|
|
|
{{i18n.NftLocalstorage}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</swiper-item> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</view> |
|
|
|
|
|
|
@ -63,7 +77,7 @@ |
|
|
|
<image src="../../static/tongyonh/login_wallet.png" mode="aspectFit" class="letimg"></image> |
|
|
|
<view class="textcon"> |
|
|
|
<view class="text1"> |
|
|
|
{{i18n.Logintowallet}} |
|
|
|
{{i18n.Logintowallet}} |
|
|
|
</view> |
|
|
|
<view class="text2"> |
|
|
|
{{i18n.Restoreexisting}} |
|
|
@ -78,21 +92,22 @@ |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="lans" @click="show = true"> |
|
|
|
<view class="lans" @click="show = true"> |
|
|
|
{{i18n.lans}} |
|
|
|
</view> |
|
|
|
<view class="select"> |
|
|
|
<u-checkbox-group @change="checkboxGroupChange"> |
|
|
|
<u-checkbox @change="checkboxChange" v-for="(item, index) in list2" :key="index" |
|
|
|
v-model="item.checked" :name="item.name" active-color="#5B53FF"> <text class="name">{{i18n.AgreementConfirmation}} |
|
|
|
v-model="item.checked" :name="item.name" active-color="#5B53FF"> <text |
|
|
|
class="name">{{i18n.AgreementConfirmation}} |
|
|
|
<text class="active" @click.stop="Terms">{{i18n.TermsofService}}</text> |
|
|
|
</text> </u-checkbox> |
|
|
|
</u-checkbox-group> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<u-select :confirm-text="cnt" :cancel-text="can" v-model="show" :list="list3" @confirm="confirm"></u-select> |
|
|
|
|
|
|
|
<u-select :confirm-text="cnt" :cancel-text="can" v-model="show" :list="list3" @confirm="confirm"></u-select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -110,26 +125,26 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
language: this.$store.state.language == 'en' ? 'English' : '简体中文', |
|
|
|
cnt:this.$t('index').Confirm, |
|
|
|
can:this.$t('index').Cancel, |
|
|
|
cnt: this.$t('index').Confirm, |
|
|
|
can: this.$t('index').Cancel, |
|
|
|
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", |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
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", |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
list2: [{ |
|
|
|
name: '', |
|
|
|
checked: false, |
|
|
@ -143,7 +158,7 @@ |
|
|
|
walletInfo: {}, |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
i18n() { |
|
|
|
return this.$t('index') |
|
|
|
}, |
|
|
@ -160,26 +175,26 @@ |
|
|
|
this.list2.checked = false; |
|
|
|
}, |
|
|
|
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') |
|
|
|
} 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', '简体中文') |
|
|
|
} 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', '繁體中文') |
|
|
|
} |
|
|
|
|
|
|
|
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') |
|
|
|
} 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', '简体中文') |
|
|
|
} 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', '繁體中文') |
|
|
|
} |
|
|
|
}, |
|
|
|
checkboxGroupChange() { |
|
|
|
|
|
|
@ -228,7 +243,7 @@ |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.list2[0].checked = false; |
|
|
|
uni.navigateTo({ |
|
|
|
url: '../menu/backUp/backUp4/index', |
|
|
|