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
c8f5b5b2
Commit
c8f5b5b2
authored
Jul 12, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复创建NFT的bug
parent
eece3204
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
Cell.vue
src/components/common/Cell.vue
+1
-1
form.vue
src/view/NFT/Create/form.vue
+7
-9
No files found.
src/components/common/Cell.vue
View file @
c8f5b5b2
...
...
@@ -57,7 +57,7 @@
:key=
"item.id"
:text=
"item.text"
:id=
"item.id"
class=
"text-sm rounded-xl text-font-white bg-app-red"
class=
"text-sm rounded-xl text-font-white bg-app-red
ml-1
"
:active=
"true"
></app-tag>
<div
@
click=
"eventEmit(type)"
>
...
...
src/view/NFT/Create/form.vue
View file @
c8f5b5b2
...
...
@@ -34,14 +34,6 @@
class=
"text-font-white my-3"
@
onClick=
"what"
></app-cell>
<!--
<app-cell
text=
"分类"
type=
"select"
:selected=
"createNFT.categoryType"
:list=
"categoryTypes2"
class=
"text-font-white my-3"
@
cellOnChange=
"(v) => (createNFT.categoryType = v)"
></app-cell>
-->
<div>
<div
class=
"text-font-white my-2"
>
剧本简介
</div>
<textarea
...
...
@@ -179,7 +171,7 @@
<
script
lang=
"ts"
>
import
{
Dialog
}
from
"vant"
;
import
Vue
from
"vue"
;
import
{
mapState
}
from
"vuex"
;
import
{
map
Mutations
,
map
State
}
from
"vuex"
;
export
default
Vue
.
extend
({
data
()
{
...
...
@@ -236,6 +228,9 @@ export default Vue.extend({
const
list
=
await
this
.
$service
.
nftService
.
getCategory
();
this
.
categoryTypes
=
list
;
this
.
createNFT
.
categoryType
=
(
list
.
length
!==
0
&&
list
[
0
].
id
)
||
NaN
;
this
.
setState
({
pickedList
:
[],
});
},
computed
:
{
...
mapState
(
"create"
,
{
...
...
@@ -274,6 +269,9 @@ export default Vue.extend({
},
},
methods
:
{
...
mapMutations
(
"create"
,
{
setState
:
"SET_STATE"
,
}),
setCreateNFT
(
obj
:
any
)
{
this
.
createNFT
=
{
...
this
.
createNFT
,
...
...
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