|
@@ -1,10 +1,18 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
|
|
+ <view class="head">
|
|
|
|
+ <view class="company">
|
|
|
|
+ <font style="color: #F76260;">申泽棉花糖后台</font>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="pname">
|
|
|
|
+ <font class="wenzi" style="color: #F76260;text-align:right">用户:{{pname}}</font>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class="qiun-title-bar color">
|
|
<view class="qiun-title-bar color">
|
|
- <view class="qiun-title-dot-light"><font style="color: #FFFFFF;">今日收入总额: {{dayTotalMoney}}</font></view>
|
|
|
|
- <view class="qiun-title-dot-light"><font style="color: #FFFFFF;">本周收入总额: {{weekTotalMoney}}</font></view>
|
|
|
|
- <view class="qiun-title-dot-light"><font style="color: #FFFFFF;">本月收入总额: {{monthTotalMoney}}</font></view>
|
|
|
|
- <view class="qiun-title-dot-light"><font style="color: #FFFFFF;">本年度收入总额: {{yearTotalMoney}}</font></view>
|
|
|
|
|
|
+ <view class="qiun-title-dot-light1"><font style="color: #FFFFFF;">今日收入总额: {{dayTotalMoney}} 销售数量:{{dayTotalNum}}</font></view>
|
|
|
|
+ <view class="qiun-title-dot-light1"><font style="color: #FFFFFF;">本周收入总额: {{weekTotalMoney}} 销售数量:{{weekTotalNum}}</font></view>
|
|
|
|
+ <view class="qiun-title-dot-light1"><font style="color: #FFFFFF;">本月收入总额: {{monthTotalMoney}} 销售数量:{{monthTotalNum}}</font></view>
|
|
|
|
+ <view class="qiun-title-dot-light1"><font style="color: #FFFFFF;">本年度收入总额: {{yearTotalMoney}} 销售数量:{{yearTotalNum}}</font></view>
|
|
</view>
|
|
</view>
|
|
<view class="qiun-columns">
|
|
<view class="qiun-columns">
|
|
<view class="qiun-bg-white qiun-title-bar qiun-common-mt">
|
|
<view class="qiun-bg-white qiun-title-bar qiun-common-mt">
|
|
@@ -82,10 +90,15 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ pname:'',
|
|
dayTotalMoney:0,
|
|
dayTotalMoney:0,
|
|
|
|
+ dayTotalNum:0,
|
|
weekTotalMoney:0,
|
|
weekTotalMoney:0,
|
|
|
|
+ weekTotalNum:0,
|
|
monthTotalMoney:0,
|
|
monthTotalMoney:0,
|
|
|
|
+ monthTotalNum:0,
|
|
yearTotalMoney:0,
|
|
yearTotalMoney:0,
|
|
|
|
+ yearTotalNum:0,
|
|
cWidth: '',
|
|
cWidth: '',
|
|
cHeight: '',
|
|
cHeight: '',
|
|
pixelRatio: 1,
|
|
pixelRatio: 1,
|
|
@@ -106,6 +119,8 @@
|
|
// this.init();
|
|
// this.init();
|
|
// },
|
|
// },
|
|
onShow() {
|
|
onShow() {
|
|
|
|
+ var pname = uni.getStorageSync("name");
|
|
|
|
+ this.pname = pname;
|
|
var test = uni.getStorageSync('test');
|
|
var test = uni.getStorageSync('test');
|
|
//判断是不是初次登陆
|
|
//判断是不是初次登陆
|
|
if(test == 2){
|
|
if(test == 2){
|
|
@@ -113,7 +128,9 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- console.log("mounted")
|
|
|
|
|
|
+ console.log("mounted");
|
|
|
|
+ var pname = uni.getStorageSync("name");
|
|
|
|
+ this.pname = pname;
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -311,15 +328,19 @@
|
|
for (let bean of data) {
|
|
for (let bean of data) {
|
|
if(bean['categorie']==='day'){
|
|
if(bean['categorie']==='day'){
|
|
this.dayTotalMoney=bean['salePrice'];
|
|
this.dayTotalMoney=bean['salePrice'];
|
|
|
|
+ this.dayTotalNum=bean['saleNum'];
|
|
}
|
|
}
|
|
if(bean['categorie']==='week'){
|
|
if(bean['categorie']==='week'){
|
|
this.weekTotalMoney=bean['salePrice'];
|
|
this.weekTotalMoney=bean['salePrice'];
|
|
|
|
+ this.weekTotalNum=bean['saleNum'];
|
|
}
|
|
}
|
|
if(bean['categorie']==='month'){
|
|
if(bean['categorie']==='month'){
|
|
this.monthTotalMoney=bean['salePrice'];
|
|
this.monthTotalMoney=bean['salePrice'];
|
|
|
|
+ this.monthTotalNum=bean['saleNum'];
|
|
}
|
|
}
|
|
if(bean['categorie']==='year'){
|
|
if(bean['categorie']==='year'){
|
|
this.yearTotalMoney=bean['salePrice'];
|
|
this.yearTotalMoney=bean['salePrice'];
|
|
|
|
+ this.yearTotalNum=bean['saleNum'];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
@@ -419,7 +440,25 @@
|
|
width: 750upx;
|
|
width: 750upx;
|
|
overflow-x: hidden;
|
|
overflow-x: hidden;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ .head{
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ }
|
|
|
|
+ .company{
|
|
|
|
+ padding-left: 15upx;
|
|
|
|
+ width: 48%;
|
|
|
|
+ }
|
|
|
|
+ .pname{
|
|
|
|
+ width: 48%;
|
|
|
|
+ text-align:right;
|
|
|
|
+ }
|
|
|
|
+ .wenzi{
|
|
|
|
+ padding-right: 0upx;
|
|
|
|
+ /* text-align:right; */
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ /* text-overflow: ellipsis; */
|
|
|
|
+ }
|
|
.qiun-padding {
|
|
.qiun-padding {
|
|
padding: 2%;
|
|
padding: 2%;
|
|
width: 96%;
|
|
width: 96%;
|
|
@@ -442,6 +481,7 @@
|
|
|
|
|
|
.qiun-common-mt {
|
|
.qiun-common-mt {
|
|
margin-top: 0upx;
|
|
margin-top: 0upx;
|
|
|
|
+ height: 170upx;
|
|
}
|
|
}
|
|
|
|
|
|
.qiun-bg-white {
|
|
.qiun-bg-white {
|
|
@@ -465,7 +505,15 @@
|
|
font-size: 50upx;
|
|
font-size: 50upx;
|
|
color: #000000;
|
|
color: #000000;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ .qiun-title-dot-light1 {
|
|
|
|
+ /* border-left: 10upx solid #0ea391; */
|
|
|
|
+ padding-top: 10upx;
|
|
|
|
+ border-left: 20upx;
|
|
|
|
+ padding-left: 20upx;
|
|
|
|
+ font-family: "宋体";
|
|
|
|
+ font-size: 30upx;
|
|
|
|
+ color: #000000;
|
|
|
|
+ }
|
|
.qiun-charts {
|
|
.qiun-charts {
|
|
width: 750upx;
|
|
width: 750upx;
|
|
height: 430upx;
|
|
height: 430upx;
|
|
@@ -480,9 +528,9 @@
|
|
margin: auto;
|
|
margin: auto;
|
|
}
|
|
}
|
|
.preImg {
|
|
.preImg {
|
|
- position: absolute;left: 40upx; width: 40upx;height: 40upx;
|
|
|
|
|
|
+ position: absolute;left: 40upx; width: 60upx;height: 60upx;
|
|
}
|
|
}
|
|
.nextImg {
|
|
.nextImg {
|
|
- position: absolute;right: 40upx; width: 40upx;height: 40upx;
|
|
|
|
|
|
+ position: absolute;right: 40upx; width: 60upx;height: 60upx;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|