micro_mall_xcx/pages/order/order-confirm/handleInvoice.wxs
2023-05-30 20:21:16 +08:00

12 lines
425 B
XML

var handleInvoice = function (invoiceData) {
if (!invoiceData || invoiceData.invoiceType == 0) {
return '暂不开发票';
}
var title = invoiceData.titleType == 2 ? '公司' : '个人';
var content = invoiceData.contentType == 2 ? '商品类别' : '商品明细';
return invoiceData.email
? '电子普通发票 (' + content + ' - ' + title + ')'
: '暂不开发票';
};
module.exports = handleInvoice;