Commit b6729261 by xuzhenghua

bug

parent 52c08adb
No preview for this file type
...@@ -37,7 +37,8 @@ class Group extends Component { ...@@ -37,7 +37,8 @@ class Group extends Component {
toPay = (pdd_order_id) => { toPay = (pdd_order_id) => {
const courseInfo = this.props.courseInfo.courseInfo.course_info; const courseInfo = this.props.courseInfo.courseInfo.course_info;
if (courseInfo.group_status === 3) { if (courseInfo.group_status === 3) {
this.props.history.push(`/order?id=${getParam('id')}&&groupon_code=${pdd_order_id}`); this.props.history.push(`/order?id=${getParam('id')}`, {group: 1})
} else { } else {
this.setState({ this.setState({
isShowMore: false, isShowMore: false,
......
...@@ -61,7 +61,7 @@ class MyOrders extends Component { ...@@ -61,7 +61,7 @@ class MyOrders extends Component {
} }
http.post(`${API.home}/m/cancel_order`, data).then((res) => { http.post(`${API.home}/m/cancel_order`, data).then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
this.getList() location.reload();
} else { } else {
Toast.info(res.data.msg, 2); Toast.info(res.data.msg, 2);
} }
...@@ -139,7 +139,7 @@ function OrderInfo(props) { ...@@ -139,7 +139,7 @@ function OrderInfo(props) {
let btn let btn
if (props.item.pay_time === '0' && props.item.member_num === 0) { if (props.item.pay_time === '0' && props.item.member_num === 0) {
btn = <span className='oid-status'>等待支付</span> btn = <span className='oid-status'>等待支付</span>
} else if ((props.item.member_num === props.item.pdd_info.length) && props.item.member_num !== 0) { } else if (props.item.pdd_info && (props.item.member_num === props.item.pdd_info.length) && props.item.member_num !== 0) {
btn = <span className='oid-success'>拼团成功</span> btn = <span className='oid-success'>拼团成功</span>
} else { } else {
btn = <span className='oid-success'>支付成功</span> btn = <span className='oid-success'>支付成功</span>
......
...@@ -37,6 +37,12 @@ ...@@ -37,6 +37,12 @@
background-color: $bg_fff; background-color: $bg_fff;
border-bottom: 1px solid $border_e7eaf1; border-bottom: 1px solid $border_e7eaf1;
} }
.order-info {
.order-des{
position: absolute;
bottom: 0;
}
}
.order-btm { .order-btm {
width: 100%; width: 100%;
......
...@@ -67,7 +67,7 @@ export default class PayOrder extends Component { ...@@ -67,7 +67,7 @@ export default class PayOrder extends Component {
this.alipayPay(orderId) this.alipayPay(orderId)
} else if (payType === 1) { } else if (payType === 1) {
this.weixinPay(orderId) this.weixinPay(orderId)
} }
// else { // 花呗分期暂时不做 // else { // 花呗分期暂时不做
// this.huabeiPay(orderId) // this.huabeiPay(orderId)
// } // }
...@@ -154,7 +154,7 @@ export default class PayOrder extends Component { ...@@ -154,7 +154,7 @@ export default class PayOrder extends Component {
// 花呗分期 暂时不做 // 花呗分期 暂时不做
huabeiPay = (orderId) => { huabeiPay = (orderId) => {
const {singleMoney, periodNumber} = this.state; const {singleMoney, periodNumber} = this.state;
console.log('花呗分期支付'); console.log('花呗分期支付');
http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res=>{ http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res=>{
console.log(res); console.log(res);
...@@ -290,7 +290,7 @@ export default class PayOrder extends Component { ...@@ -290,7 +290,7 @@ export default class PayOrder extends Component {
</RadioItem> </RadioItem>
))} ))}
</List> </List>
<div className='pay-tip'>请在24小时内完成支付,否则届时系统将关闭该订单。</div> <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>
<div className='pay-button' onClick={this.pay}>确认支付</div> <div className='pay-button' onClick={this.pay}>确认支付</div>
......
...@@ -43,13 +43,14 @@ class Recommendation extends Component { ...@@ -43,13 +43,14 @@ class Recommendation extends Component {
courses.map((item, index) => { courses.map((item, index) => {
const Bottom = ( const Bottom = (
<div className='bottom'> <div className='bottom'>
<span className='price'>{item['price1']}</span> <span className='price'>¥{item['price1']}</span>
<span className='old-price'>{item['price0']}</span> <span className='old-price'>¥{item['price0']}</span>
</div> </div>
) )
return ( return (
<Course <Course
className={'text-overflow-2'}
key={item['course_id']} key={item['course_id']}
id={item['course_id']} id={item['course_id']}
img={item['image_name']} img={item['image_name']}
......
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