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
d45792e8
Commit
d45792e8
authored
Jul 23, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'm321ain' of gitlab.33.cn:HF_web/NFT
parents
05f79193
0da74866
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
9 deletions
+41
-9
form.vue
src/view/NFT/Create/form.vue
+5
-4
upload.vue
src/view/NFT/Create/upload.vue
+1
-1
index.vue
src/view/NFT/Mynft/index.vue
+35
-4
No files found.
src/view/NFT/Create/form.vue
View file @
d45792e8
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
@
input=
"textareaChange"
@
input=
"textareaChange"
></textarea>
></textarea>
</div>
</div>
<div
class=
"fixed bottom-
0
w-full left-0 z-30"
>
<div
class=
"fixed bottom-
3
w-full left-0 z-30"
>
<app-btn
<app-btn
text=
"下一步"
text=
"下一步"
class=
"w-11/12 mx-auto text-font-white rounded-2xl bg-font-blue"
class=
"w-11/12 mx-auto text-font-white rounded-2xl bg-font-blue"
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
class=
"text-font-white my-3"
class=
"text-font-white my-3"
@
cellOnChange=
"(v) => (createNFT.grant = v)"
@
cellOnChange=
"(v) => (createNFT.grant = v)"
></app-cell>
></app-cell>
<div
class=
"fixed bottom-
0
w-full left-0 flex flex-row z-30"
>
<div
class=
"fixed bottom-
3
w-full left-0 flex flex-row z-30"
>
<app-btn
<app-btn
text=
"上一步"
text=
"上一步"
class=
"w-5/12 mx-auto text-font-white rounded-2xl bg-font-blue"
class=
"w-5/12 mx-auto text-font-white rounded-2xl bg-font-blue"
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
}
}
"
"
>
</app-cell>
>
</app-cell>
<div
class=
"fixed bottom-
0
w-full left-0 flex flex-row z-30"
>
<div
class=
"fixed bottom-
3
w-full left-0 flex flex-row z-30"
>
<app-btn
<app-btn
text=
"上一步"
text=
"上一步"
class=
"w-5/12 mx-auto text-font-white rounded-2xl bg-font-blue"
class=
"w-5/12 mx-auto text-font-white rounded-2xl bg-font-blue"
...
@@ -334,7 +334,8 @@ export default Vue.extend({
...
@@ -334,7 +334,8 @@ export default Vue.extend({
fileHash
:
""
,
fileHash
:
""
,
fileName
:
""
,
fileName
:
""
,
file
:
undefined
,
file
:
undefined
,
coverName
:
''
coverName
:
''
,
coverFile
:
undefined
});
});
},
},
computed
:
{
computed
:
{
...
...
src/view/NFT/Create/upload.vue
View file @
d45792e8
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
</div>
</div>
<div
class=
"flex justify-between fixed bottom-
0
left-0 right-0"
>
<div
class=
"flex justify-between fixed bottom-
3
left-0 right-0"
>
<app-btn
<app-btn
text=
"取消"
text=
"取消"
class=
"w-5/12 mx-auto text-font-white rounded-2xl bg-font-blue"
class=
"w-5/12 mx-auto text-font-white rounded-2xl bg-font-blue"
...
...
src/view/NFT/Mynft/index.vue
View file @
d45792e8
<
template
>
<
template
>
<Layout-Child>
<Layout-Child>
<van-action-sheet
v-model=
"showAction"
title=
" "
:closeable=
'false'
>
<div
class=
"content bg-font-light-black py-10 mt-8"
>
<div
class=
" w-11/12 mx-auto flex flex-col justify-center items-center"
>
<div>
NFT接受地址
</div>
<div
class=
" p-8 "
>
<img
:src=
"qrcode"
class=
' w-48'
>
</div>
<div
class=
'text-xs pt-8'
>
{{
getUserInfo
.
wallet
}}
</div>
<div>
<app-btn
text=
'复制地址'
class=
" bg-font-blue"
@
click
.
native=
"copyAddr(getUserInfo.wallet)"
></app-btn>
</div>
</div>
</div>
</van-action-sheet>
<div
class=
"nft-cardBox w-11/12 mx-auto mt-6"
>
<div
class=
"nft-cardBox w-11/12 mx-auto mt-6"
>
<div
<div
class=
"nft-card w-full bg-cardBG2 bg-cover bg-no-repeat text-font-white px-5 py-3 rounded-md"
class=
"nft-card w-full bg-cardBG2 bg-cover bg-no-repeat text-font-white px-5 py-3 rounded-md"
>
>
<div
class=
"w-full flex items-start justify-between mb-12"
>
<div
class=
"w-full flex items-start justify-between mb-12"
>
<div>
我的NFT(个)
</div>
<div>
我的NFT(个)
</div>
<div
>
<div
@
click=
'openAction'
>
<img
:src=
"qrcode"
class=
'w-14'
>
<img
:src=
"qrcode"
class=
'w-14'
>
</div>
</div>
</div>
</div>
...
@@ -30,8 +48,8 @@
...
@@ -30,8 +48,8 @@
:colletionData=
"i"
:colletionData=
"i"
@
click
.
native=
"goDetail(i.id)"
@
click
.
native=
"goDetail(i.id)"
></app-collectionCard>
></app-collectionCard>
<div
class=
'scroll-padding'
></div>
</div>
</div>
<div
v-else
class=
"mt-12"
>
<div
v-else
class=
"mt-12"
>
<van-empty
image=
"/img/empty.png"
description=
"没有找到更多内容"
/>
<van-empty
image=
"/img/empty.png"
description=
"没有找到更多内容"
/>
</div>
</div>
...
@@ -42,7 +60,9 @@
...
@@ -42,7 +60,9 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
import
Vue
from
"vue"
;
import
{
ActionSheet
}
from
'vant'
;
Vue
.
use
(
ActionSheet
);
export
default
Vue
.
extend
({
export
default
Vue
.
extend
({
data
()
{
data
()
{
return
{
return
{
...
@@ -51,7 +71,8 @@ export default Vue.extend({
...
@@ -51,7 +71,8 @@ export default Vue.extend({
currentCategory
:
1
,
currentCategory
:
1
,
balance
:
0
,
balance
:
0
,
qrcode
:
''
,
qrcode
:
''
,
srcData
:
''
as
any
srcData
:
''
as
any
,
showAction
:
false
,
};
};
},
},
async
created
()
{
async
created
()
{
...
@@ -59,7 +80,6 @@ export default Vue.extend({
...
@@ -59,7 +80,6 @@ export default Vue.extend({
},
},
async
mounted
()
{
async
mounted
()
{
let
data
=
await
this
.
$service
.
nftService
.
getMyList
();
let
data
=
await
this
.
$service
.
nftService
.
getMyList
();
this
.
qrcode
=
data
.
qrCode
;
this
.
qrcode
=
data
.
qrCode
;
console
.
log
(
this
.
qrcode
);
console
.
log
(
this
.
qrcode
);
...
@@ -85,6 +105,16 @@ export default Vue.extend({
...
@@ -85,6 +105,16 @@ export default Vue.extend({
});
});
},
},
openAction
(){
console
.
log
(
11
);
this
.
showAction
=
true
;
},
copyAddr
(
addr
:
any
){
console
.
log
(
addr
,
222
);
this
.
$util
.
cliboard
(
addr
);
this
.
$toast
(
"复制成功"
);
},
goDetail
(
id
:
any
)
{
goDetail
(
id
:
any
)
{
this
.
$router
.
push
({
name
:
"Nftdetail"
,
params
:
{
id
:
id
}
});
this
.
$router
.
push
({
name
:
"Nftdetail"
,
params
:
{
id
:
id
}
});
},
},
...
@@ -93,6 +123,7 @@ export default Vue.extend({
...
@@ -93,6 +123,7 @@ export default Vue.extend({
"Layout-Child"
:
()
=>
import
(
"@/layout/Child.vue"
),
"Layout-Child"
:
()
=>
import
(
"@/layout/Child.vue"
),
"app-scrollbar"
:
()
=>
import
(
"@/components/common/ScrollBar.vue"
),
"app-scrollbar"
:
()
=>
import
(
"@/components/common/ScrollBar.vue"
),
"app-collectionCard"
:
()
=>
import
(
"@/components/CollectionCard.vue"
),
"app-collectionCard"
:
()
=>
import
(
"@/components/CollectionCard.vue"
),
'app-btn'
:()
=>
import
(
'@/components/common/Btn.vue'
),
},
},
});
});
</
script
>
</
script
>
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