Authored by dongjunjie

网销,基础商品显示反Yoho币金额

... ... @@ -252,7 +252,11 @@ var g = new common.grid({
//待审核和驳回列表中只显示吊牌价和销售价,通过的列表中显示
if (item.isAuditing === 200) {
html.push("<p>是否VIP:" + YNEnum.enum[item.isVip] + "</p>");
html.push("<p>反yoho币金额:" + item.productPrice.returnCoin + "</p>");
if(item.productPrice.returnCoinMoney){
html.push("<p>反yoho币金额:" + item.productPrice.returnCoinMoney + "</p>");
}else{
html.push("<p>反yoho币金额:0</p>");
}
}
return html.join('');
}
... ...
... ... @@ -135,10 +135,17 @@ var g = new common.grid({
var vip = ENUM.isVIP[item.isVIP] ? ENUM.isVIP[item.isVIP] : '',
retailPrice = item.retailPrice ? item.retailPrice : '',
salesPrice = item.salesPrice ? item.salesPrice : '';
return '<p><strong>吊牌价:</strong>' + retailPrice + '</p>' +
var html = '<p><strong>吊牌价:</strong>' + retailPrice + '</p>' +
'<p><strong>销售价:</strong>' + salesPrice + '</p>' +
'<p><strong>是否VIP:</strong>' + vip + '</p>'+
'<p><strong>反yoho币金额:</strong>' + item.returnCoin + '</p>';
'<p><strong>是否VIP:</strong>' + vip + '</p>';
if(item.returnCoinMoney){
html += "<p><strong>反yoho币金额:</strong>" + item.returnCoinMoney + "</p>";
}else{
html += "<p><strong>反yoho币金额:</strong>0</p>";
}
return html;
}
}, {
display: '库存',
... ...
... ... @@ -109,9 +109,9 @@ var COLUMNS = {
return item.productPrice.needAuditCoin;
}},
{display: '状态', name: 'status', render: function(item) {
var html = ENUM.status[item.productPrice.coinStatus]+"<br>";
var html = "<div>" + ENUM.status[item.productPrice.coinStatus] + "</div>";
if(item.productPrice.coinStatus == 3){
html += '<a class="noCheckReason" href="javascript:" data-text="'+ item.productPrice.comment +'" style="color: #ec971f;text-decoration: underline">驳回理由</a>';
html += '<a class="noCheckReason" href="javascript:" data-text="'+ item.productPrice.comment +'" style="color: #ec971f;text-decoration: underline;margin:0">驳回理由</a>';
}
return html;
}},
... ...