kitchendDevice/unpackage/dist/build/mp-weixin/pageTwo/count/food.wxml

1 line
12 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="content data-v-23c83afe"><search vue-id="8de3cd70-1" voice="{{true}}" data-ref="search" data-event-opts="{{[['^handleSearch',[['handleSearch']]],['^mic',[['onShowSearchType',[1]]]],['^camera',[['onShowSearchType',[2]]]]]}}" bind:handleSearch="__e" bind:mic="__e" bind:camera="__e" class="data-v-23c83afe vue-ref" bind:__l="__l"></search><view class="box menu data-v-23c83afe"><view class="tab_list data-v-23c83afe"><scroll-view class="scroll-menu data-v-23c83afe" style="white-space:nowrap;" scroll-x="true"><block wx:for="{{menuTop}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view data-event-opts="{{[['tap',[['handleToggle',[ind]]]]]}}" class="tabbar data-v-23c83afe" bindtap="__e"><view class="{{['data-v-23c83afe',index==ind?'active':'']}}">{{ite.name}}</view></view></block></scroll-view></view><view class="left data-v-23c83afe"><block wx:for="{{menu2}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view data-event-opts="{{[['tap',[['handleToggleLeft',[ind]]]]]}}" class="{{['name','data-v-23c83afe',leftInd==ind?'active':'']}}" bindtap="__e">{{''+ite.name+''}}</view></block></view><view class="right data-v-23c83afe"><food-item vue-id="8de3cd70-2" foodList="{{menu3}}" data-event-opts="{{[['^scroll',[['onScrollBottom']]],['^select',[['handleDetail']]]]}}" bind:scroll="__e" bind:select="__e" class="data-v-23c83afe" bind:__l="__l"></food-item><block wx:if="{{!$root.g0}}"><view class="nolist data-v-23c83afe"><icon class="iconfont icon-wancan data-v-23c83afe"></icon><text class="data-v-23c83afe">还没有数据哦!</text></view></block></view></view><view class="groupbtn data-v-23c83afe"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="che data-v-23c83afe" bindtap="__e"><block wx:if="{{$root.g1}}"><text class="data-v-23c83afe">{{$root.g2}}</text></block><icon class="t-icon t-icon-canpan data-v-23c83afe"></icon></view><view data-event-opts="{{[['tap',[['handlesubbtn',['$event']]]]]}}" class="subbtn data-v-23c83afe" bindtap="__e">确定</view></view><block wx:if="{{isShop}}"><view class="wrapper activeList data-v-23c83afe"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="bg data-v-23c83afe" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-23c83afe" catchtap="__e"><view class="title data-v-23c83afe">{{"共"+$root.g3+"条记录"}}</view><block wx:if="{{$root.g4}}"><view class="list data-v-23c83afe"><block wx:for="{{ActiveList}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="item data-v-23c83afe"><view class="data-v-23c83afe"><text class="name data-v-23c83afe">{{ite.name}}</text><text class="data-v-23c83afe">{{""+ite.weight+ite.unit+""}}</text></view><icon data-event-opts="{{[['tap',[['handledelactive',['$0'],[[['ActiveList','',ind]]]]]]]}}" class="iconfont icon-ashbin data-v-23c83afe" bindtap="__e"></icon></view></block></view></block><block wx:else><view class="nolist list data-v-23c83afe"><icon class="iconfont icon-wancan data-v-23c83afe"></icon><text class="data-v-23c83afe">还没有记录哦</text></view></block></view></view></view></block><uni-drawer vue-id="8de3cd70-3" mode="right" width="300" data-ref="showRight" data-event-opts="{{[['^change',[['FoodDetailChange']]]]}}" bind:change="__e" class="data-v-23c83afe vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><scroll-view style="height:100%;" scroll-y="true" class="data-v-23c83afe"><view class="foodDetail data-v-23c83afe"><view class="foodInfo data-v-23c83afe"><image src="{{activeFoodDetail.pic_url}}" mode="aspectFill" class="data-v-23c83afe"></image><view class="info data-v-23c83afe"><view class="name data-v-23c83afe">{{activeFoodDetail.name}}</view><view class="kcal data-v-23c83afe">{{$root.g5+"千卡"}}</view></view></view><view class="foodContent data-v-23c83afe"><view class="title data-v-23c83afe">热量和营养</view><view class="progress data-v-23c83afe"><view class="chart-wrap _div data-v-23c83afe"><qiun-data-charts vue-id="{{('8de3cd70-4')+','+('8de3cd70-3')}}" type="ring" opts="{{opts}}" canvas2d="{{true}}" canvasId="foodCharts" chartData="{{chartData}}" cHeight="{{250}}" cWidth="{{250}}" class="data-v-23c83afe" bind:__l="__l"></qiun-data-charts><view class="uchart-kcal data-v-23c83afe">{{$root.g6}}</view></view><block wx:if="{{activeType.nutrients_four}}"><view class="info data-v-23c83afe"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="info-item data-v-23c83afe"><view class="color data-v-23c83afe" style="{{'background-color:'+(''+item.color)+';'}}"></view><view class="data-v-23c83afe">{{item.name+""+item.proportion+"%"}}</view></view></block></view></block></view><view class="tips data-v-23c83afe"><text class="data-v-23c83afe">营养素</text><text class="data-v-23c83afe">{{activeType.weight+"克含量"}}</text></view><view class="foodDetailList data-v-23c83afe"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodDetailItem data-v-23c83afe"><view class="name data-v-23c83afe">{{item.$orig.name_ch}}</view><view class="value data-v-23c83afe">{{item.g7+item.$orig.unit}}</view></view></block></view></view></view></scroll-view></uni-drawer><block wx:if="{{IsWeight&&!IsFoodDetail}}"><view class="wrapper data-v-23c83afe"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="bg data-v-23c83afe" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-23c83afe" catchtap="__e"><view class="title data-v-23c83afe"><view class="cancel data-v-23c83afe"><icon data-event-opts="{{[['tap',[['Cancelword']]]]}}" class="iconfont icon-error data-v-23c83afe" bindtap="__e"></icon></view></view><view data-event-opts="{{[['tap',[['showFoodDetail',['$0'],['activeType']]]]]}}" class="foodItem data-v-23c83afe" bindtap="__e"><view class="left data-v-23c83afe"><image src="{{activeType.pic_url}}" mode="aspectFill" class="data-v-23c83afe"></image><view class="info data-v-23c83afe"><view class="name data-v-23c83afe">{{activeType.name}}</view><view class="kcal data-v-23c83afe">{{activeType.kcal+"千卡/100克"}}</view></view></view><view class="more data-v-23c83afe">查看营养含量</view></view><view class="foodInfo data-v-23c83afe"><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodInfoItem data-v-23c83afe"><view class="name data-v-23c83afe"><block wx:if="{{item.$orig.color!=''}}"><view class="color data-v-23c83afe" style="{{'background-color:'+(item.$orig.color)+';'}}"></view></block><text class="data-v-23c83afe">{{item.$orig.name+"("+item.m0+")"}}</text></view><view class="value data-v-23c83afe">{{item.g8}}</view></view></block></view><view data-event-opts="{{[['tap',[['handleWeight']]]]}}" class="weight data-v-23c83afe" bindtap="__e"><image class="chengIcon data-v-23c83afe" src="../../static/chengIcon.png" mode="widthFix"></image></view><view class="val data-v-23c83afe"><text class="data-v-23c83afe">{{activeType.weight?$root.g9:'0'}}</text>克</view><block wx:if="{{wordType==1}}"><view class="mybrankmask data-v-23c83afe"><view class="MymaskAll data-v-23c83afe"><view class="MymaskList data-v-23c83afe"><view data-event-opts="{{[['tap',[['NumberCk',[1]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">1</view><view data-event-opts="{{[['tap',[['NumberCk',[2]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">2</view><view data-event-opts="{{[['tap',[['NumberCk',[3]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">3</view></view><view class="MymaskList data-v-23c83afe"><view data-event-opts="{{[['tap',[['NumberCk',[4]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">4</view><view data-event-opts="{{[['tap',[['NumberCk',[5]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">5</view><view data-event-opts="{{[['tap',[['NumberCk',[6]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">6</view></view><view class="MymaskList data-v-23c83afe"><view data-event-opts="{{[['tap',[['NumberCk',[7]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">7</view><view data-event-opts="{{[['tap',[['NumberCk',[8]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">8</view><view data-event-opts="{{[['tap',[['NumberCk',[9]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">9</view></view><view class="MymaskList data-v-23c83afe"><view data-event-opts="{{[['tap',[['NumberCk',['.']]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">.</view><view data-event-opts="{{[['tap',[['NumberCk',[0]]]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e">0</view><view data-event-opts="{{[['tap',[['Cancelword']]]]}}" class="maskListItem data-v-23c83afe" bindtap="__e"><image src="../../static/Clear.png" class="data-v-23c83afe"></image></view></view></view><view class="MymaskList MymaskList2 data-v-23c83afe"><view data-event-opts="{{[['tap',[['Tuige']]]]}}" class="maskListItem text data-v-23c83afe" bindtap="__e"><image class="close data-v-23c83afe" src="../../static/close.png"></image></view><view data-event-opts="{{[['tap',[['Clear']]]]}}" class="maskListItem text data-v-23c83afe" bindtap="__e">清空</view><view data-event-opts="{{[['tap',[['Next']]]]}}" class="maskListItem width48 data-v-23c83afe" bindtap="__e">保存</view></view></view></block></view></view></view></block><view hidden="{{!(isBle&&!IsFoodDetail)}}" class="wrapper data-v-23c83afe" id="wrapper"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="bg data-v-23c83afe" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-23c83afe" catchtap="__e"><view class="title data-v-23c83afe"><icon data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="iconfont icon-error data-v-23c83afe" bindtap="__e"></icon></view><view data-event-opts="{{[['tap',[['showFoodDetail',['$0'],['activeType']]]]]}}" class="foodItem data-v-23c83afe" bindtap="__e"><view class="left data-v-23c83afe"><image src="{{activeType.pic_url}}" mode="aspectFill" class="data-v-23c83afe"></image><view class="info data-v-23c83afe"><view class="name data-v-23c83afe">{{activeType.name}}</view><view class="kcal data-v-23c83afe">{{activeType.kcal+"千卡/100克"}}</view></view></view><view class="more data-v-23c83afe">查看营养含量</view></view><view class="foodInfo data-v-23c83afe"><block wx:for="{{$root.l3}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodInfoItem data-v-23c83afe"><view class="name data-v-23c83afe"><block wx:if="{{item.$orig.color!=''}}"><view class="color data-v-23c83afe" style="{{'background-color:'+(item.$orig.color)+';'}}"></view></block><text class="data-v-23c83afe">{{item.$orig.name+"("+item.m1+")"}}</text></view><view class="value data-v-23c83afe">{{item.g10}}</view></view></block></view><view data-event-opts="{{[['tap',[['handleMannulWeight']]]]}}" class="weight data-v-23c83afe" bindtap="__e"><image class="keybordIcon data-v-23c83afe" src="../../static/keybordIcon.png" mode="widthFix"></image></view><view class="blue-tooth data-v-23c83afe"><blue-tooth vue-id="8de3cd70-5" weightType="2" weightKcal="{{weightKcal}}" data-event-opts="{{[['^handleBle',[['handleBle']]],['^realTimeWeight',[['realTimeWeight']]]]}}" bind:handleBle="__e" bind:realTimeWeight="__e" class="data-v-23c83afe" bind:__l="__l"></blue-tooth></view></view></view></view><block wx:if="{{showAutoSearchDlg}}"><view class="auto-search-dialog data-v-23c83afe"><view class="auto-search-inner data-v-23c83afe"><text class="data-v-23c83afe">{{autoSearchContent!=''?'识别到你描述的食材为“'+autoSearchContent+'”,是否查找食材“'+autoSearchContent+'”':"长安麦克风图标开始说话,松开后结束"}}</text><block wx:if="{{autoSearchType==1&&autoSearchContent==''}}"><view data-event-opts="{{[['touchstart',[['onVoiceTouchStart',['$event']]]],['touchend',[['onVoiceTouchEnd',['$event']]]]]}}" class="mic-icon data-v-23c83afe" style="{{'border-color:'+(mic_touch?'#18bc37':'#777777')+';'}}" bindtouchstart="__e" bindtouchend="__e"><uni-icons vue-id="8de3cd70-6" type="mic-filled" size="80" color="{{mic_touch?'#18bc37':'#777777'}}" class="data-v-23c83afe" bind:__l="__l"></uni-icons></view></block><block wx:else><view class="btn-wrap data-v-23c83afe"><view data-event-opts="{{[['tap',[['retrySearch',['$event']]]]]}}" class="retry data-v-23c83afe" bindtap="__e">重试</view><view data-event-opts="{{[['tap',[['handleVoiceSearch',['$0'],['autoSearchContent']]]]]}}" class="confirm data-v-23c83afe" bindtap="__e">确定</view></view></block><uni-icons class="close data-v-23c83afe" vue-id="8de3cd70-7" type="close" color="#ffffff" size="45" data-event-opts="{{[['^click',[['e5']]]]}}" bind:click="__e" bind:__l="__l"></uni-icons></view></view></block></view>