添加个人中心功能
添加订单记录
This commit is contained in:
@@ -73,6 +73,13 @@
|
||||
height: 62px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
/* 退款状态标红样式 */
|
||||
.refund-status-row {
|
||||
background-color: #ffebee !important;
|
||||
}
|
||||
.refund-status-row:hover {
|
||||
background-color: #ffcdd2 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="layui-fluid">
|
||||
@@ -356,18 +363,46 @@
|
||||
<div style="text-align: left">
|
||||
<p>订单编号:{{d.order_sn}}</p>
|
||||
<p>下单时间:{{d.create_time}}</p>
|
||||
<p>订单来源:{{d.channel}}</p>
|
||||
<p>收款方式:{{d.gord_name}}</p>
|
||||
<p>订单来源:
|
||||
{{# if(d.channel){ }}
|
||||
{{d.channel}}
|
||||
{{# } else { }}
|
||||
小程序
|
||||
{{# } }}
|
||||
</p>
|
||||
<p>支付方式:
|
||||
{{# if(d.pay_way == 1){ }}
|
||||
微信支付
|
||||
{{# } }}
|
||||
{{# if(d.pay_way == 2){ }}
|
||||
支付宝支付
|
||||
{{# } }}
|
||||
{{# if(d.pay_way == 3){ }}
|
||||
余额支付
|
||||
{{# } }}
|
||||
{{# if(!d.pay_way || (d.pay_way != 1 && d.pay_way != 2 && d.pay_way != 3)){ }}
|
||||
-
|
||||
{{# } }}
|
||||
</p>
|
||||
|
||||
|
||||
{{# if(d.pay_zd == 0){ }}
|
||||
<p style="color:#fe0707">支付状态:
|
||||
已收款
|
||||
{{# if(d.pay_status == 0){ }}
|
||||
<p style="color:#fe0707">订单状态:
|
||||
待支付
|
||||
</p>
|
||||
{{# } }}
|
||||
{{# if(d.pay_zd == 1){ }}
|
||||
<p style="color:#3A91FB">支付状态:
|
||||
未收账款
|
||||
{{# if(d.pay_status == 1){ }}
|
||||
<p style="color:#3A91FB">订单状态:
|
||||
已支付
|
||||
</p>
|
||||
{{# } }}
|
||||
{{# if(d.pay_status == 2){ }}
|
||||
<p style="color:#ff9800">订单状态:
|
||||
已退款
|
||||
</p>
|
||||
{{# } }}
|
||||
{{# if(d.pay_status == 3){ }}
|
||||
<p style="color:#f44336">订单状态:
|
||||
拒绝退款
|
||||
</p>
|
||||
{{# } }}
|
||||
</div>
|
||||
@@ -600,6 +635,23 @@
|
||||
$($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
|
||||
$($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
|
||||
});
|
||||
|
||||
// 如果 refund_status > 0,整行标红显示
|
||||
if (res && res.data && res.data.length > 0) {
|
||||
res.data.forEach(function(item, index) {
|
||||
if (item.refund_status && parseInt(item.refund_status) > 0) {
|
||||
// 给主表格行添加红色背景
|
||||
var $mainRow = $(".layui-table-main tbody tr").eq(index);
|
||||
$mainRow.addClass('refund-status-row');
|
||||
|
||||
// 给固定列的行也添加红色背景
|
||||
var $fixedLeftRow = $(".layui-table-fixed-l .layui-table-body tbody tr").eq(index);
|
||||
var $fixedRightRow = $(".layui-table-fixed-r .layui-table-body tbody tr").eq(index);
|
||||
$fixedLeftRow.addClass('refund-status-row');
|
||||
$fixedRightRow.addClass('refund-status-row');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user