Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
word_tree_config
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
template admin
word_tree_config
Commits
aadcd55e
Commit
aadcd55e
authored
Oct 26, 2024
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
d79f162b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
index.html
play/index.html
+1
-1
index.js
play/index.js
+2
-3
No files found.
play/index.html
View file @
aadcd55e
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
</div>
</div>
</template>
</template>
<template
v-else
>
<template
v-else
>
<el-input
v-model=
"searchQuery"
placeholder=
"输入
UID
"
class=
"search-input"
>
<el-input
v-model=
"searchQuery"
placeholder=
"输入
用户标识
"
class=
"search-input"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"searchWords"
>
查询
</el-button>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"searchWords"
>
查询
</el-button>
</el-input>
</el-input>
</template>
</template>
...
...
play/index.js
View file @
aadcd55e
...
@@ -146,13 +146,12 @@ new Vue({
...
@@ -146,13 +146,12 @@ new Vue({
}
}
},
},
searchWords
()
{
searchWords
()
{
const
encodedUid
=
btoa
(
this
.
searchQuery
);
axios
.
get
(
`https://api.iplayabc.com/ciba/api/v1/word/reviews?daylimit=20&totallimit=100&uid=
${
this
.
searchQuery
}
`
)
axios
.
get
(
`https://api.iplayabc.com/ciba/api/v1/word/reviews?daylimit=20&totallimit=100&uid=
${
encodedUid
}
`
)
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
200
)
{
if
(
response
.
data
.
code
===
200
)
{
this
.
currentRows
=
response
.
data
.
rows
;
this
.
currentRows
=
response
.
data
.
rows
;
this
.
showControlPanel
=
false
;
this
.
showControlPanel
=
false
;
this
.
breadcrumb
=
[{
text_en
:
'
Search Results
'
}];
this
.
breadcrumb
=
[{
text_en
:
'
记忆之塔
'
}];
}
else
{
}
else
{
this
.
$message
.
error
(
'
查询失败
'
);
this
.
$message
.
error
(
'
查询失败
'
);
}
}
...
...
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