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
75bb241b
Commit
75bb241b
authored
Aug 19, 2021
by
salitedfish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
4cb1c897
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
14 deletions
+27
-14
Cell.vue
src/components/common/Cell.vue
+1
-1
Child.vue
src/layout/Child.vue
+2
-2
delete.svg
src/view/NFT/Create/components/uploadFile/delete.svg
+0
-0
uploadFile.vue
src/view/NFT/Create/components/uploadFile/uploadFile.vue
+2
-2
form.vue
src/view/NFT/Create/form.vue
+3
-3
fileSwipe.vue
src/view/NFT/Detail/components/fileSwipe.vue
+1
-1
index.vue
src/view/NFT/Detail/index.vue
+18
-5
No files found.
src/components/common/Cell.vue
View file @
75bb241b
...
@@ -159,7 +159,7 @@ export default Vue.extend({
...
@@ -159,7 +159,7 @@ export default Vue.extend({
components
:
{
components
:
{
"app-icon"
:
()
=>
import
(
"@/components/common/Icon.vue"
),
"app-icon"
:
()
=>
import
(
"@/components/common/Icon.vue"
),
ActionSheet
,
ActionSheet
,
"app-tag"
:
()
=>
import
(
"@/components/common/Tag2.vue"
),
//
"app-tag": () => import("@/components/common/Tag2.vue"),
},
},
props
:
{
props
:
{
value
:
[
String
,
Number
],
value
:
[
String
,
Number
],
...
...
src/layout/Child.vue
View file @
75bb241b
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<div
class=
"code-confirm flex flex-row item-center content-center justify-center text-font-white h-full"
@
click
.
stop
>
<div
class=
"code-confirm flex flex-row item-center content-center justify-center text-font-white h-full"
@
click
.
stop
>
<div
class=
"self-center rounded-lg"
:class=
"!CodeData.onAction?' bg-white':''"
>
<div
class=
"self-center rounded-lg"
:class=
"!CodeData.onAction?' bg-white':''"
>
<div
class=
" flex flex-col text-zx-blue-light p-6 px-10"
v-if=
"!CodeData.onAction"
>
<div
class=
" flex flex-col text-zx-blue-light p-6 px-10"
v-if=
"!CodeData.onAction"
>
<div
class=
' text-zx-blue-light flex justify-between'
>
<div
class=
' text-zx-blue-light flex justify-between
items-center
'
>
<div
class=
"flex-1 text-center"
>
安全验证
</div>
<div
class=
"flex-1 text-center"
>
安全验证
</div>
<app-icon
name=
"icon-shanchu"
size=
"
8px"
@
click
.
native=
"closeOverlay
"
></app-icon>
<app-icon
name=
"icon-shanchu"
size=
"
10px"
@
click
.
native=
"closeOverlay"
color=
"#2b446c
"
></app-icon>
</div>
</div>
<div
class=
'text-xs my-1 mt-5'
>
验证码已发送到您绑定的手机
</div>
<div
class=
'text-xs my-1 mt-5'
>
验证码已发送到您绑定的手机
</div>
<input
type=
"number"
class=
" bg-zx-btn-disabled-bg text-zx-blue-light py-2 px-2 w-48 mb-3 rounded-md text-sm"
v-model=
"codeValue"
placeholder=
"请输入验证码"
>
<input
type=
"number"
class=
" bg-zx-btn-disabled-bg text-zx-blue-light py-2 px-2 w-48 mb-3 rounded-md text-sm"
v-model=
"codeValue"
placeholder=
"请输入验证码"
>
...
...
src/view/NFT/Create/components/upload
Img
/delete.svg
→
src/view/NFT/Create/components/upload
File
/delete.svg
View file @
75bb241b
File moved
src/view/NFT/Create/components/upload
Img
/uploadFile.vue
→
src/view/NFT/Create/components/upload
File
/uploadFile.vue
View file @
75bb241b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<img
:src=
"url"
alt=
""
class=
" w-full h-full rounded"
@
click=
"showImgPreview(index)"
v-if=
"uploadType == 'img'"
>
<img
:src=
"url"
alt=
""
class=
" w-full h-full rounded"
@
click=
"showImgPreview(index)"
v-if=
"uploadType == 'img'"
>
<div
class=
" h-8 text-center absolute bottom-1 left-1 right-1 bg-gray-500 opacity-80 text-white leading-8 text-xs"
v-if=
"index == 0 && uploadType == 'img'"
>
默认封面
</div>
<div
class=
" h-8 text-center absolute bottom-1 left-1 right-1 bg-gray-500 opacity-80 text-white leading-8 text-xs"
v-if=
"index == 0 && uploadType == 'img'"
>
默认封面
</div>
<video
:src=
"url"
controls=
"controls"
class=
"w-full h-full rounded"
v-if=
"uploadType == 'video'"
/>
<video
:src=
"url"
controls=
"controls"
class=
"w-full h-full rounded"
v-if=
"uploadType == 'video'"
/>
<app-icon
name=
'icon-fahangnft'
class=
"delete-icon absolute -top-1
-
right-0.5 w-1/6 rounded-full bg-white"
size=
'22px'
color=
'#f68585'
@
click
.
native=
"deleteImg(index)"
></app-icon>
<app-icon
name=
'icon-fahangnft'
class=
"delete-icon absolute -top-1 right-0.5 w-1/6 rounded-full bg-white"
size=
'22px'
color=
'#f68585'
@
click
.
native=
"deleteImg(index)"
></app-icon>
</div>
</div>
<div
v-if=
"fileList.length
<
maxCount
"
@
click=
"upload"
class=
" h-32 w-1/3 text-zx-blue-light p-1"
>
<div
v-if=
"fileList.length
<
maxCount
"
@
click=
"upload"
class=
" h-32 w-1/3 text-zx-blue-light p-1"
>
<div
class=
" h-full w-full bg-zx-btn-disabled-bg relative"
>
<div
class=
" h-full w-full bg-zx-btn-disabled-bg relative"
>
...
@@ -48,7 +48,7 @@ export default Vue.extend({
...
@@ -48,7 +48,7 @@ export default Vue.extend({
dom
.
value
=
''
dom
.
value
=
''
},
},
deleteImg
(
index
:
number
):
void
{
deleteImg
(
index
:
number
):
void
{
this
.
$emit
(
'delete
Img
'
,
index
)
this
.
$emit
(
'delete
File
'
,
index
)
},
},
showImgPreview
(
index
:
number
):
void
{
showImgPreview
(
index
:
number
):
void
{
ImagePreview
({
images
:
this
.
urlList
,
startPosition
:
index
})
ImagePreview
({
images
:
this
.
urlList
,
startPosition
:
index
})
...
...
src/view/NFT/Create/form.vue
View file @
75bb241b
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
></textarea>
></textarea>
</div>
</div>
<upload-
img
:fileList=
"fileList"
:maxCount=
'9'
@
fileChange=
"fileChange"
@
deleteImg=
"deleteImg"
></upload-img
>
<upload-
file
:fileList=
"fileList"
:maxCount=
'9'
@
fileChange=
"fileChange"
@
deleteFile=
"deleteFile"
></upload-file
>
<app-cell
<app-cell
v-model=
"createNFT.value_name"
v-model=
"createNFT.value_name"
...
@@ -397,7 +397,7 @@ export default Vue.extend({
...
@@ -397,7 +397,7 @@ export default Vue.extend({
"app-btn"
:
()
=>
import
(
"@/components/common/Btn.vue"
),
"app-btn"
:
()
=>
import
(
"@/components/common/Btn.vue"
),
// certificate: () => import("./components/certificate/index.vue"),
// certificate: () => import("./components/certificate/index.vue"),
// BreedingRhombusSpinner
// BreedingRhombusSpinner
'upload
Img'
:
()
=>
import
(
'./components/uploadImg
/uploadFile.vue'
),
'upload
File'
:
()
=>
import
(
'./components/uploadFile
/uploadFile.vue'
),
},
},
async
mounted
()
{
async
mounted
()
{
...
@@ -516,7 +516,7 @@ export default Vue.extend({
...
@@ -516,7 +516,7 @@ export default Vue.extend({
}
}
},
},
//删除图片
//删除图片
async
delete
Img
(
index
:
number
){
async
delete
File
(
index
:
number
){
//删除oss上的文件
//删除oss上的文件
if
(
this
.
fileList
[
index
].
fileUrl
){
if
(
this
.
fileList
[
index
].
fileUrl
){
await
this
.
$service
.
nftService
.
deleteOssFile
({
await
this
.
$service
.
nftService
.
deleteOssFile
({
...
...
src/view/NFT/Detail/components/fileSwipe.vue
View file @
75bb241b
<
template
>
<
template
>
<div>
<div>
<van-swipe
class=
"my-swipe h-72"
indicator-color=
"white"
@
change=
"setImgPreview"
>
<van-swipe
class=
"my-swipe h-72"
indicator-color=
"white"
@
change=
"setImgPreview"
>
<van-swipe-item
v-for=
"(url,index) in urlList"
:key=
"url+index"
class=
"flex items-center"
@
click=
"showImgPreview"
>
<van-swipe-item
v-for=
"(url,index) in urlList"
:key=
"url+index"
class=
"flex items-center"
@
click=
"showImgPreview"
>
<img
v-lazy=
"url"
alt=
""
class=
" max-h-72 mx-auto "
>
<img
v-lazy=
"url"
alt=
""
class=
" max-h-72 mx-auto "
>
</van-swipe-item>
</van-swipe-item>
...
...
src/view/NFT/Detail/index.vue
View file @
75bb241b
...
@@ -37,7 +37,12 @@
...
@@ -37,7 +37,12 @@
</div>
</div>
</div>
-->
</div>
-->
<!-- 不是纪念版NFT -->
<!-- 不是纪念版NFT -->
<file-swipe
:urlList=
"urlList"
></file-swipe>
<van-swipe
class=
"my-swipe h-72"
indicator-color=
"#2b446c"
@
change=
"setImgPreview"
>
<van-swipe-item
v-for=
"url in urlList"
:key=
"url"
class=
"flex items-center"
@
click=
"showImgPreview"
>
<img
v-lazy=
"url"
alt=
""
class=
" max-h-72 mx-auto "
>
</van-swipe-item>
</van-swipe>
<!--
<file-swipe
:urlList=
"urlList"
></file-swipe>
-->
<!--
<app-collectionCard
:colletionData=
"nftData"
v-else
></app-collectionCard>
-->
<!--
<app-collectionCard
:colletionData=
"nftData"
v-else
></app-collectionCard>
-->
<!--
<div>
-->
<!--
<div>
-->
<!--
<div
class=
"h-72 flex items-center"
>
-->
<!--
<div
class=
"h-72 flex items-center"
>
-->
...
@@ -405,12 +410,13 @@ import anquanzhongxin89 from "@/assets/img/check.png";
...
@@ -405,12 +410,13 @@ import anquanzhongxin89 from "@/assets/img/check.png";
import
chakan
from
"@/assets/img/upload.png"
;
import
chakan
from
"@/assets/img/upload.png"
;
import
atupian
from
"@/assets/img/transfer.png"
;
import
atupian
from
"@/assets/img/transfer.png"
;
import
BOSSyingyetingchushi
from
"@/assets/img/certigicate.png"
;
import
BOSSyingyetingchushi
from
"@/assets/img/certigicate.png"
;
import
{
Overlay
,
ActionSheet
,
Lazyload
}
from
"vant"
;
import
{
Overlay
,
ActionSheet
,
Swipe
,
SwipeItem
,
Lazyload
,
ImagePreview
}
from
"vant"
;
import
download
from
"downloadjs"
;
import
download
from
"downloadjs"
;
import
FileSwipe
from
"./components/fileSwipe.vue"
;
Vue
.
use
(
Overlay
);
Vue
.
use
(
Overlay
);
Vue
.
use
(
ActionSheet
);
Vue
.
use
(
ActionSheet
);
Vue
.
use
(
Swipe
);
Vue
.
use
(
SwipeItem
);
Vue
.
use
(
Lazyload
);
Vue
.
use
(
Lazyload
);
const
apps
=
[
const
apps
=
[
{
{
...
@@ -465,6 +471,7 @@ export default Vue.extend({
...
@@ -465,6 +471,7 @@ export default Vue.extend({
showManage
:
false
,
showManage
:
false
,
manageActions
:[{
name
:
'NFT转账'
}],
manageActions
:[{
name
:
'NFT转账'
}],
urlList
:[],
urlList
:[],
imgPreviewIndex
:
0
,
};
};
},
},
computed
:{
computed
:{
...
@@ -525,8 +532,7 @@ export default Vue.extend({
...
@@ -525,8 +532,7 @@ export default Vue.extend({
"certificate"
:
()
=>
import
(
"@/view/NFT/Create/components/certificate/index.vue"
),
"certificate"
:
()
=>
import
(
"@/view/NFT/Create/components/certificate/index.vue"
),
SkeletonNftDetail
,
SkeletonNftDetail
,
'sourceSearch'
:
()
=>
import
(
'./components/sourceSearch.vue'
),
'sourceSearch'
:
()
=>
import
(
'./components/sourceSearch.vue'
),
'fileSwipe'
:
()
=>
import
(
'./components/fileSwipe.vue'
),
// 'fileSwipe': ()=>import('./components/fileSwipe.vue'),
FileSwipe
},
},
methods
:
{
methods
:
{
onSelect
(
item
:
any
){
onSelect
(
item
:
any
){
...
@@ -553,7 +559,14 @@ export default Vue.extend({
...
@@ -553,7 +559,14 @@ export default Vue.extend({
showManage
:
false
showManage
:
false
})
})
},
},
setImgPreview
(
index
:
number
){
this
.
imgPreviewIndex
=
index
},
showImgPreview
(){
ImagePreview
({
images
:
this
.
urlList
,
startPosition
:
this
.
imgPreviewIndex
})
},
confirmBtn
()
{
confirmBtn
()
{
console
.
log
(
this
.
nftData
.
status
);
if
(
!
this
.
$route
.
query
.
officia
)
{
if
(
!
this
.
$route
.
query
.
officia
)
{
this
.
showoverlay
=
true
this
.
showoverlay
=
true
if
(
this
.
nftData
.
fileUrl
&&
this
.
nftData
.
isCommemorate
==
0
)
{
if
(
this
.
nftData
.
fileUrl
&&
this
.
nftData
.
isCommemorate
==
0
)
{
...
...
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