ck_list.wxml
2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<nav backgroundColor="#199095" color="#ffffff">我的菜品</nav>
<view class="fixed-search flex-cc bg_green" style="height:{{newlist && inputKey && inputKey!='' ? '130rpx' : '90rpx'}};top:{{topheight}}px;">
<view class="flex-cc" style="width:84%;border-radius:8rpx;background:#fff;overflow:hidden;">
<image src="../image/search.png" background-size="cover" class="search-icon"></image>
<input placeholder="请填写菜品名称" class="search-input" placeholder-style="color:#999;font-size:28rpx;" style="width:{{searchWidth}}px" name="key" value="{{inputKey}}" bindconfirm="searchsubmit"/>
</view>
</view>
<block wx:if="{{newlist && inputKey && inputKey!=''}}">
<view style="margin-top:130rpx;">
<view class="flex-rs cook-all" style="padding-top:30rpx;">
<block wx:for="{{newlist}}">
<cookList item="{{item}}" pagetype="cclist" bind:selectcook="selectcook"></cookList>
</block>
</view>
</view>
</block>
<block wx:else>
<block wx:if="{{inputKey && inputKey=='' || !inputKey}}">
<cookClass typelist="{{classlist}}" bind:getcooklist="getcooklist" topHeight="{{topheight+38}}"></cookClass>
<view style="padding-top:{{mtop}}rpx;margin-top:90rpx;">
<view class="flex-rs cook-all" style="padding-top:30rpx;">
<block wx:for="{{cooklist.cookbooklist[0]}}">
<cookList item="{{item}}" pagetype="cclist" bind:selectcook="selectcook"></cookList>
</block>
</view>
</view>
</block>
</block>
<!-- 估清弹出框 -->
<view class="modal-mask" hidden="{{atn_ishidden}}"></view>
<!-- 无规格 -->
<view class="modal-dialog" hidden="{{atn_ishidden}}">
<view class="modal-dialog-title flex-cc font36r black">{{title}}</view>
<input type="number" bindinput="onlyModalInput" cursor-spacing="100" name="" maxlength="4" placeholder="点这里,填写沽清数量" value="{{clear_num}}" class="modal-dialog-input font30r black" placeholder-style="color:#999;font-size:32rpx;text-align:center;" focus="{{auto_focus}}"/>
<view class="modal-dialog-button flex-lr">
<view class="modal-button modal-cancel flex-cc font36r black" bindtap="onlyCancelModel">取消</view>
<view class="modal-button modal-confirm flex-cc font36r" bindtap="onlyConfirmModel">确定</view>
</view>
</view>
<netWork bind:netchange="netchange" id="network"></netWork>