Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client-taro
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9d89c930
authored
Nov 22, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复模板类型筛选bug
parent
172233cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
src/pages/home/tempaltes/template_type_detail.tsx
+9
-16
No files found.
src/pages/home/tempaltes/template_type_detail.tsx
View file @
9d89c930
...
...
@@ -126,7 +126,6 @@ class TemplateTypeDetail extends Component {
tagName
:
'全部'
,
checked
:
true
})
console
.
log
(
typeData
)
const
{
list
,
count
}
=
tempData
this
.
setState
({
count
,
...
...
@@ -146,10 +145,14 @@ class TemplateTypeDetail extends Component {
}
tagIdChange
(
id
)
{
console
.
log
(
id
)
this
.
setState
({
tagId
:
id
})
this
.
getTemplate
(
id
)
this
.
setState
(
{
tagId
:
id
},
()
=>
{
this
.
getTemplate
(
id
)
}
)
}
radioChange
(
e
)
{
console
.
log
(
e
)
...
...
@@ -172,12 +175,6 @@ class TemplateTypeDetail extends Component {
done
()
}
shouldComponentUpdate
(
_nextProps
:
ITempItem
,
_nextState
:
PageState
)
{
const
{
detailData
,
filmDataList
,
showModal
}
=
this
.
state
const
{
detailData
:
DD
,
filmDataList
:
FD
,
showModal
:
SM
}
=
_nextState
return
FD
!==
filmDataList
||
DD
!==
detailData
||
SM
!==
showModal
}
render
()
{
const
{
typeData
,
...
...
@@ -188,12 +185,8 @@ class TemplateTypeDetail extends Component {
tagId
,
templateShow
}
=
this
.
state
console
.
log
(
tagsList
,
filmDataList
)
return
(
<
View
className=
"temp-detail"
style=
{
{
height
:
process
.
env
.
TARO_ENV
===
'rn'
?
windowHeight
:
'100%'
}
}
>
<
View
className=
"temp-detail"
>
<
View
className=
"temp-detail-scroll"
>
<
View
className=
"radio-list"
>
<
RadioGroup
className=
"radio-group"
>
...
...
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