Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
folacin-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ynby
folacin-front
Commits
5d2a9635
Commit
5d2a9635
authored
Feb 21, 2025
by
罗成兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取用户信息
parent
b284720f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
22 deletions
+25
-22
index.js
folacin-app/src/router/index.js
+2
-2
canvas.vue
folacin-app/src/views/canvas/canvas.vue
+1
-1
debugInfo.vue
folacin-app/src/views/index/debugInfo.vue
+22
-19
No files found.
folacin-app/src/router/index.js
View file @
5d2a9635
...
...
@@ -12,8 +12,8 @@ const routes = [
{
path
:
'/provideDetail'
,
name
:
'provideDetail'
,
component
:
()
=>
import
(
'../views/provideDetail/provideDetail.vue'
)},
{
path
:
'/receiveDetail'
,
name
:
'receiveDetail'
,
component
:
()
=>
import
(
'../views/receiveDetail/receiveDetail.vue'
)},
{
path
:
'/canvas'
,
name
:
'canvas'
,
component
:
()
=>
import
(
'../views/canvas/canvas.vue'
)},
{
path
:
'/questionAnswer'
,
name
:
'
canvas
'
,
component
:
()
=>
import
(
'../views/questionAnswer/questionAnswer.vue'
)},
{
path
:
'/debugInfo'
,
name
:
'
canvas
'
,
component
:
()
=>
import
(
'../views/index/debugInfo.vue'
)},
{
path
:
'/questionAnswer'
,
name
:
'
questionAnswer
'
,
component
:
()
=>
import
(
'../views/questionAnswer/questionAnswer.vue'
)},
{
path
:
'/debugInfo'
,
name
:
'
debugInfo
'
,
component
:
()
=>
import
(
'../views/index/debugInfo.vue'
)},
{
path
:
'/test1'
,
name
:
'test1'
,
component
:
()
=>
import
(
'../views/test/test1.vue'
)},
]
...
...
folacin-app/src/views/canvas/canvas.vue
View file @
5d2a9635
...
...
@@ -6,7 +6,7 @@
</
template
>
</van-nav-bar>
<div
class=
"height_44"
></div>
<vue-esign
ref=
"esign"
:isCrop=
"false"
/>
<vue-esign
ref=
"esign"
:isCrop=
"false"
:width=
"400"
:height=
"700"
/>
<div
class=
"btn"
>
<div
class=
"btn_right"
@
click=
"handleReset"
>
<img
src=
"../../assets/images/abrase.png"
alt=
""
>
...
...
folacin-app/src/views/index/debugInfo.vue
View file @
5d2a9635
...
...
@@ -7,21 +7,19 @@
</div>
</
template
>
</van-nav-bar>
<br>
<br>
<van-divider
/>
<van-list
v-model:loading=
"loading"
:finished=
"finished"
finished-text=
""
<br>
<van-divider/>
>
<van-cell
:title=
"'姓名: '+userInfo.nickName"
/>
<van-cell
:title=
"'性别: '+(userInfo.nickName==1?'男':'女')"
/>
<van-cell
:title=
"'账号: '+userInfo.account"
/>
<van-cell
:title=
"'用户ID: '+userInfo.userId"
/>
<van-cell
:title=
"'Token: '+userInfo.token"
/>
<van-cell
:title=
"'接入地址: '+userInfo.domain"
/>
</van-list>
<van-form
label-align=
"right"
label-width=
"70"
>
<van-cell-group>
<van-field
v-model=
"userInfo.account"
readonly
autosize
rows=
"1"
label=
"账号:"
type=
"textarea"
/>
<van-field
v-model=
"userInfo.nickName"
readonly
autosize
rows=
"1"
label=
"姓名:"
type=
"textarea"
/>
<van-field
v-model=
"userInfo.genderName"
readonly
autosize
rows=
"1"
label=
"性别:"
type=
"textarea"
/>
<van-field
v-model=
"userInfo.userId"
readonly
autosize
rows=
"1"
label=
"用户ID:"
type=
"textarea"
/>
<van-field
v-model=
"userInfo.token"
readonly
autosize
rows=
"1"
label=
"Token:"
type=
"textarea"
/>
<van-field
v-model=
"userInfo.domain"
readonly
autosize
rows=
"1"
label=
"接入地址:"
type=
"textarea"
/>
</van-cell-group>
</van-form>
<br>
<van-button
style=
"margin-left: 10%;width: 80%"
round
type=
"primary"
color=
"#1989fa"
@
click=
"copyUserInfo()"
>
复制
...
...
@@ -38,13 +36,18 @@ export default {
components
:
{},
data
()
{
return
{
loading
:
true
,
finished
:
true
,
userInfo
:
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
))
||
{},
userInfo
:
{},
}
},
created
()
{
let
userInfo
=
sessionStorage
.
getItem
(
"userInfo"
)
if
(
userInfo
)
{
this
.
userInfo
=
JSON
.
parse
(
userInfo
)
this
.
userInfo
.
genderName
=
(
this
.
userInfo
.
gender
==
null
?
'未知'
:
this
.
userInfo
.
gender
==
1
?
'男'
:
'女'
)
}
},
methods
:
{
copyUserInfo
(){
copyUserInfo
()
{
let
textarea
=
document
.
createElement
(
'textarea'
);
textarea
.
style
.
position
=
'fixed'
;
textarea
.
style
.
opacity
=
0
;
...
...
@@ -55,7 +58,7 @@ export default {
document
.
body
.
removeChild
(
textarea
);
this
.
$toast
.
tips
(
'已复制到剪贴板!'
);
},
handleBack
(){
handleBack
()
{
this
.
$router
.
go
(
-
1
);
}
}
...
...
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