|
|
|
<text class="title1">库存</text>
|
|
<view style="position: fixed;left:4%;top:8%" bindtap="back" hover-class="back">
|
|
<text style="font-size: 60rpx;padding-left: 10rpx;padding-right:20rpx;background-color: rgba(255, 255, 255, 0.5);border-radius: 20%;box-shadow: 0px 0px 20px 0 rgba(133, 100, 100, 0.37);" decode="true"><</text>
|
|
</view>
|
|
|
|
<view class="title2" style="position: relative;left:5%;margin-top: 36%;">选中的食材:{{item.amount}}{{item.unit}}{{item.name}}</view>
|
|
<view class="title2" style="position: relative;left:5%;margin-top: 10%;">添加时间:{{item.date}}</view>
|
|
<view class="title2" style="position: relative;left:5%;margin-top: 10%;">距今:{{item.days}}天</view>
|
|
<view class="title2" style="position: relative;left:5%;margin-top: 10%;">剩余:{{item.percentage}}%</view>
|
|
<view class="title2" style="position: relative;left:5%;margin-top: 10%;">
|
|
<view wx:if="{{item.percentage!=percentage}}">修改后剩余:{{percentage}}%</view>
|
|
<view wx:else>拖动滑动条以修改</view>
|
|
</view>
|
|
<slider style="position: relative;margin-top: 20%;" min="0" max="100" step="10" bindchanging="sliderchanging" value="{{percentage}}" activeColor='#ba7a75'></slider>
|
|
<button wx:if="{{item.percentage!=percentage&& percentage!=0}}" class="title2" style="position: relative;margin-top: 10%;box-shadow: 0px 0px 10px 0 rgba(100, 133, 106, 0.37);background-color: #ba7a75;" type="primary" bindtap="change_stock" >提交修改</button>
|
|
<button wx:if="{{item.percentage!=percentage&& percentage==0}}" class="title3" style="position: relative;margin-top: 10%;" bindtap="change_stock">删除库存</button>
|
|
<view class="deco1"></view>
|
|
<view class="deco2"></view>
|
|
|