wkw 2 هفته پیش
والد
کامیت
5d88c49aef

+ 3 - 3
capacitor.config.ts

@@ -1,7 +1,7 @@
 import { CapacitorConfig } from '@capacitor/cli';
-import { updateVersion } from './scripts/sync-version';
+// import { updateVersion } from './scripts/sync-version';
 
-updateVersion()
+// updateVersion()
 
 
 
@@ -46,7 +46,7 @@ const config: CapacitorConfig = {
 // 开发服务器配置(热更新用)
 if (process.env.DAPP_BUILD != "1") {
   config.server = {
-    url: 'http://192.168.0.59:5173',
+    url: 'http://192.168.0.70:5173',
     cleartext: true,          // 允许HTTP明文通信(仅开发环境)
     allowNavigation: ['*']    // 允许任意URL导航
   }

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
   "scripts": {
     "dev": "vite --host", 
     "s": "cross-env DAPP_BUILD=1 npx cap sync",
-    "a": "npx cap run android --live-reload --host=192.168.0.59 --port=5173",
+    "a": "npx cap run android --live-reload --host=192.168.0.70 --port=5173",
     "app": "npx cap run android --live-reload --host=192.168.0.70 --port=5173",
     "ios": "npx cap run ios --live-reload --host=192.168.0.59 --port=5173",
     "android": "npx cap add android && npx cap sync",

+ 9 - 0
src/i18n/zhHk/dapp.js

@@ -0,0 +1,9 @@
+export default {
+    Exploration:"探索",
+    EnterTheNameOrURLOfTheDApp:"輸入DApp名稱或網址",
+    All:"全部",
+    ApplicationsOnTheChain:"鏈上的應用",
+    HotRecommendation:"熱門推薦",
+    BrowsingHistory:"瀏覽記錄"
+};
+  

+ 7 - 1
src/i18n/zhHk/index.js

@@ -3,10 +3,16 @@ import global from './global'
 import router from './router'
 import form from './form'
 import settings from './settings'
+import dapp from './dapp'
+import me from './me'
+import transaction from './transaction'
 export default {
   form,
   login,
   global,
   router,
-  settings
+  settings,
+  dapp,
+  me,
+  transaction
 }

+ 3 - 0
src/i18n/zhHk/me.js

@@ -0,0 +1,3 @@
+export default {
+    
+};

+ 3 - 0
src/i18n/zhHk/transaction.js

@@ -0,0 +1,3 @@
+export default {
+
+};

+ 7 - 7
src/views/dapp/index.vue

@@ -1,11 +1,11 @@
 <template>
   <div class="container">
     <div class="head-bg" />
-    <div class="head-nav-bar">探索</div>
+    <div class="head-nav-bar">{{$t("dapp.Exploration")}}</div>
 
     <div class="search-box">
       <svg-icon class="search-icon" name="search" />
-      <van-field v-model="searchValue" placeholder="输入DApp名称或网址" />
+      <van-field v-model="searchValue" :placeholder="$t('dapp.EnterTheNameOrURLOfTheDApp')" />
     </div>
     <van-skeleton-image v-if="slidesList.length == 0" style="width: 90%;" class="swipe-box" />
     <van-swipe v-else class="swipe-box" :autoplay="3000" lazy-render>
@@ -54,7 +54,7 @@
       class="tabs-wrapper"
     >
       <!-- 全部 -->
-      <van-tab title="全部" name="ALL">
+      <van-tab :title="$t('dapp.All')" name="ALL">
         <template #default>
           <div class="tab-box">
             <div v-for="group in groupedList" :key="group.chain">
@@ -85,7 +85,7 @@
                     />
                   </div>
                   <div class="tab-box-ri-cont">
-                    {{ item.desc || item.chain + "链上的应用" }}
+                    {{ item.desc || item.chain + $t('dapp.ApplicationsOnTheChain') }}
                   </div>
                 </div>
               </div>
@@ -126,7 +126,7 @@
                   <svg-icon v-if="item.is_hot == 1" class="rm-icon" name="rm" />
                 </div>
                 <div class="tab-box-ri-cont">
-                  {{ item.desc || item.chain + "链上的应用" }}
+                  {{ item.desc || item.chain + $t('dapp.ApplicationsOnTheChain') }}
                 </div>
               </div>
             </div>
@@ -150,11 +150,11 @@ const walletStore = useWalletStore();
 const slidesList = ref([]);
 const tabsAppConfig = ref([
   {
-    title: "热门推荐",
+    title: $t('dapp.HotRecommendation'),
     children: [],
   },
   {
-    title: "浏览记录",
+    title: $t('dapp.BrowsingHistory'),
     children: [],
   },
 ]);

+ 2 - 0
src/views/wallet/transferDetail/index.vue

@@ -102,6 +102,7 @@
 </template>
 
 <script setup>
+// import { verifyFingerprint } from "@/components/Biometrics/biometrics.js"
 import { cryptoDecode } from "@/utils/crypto.js"
 import { useRouter,useRoute } from 'vue-router'
 import { useWalletStore } from "@/stores/modules/walletStore";
@@ -195,6 +196,7 @@ const changeList = (item) => {
 // 确认
 const confirm = async () => {
     showWallet.value = false;
+    // verifyFingerprint();
     showPassWord.value = true;
 };
 // 密码取消