Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
NFT
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
NFT
Commits
8ee18287
Commit
8ee18287
authored
Jul 15, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
42937986
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
userService.ts
src/service/userService.ts
+13
-0
index.vue
src/view/NFT/Collection/index.vue
+1
-2
Colletion.vue
src/view/Setting/Colletion.vue
+0
-0
index.vue
src/view/User/index.vue
+1
-1
No files found.
src/service/userService.ts
View file @
8ee18287
import
{
Service
}
from
'./Service'
import
{
LoginDto
}
from
'@/types/Dto'
import
{
token
}
from
'@/util/userInfoUtils'
export
class
UserService
extends
Service
{
router
=
{
sendCode
:{
path
:
'/verificationCode/send/sms'
,
dataType
:
'application/x-www-form-urlencoded'
},
login
:{
path
:
'/user/login'
},
isRegisterd
:{
path
:
'/user/isRegister'
,
dataType
:
'application/x-www-form-urlencoded'
},
isPwdSet
:{
path
:
'/user/isSetPassword'
,
dataType
:
'application/x-www-form-urlencoded'
},
userInfo
:{
path
:
'/user/detail'
,
dataType
:
'application/x-www-form-urlencoded'
}
}
constructor
(){
super
()
}
private
getAuth
(){
return
'Bearer '
+
token
.
getToken
()
}
/**
* 获取验证码
* @param phone
...
...
@@ -50,6 +55,14 @@ export class UserService extends Service {
return
await
this
.
service
.
get
(
`
${
this
.
router
.
isPwdSet
.
path
}
/
${
account
}
`
)
}
async
getUserInfo
(){
return
await
this
.
service
.
get
(
this
.
router
.
userInfo
.
path
,{
headers
:{
Authorization
:
this
.
getAuth
(),
"Content-Type"
:
this
.
router
.
userInfo
.
dataType
}
})
}
}
...
...
src/view/NFT/Collection/index.vue
View file @
8ee18287
...
...
@@ -2,8 +2,7 @@
<Layout-Child>
<div
class=
'w-11/12 mx-auto mt-6'
>
<div
class=
'collection-list'
>
<div
v-if=
"collectionList.length>1"
>
<div
v-if=
"collectionList.length>0"
>
<app-collectionCard
:colletionData=
'i'
v-for=
"i in collectionList"
:key=
"i.id"
class=
'mt-3'
@
click
.
native=
"goDetail(i.id)"
></app-collectionCard>
</div>
<div
v-else
class=
"mt-12"
>
...
...
src/view/Setting/Colletion.vue
deleted
100644 → 0
View file @
42937986
src/view/User/index.vue
View file @
8ee18287
...
...
@@ -28,7 +28,7 @@ export default Vue.extend({
},
methods
:{
toggleDialog
(){
this
.
$dialog
.
alert
({
this
.
$dialog
.
confirm
({
message
:
'确定要退出登录吗'
,
}).
then
(()
=>
{
localStorage
.
clear
();
...
...
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