Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Arena Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Ygopro Arena Web
Commits
5d9214e4
Commit
5d9214e4
authored
Feb 20, 2024
by
Tang Xinwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add world boss genesis battle info
更新 深渊代码战绩到玩家信息界面
parent
1901ebc7
Pipeline
#31249
passed with stage
in 1 minute and 49 seconds
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
1 deletion
+54
-1
src/components/Profile.vue
src/components/Profile.vue
+26
-0
src/components/Userinfo.vue
src/components/Userinfo.vue
+28
-1
No files found.
src/components/Profile.vue
View file @
5d9214e4
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<!--
<p
class=
"text-muted"
v-if=
"showActivity"
style=
"font-size:20px;"
>
{{
activity
.
name
}}
首胜:
<!--
<p
class=
"text-muted"
v-if=
"showActivity"
style=
"font-size:20px;"
>
{{
activity
.
name
}}
首胜:
{{
activity
.
total
}}
/
{{
activity
.
max
}}
</p>
-->
{{
activity
.
total
}}
/
{{
activity
.
max
}}
</p>
-->
<p
class=
"text-muted"
style=
"font-size:20px;"
>
VS发牌姬:胜
{{
vsDealerStats
.
win
}}
/负
{{
vsDealerStats
.
lose
}}
/总
{{
vsDealerStats
.
total
}}
</p>
<p
class=
"text-muted"
style=
"font-size:20px;"
>
VS发牌姬:胜
{{
vsDealerStats
.
win
}}
/负
{{
vsDealerStats
.
lose
}}
/总
{{
vsDealerStats
.
total
}}
</p>
<p
class=
"text-muted"
style=
"font-size:20px;"
>
VS深渊代码:胜
{{
vsGenesisStats
.
win
}}
/负
{{
vsGenesisStats
.
lose
}}
/总
{{
vsGenesisStats
.
total
}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -197,6 +198,11 @@ export default {
...
@@ -197,6 +198,11 @@ export default {
win
:
0
,
win
:
0
,
lose
:
0
,
lose
:
0
,
total
:
0
total
:
0
},
vsGenesisStats
:
{
//VS深渊代码战绩
win
:
0
,
lose
:
0
,
total
:
0
}
}
}
}
},
},
...
@@ -242,6 +248,10 @@ export default {
...
@@ -242,6 +248,10 @@ export default {
this
.
vsDealerStats
=
vsDealerStats
;
this
.
vsDealerStats
=
vsDealerStats
;
});
});
this
.
fetchVsGenesisStats
().
then
(
vsGenesisStats
=>
{
this
.
vsGenesisStats
=
vsGenesisStats
;
});
API
.
getUserInfo
(
opt
).
then
((
res
)
=>
{
API
.
getUserInfo
(
opt
).
then
((
res
)
=>
{
this
.
user_info
=
res
.
data
this
.
user_info
=
res
.
data
// console.log('%c ---------------------src' + '\\' + 'components' + '\\' + 'Profile.vue---------------------%c:219', 'background:#ed162b', 'background:#7d382d',
// console.log('%c ---------------------src' + '\\' + 'components' + '\\' + 'Profile.vue---------------------%c:219', 'background:#ed162b', 'background:#7d382d',
...
@@ -268,6 +278,22 @@ export default {
...
@@ -268,6 +278,22 @@ export default {
}
}
},
},
// VS深渊代码成绩
async
fetchVsGenesisStats
()
{
try
{
const
apiUrl
=
'
https://sapi.moecube.com:444/dealer2/api/user
'
;
const
url
=
`
${
apiUrl
}
/
${
this
.
user
.
username
}
`
;
console
.
log
(
'
深渊代码API
'
,
url
);
const
response
=
await
Vue
.
http
.
get
(
url
);
const
jsonData
=
await
response
.
json
();
console
.
log
(
'
深渊代码response
'
,
jsonData
.
data
);
return
jsonData
.
data
;
}
catch
(
error
)
{
console
.
error
(
'
Error fetching user stats:
'
,
error
);
throw
error
;
}
},
exchangeUserInfo
(
info
)
{
exchangeUserInfo
(
info
)
{
let
userName
=
this
.
user
.
username
let
userName
=
this
.
user
.
username
...
...
src/components/Userinfo.vue
View file @
5d9214e4
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
<p
class=
"text-muted"
style=
"font-size:20px;"
>
今日首胜:
{{
activity
.
today
}}
/1
</p>
<p
class=
"text-muted"
style=
"font-size:20px;"
>
今日首胜:
{{
activity
.
today
}}
/1
</p>
<!--
<p
class=
"text-muted"
v-if=
"showActivity"
style=
"font-size:20px;"
>
{{
activity
.
name
}}
首胜:
{{
activity
.
total
}}
/
{{
activity
.
max
}}
</p>
-->
<!--
<p
class=
"text-muted"
v-if=
"showActivity"
style=
"font-size:20px;"
>
{{
activity
.
name
}}
首胜:
{{
activity
.
total
}}
/
{{
activity
.
max
}}
</p>
-->
<p
class=
"text-muted"
style=
"font-size:20px;"
>
VS发牌姬: 胜
{{
vsDealerStats
.
win
}}
/负
{{
vsDealerStats
.
lose
}}
/总
{{
vsDealerStats
.
total
}}
</p>
<p
class=
"text-muted"
style=
"font-size:20px;"
>
VS发牌姬: 胜
{{
vsDealerStats
.
win
}}
/负
{{
vsDealerStats
.
lose
}}
/总
{{
vsDealerStats
.
total
}}
</p>
<p
class=
"text-muted"
style=
"font-size:20px;"
>
VS深渊代码:胜
{{
vsGenesisStats
.
win
}}
/负
{{
vsGenesisStats
.
lose
}}
/总
{{
vsGenesisStats
.
total
}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -206,6 +207,11 @@
...
@@ -206,6 +207,11 @@
win
:
0
,
win
:
0
,
lose
:
0
,
lose
:
0
,
total
:
0
total
:
0
},
vsGenesisStats
:
{
//VS深渊代码战绩
win
:
0
,
lose
:
0
,
total
:
0
}
}
}
}
},
},
...
@@ -228,6 +234,10 @@
...
@@ -228,6 +234,10 @@
this
.
vsDealerStats
=
vsDealerStats
;
this
.
vsDealerStats
=
vsDealerStats
;
});
});
this
.
fetchVsGenesisStats
().
then
(
vsGenesisStats
=>
{
this
.
vsGenesisStats
=
vsGenesisStats
;
});
},
},
watch
:
{
watch
:
{
...
@@ -309,6 +319,23 @@
...
@@ -309,6 +319,23 @@
}
}
},
},
// VS深渊代码成绩
async
fetchVsGenesisStats
()
{
const
username
=
querystring
.
parse
(
location
.
hash
.
slice
(
11
)).
username
try
{
const
apiUrl
=
'
https://sapi.moecube.com:444/dealer2/api/user
'
;
const
url
=
`
${
apiUrl
}
/
${
username
}
`
;
console
.
log
(
'
深渊代码API
'
,
url
);
const
response
=
await
Vue
.
http
.
get
(
url
);
const
jsonData
=
await
response
.
json
();
console
.
log
(
'
深渊代码response
'
,
jsonData
.
data
);
return
jsonData
.
data
;
}
catch
(
error
)
{
console
.
error
(
'
Error fetching user stats:
'
,
error
);
throw
error
;
}
},
renderPage
:
function
()
{
renderPage
:
function
()
{
if
(
rankTable
)
{
if
(
rankTable
)
{
rankTable
.
destroy
();
rankTable
.
destroy
();
...
...
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