From 8beda0c969d91a2b329798b7dafeaab06f7ca05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Tue, 8 Apr 2025 09:30:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=84=E8=AF=AD=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 15 ++++++++-- api/apiT.js | 3 +- common/locales/ru.js | 13 ++++++--- common/locales/zh.js | 4 +-- main.js | 5 ++-- pages/customer/add.vue | 5 ++-- pages/customer/detile.vue | 6 ++-- pages/customer/editdetile.vue | 2 +- pages/customer/followup.vue | 28 ++++++------------- pages/customer/maph5.vue | 4 +-- pages/index/customer.vue | 21 ++++++++++++-- pages/index/highseas.vue | 2 +- pages/index/index.vue | 19 +++++++++++-- pages/login/index.vue | 10 +++++-- pages/mine/businesscard.vue | 3 ++ .../components/z-paging/js/modules/i18n.js | 2 -- 16 files changed, 91 insertions(+), 51 deletions(-) diff --git a/App.vue b/App.vue index f2bf71a..a9f1466 100644 --- a/App.vue +++ b/App.vue @@ -102,10 +102,21 @@ page { background-color:#F9F9F9; height: 100%; - font-size: 28rpx; + font-size: 24rpx; /* line-height: 1.8; */ } - + uni-input{ + font-size: 24rpx; + } + textarea { + font-size: 24rpx; + } + .select{ + font-size: 24rpx; + } + .u-radio-group--row{ + font-size: 24rpx; + } .fix-pc-padding { padding: 0 50px; } diff --git a/api/apiT.js b/api/apiT.js index 5f21ec4..8f94a8f 100644 --- a/api/apiT.js +++ b/api/apiT.js @@ -8,7 +8,7 @@ export function request(options){//封装的requset let { url,data,method } = options; data = data || {}, uni.showLoading({ - title: '加载中' + title: '' }); return new Promise((resolve,rejext)=>{ @@ -23,6 +23,7 @@ export function request(options){//封装的requset title: res.data.message, icon: 'none' }); + uni.clearStorageSync(); setTimeout(() => { uni.reLaunch({ url: '/pages/login/index',// 替换为你要跳转的页面路径 diff --git a/common/locales/ru.js b/common/locales/ru.js index b6b6077..3e33587 100644 --- a/common/locales/ru.js +++ b/common/locales/ru.js @@ -31,7 +31,7 @@ export default { title: "Управление клиентами", inputhd: "Введите имя клиента или номер телефона", followtype: "Способ последующие ", - Online: "Онлайн последующие ", + Online: "Линия", Visit: "Посещение", addfollow: "Добавить последующие", followtime: "Время последующие ", @@ -85,6 +85,7 @@ export default { Privacy: "Политика конфиденциальности", UserAgreement: "Пользовательское соглашение", copyright: "© Henan Xinyouhe Technology Co., Ltd. Все права защищены", + logoff:'Списание счетов', logoffmsg: "Следующая информация будет удалена без возможности восстановления", logoffts1: "Идентификационные и учетные данные", logoffts2: "Вся информация о клиентах", @@ -105,7 +106,7 @@ export default { tday: "Сегодня", threeday: "Последние 3 дня", sevenday: "Последние 7 дней", - followup: "Последующие меры", + followup: "Последующие", deal: "Завершено", lost: "Потеряно", cancel: "Отмена", @@ -130,6 +131,8 @@ export default { emailinput: "Введите email", phone: "Телефон", agreeMsg: "Я прочитал и согласен с", + Privacy:'《Политика конфиденциальности》', + UserAgreement:'《Пользовательское соглашение》', and: "и", empty: "Нет записей~", times: "Время", @@ -162,13 +165,15 @@ export default { auth: "Авторизация Feishu", inputnl: "Выберите", noresults: "Нет результатов", - keyword: "Введите ключевое слово для поиска", + keyword: "Ключевые слова поиска", + prompt:'Подсказка', restoremsg: "Подтвердите восстановление данных клиента?", onedayn: "В течение 1 дня", threedayn: "В течение 3 дней", sevendayn: "В течение 7 дней", - follow: " последующие ", + follow: " последующие", timeout: "Просрочено", + day:'Боже.', hour: "час", minute: "мин", second: "сек", diff --git a/common/locales/zh.js b/common/locales/zh.js index d1fe67f..b6db8a3 100644 --- a/common/locales/zh.js +++ b/common/locales/zh.js @@ -62,8 +62,7 @@ export default { Countryinput:'请选择国家', Company:'公司', Companyinput:'去定位', - CustomerScreening:'客户筛选' - + CustomerScreening:'客户筛选' }, mine: { desc: '我的', @@ -195,5 +194,4 @@ export default { loading:'加载中', downmp:'下载名片', downmpmsg:'确定下载当前名片图吗?', - } \ No newline at end of file diff --git a/main.js b/main.js index 8263c30..35f7bf3 100644 --- a/main.js +++ b/main.js @@ -23,8 +23,9 @@ import Eyu from '@/common/locales/ru.js'; // 引入并使用vue-i18n import VueI18n from 'vue-i18n' Vue.use(VueI18n) +console.log(uni.getLocale()) let i18nConfig = { - locale: uni.getLocale(),// 获取已设置的语言 + locale: uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale(),// 获取已设置的语言 messages: { // 这里的属性名是任意的,您也可以把zh设置为cn等,只是后续切换语言时 // 要标识这里的语言属性,如:this.$i18n.locale = zh|en|cn|xxx @@ -36,7 +37,7 @@ let i18nConfig = { // 构造i18n对象 const i18n = new VueI18n({ // 默认语言,这里的local属性,对应message中的cn、en属性 - locale:uni.getLocale(), + locale:uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale(), // 引入语言文件 messages: { // 这里的属性名是任意的,您也可以把zh设置为cn等,只是后续切换语言时 diff --git a/pages/customer/add.vue b/pages/customer/add.vue index 67fe8be..e47ccc9 100644 --- a/pages/customer/add.vue +++ b/pages/customer/add.vue @@ -422,7 +422,7 @@ padding: 18px 20px; align-items: center; font-weight: 500; - font-size: 28rpx; + font-size: 24rpx; color: #666666; .item{ width: 90px; @@ -432,7 +432,7 @@ margin-right: -15px; } .cell1{ - font-size: 28rpx; + font-size: 24rpx; padding: 18px 20px; align-items: center; font-weight: 500; @@ -462,6 +462,7 @@ width: 92%; margin-bottom: 40px; margin: 15px 4%; + font-size: 28rpx; } .mapcont{ .header{ diff --git a/pages/customer/detile.vue b/pages/customer/detile.vue index c6310e4..4eeb4f3 100644 --- a/pages/customer/detile.vue +++ b/pages/customer/detile.vue @@ -528,7 +528,7 @@ } } .name{ - font-size: 32rpx; + font-size: 30rpx; font-weight: bold; margin-right: 10px; } @@ -622,7 +622,7 @@ border-radius: 8px; color: #3471FF; text-align: center; - padding: 5px 0px; + padding: 5px 13px; } .row{ width: 100%; @@ -630,7 +630,7 @@ .col4{ display: inline-block; margin: 4px 3px; - width: 30%; + // width: 30%; } } .tagactive{ diff --git a/pages/customer/editdetile.vue b/pages/customer/editdetile.vue index 9361099..804e9f7 100644 --- a/pages/customer/editdetile.vue +++ b/pages/customer/editdetile.vue @@ -478,7 +478,7 @@ margin-right: -15px; } .cell1{ - font-size: 28rpx; + font-size: 24rpx; padding: 18px 20px; align-items: center; font-weight: 500; diff --git a/pages/customer/followup.vue b/pages/customer/followup.vue index 5ae8e9a..d16a609 100644 --- a/pages/customer/followup.vue +++ b/pages/customer/followup.vue @@ -6,7 +6,7 @@ {{userdatas.contacts}} {{userdatas.magnitude_txt}} - {{userdatas.follow_txt}} + {{userdatas.follow==0?$t('followup'):userdatas.follow==1?$t('deal'):$t('lost')}} @@ -94,7 +94,7 @@ - {{$t('customer.followrecord')}} {{datas.follow_txt}} + {{$t('customer.followrecord')}} {{userdatas.follow==0?$t('followup'):userdatas.follow==1?$t('deal'):$t('lost')}} @@ -135,8 +135,7 @@ - - + @@ -617,7 +616,7 @@ } } .name{ - font-size: 32rpx; + font-size: 30rpx; font-weight: bold; margin-right: 10px; } @@ -686,7 +685,7 @@ padding: 18px 20px; align-items: center; font-weight: 500; - font-size: 28rpx; + font-size: 24rpx; color: #666666; .item{ width: 90px; @@ -696,7 +695,7 @@ margin-right: -15px; } .cell1{ - font-size: 28rpx; + font-size: 24rpx; padding: 18px 20px; align-items: center; font-weight: 500; @@ -722,19 +721,8 @@ color: white; border-radius: 50px; width: 93%; - height: 96rpx; - line-height: 96rpx; - margin-top: 20px; - } - .btn1{ - font-size: 28rpx; - border: 1px solid #3471FF; - background: #fff; - color: #3471FF; - border-radius: 50px; - width: 45%; - height: 96rpx; - line-height: 96rpx; + height:88rpx; + line-height: 88rpx; margin-top: 20px; } .addimg{ diff --git a/pages/customer/maph5.vue b/pages/customer/maph5.vue index 3dd6d29..e547d60 100644 --- a/pages/customer/maph5.vue +++ b/pages/customer/maph5.vue @@ -3,8 +3,8 @@ - - 确定 + + {{$t('confirm')}} diff --git a/pages/index/customer.vue b/pages/index/customer.vue index f5d264b..37e95dc 100644 --- a/pages/index/customer.vue +++ b/pages/index/customer.vue @@ -4,7 +4,7 @@ @@ -95,6 +95,7 @@ columns:[], list1: [], datalist:[], + isey:false } }, onLoad(e) { @@ -111,6 +112,12 @@ uni.removeStorageSync('location') }, onShow() { + // var location = uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale() + // if(location=='ru'){ + // this.isey=true + // }else{ + // this.isey=false + // } this.queryList(1, 10) this.options1=[{ text: this.$t('delete'), @@ -286,6 +293,12 @@ uni-page-body { background-color: #F6F6F6 !important; } + ::v-deep .u-search__content__input{ + font-size: 24rpx !important; + } + ::v-deep .u-tabs__wrapper__nav__item__text{ + font-size: 28rpx !important; + } .u-swipe-action-item { margin-bottom: 10px; border-radius: 10px; @@ -362,6 +375,7 @@ border-radius: 20px 0px 0px 20px; padding: 3px 10px; margin-right: -15px; + text-align: right; } .right{ display: flex; @@ -380,7 +394,7 @@ justify-content: space-between; color: #222222; .name{ - font-size: 32rpx; + font-size: 30rpx; font-weight: bold; margin-right: 10px; } @@ -390,6 +404,7 @@ } .ststus{ color: #666666; + text-align: right; } .info,.desc{ color: #78758E; diff --git a/pages/index/highseas.vue b/pages/index/highseas.vue index 9abb1df..782c04f 100644 --- a/pages/index/highseas.vue +++ b/pages/index/highseas.vue @@ -3,7 +3,7 @@ diff --git a/pages/index/index.vue b/pages/index/index.vue index 2e09fa6..b6be6ab 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -120,7 +120,11 @@ }, { label: this.$t('en'), id: 'en' - }] + },{ + label: this.$t('ru'), + id: 'ru' + } + ] ], columnstime:[ [{ @@ -193,8 +197,9 @@ var that = this uni.setLocale(e.value[0].id) this.$i18n.locale = e.value[0].id - // uni.setStorageSync('i18locale', e.value[0].id); + uni.setStorageSync('i18locale', e.value[0].id); this.showlang = false + console.log(uni.getLocale()) this.columns =[ [{ label: this.$t('zh'), @@ -202,7 +207,11 @@ }, { label: this.$t('en'), id: 'en' - }] + },{ + label: this.$t('ru'), + id: 'ru' + } + ] ]; this.columnstime =[ [{ @@ -442,6 +451,10 @@ .grid-text { color: #222222; font-size: 24rpx; + white-space: nowrap; + width: 95%; + overflow-x: scroll; + text-align: center; } } diff --git a/pages/login/index.vue b/pages/login/index.vue index 0252d77..b59b922 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -82,6 +82,9 @@ }, { label: this.$t('en'), id: 'en' + },{ + label: this.$t('ru'), + id: 'ru' }] ], language:uni.getLocale() @@ -105,7 +108,7 @@ confirmlang(e) { uni.setLocale(e.value[0].id) this.$i18n.locale = e.value[0].id - // uni.setStorageSync('i18locale', e.value[0].id); + uni.setStorageSync('i18locale', e.value[0].id); this.language = e.value[0].id this.showlang = false this.columns =[ @@ -115,6 +118,9 @@ }, { label: this.$t('en'), id: 'en' + },{ + label: this.$t('ru'), + id: 'ru' }] ]; this.list1 = [{ @@ -186,7 +192,7 @@ language: this.language, } }).then(res => { - console.log(res.data.data) + uni.setStorageSync('i18locale',this.language); if (res.data.code == -1) { uni.showToast({ title: res.data.message, diff --git a/pages/mine/businesscard.vue b/pages/mine/businesscard.vue index fa06bda..3b13bcd 100644 --- a/pages/mine/businesscard.vue +++ b/pages/mine/businesscard.vue @@ -261,5 +261,8 @@ width: 92%; margin-bottom: 40px; margin: 15px 4%; + font-size: 28rpx; + height: 88rpx; + line-height:88rpx; } diff --git a/uni_modules/z-paging/components/z-paging/js/modules/i18n.js b/uni_modules/z-paging/components/z-paging/js/modules/i18n.js index 9a8fa1c..324123b 100644 --- a/uni_modules/z-paging/components/z-paging/js/modules/i18n.js +++ b/uni_modules/z-paging/components/z-paging/js/modules/i18n.js @@ -8,7 +8,6 @@ import c from '.././z-paging-constant' import interceptor from '../z-paging-interceptor' const language = uni.getSystemInfoSync().language; -console.log(uni.getLocale()) export default { data() { return { @@ -95,7 +94,6 @@ export default { }, // 获取国际化转换后的文本 _getI18nText(key, value) { - console.log(this.finalLanguage) const dataType = Object.prototype.toString.call(value); if (dataType === '[object Object]') { const nextValue = value[this.finalLanguage];