Authored by biao

update for left time is 0

... ... @@ -314,6 +314,10 @@ const _getUserOrder = (uid, type, page) => {
item.isRefundOrder = ot === 7;
if (parseInt(item.payLefttime, 10) !== 0) {
item.showLeftTime = true;
}
if (item.isCancel === 'Y') {
item.showBuyBtn = true;
item.statusStr = '已取消';
... ... @@ -511,7 +515,8 @@ const getOrderDetail = (uid, code) => {
detail.createTime = _convertUnixTime(detail.createTime);
if (detail.isCancel === 'N' &&
st === 0) {
st === 0 &&
parseInt(detail.payLefttime, 10) !== 0) {
detail.showLeftTime = true;
}
... ...
... ... @@ -22,7 +22,9 @@
{{#if showPayButton}}
<div class="pay-operation">
{{#if isOnlinePaid}}
{{#if showLeftTime}}
<span class="iconfont hide-when-invalid">&#xe606;</span><p class="left-time" data-left="{{payLefttime}}"></p>
{{/if}}
<a href="{{payUrl}}">
<span class="btn red hide-when-invalid">立即付款</span>
</a>
... ...
... ... @@ -19,7 +19,7 @@
position: relative;
&.bottom-space {
margin-bottom: 15px;
margin-bottom: 20px;
}
&.right-space {
... ... @@ -49,7 +49,7 @@
img {
width: $bigImgWidth;
height: calc($smallImgHeight*2+$space+4px);
height: calc($smallImgHeight*2+$space+10px);
}
}
... ...