From f050f7cd4dfb1651ae61290972115a51def5560b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Sat, 15 Mar 2025 15:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B5=E9=9D=A2=E5=8F=8A?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=A4=9A=E8=AF=AD=E8=A8=80=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/locales/en.js | 42 +++++- common/locales/ru.js | 17 +++ common/locales/zh.js | 41 +++++- components/userlist/index.vue | 4 +- main.js | 6 +- manifest.json | 13 +- pages.json | 36 ++++++ pages/customer/add.vue | 102 +++++++++++---- pages/customer/detile.vue | 137 +++++++++++--------- pages/customer/followup.vue | 116 ++++++++++++++++- pages/index/customer.vue | 62 ++++++--- pages/index/index.vue | 74 +++++++---- pages/index/mine.vue | 92 ++++++++++--- pages/login/index.vue | 234 ++++++++++++++-------------------- pages/mine/about.vue | 90 +++++++++++++ pages/mine/feedback.vue | 76 +++++++++++ pages/mine/logoff.vue | 90 +++++++++++++ pages/mine/massege.vue | 6 +- pages/mine/resetPwd.vue | 190 +++++++++++++++++++++++++++ 19 files changed, 1126 insertions(+), 302 deletions(-) create mode 100644 common/locales/ru.js create mode 100644 pages/mine/about.vue create mode 100644 pages/mine/feedback.vue create mode 100644 pages/mine/logoff.vue create mode 100644 pages/mine/resetPwd.vue diff --git a/common/locales/en.js b/common/locales/en.js index 5ab1d8d..d3d70f1 100644 --- a/common/locales/en.js +++ b/common/locales/en.js @@ -6,12 +6,46 @@ export default { mine: 'mine' }, home: { - desc: 'This is home page' + desc: 'home', + langbtn:'Change Language', + title:'You have accompanied me', + day:'day', + databf:'Data Briefing', + addxs:'Add clues', + addkh:'Add customer', + addbf:'Add visit', + addgj:'Add follow up' }, customer: { - desc: 'This is tool page' + desc: 'This is tool page', + title:'Customer Management', + inputhd:'Please enter keywords to search', }, mine: { - desc: 'This is template page' - } + desc: 'This is template page', + title:'Account', + msg:'Message Notification', + cpassword:'Change Password', + contact:'Contact Service', + feedback:'Feedback', + about:'About Us', + logoff:'Log Off', + logout:'Log Out', + kfphone:'Service phone number', + lxcall:'Contact Way', + lxcallinputhd:'Please enter', + feedbackinputhd:'Please provide your valuable feedback~', + }, + call:'Call', + delete:'Delete', + all:'All', + followup:'Follow up', + deal:'Deal', + lost:'Lost', + cancel:'cancel', + confirm:'confirm', + prompt:'prompt', + deletemsg:'Are you sure you want to delete this customer?', + submit:'Submit' + } \ No newline at end of file diff --git a/common/locales/ru.js b/common/locales/ru.js new file mode 100644 index 0000000..0df8893 --- /dev/null +++ b/common/locales/ru.js @@ -0,0 +1,17 @@ +export default { + // 可以以页面为单位来写,比如首页的内容,写在index字段,个人中心写在center,共同部分写在common部分 + tabbar: { + home: 'начало', + customer: 'клиент', + mine: 'мой' + }, + home: { + desc: 'начало' + }, + customer: { + desc: 'клиент' + }, + mine: { + desc: 'мой' + } +} \ No newline at end of file diff --git a/common/locales/zh.js b/common/locales/zh.js index 924c42c..881ec25 100644 --- a/common/locales/zh.js +++ b/common/locales/zh.js @@ -6,12 +6,45 @@ export default { mine: '我的' }, home: { - desc: '首页' + desc: '首页', + langbtn:'切换语言', + title:'您已陪伴', + day:'天', + databf:'数据简报', + addxs:'新增线索', + addkh:'新增客户', + addbf:'新增拜访', + addgj:'新增跟进' }, customer: { - desc: '客户' + desc: '客户', + title:'客户管理', + inputhd:'请输入客户名称或手机号', }, mine: { - desc: '我的' - } + desc: '我的', + title:'我的', + msg:'消息通知', + cpassword:'修改密码', + contact:'联系客服', + feedback:'意见反馈', + about:'关于我们', + logoff:'注销账户', + logout:'退出登录', + kfphone:'客服电话', + lxcall:'联系方式', + lxcallinputhd:'请输入您的手机号码', + feedbackinputhd:'请输入您的宝贵意见~', + }, + call:'呼叫', + delete:'删除', + all:'全部', + followup:'跟进中', + deal:'已成交', + lost:'已丢失', + cancel:'取消', + confirm:'确定', + prompt:'提示', + deletemsg:'确定要删除此客户吗?', + submit:'提交' } \ No newline at end of file diff --git a/components/userlist/index.vue b/components/userlist/index.vue index cdd09fa..ab5caf2 100644 --- a/components/userlist/index.vue +++ b/components/userlist/index.vue @@ -3,7 +3,7 @@ 2025.03.11 12:00 - 跟进中 + {{$t('followup')}} @@ -59,7 +59,7 @@ background: #3471FF; color: white; border-radius: 10px 0px 0px 10px; - padding: 0px 10px; + padding: 3px 10px; margin-right: -15px; } } diff --git a/main.js b/main.js index 1dfc77e..05ca503 100644 --- a/main.js +++ b/main.js @@ -18,6 +18,7 @@ Vue.prototype.$backgroundAudioData = { // 引入语言包,注意路径 import Chinese from '@/common/locales/zh.js'; import English from '@/common/locales/en.js'; +import Eyu from '@/common/locales/ru.js'; // 引入并使用vue-i18n import VueI18n from 'vue-i18n' @@ -26,13 +27,14 @@ Vue.use(VueI18n) // 构造i18n对象 const i18n = new VueI18n({ // 默认语言,这里的local属性,对应message中的cn、en属性 - locale: 'cn', + locale: 'zh', // 引入语言文件 messages: { // 这里的属性名是任意的,您也可以把zh设置为cn等,只是后续切换语言时 // 要标识这里的语言属性,如:this.$i18n.locale = zh|en|cn|xxx - 'cn': Chinese, + 'zh': Chinese, 'en': English, + 'ru': Eyu, } }) App.mpType = 'app' diff --git a/manifest.json b/manifest.json index e870f41..dc8ab6b 100644 --- a/manifest.json +++ b/manifest.json @@ -23,7 +23,8 @@ "Push" : {}, "Share" : {}, "VideoPlayer" : {}, - "Maps" : {} + "Maps" : {}, + "Speech" : {} }, "distribute" : { "android" : { @@ -69,7 +70,15 @@ }, "sdkConfigs" : { "speech" : { - "ifly" : {} + "baidu" : { + "appid" : "117980829", + "apikey" : "dBy4AMe8Ii7ZHX8R072pFAfM", + "secretkey" : "2GrccBcltV15Cd1e3C3xy2CnQtZatVso" + }, + "ifly" : { + "appid" : "6fb000c3", + "apikey" : "eec37300f2e638b0bc3b91752be40c30" + } }, "maps" : {} }, diff --git a/pages.json b/pages.json index a33558b..4b090a1 100644 --- a/pages.json +++ b/pages.json @@ -122,6 +122,42 @@ "enablePullDownRefresh": false, "navigationStyle":"custom"// 去掉微信小程序顶部导航 } + }, + { + "path" : "feedback", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 + } + }, + { + "path" : "about", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 + } + }, + { + "path" : "logoff", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 + } + }, + { + "path" : "resetPwd", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 + } } ] } diff --git a/pages/customer/add.vue b/pages/customer/add.vue index 642040f..abf948e 100644 --- a/pages/customer/add.vue +++ b/pages/customer/add.vue @@ -3,9 +3,9 @@ - 客户称呼 * + 客户称呼 - + @@ -26,20 +26,27 @@ + + Email + + + + + 客户偏好 - - - + + + 客户等级 - - - + + + @@ -47,8 +54,8 @@ 国家地区 - - + + @@ -63,7 +70,7 @@ 详细情况 -