Commit 07820b21bf4ede6b2110c36b7e256e7d8dcf877a

Authored by 刘淇
1 parent a5376a9f

空数据优化

pages-sub/daily/maintain-manage/now-list-page.vue
... ... @@ -86,7 +86,7 @@ const getReportList = async () => {
86 86  
87 87 } catch (err) {
88 88 console.error('获取上报记录失败', err)
89   - uni.showToast({ title: '加载失败', icon: 'none' })
  89 + // uni.showToast({ title: '加载失败', icon: 'none' })
90 90 } finally {
91 91 uni.hideLoading()
92 92 }
... ...
pages-sub/daily/maintain-manage/type-list-page.vue
... ... @@ -23,7 +23,9 @@
23 23 </view>
24 24 <!-- 第二行:任务次数 + 去作业按钮 -->
25 25 <view class="row row-2">
26   - <view class="info-text">任务次数:第{{ item.planFinishNum +1 }}次</view>
  26 + <view class="info-text" v-if="activeStatus === '2'">完成次数:{{ item.planFinishNum }}次</view>
  27 + <view class="info-text" v-else>任务次数:第{{ item.planFinishNum +1 }}次</view>
  28 +
27 29 <!-- 待完成:去作业;已完成:去查看 -->
28 30 <view v-if="activeStatus === '1'" class="mini-btn" @click.stop="handleGoWork(item)">去作业</view>
29 31 <view v-else-if="activeStatus === '2'" class="mini-btn" @click.stop="handleGoWorkLook(item)">去查看</view>
... ...
pages/index/index.vue
... ... @@ -862,11 +862,12 @@ $border-color: #e5e5e5;
862 862 flex: 1;
863 863 font-size: 28rpx;
864 864 color: $text-color;
865   - display: -webkit-box;
866   - -webkit-line-clamp: 2;
867   - -webkit-box-orient: vertical;
  865 + // display: -webkit-box;
  866 + // -webkit-line-clamp: 2;
  867 + // -webkit-box-orient: vertical;
868 868 overflow: hidden;
869 869 text-overflow: ellipsis;
  870 + white-space: nowrap;;
870 871 }
871 872 &__name {
872 873 font-size: 28rpx;
... ...