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
13949b07
Commit
13949b07
authored
Jul 26, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
e3f025e1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
CollectionCard.vue
src/components/CollectionCard.vue
+1
-2
nftService.ts
src/service/nftService/nftService.ts
+10
-3
form.vue
src/view/NFT/Create/form.vue
+5
-1
index.vue
src/view/NFT/Detail/index.vue
+0
-0
No files found.
src/components/CollectionCard.vue
View file @
13949b07
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"
"
>
>
<div
class=
"left w-4/12 object-cover rounded-md"
>
<div
class=
"left w-4/12 object-cover rounded-md"
>
<img
src=
"/img/cover.png
"
class=
"rounded-md"
/>
<img
:src=
"colletionData.cover?colletionData.cover:'/img/cover.png'
"
class=
"rounded-md"
/>
</div>
</div>
<div
class=
"right w-8/12"
>
<div
class=
"right w-8/12"
>
<div
class=
"w-full px-4"
>
<div
class=
"w-full px-4"
>
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
{{
colletionData
.
nftId
}}
{{
colletionData
.
nftId
}}
</p>
</p>
</div>
</div>
<div
class=
"flex flex-wrap w-full text-sm mt-3"
>
<div
class=
"flex flex-wrap w-full text-sm mt-3"
>
<div
class=
"text-font-dark-blue"
>
题材
</div>
<div
class=
"text-font-dark-blue"
>
题材
</div>
<div
class=
"flex-1 pl-3 flex gap-x-2"
v-for=
'(i,index) in getThemeList'
:key=
"index"
>
<div
class=
"flex-1 pl-3 flex gap-x-2"
v-for=
'(i,index) in getThemeList'
:key=
"index"
>
...
...
src/service/nftService/nftService.ts
View file @
13949b07
...
@@ -58,7 +58,8 @@ export class NFTService extends Service {
...
@@ -58,7 +58,8 @@ export class NFTService extends Service {
applyOfficialNft
:{
applyOfficialNft
:{
path
:
'/commemorate/nft/receive'
,
path
:
'/commemorate/nft/receive'
,
dataType
:
'application/x-www-form-urlencoded'
dataType
:
'application/x-www-form-urlencoded'
}
},
}
}
constructor
()
{
constructor
()
{
super
()
super
()
...
@@ -327,7 +328,13 @@ export class NFTService extends Service {
...
@@ -327,7 +328,13 @@ export class NFTService extends Service {
/**
/**
* 申请领取官方活动NFT
* 申请领取官方活动NFT
*/
*/
async
applyOfficialNft
(){
async
applyOfficialNft
(
id
:
number
){
return
await
this
.
service
.
post
(
this
.
router
.
applyOfficialNft
.
path
,{},{
headers
:
{
Authorization
:
this
.
getAuth
(),
'Content-Type'
:
this
.
router
.
officialNFTDetail
.
dataType
,
},
params
:{
id
}
})
}
}
}
}
src/view/NFT/Create/form.vue
View file @
13949b07
...
@@ -486,7 +486,8 @@ export default Vue.extend({
...
@@ -486,7 +486,8 @@ export default Vue.extend({
synopsis
:
this
.
createNFT
.
value_des
,
synopsis
:
this
.
createNFT
.
value_des
,
theme
:
this
.
pickedList
.
map
((
i
:
any
)
=>
i
.
text
as
string
).
toString
(),
theme
:
this
.
pickedList
.
map
((
i
:
any
)
=>
i
.
text
as
string
).
toString
(),
}
as
iSaveData
;
}
as
iSaveData
;
console
.
log
(
this
.
createNFT
.
archives
);
if
(
this
.
createNFT
.
archives
===
0
)
{
if
(
this
.
createNFT
.
archives
===
0
)
{
data
=
{
data
=
{
...
data
,
...
data
,
...
@@ -496,6 +497,7 @@ export default Vue.extend({
...
@@ -496,6 +497,7 @@ export default Vue.extend({
}
else
if
(
this
.
createNFT
.
archives
===
1
)
{
}
else
if
(
this
.
createNFT
.
archives
===
1
)
{
//需要加密存档
//需要加密存档
const
fileUrl
=
await
this
.
uploadFileToOss
(
this
.
file
);
const
fileUrl
=
await
this
.
uploadFileToOss
(
this
.
file
);
console
.
log
(
fileUrl
,
'fileUrl'
);
data
=
{
data
=
{
...
data
,
...
data
,
isArchives
:
this
.
createNFT
.
archives
,
isArchives
:
this
.
createNFT
.
archives
,
...
@@ -513,6 +515,8 @@ export default Vue.extend({
...
@@ -513,6 +515,8 @@ export default Vue.extend({
}
}
}
}
console
.
log
(
data
);
const
{
id
,
nftId
,
wallet
,
fileHash
}
=
const
{
id
,
nftId
,
wallet
,
fileHash
}
=
await
this
.
$service
.
nftService
.
save
(
data
);
await
this
.
$service
.
nftService
.
save
(
data
);
this
.
publish
.
fileHash
=
fileHash
;
this
.
publish
.
fileHash
=
fileHash
;
...
...
src/view/NFT/Detail/index.vue
View file @
13949b07
This diff is collapsed.
Click to expand it.
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