Commit c424584c by FE

no prize name

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