master
fanfan 1 month ago
parent e6c8811113
commit 527b811ff6
  1. 121
      pages/gamll/dailyReport.vue
  2. 11
      pages/gamll/mall.vue

@ -1,29 +1,36 @@
<template> <template>
<view>
<view class="park" :style="{backgroundImage:`url(${indexBackgroundImage})`}"> <view class="park" :style="{backgroundImage:`url(${indexBackgroundImage})`}">
<view style="margin-top:870rpx;overflow: hidden;height: 830rpx;"> <view class="park-navbar">
<u-navbar title="" :border-bottom="false" :background="background"></u-navbar>
</view>
<view style="margin-top:714rpx;overflow: hidden;height: 800rpx;">
<view class="report" v-if="list.length>0"> <view class="report" v-if="list.length>0">
<view class="report-box" v-for="(a,index) in list" @click="onClickReport(a)"> <view class="report-content" v-for="(a,index) in list">
<view class="report-box report-box1">
{{a.channel_name}} {{a.channel_name}}
</view> </view>
<view class="report-box" @click="onClickReport(a,1)">
预览
</view>
<view class="report-box" @click="onClickReport(a,2)">
复制
</view>
</view>
</view> </view>
</view> </view>
<!-- <view class="wenan">
好东西就要分享给大家让生活更美好
</view> -->
</view> </view>
<!-- 催单弹框 --> <!-- 催单弹框 -->
<view class="dia" v-if="cdDia" catchtouchmove="true"> <view class="dia" v-if="cdDia" @touchmove.stop.prevent="">
<view class="diaMain"> <view class="diaMain">
<!-- <view class="ld" @click="cdDia=false"> <view class="ld" @click="cdDia=false">
<u-icon name="close" color="#999" size="32"></u-icon> <u-icon name="close" color="#999" size="32"></u-icon>
</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">
<view class="report-line" v-for="(item) in shortList"> <view class="report-line" v-for="(item) in shortList">
<view class=""> <view class="">
{{item.goods_name}} {{'★'+item.goods_name}}
</view> </view>
<view class=""> <view class="">
市场价:{{item.cost_price_min}} 市场价:{{item.cost_price_min}}
@ -38,16 +45,8 @@
{{item.jd_short_url}} {{item.jd_short_url}}
</view> </view>
</view> </view>
</view> </scroll-view>
<view class="reportCopy"> <!-- </view> -->
<view class="reportbut" style="color: rgb(96, 98, 102);" @click="cdDia=false">
取消
</view>
<view class="reportbut" @click="copyData">
复制
</view>
</view>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -79,21 +78,26 @@
let day = now.getDate() let day = now.getDate()
this.today = year + '年' + month + '月' + day + '日' this.today = year + '年' + month + '月' + day + '日'
}, },
onClickReport(item) { onClickReport(item, type) {
this.fromData = item this.fromData = item
uni.showLoading({ uni.showLoading({
title: '加载中' title: type==1?'加载中':'复制中'
}); });
this.getJDShortLinks(item.id) this.getJDShortLinks(item.id, type)
this.getCurrentDate() this.getCurrentDate()
}, },
getJDShortLinks(id) { getJDShortLinks(id, type) {
help.JDShortLinks({ help.JDShortLinks({
id: id id: id
}).then(result => { }).then(result => {
if (result.status == 200) { if (result.status == 200) {
this.shortList = result.data.goodsList this.shortList = result.data.goodsList
if (type == 1) {
this.cdDia = true this.cdDia = true
}
if (type == 2) {
this.copyData()
}
uni.hideLoading(); uni.hideLoading();
} }
}) })
@ -103,7 +107,7 @@
let text = '' let text = ''
that.shortList.forEach(function(obj) { that.shortList.forEach(function(obj) {
text += text +=
obj.goods_name + '★'+obj.goods_name +
'\n' + '\n' +
'市场价:' + '市场价:' +
obj.goods_price_min + obj.goods_price_min +
@ -115,10 +119,11 @@
obj.goods_no + obj.goods_no +
'\n' + '\n' +
obj.jd_short_url + obj.jd_short_url +
';\n' '\n'+
' \n'
}) })
uni.setClipboardData({ uni.setClipboardData({
data: '今天' + that.today + ',' + this.fromData.header_content + '\n' + text, data: '今天' + that.today + ',' + this.fromData.header_content + '\n' + ' \n' + text,
success: () => { success: () => {
// 使uni.showToast // 使uni.showToast
uni.showToast({ uni.showToast({
@ -164,29 +169,11 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.reportCopy {
height: 80rpx;
width: 100%;
border-top: 1rpx solid #f7f7f7;
display: flex;
.reportbut {
width: 50%;
line-height: 80rpx;
text-align: center;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: rgb(41, 121, 255);
;
}
}
.report-name { .report-name {
font-size: 28rpx; font-size: 28rpx;
color: #000; color: #000;
font-weight: 700; font-weight: 700;
margin: 20rpx 24rpx; margin: 40rpx 0 16rpx 0;
} }
.report-line { .report-line {
@ -194,7 +181,7 @@
color: #000; color: #000;
padding-top: 16rpx; padding-top: 16rpx;
margin-top: 16rpx; margin-top: 16rpx;
border-top: 1rpx dashed #999; // border-top: 1rpx dashed #999;
} }
.report-line:nth-child(1) { .report-line:nth-child(1) {
@ -204,12 +191,13 @@
} }
.diaMain { .diaMain {
width: 600rpx; width: 680rpx;
max-height: 900rpx; min-height: 500rpx;
background: #fff; background: #fff;
border-radius: 12rpx 12rpx 12rpx 12rpx; border-radius: 12rpx 12rpx 12rpx 12rpx;
opacity: 1; opacity: 1;
position: relative; position: relative;
padding: 24rpx;
overflow: hidden; overflow: hidden;
.ld { .ld {
@ -221,40 +209,42 @@
} }
.cdInfo { .cdInfo {
overflow: hidden; height: 1000rpx;
max-height: 620rpx;
overflow-y: auto;
font-size: 28rpx; font-size: 28rpx;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #727272; color: #727272;
line-height: 38rpx; line-height: 38rpx;
margin: 0 24rpx 20rpx 24rpx; margin-top: 20rpx;
} }
} }
} }
.park { .park {
overflow: hidden;
width: 100%; width: 100%;
background-size: 100% auto; background-size: 100% auto;
min-height: 100vh; height: 1720rpx;
padding-bottom: 68rpx;
background-size: cover; background-size: cover;
.report { .report {
box-shadow: 0 5rpx 10rpx 5rpx #fff; box-shadow: 0 5rpx 10rpx 5rpx #fff;
// box-shadow: 5rpx 5rpx 5rpx #fff,5rpx -5rpx 5rpx #fff,-5rpx 5rpx 5rpx #fff,-5rpx -5rpx 5rpx #fff;
border-radius: 8rpx; border-radius: 8rpx;
margin: 20rpx 50rpx 0rpx 50rpx; margin: 20rpx 50rpx 0rpx 50rpx;
padding: 12rpx; padding: 12rpx;
max-height: 570rpx; max-height: 570rpx;
overflow-y: auto; overflow-y: auto;
.report-content {
overflow: hidden;
display: flex;
justify-content: center;
.report-box { .report-box {
display: inline-block; display: inline-block;
background: #3d84f2; background: #3d84f2;
height: 60rpx; height: 60rpx;
text-align: center;
width: 120rpx;
padding: 0 24rpx; padding: 0 24rpx;
color: #fff; color: #fff;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
@ -263,7 +253,18 @@
color: #fff; color: #fff;
line-height: 60rpx; line-height: 60rpx;
border-radius: 16rpx; border-radius: 16rpx;
margin: 12rpx; margin: 12rpx 18rpx;
}
.report-box1 {
width: 200rpx;
max-width: 200rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 1;
border-radius: 32rpx !important;
}
} }
} }

@ -1,8 +1,8 @@
<template> <template>
<view class="park" :style="{backgroundImage:`url(${indexBackgroundImage})`}"> <view class="park" :style="{backgroundImage:`url(${indexBackgroundImage})`}">
<!-- <view class="park-navbar"> <view class="park-navbar">
<u-navbar title="供应商入驻" :border-bottom="false" :background="background"></u-navbar> <u-navbar title="" :border-bottom="false" :background="background"></u-navbar>
</view> --> </view>
<view class="park-but"> <view class="park-but">
<view class="but" @click="handleSortType(10)" :style="{ color: (formData.type==10)?'#794007':'#fff' }"> <view class="but" @click="handleSortType(10)" :style="{ color: (formData.type==10)?'#794007':'#fff' }">
公司 公司
@ -531,15 +531,14 @@
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
background-size: 100% auto; background-size: 100% auto;
min-height: 100vh; height: 3720rpx;
padding-bottom: 68rpx;
background-size: cover; background-size: cover;
.park-but { .park-but {
overflow: hidden; overflow: hidden;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin: 330rpx 60rpx 110rpx 60rpx; margin: 200rpx 60rpx 110rpx 60rpx;
.but { .but {
width: 200rpx; width: 200rpx;

Loading…
Cancel
Save