Handy_Cao 1 rok pred
rodič
commit
e55d28a43b

+ 2 - 1
oem/tss/config/appconfig.json

@@ -1,6 +1,6 @@
 {
   "appId": "com.muchinfo.tss",
-  "appName": "泰商所",
+  "appName": "app.name",
   "version": "1.0.0",
   "versionCode": "100000",
   "apiUrl": "http://192.168.31.204:8080/cfg?key=test_204",
@@ -8,6 +8,7 @@
   "modules": [
     "register"
   ],
+  "slogan": "app.title",
   "quotationPropertys": [
     "holdvolume"
   ]

+ 7 - 4
src/components/base/slider-verify/index.vue

@@ -4,6 +4,9 @@
 
 <script setup>
 import { ref, reactive, watch, nextTick } from 'vue'
+import { i18n } from "@/stores"
+
+const { t } = i18n.global
 
 const props = defineProps({
     // 是否开启服务端验证 
@@ -70,7 +73,7 @@ const props = defineProps({
     // 验证中提示
     testTip: {
         type: String,
-        default: '正在验证...'
+        default: i18n.global.t('slider.testTip')
     },
 
     // 滑块背景色颜色
@@ -82,7 +85,7 @@ const props = defineProps({
     // 滑块背景色颜色
     tipTxt: {
         type: String,
-        default: '向右滑动验证'
+        default: i18n.global.t('slider.tipTxt')
     },
 
     // 验证通过背景色
@@ -114,13 +117,13 @@ const props = defineProps({
     // 验证成功文字提示
     successTip: {
         type: String,
-        default: '验证通过'
+        default: i18n.global.t('slider.successTip')
     },
 
     // 验证失败文字提示
     failTip: {
         type: String,
-        default: '验证失败,请重试'
+        default: i18n.global.t('slider.failTip')
     },
 
     // 文本大小

+ 1 - 1
src/packages/pc/components/layouts/header/index.vue

@@ -2,7 +2,7 @@
     <div class="app-header">
         <div class="app-header__left">
             <slot name="left"></slot>
-            <span>{{ globalStore.getSystemInfo('appName') }}</span>
+            <span>{{ t(globalStore.getSystemInfo('appName')) }}</span>
         </div>
         <div class="app-header__right">
             <slot name="right"></slot>

+ 2 - 2
src/packages/pc/views/auth/components/layout/index.vue

@@ -2,7 +2,7 @@
   <div class="sign-layout">
     <div class="sign-layout__wrapper">
       <div class="left">
-        <pre>{{ slogan }}</pre>
+        <pre>{{ i18n.global.t(slogan) }}</pre>
       </div>
       <div class="right">
         <div class="right-logo">
@@ -22,7 +22,7 @@
 
 <script lang="ts" setup>
 import { shallowRef } from 'vue'
-import { useGlobalStore } from '@/stores'
+import { useGlobalStore, i18n } from '@/stores'
 
 defineProps({
   title: {