diff --git a/src/views/goods/lineReport/index.vue b/src/views/goods/lineReport/index.vue index 5602e79..7426be2 100644 --- a/src/views/goods/lineReport/index.vue +++ b/src/views/goods/lineReport/index.vue @@ -9,13 +9,14 @@
今天 {{today}},{{fromData.header_content}}
@@ -66,7 +67,7 @@ export default { title: '首端内容', dataIndex: 'header_content', }, - { + { title: '尾端内容', dataIndex: 'tail', }, @@ -139,17 +140,10 @@ export default { '推广价:' + obj.cost_price_min + '\n' + - 'SKU:' + - obj.goods_no + - '\n' + - obj.jd_short_url + - '\n' + - '抢购链接:' + - obj.applet_short_url + - '\n' + - '尾端内容:' + - obj.tail + - '\n' + + (obj.goods_no ? 'SKU:' + obj.goods_no + '\n' : '') + + (obj.jd_short_url ? obj.jd_short_url + '\n' : '') + + (obj.applet_short_url ? '抢购链接:' + obj.applet_short_url + '\n' : '') + + (obj.tail ? '尾端内容' + obj.tail + '\n' : '') + ' \n' }) let content = '今天' + that.today + ',' + that.fromData.header_content + '\n' + ' \n' + text