MrShi
2025-07-02 39ae52b3f65e2bba3b6570adb51e791cb3befff7
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%;