Commit 80c047c2 by hank

部分页面刷新

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