Commit a6f9dc91 by wangshuo

课程组件属性添加

parent 454affe1
......@@ -58,6 +58,9 @@ export default class PayOrder extends Component {
payType: value,
});
};
print = (...e) => {
console.log(e);
}
componentDidMount() {
http.post(`${api.home}/m/order/detail`, {order_id: ''}).then((res) => {
......@@ -105,7 +108,7 @@ export default class PayOrder extends Component {
</div>
)
return (
<VList key={index} img={item.image_name}
<VList handleClick={this.print} key={index} img={item.image_name}
id={item.course_id}
info={Info}></VList>
)
......
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