|
|
@ -99,6 +99,44 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
&>.u-swipe-action{ |
|
|
|
margin-top:20rpx; |
|
|
|
.u-swipe-action-item__right__button{ |
|
|
|
display:flex; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
&/deep/ .u-swipe-action-item__content>view{ |
|
|
|
display:flex; |
|
|
|
align-items: center; |
|
|
|
background:rgba(16, 193, 119, 0.1); |
|
|
|
border-radius: 24rpx; |
|
|
|
height:94rpx; |
|
|
|
padding:0 30rpx; |
|
|
|
text{ |
|
|
|
&:first-child{ |
|
|
|
flex-shrink: 0; |
|
|
|
color:#fff; |
|
|
|
background:#10C176; |
|
|
|
font-size: 20rpx; |
|
|
|
border-radius:4px 40px 4px 40px; |
|
|
|
width:80rpx; |
|
|
|
height:40rpx; |
|
|
|
text-align: center; |
|
|
|
line-height: 40rpx; |
|
|
|
margin-right:20rpx; |
|
|
|
} |
|
|
|
&:nth-child(2){ |
|
|
|
flex-grow: 1; |
|
|
|
} |
|
|
|
&:nth-child(3){ |
|
|
|
flex-shrink: 0; |
|
|
|
color:#10C176; |
|
|
|
font-weight: bold; |
|
|
|
margin-left:20rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.u-popup{ |
|
|
|
.u-popup__content>input{ |
|
|
@ -125,9 +163,19 @@ |
|
|
|
<view class="card"> |
|
|
|
<view class="plant-dikuaimianji">{{massif.plotName}}</view> |
|
|
|
<view v-if="formData.inputList.length<=0" class="plant-batch-add" @click="toCollectList"/> |
|
|
|
<view class="info" v-for="(v,k) in formData.inputList" :key="k"> |
|
|
|
<text>{{v.parentName}}</text> <text>{{v.name}}</text> <text>{{v.inputQuantity}}{{v.unit}}</text> |
|
|
|
</view> |
|
|
|
<u-swipe-action v-for="(v,k) in formData.inputList" :key="k"> |
|
|
|
<u-swipe-action-item> |
|
|
|
<view> |
|
|
|
<text>{{v.parentName}}</text> <text>{{v.name}}</text> <text>{{v.total}}</text> |
|
|
|
</view> |
|
|
|
<view slot="button" class="u-swipe-action-item__right__button"> |
|
|
|
<button class="cu-btn bg-red" style="margin:auto;" @click="formData.inputList.splice(k,1)">删除</button> |
|
|
|
</view> |
|
|
|
</u-swipe-action-item> |
|
|
|
</u-swipe-action> |
|
|
|
<!-- <view class="info" v-for="(v,k) in formData.inputList" :key="k"> |
|
|
|
<text>{{v.parentName}}</text> <text>{{v.name}}</text> <text>{{v.total}}</text> |
|
|
|
</view> --> |
|
|
|
<button class="cu-btn round bg-green shadow submit" v-if="formData.inputList.length>0" @click="toCollectList">+继续添加农资</button> |
|
|
|
</view> |
|
|
|
|
|
|
|