|
|
|
@ -29,23 +29,27 @@ |
|
|
|
|
<!-- <view class="cdInfo"> --> |
|
|
|
|
<scroll-view class="cdInfo" scroll-y="true"> |
|
|
|
|
<view class="report-line" v-for="(item) in shortList"> |
|
|
|
|
<view class=""> |
|
|
|
|
<view class="" v-if="item.goods_name"> |
|
|
|
|
{{'★'+item.goods_name}} |
|
|
|
|
</view> |
|
|
|
|
<view class=""> |
|
|
|
|
<view class="" v-if="item.cost_price_min"> |
|
|
|
|
市场价:{{item.cost_price_min}} |
|
|
|
|
</view> |
|
|
|
|
<view class=""> |
|
|
|
|
<view class="" v-if="item.goods_price_min"> |
|
|
|
|
推广价:{{item.goods_price_min}} |
|
|
|
|
</view> |
|
|
|
|
<view class=""> |
|
|
|
|
<view class="" v-if="item.goods_no"> |
|
|
|
|
SKU:{{item.goods_no}} |
|
|
|
|
</view> |
|
|
|
|
<view class=""> |
|
|
|
|
<view class="" v-if="item.jd_short_url"> |
|
|
|
|
{{item.jd_short_url}} |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-if="item.applet_short_url" style="padding-top: 15rpx;"> |
|
|
|
|
👉抢购链接:<text style="color:blue">{{item.applet_short_url}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</scroll-view> |
|
|
|
|
<view class="report-name" v-if="fromData.tail">{{fromData.tail}}</view> |
|
|
|
|
<!-- </view> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -81,7 +85,7 @@ |
|
|
|
|
onClickReport(item, type) { |
|
|
|
|
this.fromData = item |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: type==1?'加载中':'复制中' |
|
|
|
|
title: type == 1 ? '加载中' : '复制中' |
|
|
|
|
}); |
|
|
|
|
this.getJDShortLinks(item.id, type) |
|
|
|
|
this.getCurrentDate() |
|
|
|
@ -107,7 +111,9 @@ |
|
|
|
|
let text = '' |
|
|
|
|
that.shortList.forEach(function(obj) { |
|
|
|
|
text += |
|
|
|
|
'★'+obj.goods_name + |
|
|
|
|
text += |
|
|
|
|
'★' + |
|
|
|
|
obj.goods_name + |
|
|
|
|
'\n' + |
|
|
|
|
'市场价:' + |
|
|
|
|
obj.goods_price_min + |
|
|
|
@ -115,15 +121,16 @@ |
|
|
|
|
'推广价:' + |
|
|
|
|
obj.cost_price_min + |
|
|
|
|
'\n' + |
|
|
|
|
'SKU:' + |
|
|
|
|
obj.goods_no + |
|
|
|
|
'\n' + |
|
|
|
|
obj.jd_short_url + |
|
|
|
|
'\n'+ |
|
|
|
|
(obj.goods_no ? 'SKU:' + obj.goods_no + '\n' : '') + |
|
|
|
|
(obj.jd_short_url ? obj.jd_short_url + '\n' + '\n' : '') + |
|
|
|
|
(obj.applet_short_url ? '👉抢购链接:' + obj.applet_short_url + '\n' : '') + |
|
|
|
|
' \n' |
|
|
|
|
}) |
|
|
|
|
console.log('今天' + that.today + ',' + this.fromData.header_content + '\n' + ' \n' + text + '\n' + |
|
|
|
|
this.fromData.tail) |
|
|
|
|
uni.setClipboardData({ |
|
|
|
|
data: '今天' + that.today + ',' + this.fromData.header_content + '\n' + ' \n' + text, |
|
|
|
|
data: '今天' + that.today + ',' + this.fromData.header_content + '\n' + ' \n' + text + |
|
|
|
|
this.fromData.tail, |
|
|
|
|
success: () => { |
|
|
|
|
// 可以添加用户友好的提示,例如使用uni.showToast提示复制成功 |
|
|
|
|
uni.showToast({ |
|
|
|
|