Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meme_image
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
刘续中
meme_image
Commits
404f13df
Commit
404f13df
authored
Jun 25, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add telegram
parent
73e8ac1e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
14 deletions
+35
-14
index.html
index.html
+1
-0
package-lock.json
package-lock.json
+19
-7
package.json
package.json
+1
-1
Header.vue
src/components/Header.vue
+7
-6
Index.vue
src/views/Index.vue
+7
-0
No files found.
index.html
View file @
404f13df
...
...
@@ -5,6 +5,7 @@
<link
rel=
"icon"
href=
"/favicon.ico"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"
/>
<title>
AON 3D Clothing
</title>
<script
src=
"https://telegram.org/js/telegram-web-app.js"
></script>
</head>
<body>
<div
id=
"app"
></div>
...
...
package-lock.json
View file @
404f13df
...
...
@@ -8,7 +8,7 @@
"name"
:
"AONET"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"aonweb"
:
"^1.0.
7
"
,
"aonweb"
:
"^1.0.
8
"
,
"aos"
:
"^2.3.4"
,
"axios"
:
"^1.6.8"
,
"element-plus"
:
"^2.7.5"
,
...
...
@@ -1854,12 +1854,13 @@
}
},
"node_modules/aonweb"
:
{
"version"
:
"1.0.
7
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
7
.tgz"
,
"integrity"
:
"sha512-
sckRqHLBcFt5GHEEgxmZ8RUAJ+eZEZQsmMyuXCup5mHcBj46GHDHg9XcE44GgjJYSTk5MDC+5Xh/k3J/DuAZo
Q=="
,
"version"
:
"1.0.
8
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
8
.tgz"
,
"integrity"
:
"sha512-
xZkmdL74CcrVjNS+wx8bijL75SMPPB38sWk8MrIr856LgbMPQgBGyyvkI1KPP3V+/kqwK4g6HRajPBEw6VY9g
Q=="
,
"dependencies"
:
{
"@fingerprintjs/fingerprintjs"
:
"^4.4.0"
,
"bignumber.js"
:
"^9.1.2"
,
"crypto-js"
:
"^4.2.0"
,
"uuid"
:
"^9.0.1"
,
"web3"
:
"^4.8.0"
,
"web3-eth-accounts"
:
"^4.1.2"
...
...
@@ -2155,6 +2156,11 @@
"node"
:
">= 8"
}
},
"node_modules/crypto-js"
:
{
"version"
:
"4.2.0"
,
"resolved"
:
"https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz"
,
"integrity"
:
"sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
},
"node_modules/csstype"
:
{
"version"
:
"3.1.3"
,
"resolved"
:
"https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz"
,
...
...
@@ -5672,12 +5678,13 @@
}
},
"aonweb"
:
{
"version"
:
"1.0.
7
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
7
.tgz"
,
"integrity"
:
"sha512-
sckRqHLBcFt5GHEEgxmZ8RUAJ+eZEZQsmMyuXCup5mHcBj46GHDHg9XcE44GgjJYSTk5MDC+5Xh/k3J/DuAZo
Q=="
,
"version"
:
"1.0.
8
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-1.0.
8
.tgz"
,
"integrity"
:
"sha512-
xZkmdL74CcrVjNS+wx8bijL75SMPPB38sWk8MrIr856LgbMPQgBGyyvkI1KPP3V+/kqwK4g6HRajPBEw6VY9g
Q=="
,
"requires"
:
{
"@fingerprintjs/fingerprintjs"
:
"^4.4.0"
,
"bignumber.js"
:
"^9.1.2"
,
"crypto-js"
:
"^4.2.0"
,
"uuid"
:
"^9.0.1"
,
"web3"
:
"^4.8.0"
,
"web3-eth-accounts"
:
"^4.1.2"
...
...
@@ -5885,6 +5892,11 @@
"which"
:
"^2.0.1"
}
},
"crypto-js"
:
{
"version"
:
"4.2.0"
,
"resolved"
:
"https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz"
,
"integrity"
:
"sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
},
"csstype"
:
{
"version"
:
"3.1.3"
,
"resolved"
:
"https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz"
,
...
...
package.json
View file @
404f13df
...
...
@@ -11,7 +11,7 @@
"type-check"
:
"vue-tsc --build --force"
},
"dependencies"
:
{
"
aonweb
"
:
"
^1.0.
7
"
,
"
aonweb
"
:
"
^1.0.
8
"
,
"
aos
"
:
"
^2.3.4
"
,
"
axios
"
:
"
^1.6.8
"
,
"
element-plus
"
:
"
^2.7.5
"
,
...
...
src/components/Header.vue
View file @
404f13df
...
...
@@ -67,15 +67,16 @@ const balance = async () => {
}
// console.log("Header balanceValue.value ", balanceValue.value)
localStorage
.
setItem
(
"
aon_balance
"
,
balanceValue
.
value
)
closeToast
();
}
catch
(
error
)
{
console
.
log
(
error
,
"
balance error
"
)
//
if (error && typeof error == 'string'){
//
showToast(error);
//
} else {
//
showToast(error.message);
//
}
if
(
error
&&
typeof
error
==
'
string
'
){
showToast
(
error
);
}
else
{
showToast
(
error
.
message
);
}
}
finally
{
closeToast
();
}
};
...
...
src/views/Index.vue
View file @
404f13df
...
...
@@ -293,6 +293,13 @@ async function login() {
}
onMounted
(()
=>
{
let
fingerprint
=
localStorage
.
removeItem
(
"
aon_fingerprint
"
)
if
(
fingerprint
&&
window
.
Telegram
&&
window
.
Telegram
.
WebApp
&&
window
.
Telegram
.
WebApp
.
initData
)
{
console
.
log
(
"
onMounted
"
)
localStorage
.
removeItem
(
"
aon_logedUserId
"
)
localStorage
.
removeItem
(
"
aon_fingerprint
"
)
localStorage
.
removeItem
(
"
token
"
)
}
getTemplateList
()
login
()
})
...
...
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