Commit c424584c by FE

no prize name

parent 0d593342
...@@ -218,6 +218,15 @@ class MyTreasure extends Component { ...@@ -218,6 +218,15 @@ class MyTreasure extends Component {
// 绑定地址--展示 // 绑定地址--展示
handleToBindAddress = (id) => { handleToBindAddress = (id) => {
if(id) {
const { teams } = this.state;
const data = teams.filter(item => item.id == id);
if(data.length > 0) {
this.setState({
prizeName: data[0]['prize_name']
})
}
}
this.setState({ this.setState({
isAddress: true isAddress: true
}); });
...@@ -471,7 +480,7 @@ class MyTreasure extends Component { ...@@ -471,7 +480,7 @@ class MyTreasure extends Component {
prize_type: item.prize_type, prize_type: item.prize_type,
}} }}
handleToBindPhone={this.handleToBindPhone} handleToBindPhone={this.handleToBindPhone}
handleToBindAddress={this.handleToBindAddress} handleToBindAddress={() => this.handleToBindAddress(item.id)}
toComposeCoupon={this.toComposeCoupon} toComposeCoupon={this.toComposeCoupon}
toUseCoupon={() => this.toUseCoupon(item.prize_data)} toUseCoupon={() => this.toUseCoupon(item.prize_data)}
toCourseList={this.toCourseList} toCourseList={this.toCourseList}
......
...@@ -8,7 +8,7 @@ class TreasureNav extends Component { ...@@ -8,7 +8,7 @@ class TreasureNav extends Component {
super(props); super(props);
this.state = { this.state = {
isFixed: false, isFixed: false,
curIndex: 1, curIndex: 0,
formatNavs: [], formatNavs: [],
navs: [ navs: [
{ {
......
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 to comment