278 lines
5.7 KiB
Vue
278 lines
5.7 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="container">
|
|
<headers :titles="titles"><u-icon name="arrow-left" color="#fff" size="22"></u-icon></headers>
|
|
|
|
<view class="top-time">
|
|
<view style="margin-right: 10px;">选择时间</view>
|
|
<view class="lan-time">
|
|
<span @click="clickStartTime">{{startTime}}</span>
|
|
<span>-</span>
|
|
<span @click="clickEndTime">{{endTime}}</span>
|
|
</view>
|
|
</view>
|
|
|
|
<u-datetime-picker :show="true" v-model="startTime" mode="datetime"></u-datetime-picker>
|
|
|
|
<view class="hm-box">
|
|
<view class="hm-top">营业收入</view>
|
|
<view class="lan-title">¥{{dataForm.sumBalance}}</view>
|
|
<view class="b-bs">
|
|
<view class="">
|
|
<view class="hui-">营业额/笔数</view>
|
|
<view class="lan-">¥{{dataForm.sumBalance}}/{{dataForm.countBalance}}</view>
|
|
</view>
|
|
<view class="">
|
|
<view class="hui-">会员充值/笔数</view>
|
|
<view class="lan-">¥{{dataForm.userBalance}}/{{dataForm.userBalanceCount}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="b-bs">
|
|
<view class="">
|
|
<view class="hui-">退款金额/笔数</view>
|
|
<view class="lan-">¥{{dataForm.refBalance}}/{{dataForm.refBalanceCount}}</view>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
<view class="hm-box">
|
|
<view class="hm-top">支付方式统计</view>
|
|
<view class="d-s" style="margin-bottom: 10px;">
|
|
<view class="icon-img">
|
|
<image src="../../static/imgs/wx.png" mode=""></image>
|
|
</view>
|
|
<view class="">微信支付</view>
|
|
</view>
|
|
<view class="h-b-box">
|
|
<view class="">
|
|
<view class="hui-">营业额/笔数</view>
|
|
<view class="lan-">¥{{dataForm.cash}}/{{dataForm.cashcount}}</view>
|
|
</view>
|
|
<view class="">
|
|
<view class="hui-">会员充值/笔数</view>
|
|
<view class="lan-">¥0.00/0</view>
|
|
</view>
|
|
</view>
|
|
<view class="d-s" style="margin-bottom: 10px;">
|
|
<view class="icon-img">
|
|
<image src="../../static/imgs/zfb.png" mode=""></image>
|
|
</view>
|
|
<view class="">支付宝支付</view>
|
|
</view>
|
|
<view class="h-b-box">
|
|
<view class="">
|
|
<view class="hui-">营业额/笔数</view>
|
|
<view class="lan-">¥0.00/0</view>
|
|
</view>
|
|
<view class="">
|
|
<view class="hui-">会员充值/笔数</view>
|
|
<view class="lan-">¥0.00/0</view>
|
|
</view>
|
|
</view>
|
|
<view class="d-s" style="margin-bottom: 10px;">
|
|
<view class="icon-img">
|
|
<image src="../../static/imgs/yl.png" mode=""></image>
|
|
</view>
|
|
<view class="">银联支付</view>
|
|
</view>
|
|
<view class="h-b-box">
|
|
<view class="">
|
|
<view class="hui-">营业额/笔数</view>
|
|
<view class="lan-">¥0.00/0</view>
|
|
</view>
|
|
<view class="">
|
|
<view class="hui-">会员充值/笔数</view>
|
|
<view class="lan-">¥0.00/0</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import request from "../../utils/request";
|
|
|
|
import headers from '../../components/header/headers.vue'
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
titles: "经营数据",
|
|
startTime: "",
|
|
endTime: "",
|
|
dataForm: {
|
|
|
|
}
|
|
}
|
|
},
|
|
onShow() {
|
|
// this.actList = ["1", "1", "1", "1", "1", ]
|
|
// this.status = "nomore" 底部刷新结束
|
|
this.getIndexData()
|
|
},
|
|
onPullDownRefresh() {
|
|
console.log("刷新");
|
|
uni.stopPullDownRefresh()
|
|
},
|
|
onReachBottom() {
|
|
// this.show = true
|
|
setTimeout(() => {
|
|
console.log("加载执行");
|
|
}, 2000)
|
|
},
|
|
components: {
|
|
headers
|
|
},
|
|
methods: {
|
|
goback() {
|
|
uni.navigateBack()
|
|
},
|
|
// 获取销售数据
|
|
getIndexData() {
|
|
request({
|
|
url: 'business/allOrderInfo/getOperatingDataPos',
|
|
method: 'get',
|
|
params: this.form
|
|
}).then((res) => {
|
|
if (res.code == 200) {
|
|
this.dataForm = res.data
|
|
} else {
|
|
uni.showToast({
|
|
title: res.data,
|
|
icon: "none"
|
|
})
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.content {
|
|
background: #f8f8f8;
|
|
// background: linear-gradient(180deg, #B2D2FC 0%, #B2D2FC 14%, rgba(255, 255, 255, 0.84) 24%, rgba(255, 255, 255, 0.84) 100%);
|
|
height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
background: #f8f8f8;
|
|
box-sizing: border-box;
|
|
padding-top: 88px;
|
|
}
|
|
|
|
.img-box {
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.d-s {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.top-time {
|
|
width: 95%;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
box-sizing: border-box;
|
|
padding: 10px 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
margin: 15px auto;
|
|
|
|
}
|
|
|
|
.lan-time {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
color: #0864E9;
|
|
}
|
|
|
|
.wrap-box {
|
|
width: 95%;
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 15px auto;
|
|
}
|
|
|
|
.b-bai {
|
|
width: 60px;
|
|
height: 80px;
|
|
background: #FFFFFF;
|
|
box-shadow: 0px 0px 4px 0px rgba(67, 104, 212, 0.1);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.hm-box {
|
|
width: 95%;
|
|
box-sizing: border-box;
|
|
padding: 15px;
|
|
background: #FFFFFF;
|
|
margin: 15px auto;
|
|
}
|
|
|
|
.hm-top {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid #F0F0F0;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
color: #0864E9;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.lan-title {
|
|
font-weight: bold;
|
|
font-size: 24px;
|
|
color: #0864E9;
|
|
}
|
|
|
|
.b-bs {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin: 10px auto;
|
|
}
|
|
|
|
.hui- {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
color: #999999;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.lan- {
|
|
font-weight: bold;
|
|
font-size: 18px;
|
|
color: #0864E9;
|
|
}
|
|
|
|
.h-b-box {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.icon-img {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-right: 5px;
|
|
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
</style> |