小程序适配

This commit is contained in:
duan
2024-10-29 15:46:53 +08:00
parent a747dba877
commit 764c9461ae
19 changed files with 478 additions and 275 deletions

View File

@@ -1,7 +1,6 @@
<template>
<view class="statistics">
<view class="statisticsBox">
<view class="time-wrapper">
<view v-for="(v, i) in timeList" :key="i" class="timelistbox">
<view class="time-item" @tap="changeTime(v.value)" :class="{ 'time-selected':v.value==selected }">
@@ -13,10 +12,10 @@
<ul class="payList">
<li v-for="item in list" :key="item.id">
<view class="">
<view style="text-align: center;">
{{item.payType}}
</view>
<view class="">
<view style="text-align: center;">
{{item.payAmount}}
</view>
</li>
@@ -37,7 +36,7 @@
} from 'vue';
import datePickerview from './my-date-pickerview.vue'
import {
onLoad
onShow
} from '@dcloudio/uni-app';
let selected = ref('today')
let list = ref()
@@ -63,7 +62,7 @@
}
]
const currentInstance = getCurrentInstance()
onLoad((options) => {
onShow((options) => {
getlist()
});
@@ -99,7 +98,7 @@
endTime,
}).then((res) => {
list.value = res.sale.payCount.slice(0, 4)
emit('totalRevenue',res.sale.incomeAmountAll)
emit('totalRevenue', res.sale.incomeAmountAll)
})
}
@@ -192,7 +191,7 @@
.payList {
display: flex;
// justify-content: space-around;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
margin-top: 32rpx;