Authored by zhangxiaoru

orderpay

... ... @@ -60,6 +60,10 @@ const _getOrderStatus = (order, showLogistics) => {
// 先判断订单付款方式,根据不同的付款方式计算订单状态。(注:货到付款没有待付款状态)
// 支付方式为非货到付款时,计算订单状态。
if (parseInt(order.paymentType, 10) !== 2) {
Object.assign(result, {
isPayonline: true
});
switch (order.status) {
case 0:
... ... @@ -303,6 +307,8 @@ const orderDetailData = (uid, orderCode) => {
cancelReason: resons
});
//console.log(orderDetail)
return orderDetail;
});
... ...
... ... @@ -36,6 +36,7 @@
<span class="sub-title">订单编号:{{orderCode}}</span>
<span >订单状态:{{statusStr}}</span>
<span>下单时间:<b class="createTime">{{createTime}}</b></span>
<span>支付方式:支付宝</span>
</p>
</div>
{{#if logisticsUrl}}
... ... @@ -70,7 +71,7 @@
</li>
{{/each}}
<li>
实付金额
{{#if isPayonline}}实付金额{{else}}应付金额{{/if}}
<span>{{amount}}</span>
</li>
</ul>
... ...
... ... @@ -69,7 +69,7 @@ module.exports = {
port: '4444' // influxdb port
},
console: {
level: 'error',
level: 'debug',
colorize: 'all',
prettyPrint: true
}
... ...