Browse Source

修改页面显示

master
邓宏 2 years ago
parent
commit
87ebe53319
  1. 23
      pages/massif/mana/recovery.vue
  2. 4
      pages/massif/pestType.vue

23
pages/massif/mana/recovery.vue

@ -52,6 +52,7 @@
width:1rpx; width:1rpx;
.name{ .name{
display: flex; display: flex;
align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom:15rpx; margin-bottom:15rpx;
text{ text{
@ -59,19 +60,26 @@
font-weight: bold; font-weight: bold;
flex-grow: 1; flex-grow: 1;
} }
&:nth-child(2){ &.total{
flex-shrink: 0; flex-shrink: 0;
font-weight: bold; color:#10C176;
font-size:32rpx; font-size:24rpx;
margin-right:20rpx;
&:after{
content:'kg';
}
}
&.surplus{
flex-shrink: 0;
font-size:24rpx;
color:#FFC760;
&:before{ &:before{
content:"剩余:"; content:"剩余:";
font-weight: normal; font-weight: normal;
font-size:24rpx;
} }
&:after{ &:after{
content:attr(data-unit); content:'kg';
font-weight: normal; font-weight: normal;
font-size:24rpx;
} }
} }
} }
@ -120,7 +128,8 @@
<view class="detail"> <view class="detail">
<view class="name"> <view class="name">
<text class="over">{{v.plantName}}</text> <text class="over">{{v.plantName}}</text>
<text data-unit="kg">{{v.harvestNum}}</text></view> <text class="total">200</text>
<text class="surplus">{{v.harvestNum}}</text></view>
<view class="info"> <view class="info">
<text class="people">负责人:{{v.principal}}</text> <text class="people">负责人:{{v.principal}}</text>
<text class="date">采收日期:{{v.harvestTime}}</text> <text class="date">采收日期:{{v.harvestTime}}</text>

4
pages/massif/pestType.vue

@ -103,7 +103,7 @@
<view class="items"> <view class="items">
<text :class="{active:select==v}" v-for="(v,k) in list" :key="k" @click="select=v">{{v}}</text> <text :class="{active:select==v}" v-for="(v,k) in list" :key="k" @click="select=v">{{v}}</text>
</view> </view>
<u-empty :show="list.length<=0" text=" " width="70%" icon="/static/noData.png"/> <u-empty :show="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/>
</scroll-view> </scroll-view>
</view> </view>
</template> </template>
@ -139,7 +139,7 @@ export default {
params:{code:"B09"} params:{code:"B09"}
}) })
if(res.statu){ if(res.statu){
this.cropList=res.data.map(v=>({...v,children:v.children.length>0?v.children:[{label:"全部",value:'all'}]})) this.cropList=res.data.map(v=>({...v,children:v?.children?.length>0?v.children:[{label:"全部",value:'all'}]}))
this.agrSearch(res.data[0]?.children?.[0]?.value||"") this.agrSearch(res.data[0]?.children?.[0]?.value||"")
}else{ }else{
uni.showModal({ uni.showModal({

Loading…
Cancel
Save