九月线上版本1.2.0
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<area-time :chartData="detailData" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal bottom-modal" :class="dialogModal">
|
||||
<view class="cu-modal bottom-modal" style="z-index: 999999;" :class="dialogModal">
|
||||
<view class="cu-dialog">
|
||||
<view class="cu-bar bg-white ">
|
||||
<view class="action text-blue" @tap="hideModal">取消</view>
|
||||
@@ -66,7 +66,7 @@
|
||||
const months = []
|
||||
const month = date.getMonth() + 1
|
||||
const days = []
|
||||
const day = date.getDate() - 1
|
||||
const day = date.getDate()
|
||||
for (let i = 2020; i <= date.getFullYear(); i++) {
|
||||
years.push(i)
|
||||
}
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
|
||||
<analysis-card @showModal="showModal" :basicData="basicData" />
|
||||
<view class="margin bg-white radius">
|
||||
<view class="margin">
|
||||
<view class="margin" style="position: relative;z-index: 1;">
|
||||
<area-month :chartData="detailData" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-modal bottom-modal" :class="dialogModal">
|
||||
<view class="cu-modal bottom-modal" style="z-index: 999999;" :class="dialogModal">
|
||||
<view class="cu-dialog">
|
||||
<view class="cu-bar bg-white ">
|
||||
<view class="action text-blue" @tap="hideModal">取消</view>
|
||||
@@ -37,16 +37,8 @@
|
||||
<picker-view-column>
|
||||
<view class="item" v-for="(item,index) in months" :key="index">{{item}}月</view>
|
||||
</picker-view-column>
|
||||
<picker-view-column>
|
||||
<view class="item" v-for="(item,index) in days" :key="index">{{item}}日</view>
|
||||
</picker-view-column>
|
||||
</picker-view>
|
||||
<view class="cu-bar bg-white justify-end">
|
||||
<view class="action">
|
||||
<button class="cu-btn line-green text-green" @tap="hideModal">取消</button>
|
||||
<button class="cu-btn bg-green margin-left" @tap="onConfirm">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -91,7 +83,7 @@
|
||||
day: day,
|
||||
// value: [9999, month - 1, day - 1],
|
||||
value: [0, month - 1, day - 1],
|
||||
selDate: year + '-' + month + '-' + day,
|
||||
selDate: year + '-' + month,
|
||||
detailData: [],
|
||||
basicData: {
|
||||
totalAccount: 0,
|
||||
@@ -117,15 +109,15 @@
|
||||
},
|
||||
methods: {
|
||||
getMonthly() {
|
||||
cloudSiteApi.getAnyMonth(this.selDate).then(res => {
|
||||
cloudSiteApi.getAnyMonth(this.selDate+'-5').then(res => {
|
||||
uni.stopPullDownRefresh()
|
||||
if (res.code === 20000) {
|
||||
this.basicData = res.data.basicData
|
||||
res.data.detailData.forEach(item=>{
|
||||
res.data.detailData.forEach(item => {
|
||||
var date = item[0]
|
||||
date = date.substring(0, 19);
|
||||
date = date.replace(/-/g, '/');
|
||||
item[0] = new Date(date).getTime();
|
||||
item[0] = new Date(date).getTime();
|
||||
})
|
||||
this.detailData = res.data.detailData
|
||||
}
|
||||
@@ -144,12 +136,7 @@
|
||||
} else {
|
||||
m = this.month
|
||||
}
|
||||
if (this.day < 10) {
|
||||
d = '0' + this.day
|
||||
} else {
|
||||
d = this.day
|
||||
}
|
||||
this.selDate = this.year + '-' + m + '-' + d
|
||||
this.selDate = this.year + '-' + m
|
||||
console.log(this.selDate)
|
||||
},
|
||||
showModal(e) {
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<view class="padding text-center flex-sub">
|
||||
<text>顾客数</text>
|
||||
<view class="padding-sm">
|
||||
<text class="oil-main-color">¥{{basicData.totalAccount|numberFilter}}</text>
|
||||
<text class="oil-main-color">{{basicData.totalAccount}}</text>
|
||||
</view>
|
||||
<!-- <button class="cu-btn bg-main-oil text-white text-sm ">
|
||||
查看明细
|
||||
@@ -44,7 +44,7 @@
|
||||
<view class="margin">
|
||||
<view class="cu-list menu-avatar radius">
|
||||
<view class="cu-item" @tap="routerTo('/pages/operation-analysis/analysis/daily')">
|
||||
<view class="cu-avatar round lg" :style="'background-image: url('+mainURL+'default-avator.png)'">
|
||||
<view class="cu-avatar lg" :style="'background-image: url('+mainURL+'rb.png)'">
|
||||
</view>
|
||||
<view class="content ">
|
||||
<text>经营分析——日报</text>
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
</view>
|
||||
<view class="cu-item" @tap="routerTo('/pages/operation-analysis/analysis/monthly')">
|
||||
<view class="cu-avatar round lg" :style="'background-image: url('+mainURL+'default-avator.png)'">
|
||||
<view class="cu-avatar lg" :style="'background-image: url('+mainURL+'yb.png)'">
|
||||
</view>
|
||||
<view class="content">
|
||||
<text> 经营分析——月报</text>
|
||||
|
||||
Reference in New Issue
Block a user