|
<!--fridge.wxml-->
|
|
|
|
<view class="FridgeProfieContainer" >
|
|
<view wx:if="{{hasUserInfo}}" >
|
|
<image bindtap="haimeixie" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" bindlongpress= "userinfo-avatar-hover" mode="cover"></image>
|
|
<text class="nickname">{{shorter_nickname}}的冰箱</text>
|
|
</view>
|
|
<view style="margin-bottom: 5%;">
|
|
<picker header-text="选择类别" mode="multiSelector" bindchange="bindMultiPickerChange_top" bindcolumnchange="bindMultiPickerColumnChange_top" value="{{multiIndex_top}}" range="{{multiArray_top}}">
|
|
<view class="selector">
|
|
<view style="margin-left: 7%;position: absolute;margin-top: 1%;">{{selected_kind}}</view>
|
|
<view style="margin-left: 50%;position: absolute;margin-top: 1%;">{{fresh}}</view>
|
|
<view style="margin-left: 40%;position: absolute;margin-top: 1%;">|</view>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view wx:if="{{exists_outdated&&hasUserInfo}}" bindtap="set_alarm_days" class="alarm">注意:标红食材存放时间≥{{day_limit}}天</view>
|
|
<scroll-view wx:if="{{hasUserInfo}}" scroll-y="true" style="height: 1100rpx;" class="DetailedFoodStockContainer">
|
|
<view style="padding-bottom: 40rpx;"></view>
|
|
<view style="flex-direction:{{if_reverse}};display: flex;">
|
|
<view wx:for="{{stock}}" bindtap="onTapSpecificItem" bindlongpress="stock_longpress" data-product="{{item}}">
|
|
<view wx:if="{{item.kind==selected_kind||selected_kind=='全部'}}">
|
|
<view wx:if="{{item.outdated}}" class="DetailedFoodStock_Important" hover-class="DetailedFoodStock_Important_tap">
|
|
{{item.name}} {{item.amount}}{{item.unit}} {{item.date}}
|
|
</view>
|
|
<view wx:else class="DetailedFoodStock" hover-class="DetailedFoodStock_tap">
|
|
{{item.name}} {{item.amount}}{{item.unit}} {{item.date}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="padding-bottom: 200rpx;"></view>
|
|
</scroll-view>
|
|
|
|
|
|
|
|
<view class="add_icon" bindtap="onTapNewFood" hover-class="add_icon_press">添加食材</view>
|
|
|
|
<view bindtap="onTapNewMeal" class="bottom_button" hover-class="bottom_button_press">
|
|
开启新的一餐
|
|
</view>
|
|
|
|
<view class="deco1"></view>
|
|
<view class="deco2"></view>
|
|
|
|
<view wx:if="{{!hasUserInfo}}" class="bg"></view>
|
|
|