Commit 9d89c930 by hank

修复模板类型筛选bug

parent 172233cc
......@@ -126,7 +126,6 @@ class TemplateTypeDetail extends Component {
tagName: '全部',
checked: true
})
console.log(typeData)
const { list, count } = tempData
this.setState({
count,
......@@ -146,11 +145,15 @@ class TemplateTypeDetail extends Component {
}
tagIdChange(id) {
console.log(id)
this.setState({
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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment