Commit 80c047c2 by hank

部分页面刷新

parent b4bb3893
......@@ -29,7 +29,7 @@ class DerailTop extends Component {
return (
<View className="derail-top">
<View className="temp-top-info">
<Image className="temp-top-img" src={templateUrl} />
<Image className="temp-top-img" src={templateUrl.split(',')[0]} />
<View className="temp-top-text-wrapper">
<Text className="temp-top-title">{templateName}</Text>
<View>
......
......@@ -49,7 +49,10 @@ class FilmDetail extends Component {
componentWillMount() {
this.getData()
}
componentDidShow() {
console.log(231131)
this.getData()
}
async getData() {
const { page, filmId } = this.state
try {
......
......@@ -62,6 +62,12 @@ class Tempaltes extends Component {
this.getData()
}
componentDidShow() {
this.setState({
page: 1
})
this.getData()
}
getData() {
const { page } = this.state
this.props.getTempListData(page)
......
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