Compare commits

..

No commits in common. '780b26ee3f4668df42e746f4573642ddb87691db' and '2d807404d1ddd01f46a227ef763b3c6f7da434fd' have entirely different histories.

  1. 59
      pages/gamll/dailyReport.vue

@ -27,29 +27,25 @@
</view> </view>
<view class="report-name">今天 {{today}}{{fromData.header_content}}</view> <view class="report-name">今天 {{today}}{{fromData.header_content}}</view>
<!-- <view class="cdInfo"> --> <!-- <view class="cdInfo"> -->
<scroll-view class="cdInfo" scroll-y="true"> <scroll-view class="cdInfo" scroll-y="true">
<view class="report-line" v-for="(item) in shortList"> <view class="report-line" v-for="(item) in shortList">
<view class="" v-if="item.goods_name"> <view class="">
{{'★'+item.goods_name}} {{'★'+item.goods_name}}
</view>
<view class="">
市场价:{{item.cost_price_min}}
</view>
<view class="">
推广价:{{item.goods_price_min}}
</view>
<view class="">
SKU:{{item.goods_no}}
</view>
<view class="">
{{item.jd_short_url}}
</view>
</view> </view>
<view class="" v-if="item.cost_price_min"> </scroll-view>
市场价:{{item.cost_price_min}}
</view>
<view class="" v-if="item.goods_price_min">
推广价:{{item.goods_price_min}}
</view>
<view class="" v-if="item.goods_no">
SKU:{{item.goods_no}}
</view>
<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> </view>
</view> </view>
@ -85,7 +81,7 @@
onClickReport(item, type) { onClickReport(item, type) {
this.fromData = item this.fromData = item
uni.showLoading({ uni.showLoading({
title: type == 1 ? '加载中' : '复制中' title: type==1?'加载中':'复制中'
}); });
this.getJDShortLinks(item.id, type) this.getJDShortLinks(item.id, type)
this.getCurrentDate() this.getCurrentDate()
@ -111,9 +107,7 @@
let text = '' let text = ''
that.shortList.forEach(function(obj) { that.shortList.forEach(function(obj) {
text += text +=
text += '★'+obj.goods_name +
'★' +
obj.goods_name +
'\n' + '\n' +
'市场价:' + '市场价:' +
obj.goods_price_min + obj.goods_price_min +
@ -121,16 +115,15 @@
'推广价:' + '推广价:' +
obj.cost_price_min + obj.cost_price_min +
'\n' + '\n' +
(obj.goods_no ? 'SKU:' + obj.goods_no + '\n' : '') + 'SKU:' +
(obj.jd_short_url ? obj.jd_short_url + '\n' + '\n' : '') + obj.goods_no +
(obj.applet_short_url ? '👉抢购链接:' + obj.applet_short_url + '\n' : '') + '\n' +
obj.jd_short_url +
'\n'+
' \n' ' \n'
}) })
console.log('今天' + that.today + ',' + this.fromData.header_content + '\n' + ' \n' + text + '\n' +
this.fromData.tail)
uni.setClipboardData({ 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: () => { success: () => {
// 使uni.showToast // 使uni.showToast
uni.showToast({ uni.showToast({

Loading…
Cancel
Save