From 39ae52b3f65e2bba3b6570adb51e791cb3befff7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 02 七月 2025 16:32:29 +0800
Subject: [PATCH] 提交
---
wx/pages/myPolicy/myPolicy.vue | 29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/wx/pages/myPolicy/myPolicy.vue b/wx/pages/myPolicy/myPolicy.vue
index 59caa17..591fad6 100644
--- a/wx/pages/myPolicy/myPolicy.vue
+++ b/wx/pages/myPolicy/myPolicy.vue
@@ -1,7 +1,7 @@
<template>
<view class="policy">
<Search :list="cate" @search="getValue" label="淇濋櫓鐢熸晥璧锋湡" />
- <view class="policy_list">
+ <view class="policy_list" v-if="list.length > 0">
<view class="policy_list_item" v-for="(item, index) in list" :key="index" @click="jump(item.id)">
<view class="item_top" :style="{ background: returnStyle(item.statusCollect) }">
<view class="item_top_info">
@@ -43,13 +43,20 @@
</view>
</view>
</view>
+ <view class="policy_list" v-else>
+ <view class="policy_list_image">
+ <image src="@/static/icon/default_nodata@2x.png" mode="widthFix"></image>
+ </view>
+ </view>
+ <MyTabbar :currentPage="currentPage" />
</view>
</template>
<script>
import Search from '@/components/search/search.vue'
+ import MyTabbar from '@/components/my-tabbar/my-tabbar.vue'
export default {
- components: { Search },
+ components: { Search, MyTabbar },
data() {
return {
list: [],
@@ -72,7 +79,8 @@
startTimeS: '',
statusCollect: ''
},
- page: 1
+ page: 1,
+ currentPage: '/pages/index/index',
};
},
onLoad() {
@@ -92,8 +100,8 @@
this.page = 1
this.list = []
this.form.solutionName = obj.name
- this.form.startTimeE = obj.startTime
- this.form.startTimeS = obj.endTime
+ this.form.startTimeE = obj.endTime
+ this.form.startTimeS = obj.startTime
this.form.statusCollect = obj.status
this.getList()
},
@@ -138,6 +146,17 @@
width: 100%;
padding: 20rpx 30rpx;
box-sizing: border-box;
+ .policy_list_image {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-top: 300rpx;
+ image {
+ width: 272rpx;
+ height: 272rpx;
+ }
+ }
.policy_list_item {
margin-top: 20rpx;
width: 100%;
--
Gitblit v1.9.3