<view class="content addFood data-v-0ce948a0"><view data-event-opts="{{[['tap',[['handleFMimg',[0]]]]]}}" class="topimg data-v-0ce948a0" bindtap="__e"><block wx:if="{{FMimg}}"><image src="{{FMimg}}" mode="aspectFill" class="data-v-0ce948a0"></image></block><icon class="iconfont icon-add data-v-0ce948a0"></icon><text class="text data-v-0ce948a0">上传封面</text><text class="data-v-0ce948a0">(单张图片)</text></view><view class="title data-v-0ce948a0"><input type="text" placeholder="输入菜谱标题" data-event-opts="{{[['input',[['__set_model',['$0','title','$event',[]],['info']]]]]}}" value="{{info.title}}" bindinput="__e" class="data-v-0ce948a0"/></view><view class="title title2 data-v-0ce948a0"><view class="data-v-0ce948a0">菜谱类型：</view><picker mode="selector" range="{{menu}}" range-key="name" value="{{cookIndex}}" data-event-opts="{{[['change',[['changeMenuList',['$event']]]]]}}" bindchange="__e" class="data-v-0ce948a0"><view class="uni-input data-v-0ce948a0">{{''+(cookIndex!=null?menu[cookIndex].name:"请选择")+''}}<uni-icons vue-id="37e09b56-1" type="forward" size="20" color="#999" class="data-v-0ce948a0" bind:__l="__l"></uni-icons></view></picker></view><view class="textarea data-v-0ce948a0"><textarea name="content" placeholder="输入菜谱简介" maxlength="100" data-event-opts="{{[['input',[['__set_model',['$0','description','$event',[]],['info']]]]]}}" value="{{info.description}}" bindinput="__e" class="data-v-0ce948a0"></textarea></view><block wx:if="{{isFood}}"><view class="food data-v-0ce948a0"><view class="h4 data-v-0ce948a0">添加食材<block wx:if="{{$root.g0}}"><text data-event-opts="{{[['tap',[['handleClose',['$event']]]]]}}" class="close data-v-0ce948a0" bindtap="__e">清空</text></block></view><block wx:for="{{$root.l0}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><block wx:if="{{ite.g1}}"><view class="foodlist data-v-0ce948a0"><view class="item data-v-0ce948a0"><view class="name data-v-0ce948a0">{{ite.$orig.name}}</view><view class="input data-v-0ce948a0"><input class="text data-v-0ce948a0" placeholder="请输入用量" type="digit" data-event-opts="{{[['input',[['__set_model',['$0','weight','$event',[]],[[['info.tags.__$n0.list','',ind]]]]]]]}}" value="{{ite.$orig.weight}}" bindinput="__e"/>{{ite.$orig.unit+''}}</view><view class="edit data-v-0ce948a0"><icon data-event-opts="{{[['tap',[['handledel',[ind,'food']]]]]}}" class="iconfont icon-ashbin data-v-0ce948a0" bindtap="__e"></icon><image class="xia data-v-0ce948a0" src="../../static/xia.png" data-event-opts="{{[['tap',[['handleMove',[ind,0,'food']]]]]}}" bindtap="__e"></image><image class="shang xia data-v-0ce948a0" src="../../static/xia.png" data-event-opts="{{[['tap',[['handleMove',[ind,1,'food']]]]]}}" bindtap="__e"></image></view></view></view></block></block><view data-event-opts="{{[['tap',[['handleAddfood']]]]}}" class="add data-v-0ce948a0" bindtap="__e">+添加食材</view></view></block><view class="step data-v-0ce948a0"><view class="h4 data-v-0ce948a0">添加步骤</view><block wx:for="{{$root.l2}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><block wx:if="{{$root.g2}}"><view class="step_list data-v-0ce948a0"><view class="top data-v-0ce948a0"><text class="data-v-0ce948a0">{{"步骤"+(ind+1)}}</text><view class="edit data-v-0ce948a0"><icon data-event-opts="{{[['tap',[['handledel',[ind,'step']]]]]}}" class="iconfont icon-ashbin data-v-0ce948a0" bindtap="__e"></icon><image class="xia data-v-0ce948a0" src="../../static/xia.png" data-event-opts="{{[['tap',[['handleMove',[ind,0,'step']]]]]}}" bindtap="__e"></image><image class="shang xia data-v-0ce948a0" src="../../static/xia.png" data-event-opts="{{[['tap',[['handleMove',[ind,1,'step']]]]]}}" bindtap="__e"></image></view></view><view class="right data-v-0ce948a0"><view data-event-opts="{{[['tap',[['handleBZimage',['$0',ind],[[['info.step_list','',ind]]]]]]]}}" class="image data-v-0ce948a0" bindtap="__e"><block wx:for="{{ite.l1}}" wx:for-item="img" wx:for-index="id"><block wx:if="{{img.g3}}"><image src="{{img.$orig}}" mode="aspectFill" class="data-v-0ce948a0"></image></block></block><icon class="iconfont icon-add data-v-0ce948a0"></icon><text class="text data-v-0ce948a0">上传封面</text></view><view class="textarea data-v-0ce948a0"><textarea name="content" placeholder="输入步骤说明" maxlength="100" data-event-opts="{{[['input',[['__set_model',['$0','description','$event',[]],[[['info.step_list','',ind]]]]]]]}}" value="{{ite.$orig.description}}" bindinput="__e" class="data-v-0ce948a0"></textarea></view></view></view></block></block><view data-event-opts="{{[['tap',[['handleAddstep',['$event']]]]]}}" class="add data-v-0ce948a0" bindtap="__e">+添加步骤</view></view><view class="groupbtn data-v-0ce948a0"><view data-event-opts="{{[['tap',[['handleLook',[1]]]]]}}" bindtap="__e" class="data-v-0ce948a0">预览</view><view data-event-opts="{{[['tap',[['handleLook',[2]]]]]}}" class="subbtn data-v-0ce948a0" bindtap="__e">保存</view></view></view>