wkw hai 2 semanas
pai
achega
822d75f9b0

BIN=BIN
src/assets/img/icon.png


+ 2 - 1
src/stores/modules/systemStore.js

@@ -10,7 +10,8 @@ export const useSystemStore = defineStore("useSystemStore", {
     stsClientInfo: {},
     Administrator: {},
     DAPP_CACHE_KEY:[],
-    AddressList:[]
+    AddressList:[],
+    DeviceId:''
   }),
   persist: true,
   getters: {

+ 1 - 0
src/views/dapp/index.vue

@@ -230,6 +230,7 @@ const handleVisitDapp = (item) => {
     JSON.stringify({
       address: walletStore.account,
       privateKey: walletStore.privateKey,
+      oaid:systemStore.DeviceId
     })
   );
   openDapp(item.url, { dapp });

+ 3 - 0
src/views/wallet/index.vue

@@ -200,6 +200,7 @@
   import { openDapp } from "@/composables/dAppView";
   import { cryptoEncode } from "@/utils/crypto";
   import { useCopy } from "@/hooks/use-copy.js";
+  import { Device } from '@capacitor/device';
   useCopy();
 
   const router = useRouter();
@@ -356,6 +357,8 @@
   onMounted(async ()=>{
     initNetwork();
     gethotTokens();
+    const deviceId = await Device.getId();
+    systemStore.DeviceId = deviceId.identifier;
   })
   </script>
   

+ 2 - 1
src/views/wallet/proceeds/index.vue

@@ -47,8 +47,9 @@ const qrtext = walletStore.account;
                 width: 62px;
                 height: 62px;
                 border-radius: 12px;
-                background-color: gray;
                 margin-bottom: 10px;
+                background: url('../../../assets/img/icon.png') no-repeat;
+                background-size: 100% 100%;
             }
         }
         .qrcode{