Commit 0594078f by 杨树贤

youhua

parent 1a010be6
...@@ -107,7 +107,8 @@ ...@@ -107,7 +107,8 @@
field: 'cn_price', title: '人民币成本价(¥)', align: 'left', width: 150, templet: function (data) { field: 'cn_price', title: '人民币成本价(¥)', align: 'left', width: 150, templet: function (data) {
if (data.ladder_price) { if (data.ladder_price) {
let ladder = data.ladder_price[data.ladder_price.length - 1]; let ladder = data.ladder_price[data.ladder_price.length - 1];
if (ladder.hasOwnProperty('price_cn')) { if (ladder) {
if (ladder.hasOwnProperty('price_cn')) {
if (ladder.price_cn > 0) { if (ladder.price_cn > 0) {
return '<div class="view_ladder_price_cn layui-row"><div class="layui-col-xs5"><span>' + (ladder.purchases) + '+</span></div><div class="layui-col-xs7"><span>' + (ladder.price_cn) + '</span></div></div>'; return '<div class="view_ladder_price_cn layui-row"><div class="layui-col-xs5"><span>' + (ladder.purchases) + '+</span></div><div class="layui-col-xs7"><span>' + (ladder.price_cn) + '</span></div></div>';
} else { } else {
...@@ -116,6 +117,8 @@ ...@@ -116,6 +117,8 @@
} else { } else {
return ''; return '';
} }
}
} }
return ''; return '';
......
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 sign in to comment