Browse Source

首页 修改农事显示

master
邓宏 2 years ago
parent
commit
c264655133
  1. 13
      pages/home/index.vue

13
pages/home/index.vue

@ -239,16 +239,11 @@
text{ text{
&:first-child{ &:first-child{
flex-shrink: 0; flex-shrink: 0;
min-width:140rpx; min-width:90rpx;
color:#333333; color:#333333;
font-size:28rpx; font-size:28rpx;
margin-right:20rpx; margin-right:20rpx;
} }
&:nth-child(2){
color:#999999;
font-size:24rpx;
margin-left:auto;
}
} }
} }
} }
@ -348,12 +343,14 @@
<template v-if="!baseIndex || baseIndex=='record'"> <template v-if="!baseIndex || baseIndex=='record'">
<view v-for="(v,k) in baseInfo.farmWork||[]" :key="`${k}_work`" class="item" style="--c:16, 193, 118;"> <view v-for="(v,k) in baseInfo.farmWork||[]" :key="`${k}_work`" class="item" style="--c:16, 193, 118;">
<text>农事</text> <text class="over">{{v.userName}}{{new Date(v.time).format('yyyy-MM-dd')}}日完成了{{v.plotName}}{{v.farmWorkName}}任务</text> <text>农事</text>
<u-notice-bar style="padding:0rpx;" icon="" speed="45" color="#777" bgColor="" :text="`${v.userName}${new Date(v.time).format('yyyy-MM-dd')}日完成了${v.plotName}${v.farmWorkName}任务`"/>
</view> </view>
</template> </template>
<template v-if="!baseIndex || baseIndex=='input'"> <template v-if="!baseIndex || baseIndex=='input'">
<view v-for="(v,k) in baseInfo.farmingInput||[]" :key="`${k}_input`" class="item" style="--c:255, 195, 83;"> <view v-for="(v,k) in baseInfo.farmingInput||[]" :key="`${k}_input`" class="item" style="--c:255, 195, 83;">
<text>投入品</text> <text class="over">{{v.userName}}{{new Date(v.time).format('yyyy-MM-dd')}}日完成了{{v.plotName}}{{v.farmWorkName}}任务</text> <text>投入品</text>
<u-notice-bar style="padding:0rpx;" icon="" speed="45" color="#777" bgColor="" :text="`${v.userName}${new Date(v.time).format('yyyy-MM-dd')}日完成了${v.plotName}${v.farmWorkName}任务`"/>
</view> </view>
</template> </template>
<u-empty v-if="isEmpty" text="为查询到相关信息" width="70%" icon="/static/noData.png"/> <u-empty v-if="isEmpty" text="为查询到相关信息" width="70%" icon="/static/noData.png"/>

Loading…
Cancel
Save