修改国际版本

This commit is contained in:
2026-06-12 16:08:00 +08:00
parent af758a0ccc
commit 836cdaf2dc
38 changed files with 449 additions and 145 deletions
+2 -4
View File
@@ -55,7 +55,7 @@
import { ref, onMounted } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { wxLogin, alipayLogin, getUserPhoneNumber, getUserInfo } from '@/util/index.js'
import { useI18n } from '@/utils/i18n.js'
import { useI18n, showModalI18n } from '@/utils/i18n.js'
const { t } = useI18n()
@@ -95,11 +95,9 @@
}
// 未勾选,弹窗提示
uni.showModal({
showModalI18n({
title: t('common.tips'),
content: t('auth.pleaseAgreeToTerms'),
confirmText: t('common.confirm'),
cancelText: t('common.cancel'),
success: (res) => {
if (res.confirm) {
// 用户点击同意,自动勾选
+2 -2
View File
@@ -137,8 +137,8 @@
<view class="auth-title">授权登录</view>
<view class="auth-desc">获取您的微信头像、昵称等公开信息</view>
<view class="auth-buttons">
<button class="cancel-btn" @click="closeAuthPopup">取消</button>
<button class="confirm-btn" @click="getUserProfile">确定</button>
<button class="cancel-btn" @click="closeAuthPopup">{{ $t('common.cancel') }}</button>
<button class="confirm-btn" @click="getUserProfile">{{ $t('common.confirm') }}</button>
</view>
</view>
</u-popup>
+2 -2
View File
@@ -35,7 +35,7 @@
<script setup>
import { ref, computed, onMounted, getCurrentInstance } from 'vue'
import { userLogout } from '@/config/api/user.js'
import { useI18n } from '@/utils/i18n.js'
import { useI18n, showModalI18n } from '@/utils/i18n.js'
const { t } = useI18n()
@@ -112,7 +112,7 @@ const showLanguageSelector = () => {
}
const handleLogout = async () => {
uni.showModal({
showModalI18n({
title: t('common.tips'),
content: t('user.confirmLogout'),
success: async (res) => {
+2 -1
View File
@@ -51,6 +51,7 @@
import {
URL
} from '@/config/url'
import { showModalI18n } from '@/utils/i18n.js'
export default {
data() {
@@ -107,7 +108,7 @@
})
},
handleLogout() {
uni.showModal({
showModalI18n({
title: this.$t('common.tips'),
content: this.$t('user.confirmLogout'),
success: (res) => {