Commit 7905ccd7 by wangshuo

返回时判断是否使用余额抵扣

parent 939e928a
...@@ -13,6 +13,7 @@ const Item = List.Item; ...@@ -13,6 +13,7 @@ const Item = List.Item;
function OrderList(props) { function OrderList(props) {
console.log(props); console.log(props);
const listData = props.list; const listData = props.list;
return ( return (
<div> <div>
{ {
...@@ -23,6 +24,7 @@ function OrderList(props) { ...@@ -23,6 +24,7 @@ function OrderList(props) {
<Link to={`/detail?id=${course_id}`}><p className='order-title' style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{course_title}</p></Link> <Link to={`/detail?id=${course_id}`}><p className='order-title' style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{course_title}</p></Link>
<p className='order-content' style={{ WebkitBoxOrient: 'vertical', WebkitLineClamp: '2', wordBreak: 'break-all', overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box' }}>{simpledescription}</p> <p className='order-content' style={{ WebkitBoxOrient: 'vertical', WebkitLineClamp: '2', wordBreak: 'break-all', overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box' }}>{simpledescription}</p>
<p className='order-des'> <p className='order-des'>
{/*// 这里根据类型判断 来显示什么价格 拼团还是砍价 还是特训营*/ }
{ {
props.courseId === undefined ? (<span className='order-newprice'>¥{price1}</span>) : (<span className='order-newprice'>¥{price0}</span>) props.courseId === undefined ? (<span className='order-newprice'>¥{price1}</span>) : (<span className='order-newprice'>¥{price0}</span>)
} }
...@@ -238,6 +240,7 @@ class Order extends Component { ...@@ -238,6 +240,7 @@ class Order extends Component {
} }
this.publicGetData(preorder); this.publicGetData(preorder);
this.publicLocalStorage();
}) })
}else{ }else{
http.get(`${API['base-api']}/m/order/preorder`).then((res) => { http.get(`${API['base-api']}/m/order/preorder`).then((res) => {
......
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