【fix】优化代码

This commit is contained in:
黄少君
2024-02-22 18:37:23 +08:00
parent 17c043348a
commit f8fac0a5bc
246 changed files with 973 additions and 406 deletions

View File

@ -60,7 +60,7 @@ function leverSelect(value) {
leverTabs.value[4].time = []
leverCurrent.value = value
otherParams.value.createTime = leverTabs.value[leverCurrent.value].time
if(!otherParams.value.createTime || otherParams.value.createTime.length<=0){
if (!otherParams.value.createTime || otherParams.value.createTime.length <= 0) {
delete otherParams.value.createTime
}
refreshPage()
@ -86,7 +86,7 @@ function timeChange(e) {
// ===================== data ==============================
const {otherParams, list, loading, refreshPage} = usePaging({
request: pageDistributionOrder,
load:false
load: false
});
const distributionDetail = ref({
@ -101,7 +101,7 @@ const distributionDetail = ref({
*/
async function doGetDistributionDetail() {
const data = {}
if(otherParams.value.createTime&&otherParams.value.createTime.length>0){
if (otherParams.value.createTime && otherParams.value.createTime.length > 0) {
data.createTime = otherParams.value.createTime
}
distributionDetail.value = await getDistributionDetail(data);
@ -109,7 +109,7 @@ async function doGetDistributionDetail() {
onLoad(() => {
otherParams.value.createTime = leverTabs.value[leverCurrent.value].time
if(!otherParams.value.createTime || otherParams.value.createTime.length<=0){
if (!otherParams.value.createTime || otherParams.value.createTime.length <= 0) {
delete otherParams.value.createTime
}
refreshPage()
@ -161,7 +161,9 @@ onLoad(() => {
v-for="item in list"
:data="item" />
</template>
<Empty :icon-src="emptyOrderIcon" />
<Empty
v-else
:icon-src="emptyOrderIcon" />
</view>
</view>
<!-- 时间选择器 -->
@ -256,9 +258,10 @@ onLoad(() => {
<style>
// #ifdef MP-WEIXIN
.uni-date{
.uni-date {
position: absolute;
top: -500px!important;
top: -500px !important;
}
// #endif
</style>