依赖文件

This commit is contained in:
浅念
2025-03-20 17:35:53 +08:00
parent 634fe57349
commit 021ffc6052
1134 changed files with 137518 additions and 132 deletions
+28 -12
View File
@@ -53,7 +53,7 @@
<view class="pact">
<radio :checked="pactChecked" activeBackgroundColor="#3264ed" activeBorderColor="#3264ed"
borderColor="#3264ed" color="#fff" @click="pactChange" />
<view>{{$t('agreeMsg')}}<text @click="toPact">{{$t('UserAgreement')}}</text>{{$t('and')}}<text @click="toPact">{{$t('Privacy')}}</text></view>
<view>{{$t('agreeMsg')}}<text @click="navigateToAgreement">{{$t('UserAgreement')}}</text>{{$t('and')}}<text @click="navigateToPrivacy">{{$t('Privacy')}}</text></view>
</view>
<u-picker closeOnClickOverlay :cancel-text="$t('cancel')" :confirm-text="$t('confirm')" @close="close" :show="showlang" :columns="columns"
@cancel="cancellang" @confirm="confirmlang" :title="$t('home.langbtn')" keyName="label"></u-picker>
@@ -71,20 +71,19 @@
showlang: false,
columns: [
[{
label: '中文',
id: 'zh'
label: this.$t('zh'),
id: 'zh-Hans'
}, {
label: 'English',
label: this.$t('en'),
id: 'en'
}, {
label: 'Russian',
label:this.$t('ru'),
id: 'ru'
}]
],
}
},
onLoad() {
},
methods: {
close(){
@@ -96,7 +95,20 @@
//语言切换事件
confirmlang(e) {
this.$i18n.locale = e.value[0].id
uni.setStorageSync('i18locale', e.value[0].id);
this.showlang = false
this.columns =[
[{
label: this.$t('zh'),
id: 'zh-Hans'
}, {
label: this.$t('en'),
id: 'en'
}, {
label:this.$t('ru'),
id: 'ru'
}]
];
this.list1 = [{
name: this.$t('all'),
}, {
@@ -179,11 +191,15 @@
}
})
},
toPact() {
uni.showToast({
title: "协议",
icon: 'none'
})
navigateToAgreement() {
uni.navigateTo({
url: '/pages/login/agreement',// 替换为你要跳转的页面路径
});
},
navigateToPrivacy() {
uni.navigateTo({
url: '/pages/login/agreementuser',// 替换为你要跳转的页面路径
});
}
}
}
@@ -252,7 +268,7 @@
}
.button {
padding: 0 32rpx;
// padding: 0 32rpx;
view {
line-height: 80rpx;