1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
<view class="content data-v-da0e2c1e"><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-da0e2c1e vue-ref" bind:__l="__l"></search><view class="box menu data-v-da0e2c1e"><view class="tab_list data-v-da0e2c1e"><scroll-view class="scroll-menu data-v-da0e2c1e" 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-da0e2c1e" bindtap="__e"><view class="{{['data-v-da0e2c1e',index==ind?'active':'']}}">{{ite.name}}</view></view></block></scroll-view></view><view class="left data-v-da0e2c1e"><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-da0e2c1e',leftInd==ind?'active':'']}}" bindtap="__e">{{''+ite.name+''}}</view></block></view><view class="right data-v-da0e2c1e"><food-item vue-id="8de3cd70-2" foodList="{{menu3}}" data-event-opts="{{[['^scroll',[['onScrollBottom']]],['^select',[['handleDetail']]]]}}" bind:scroll="__e" bind:select="__e" class="data-v-da0e2c1e" bind:__l="__l"></food-item><block wx:if="{{!$root.g0}}"><view class="nolist data-v-da0e2c1e"><icon class="iconfont icon-wancan data-v-da0e2c1e"></icon><text class="data-v-da0e2c1e">还没有数据哦!</text></view></block></view></view><view class="groupbtn data-v-da0e2c1e"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="che data-v-da0e2c1e" bindtap="__e"><block wx:if="{{$root.g1}}"><text class="data-v-da0e2c1e">{{$root.g2}}</text></block><icon class="t-icon t-icon-canpan data-v-da0e2c1e"></icon></view><view data-event-opts="{{[['tap',[['handlesubbtn',['$event']]]]]}}" class="subbtn data-v-da0e2c1e" bindtap="__e">确定</view></view><block wx:if="{{isShop}}"><view class="wrapper activeList data-v-da0e2c1e"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="bg data-v-da0e2c1e" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-da0e2c1e" catchtap="__e"><view class="title data-v-da0e2c1e">{{"共"+$root.g3+"条记录"}}</view><block wx:if="{{$root.g4}}"><view class="list data-v-da0e2c1e"><block wx:for="{{ActiveList}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="item data-v-da0e2c1e"><view class="data-v-da0e2c1e"><text class="name data-v-da0e2c1e">{{ite.name}}</text><text class="data-v-da0e2c1e">{{"("+ite.weight+ite.unit+")"}}</text></view><icon data-event-opts="{{[['tap',[['handledelactive',['$0'],[[['ActiveList','',ind]]]]]]]}}" class="iconfont icon-ashbin data-v-da0e2c1e" bindtap="__e"></icon></view></block></view></block><block wx:else><view class="nolist list data-v-da0e2c1e"><icon class="iconfont icon-wancan data-v-da0e2c1e"></icon><text class="data-v-da0e2c1e">还没有记录哦</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-da0e2c1e vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><scroll-view style="height:100%;" scroll-y="true" class="data-v-da0e2c1e"><view class="foodDetail data-v-da0e2c1e"><view class="foodInfo data-v-da0e2c1e"><image src="{{activeFoodDetail.pic_url}}" mode="aspectFill" class="data-v-da0e2c1e"></image><view class="info data-v-da0e2c1e"><view class="name data-v-da0e2c1e">{{activeFoodDetail.name}}</view><view class="kcal data-v-da0e2c1e">{{$root.g5+"千卡"}}</view></view></view><view class="foodContent data-v-da0e2c1e"><view class="title data-v-da0e2c1e">热量和营养</view><view class="progress data-v-da0e2c1e"><view class="chart-wrap _div data-v-da0e2c1e"><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-da0e2c1e" bind:__l="__l"></qiun-data-charts><view class="uchart-kcal data-v-da0e2c1e">{{$root.g6}}</view></view><block wx:if="{{activeType.nutrients_four}}"><view class="info data-v-da0e2c1e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="info-item data-v-da0e2c1e"><view class="color data-v-da0e2c1e" style="{{'background-color:'+(''+item.color)+';'}}"></view><view class="data-v-da0e2c1e">{{item.name+":"+item.proportion+"%"}}</view></view></block></view></block></view><view class="tips data-v-da0e2c1e"><text class="data-v-da0e2c1e">营养素</text><text class="data-v-da0e2c1e">{{activeType.weight+"克含量"}}</text></view><view class="foodDetailList data-v-da0e2c1e"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodDetailItem data-v-da0e2c1e"><view class="name data-v-da0e2c1e">{{item.$orig.name_ch}}</view><view class="value data-v-da0e2c1e">{{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-da0e2c1e"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="bg data-v-da0e2c1e" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-da0e2c1e" catchtap="__e"><view class="title data-v-da0e2c1e"><view class="cancel data-v-da0e2c1e"><icon data-event-opts="{{[['tap',[['Cancelword']]]]}}" class="iconfont icon-error data-v-da0e2c1e" bindtap="__e"></icon></view></view><view data-event-opts="{{[['tap',[['showFoodDetail',['$0'],['activeType']]]]]}}" class="foodItem data-v-da0e2c1e" bindtap="__e"><view class="left data-v-da0e2c1e"><image src="{{activeType.pic_url}}" mode="aspectFill" class="data-v-da0e2c1e"></image><view class="info data-v-da0e2c1e"><view class="name data-v-da0e2c1e">{{activeType.name}}</view><view class="kcal data-v-da0e2c1e">{{activeType.kcal+"千卡/100克"}}</view></view></view><view class="more data-v-da0e2c1e">查看</view></view><view class="foodInfo data-v-da0e2c1e"><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodInfoItem data-v-da0e2c1e"><view class="name data-v-da0e2c1e"><block wx:if="{{item.$orig.color!=''}}"><view class="color data-v-da0e2c1e" style="{{'background-color:'+(item.$orig.color)+';'}}"></view></block><text class="data-v-da0e2c1e">{{item.$orig.name+"("+item.m0+")"}}</text></view><view class="value data-v-da0e2c1e">{{item.g8}}</view></view></block></view><view data-event-opts="{{[['tap',[['handleWeight']]]]}}" class="weight data-v-da0e2c1e" bindtap="__e"><image class="chengIcon data-v-da0e2c1e" src="../../static/chengIcon.png" mode="widthFix"></image></view><view class="val data-v-da0e2c1e"><text class="data-v-da0e2c1e">{{activeType.weight?$root.g9:'0'}}</text>克</view><block wx:if="{{wordType==1}}"><view class="mybrankmask data-v-da0e2c1e"><view class="MymaskAll data-v-da0e2c1e"><view class="MymaskList data-v-da0e2c1e"><view data-event-opts="{{[['tap',[['NumberCk',[1]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">1</view><view data-event-opts="{{[['tap',[['NumberCk',[2]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">2</view><view data-event-opts="{{[['tap',[['NumberCk',[3]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">3</view></view><view class="MymaskList data-v-da0e2c1e"><view data-event-opts="{{[['tap',[['NumberCk',[4]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">4</view><view data-event-opts="{{[['tap',[['NumberCk',[5]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">5</view><view data-event-opts="{{[['tap',[['NumberCk',[6]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">6</view></view><view class="MymaskList data-v-da0e2c1e"><view data-event-opts="{{[['tap',[['NumberCk',[7]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">7</view><view data-event-opts="{{[['tap',[['NumberCk',[8]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">8</view><view data-event-opts="{{[['tap',[['NumberCk',[9]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">9</view></view><view class="MymaskList data-v-da0e2c1e"><view data-event-opts="{{[['tap',[['NumberCk',['.']]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">.</view><view data-event-opts="{{[['tap',[['NumberCk',[0]]]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e">0</view><view data-event-opts="{{[['tap',[['Cancelword']]]]}}" class="maskListItem data-v-da0e2c1e" bindtap="__e"><image src="../../static/Clear.png" class="data-v-da0e2c1e"></image></view></view></view><view class="MymaskList MymaskList2 data-v-da0e2c1e"><view data-event-opts="{{[['tap',[['Tuige']]]]}}" class="maskListItem text data-v-da0e2c1e" bindtap="__e"><image class="close data-v-da0e2c1e" src="../../static/close.png"></image></view><view data-event-opts="{{[['tap',[['Clear']]]]}}" class="maskListItem text data-v-da0e2c1e" bindtap="__e">清空</view><view data-event-opts="{{[['tap',[['Next']]]]}}" class="maskListItem width48 data-v-da0e2c1e" bindtap="__e">保存</view></view></view></block></view></view></view></block><view hidden="{{!(isBle&&!IsFoodDetail)}}" class="wrapper data-v-da0e2c1e" id="wrapper"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="bg data-v-da0e2c1e" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-da0e2c1e" catchtap="__e"><view class="title data-v-da0e2c1e"><icon data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="iconfont icon-error data-v-da0e2c1e" bindtap="__e"></icon></view><view data-event-opts="{{[['tap',[['showFoodDetail',['$0'],['activeType']]]]]}}" class="foodItem data-v-da0e2c1e" bindtap="__e"><view class="left data-v-da0e2c1e"><image src="{{activeType.pic_url}}" mode="aspectFill" class="data-v-da0e2c1e"></image><view class="info data-v-da0e2c1e"><view class="name data-v-da0e2c1e">{{activeType.name}}</view><view class="kcal data-v-da0e2c1e">{{activeType.kcal+"千卡/100克"}}</view></view></view><view class="more data-v-da0e2c1e">查看</view></view><view class="foodInfo data-v-da0e2c1e"><block wx:for="{{$root.l3}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodInfoItem data-v-da0e2c1e"><view class="name data-v-da0e2c1e"><block wx:if="{{item.$orig.color!=''}}"><view class="color data-v-da0e2c1e" style="{{'background-color:'+(item.$orig.color)+';'}}"></view></block><text class="data-v-da0e2c1e">{{item.$orig.name+"("+item.m1+")"}}</text></view><view class="value data-v-da0e2c1e">{{item.g10}}</view></view></block></view><view data-event-opts="{{[['tap',[['handleMannulWeight']]]]}}" class="weight data-v-da0e2c1e" bindtap="__e"><image class="keybordIcon data-v-da0e2c1e" src="../../static/keybordIcon.png" mode="widthFix"></image></view><view class="blue-tooth data-v-da0e2c1e"><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-da0e2c1e" bind:__l="__l"></blue-tooth></view></view></view></view><block wx:if="{{showAutoSearchDlg}}"><view class="auto-search-dialog data-v-da0e2c1e"><view class="auto-search-inner data-v-da0e2c1e"><text class="data-v-da0e2c1e">{{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-da0e2c1e" 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-da0e2c1e" bind:__l="__l"></uni-icons></view></block><block wx:else><view class="btn-wrap data-v-da0e2c1e"><view data-event-opts="{{[['tap',[['retrySearch',['$event']]]]]}}" class="retry data-v-da0e2c1e" bindtap="__e">重试</view><view data-event-opts="{{[['tap',[['handleVoiceSearch',['$0'],['autoSearchContent']]]]]}}" class="confirm data-v-da0e2c1e" bindtap="__e">确定</view></view></block><uni-icons class="close data-v-da0e2c1e" 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> |