1 line
8.3 KiB
Plaintext
1 line
8.3 KiB
Plaintext
<view class="content data-v-415f9e0f"><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-415f9e0f vue-ref" bind:__l="__l"></search><view class="box menu data-v-415f9e0f"><view class="tab_list data-v-415f9e0f"><scroll-view class="scroll-menu data-v-415f9e0f" 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-415f9e0f" bindtap="__e"><view class="{{['data-v-415f9e0f',index==ind?'active':'']}}">{{ite.name}}</view></view></block></scroll-view></view><view class="left data-v-415f9e0f"><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-415f9e0f',leftInd==ind?'active':'']}}" bindtap="__e">{{''+ite.name+''}}</view></block></view><view class="right data-v-415f9e0f"><food-item vue-id="8de3cd70-2" foodList="{{menu3}}" data-event-opts="{{[['^scroll',[['onScrollBottom']]],['^select',[['handleDetail']]]]}}" bind:scroll="__e" bind:select="__e" class="data-v-415f9e0f" bind:__l="__l"></food-item><block wx:if="{{!$root.g0}}"><view class="nolist data-v-415f9e0f"><icon class="iconfont icon-wancan data-v-415f9e0f"></icon><text class="data-v-415f9e0f">还没有数据哦!</text></view></block></view></view><view class="groupbtn data-v-415f9e0f"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="che data-v-415f9e0f" bindtap="__e"><block wx:if="{{$root.g1}}"><text class="data-v-415f9e0f">{{$root.g2}}</text></block><icon class="t-icon t-icon-canpan data-v-415f9e0f"></icon></view><view data-event-opts="{{[['tap',[['handlesubbtn',['$event']]]]]}}" class="subbtn data-v-415f9e0f" bindtap="__e">确定</view></view><block wx:if="{{isShop}}"><view class="wrapper activeList data-v-415f9e0f"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="bg data-v-415f9e0f" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-415f9e0f" catchtap="__e"><view class="title data-v-415f9e0f">{{"共"+$root.g3+"条记录"}}</view><block wx:if="{{$root.g4}}"><view class="list data-v-415f9e0f"><block wx:for="{{ActiveList}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="item data-v-415f9e0f"><view class="data-v-415f9e0f"><text class="name data-v-415f9e0f">{{ite.name}}</text><text class="data-v-415f9e0f">{{"("+ite.weight+ite.unit+")"}}</text></view><icon data-event-opts="{{[['tap',[['handledelactive',['$0'],[[['ActiveList','',ind]]]]]]]}}" class="iconfont icon-ashbin data-v-415f9e0f" bindtap="__e"></icon></view></block></view></block><block wx:else><view class="nolist list data-v-415f9e0f"><icon class="iconfont icon-wancan data-v-415f9e0f"></icon><text class="data-v-415f9e0f">还没有记录哦</text></view></block></view></view></view></block><block wx:if="{{IsWeight}}"><view class="wrapper data-v-415f9e0f"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="bg data-v-415f9e0f" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-415f9e0f" catchtap="__e"><view class="title data-v-415f9e0f"><view data-event-opts="{{[['tap',[['handleWeight']]]]}}" class="weight data-v-415f9e0f" bindtap="__e"><icon class="iconfont icon-lianjie data-v-415f9e0f"></icon>食物秤称重</view><view class="cancel data-v-415f9e0f"><icon data-event-opts="{{[['tap',[['Cancelword']]]]}}" class="iconfont icon-error data-v-415f9e0f" bindtap="__e"></icon></view></view><view class="name data-v-415f9e0f">{{activeType.name}}</view><view class="val data-v-415f9e0f"><text class="data-v-415f9e0f">{{activeType.weight?activeType.weight:'0'}}</text>g</view><view class="mybrankmask data-v-415f9e0f"><view class="MymaskAll data-v-415f9e0f"><view class="MymaskList data-v-415f9e0f"><view data-event-opts="{{[['tap',[['NumberCk',[1]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">1</view><view data-event-opts="{{[['tap',[['NumberCk',[2]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">2</view><view data-event-opts="{{[['tap',[['NumberCk',[3]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">3</view></view><view class="MymaskList data-v-415f9e0f"><view data-event-opts="{{[['tap',[['NumberCk',[4]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">4</view><view data-event-opts="{{[['tap',[['NumberCk',[5]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">5</view><view data-event-opts="{{[['tap',[['NumberCk',[6]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">6</view></view><view class="MymaskList data-v-415f9e0f"><view data-event-opts="{{[['tap',[['NumberCk',[7]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">7</view><view data-event-opts="{{[['tap',[['NumberCk',[8]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">8</view><view data-event-opts="{{[['tap',[['NumberCk',[9]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">9</view></view><view class="MymaskList data-v-415f9e0f"><view data-event-opts="{{[['tap',[['NumberCk',['.']]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">.</view><view data-event-opts="{{[['tap',[['NumberCk',[0]]]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e">0</view><view data-event-opts="{{[['tap',[['Cancelword']]]]}}" class="maskListItem data-v-415f9e0f" bindtap="__e"><image src="../../static/Clear.png" class="data-v-415f9e0f"></image></view></view></view><view class="MymaskList MymaskList2 data-v-415f9e0f"><view data-event-opts="{{[['tap',[['Tuige']]]]}}" class="maskListItem text data-v-415f9e0f" bindtap="__e"><image class="close data-v-415f9e0f" src="../../static/close.png"></image></view><view data-event-opts="{{[['tap',[['Clear']]]]}}" class="maskListItem text data-v-415f9e0f" bindtap="__e">清空</view><view data-event-opts="{{[['tap',[['Next']]]]}}" class="maskListItem width48 data-v-415f9e0f" bindtap="__e">保存</view></view></view></view></view></view></block><view hidden="{{!(isBle)}}" class="wrapper data-v-415f9e0f"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="bg data-v-415f9e0f" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-415f9e0f" catchtap="__e"><view class="title data-v-415f9e0f"><view data-event-opts="{{[['tap',[['handleMannulWeight']]]]}}" class="weight data-v-415f9e0f" style="width:242rpx;" bindtap="__e"><icon class="iconfont icon-lianjie data-v-415f9e0f"></icon>手动称重</view><view class="name data-v-415f9e0f">{{activeType.name}}</view><icon data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="iconfont icon-error data-v-415f9e0f" bindtap="__e"></icon></view><blue-tooth vue-id="8de3cd70-3" weightType="2" weightKcal="{{weightKcal}}" data-event-opts="{{[['^handleBle',[['handleBle']]]]}}" bind:handleBle="__e" class="data-v-415f9e0f" bind:__l="__l"></blue-tooth></view></view></view><block wx:if="{{showAutoSearchDlg}}"><view class="auto-search-dialog data-v-415f9e0f"><view class="auto-search-inner data-v-415f9e0f"><text class="data-v-415f9e0f">{{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-415f9e0f" style="{{'border-color:'+(mic_touch?'#18bc37':'#777777')+';'}}" bindtouchstart="__e" bindtouchend="__e"><uni-icons vue-id="8de3cd70-4" type="mic-filled" size="80" color="{{mic_touch?'#18bc37':'#777777'}}" class="data-v-415f9e0f" bind:__l="__l"></uni-icons></view></block><block wx:else><view class="btn-wrap data-v-415f9e0f"><view data-event-opts="{{[['tap',[['retrySearch',['$event']]]]]}}" class="retry data-v-415f9e0f" bindtap="__e">重试</view><view data-event-opts="{{[['tap',[['handleVoiceSearch',['$0'],['autoSearchContent']]]]]}}" class="confirm data-v-415f9e0f" bindtap="__e">确定</view></view></block><uni-icons class="close data-v-415f9e0f" vue-id="8de3cd70-5" type="close" color="#ffffff" size="45" data-event-opts="{{[['^click',[['e5']]]]}}" bind:click="__e" bind:__l="__l"></uni-icons></view></view></block></view> |