Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
poster
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘续中
poster
Commits
dfc7ea4a
Commit
dfc7ea4a
authored
Jun 24, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
6795181a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
12 deletions
+35
-12
package-lock.json
package-lock.json
+7
-7
package.json
package.json
+1
-1
Header.vue
src/components/Header.vue
+11
-2
Index.vue
src/views/Index.vue
+11
-2
User.vue
src/views/User.vue
+5
-0
No files found.
package-lock.json
View file @
dfc7ea4a
...
...
@@ -8,7 +8,7 @@
"name"
:
"AONET"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"aonweb"
:
"^1.0.
3
"
,
"aonweb"
:
"^1.0.
5
"
,
"aos"
:
"^2.3.4"
,
"axios"
:
"^1.6.8"
,
"element-plus"
:
"^2.7.5"
,
...
...
@@ -1854,9 +1854,9 @@
}
},
"node_modules/aonweb"
:
{
"version"
:
"1.0.
3
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
3
.tgz"
,
"integrity"
:
"sha512-
TkYYhNpaqw53mrN+bTKmBcfIEf2kLt4pbRKPRb0izCj5qkJc1k1OUGCLtGwYjGNmFC3JaaMYesvRCgRz6dv/HQ
=="
,
"version"
:
"1.0.
5
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
5
.tgz"
,
"integrity"
:
"sha512-
5J+2C87lImVNqRWjl7bsbjteK9KQdZGwwOK83fLzi4IQOCe+tJrvrn8oYjZRpSneya7xTxrqEHqjR4Oz8OhQOg
=="
,
"dependencies"
:
{
"@fingerprintjs/fingerprintjs"
:
"^4.4.0"
,
"bignumber.js"
:
"^9.1.2"
,
...
...
@@ -5672,9 +5672,9 @@
}
},
"aonweb"
:
{
"version"
:
"1.0.
3
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
3
.tgz"
,
"integrity"
:
"sha512-
TkYYhNpaqw53mrN+bTKmBcfIEf2kLt4pbRKPRb0izCj5qkJc1k1OUGCLtGwYjGNmFC3JaaMYesvRCgRz6dv/HQ
=="
,
"version"
:
"1.0.
5
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
5
.tgz"
,
"integrity"
:
"sha512-
5J+2C87lImVNqRWjl7bsbjteK9KQdZGwwOK83fLzi4IQOCe+tJrvrn8oYjZRpSneya7xTxrqEHqjR4Oz8OhQOg
=="
,
"requires"
:
{
"@fingerprintjs/fingerprintjs"
:
"^4.4.0"
,
"bignumber.js"
:
"^9.1.2"
,
...
...
package.json
View file @
dfc7ea4a
...
...
@@ -11,7 +11,7 @@
"type-check"
:
"vue-tsc --build --force"
},
"dependencies"
:
{
"
aonweb
"
:
"
^1.0.
3
"
,
"
aonweb
"
:
"
^1.0.
5
"
,
"
aos
"
:
"
^2.3.4
"
,
"
axios
"
:
"
^1.6.8
"
,
"
element-plus
"
:
"
^2.7.5
"
,
...
...
src/components/Header.vue
View file @
dfc7ea4a
...
...
@@ -24,6 +24,8 @@ import { useRouter, useRoute } from 'vue-router'
import
{
User
}
from
'
aonweb
'
import
bus
from
'
../eventBus.js
'
;
import
{
showToast
,
showLoadingToast
,
closeToast
}
from
'
vant
'
;
const
router
=
useRouter
()
const
route
=
useRoute
()
...
...
@@ -58,15 +60,22 @@ const balance = async () => {
try
{
let
user
=
new
User
()
let
result
=
await
user
.
balance
()
console
.
log
(
"
Header balance
"
,
result
)
//
console.log("Header balance ", result)
if
(
result
&&
result
.
_balances
&&
result
.
_balances
.
length
)
{
let
temp
=
result
.
_balances
[
0
]
balanceValue
.
value
=
temp
/
1000000000000000000
n
}
console
.
log
(
"
Header balanceValue.value
"
,
balanceValue
.
value
)
//
console.log("Header balanceValue.value ", balanceValue.value)
localStorage
.
setItem
(
"
aon_balance
"
,
balanceValue
.
value
)
}
catch
(
error
)
{
console
.
log
(
error
,
"
balance error
"
)
// if (error && typeof error == 'string'){
// showToast(error);
// } else {
// showToast(error.message);
// }
}
finally
{
closeToast
();
}
};
...
...
src/views/Index.vue
View file @
dfc7ea4a
...
...
@@ -214,7 +214,12 @@ const formSubmit = async () => {
}
}
catch
(
error
)
{
showLoading
.
value
=
false
showToast
(
'
AI processing failed
'
)
// showToast('AI processing failed')
if
(
error
&&
typeof
error
==
'
string
'
){
showToast
(
error
);
}
else
{
showToast
(
error
.
message
);
}
}
}
...
...
@@ -262,7 +267,11 @@ async function login() {
}
bus
.
emit
(
'
get_balance
'
,
"
login
"
);
}
catch
(
error
)
{
if
(
error
&&
typeof
error
==
'
string
'
){
showToast
(
error
);
}
else
{
showToast
(
error
.
message
);
}
}
finally
{
closeToast
();
}
...
...
src/views/User.vue
View file @
dfc7ea4a
...
...
@@ -96,6 +96,11 @@ async function getAccount() {
}
}
catch
(
error
)
{
console
.
log
(
error
,
"
getAccount error
"
)
if
(
error
&&
typeof
error
==
'
string
'
){
showToast
(
error
);
}
else
{
showToast
(
error
.
message
);
}
}
finally
{
closeToast
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment