ReedawFoodApp/unpackage/dist/dev/mp-weixin/pages/index/index.wxml

1 line
4.7 KiB
Plaintext

<view class="box data-v-57280228"><block wx:if="{{token}}"><view class="header data-v-57280228"><block wx:if="{{$root.g0}}"><view class="top data-v-57280228"><image class="headimg data-v-57280228" src="{{info.head_pic}}" data-event-opts="{{[['tap',[['handleAddUser',[1]]]]]}}" bindtap="__e"></image><view data-event-opts="{{[['tap',[['handleAddUser',[1]]]]]}}" class="info data-v-57280228" bindtap="__e"><view class="size18 bold data-v-57280228">{{info.nickname}}</view><view class="mt-5 data-v-57280228"><text class="mr-10 data-v-57280228">{{"性别:"+(info.gender==1?'男':info.gender==2?'女':'未知')}}</text><text class="ml-10 data-v-57280228">{{"年龄:"+info.age+"岁"}}</text></view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="t-icon t-icon-qiehuan1 data-v-57280228" bindtap="__e"></view></view></block><block wx:else><view data-event-opts="{{[['tap',[['handleAddUser',[2]]]]]}}" class="top top2 data-v-57280228" bindtap="__e"><view class="info data-v-57280228">暂无成员,请先添加~</view><view class="add data-v-57280228">+</view></view></block><block wx:if="{{$root.g1}}"><view class="{{['bluetooth','data-v-57280228',bleValue.isConnectStatus==1?'activs':'']}}"><view data-event-opts="{{[['tap',[['openBluetoothAdapter',['$event']]]]]}}" class="bleTips data-v-57280228" bindtap="__e">{{''+bleTipsText+''}}</view></view></block></view></block><block wx:else><view data-event-opts="{{[['tap',[['handleLogin',['$event']]]]]}}" class="header data-v-57280228" bindtap="__e"><view class="top top2 data-v-57280228">登录后查看更多</view></view></block><block wx:if="{{$root.g2}}"><view class="body data-v-57280228"><view class="top data-v-57280228"><block wx:for="{{$root.l0}}" wx:for-item="ite" wx:for-index="ind"><view data-event-opts="{{[['tap',[['handelCurveDetailed',['$event']]]]]}}" class="info box_shadow data-v-57280228" style="{{'background-color:'+(ite.$orig.bk_color)+';'}}" bindtap="__e"><view class="title data-v-57280228"><view class="bold data-v-57280228">{{ite.$orig.name}}</view><view class="c999 data-v-57280228">{{''+ite.$orig.time+''}}<uni-icons class="ml-10 data-v-57280228" vue-id="{{'8dd740cc-1-'+ind}}" type="right" color="#999" bind:__l="__l"></uni-icons></view></view><view class="weight data-v-57280228"><view class="left data-v-57280228"><view class="number data-v-57280228"><text class="size26 bold data-v-57280228">{{ite.$orig.value}}</text>{{ite.$orig.unit}}</view><view class="standard bold size16 data-v-57280228" style="{{'color:'+(ite.$orig.standard_color)+';'}}">{{ite.$orig.standard+''}}</view></view><block wx:if="{{ite.g3}}"><view class="charts data-v-57280228"><qiun-data-charts vue-id="{{'8dd740cc-2-'+ind}}" type="area" chartData="{{ite.$orig.curve_list.line}}" Width="{{140}}" Height="{{40}}" canvas2d="{{true}}" canvasId="{{ite.$orig.key_name+ind}}" opts="{{opts}}" tapLegend="{{false}}" tooltipShow="{{false}}" class="data-v-57280228" bind:__l="__l"></qiun-data-charts></view></block></view><block wx:if="{{ite.$orig.ideal_weight}}"><view class="Ideal c999 data-v-57280228"><text class="data-v-57280228">{{"理想"+ite.$orig.name}}</text><text class="data-v-57280228">{{ite.$orig.ideal_weight}}</text></view></block></view></block></view><view class="function mt-15 data-v-57280228"><view data-event-opts="{{[['tap',[['handlerRecord',['$event']]]]]}}" bindtap="__e" class="data-v-57280228"><image src="/static/shoudong.png" mode="widthFix" class="data-v-57280228"></image></view><view data-event-opts="{{[['tap',[['handReport',['$event']]]]]}}" bindtap="__e" class="data-v-57280228"><image src="/static/shendu.png" mode="widthFix" class="data-v-57280228"></image></view></view><view class="tools data-v-57280228"><block wx:for="{{Measure.card_list}}" wx:for-item="ite" wx:for-index="ind"><view data-event-opts="{{[['tap',[['handleTools',['$0'],[[['Measure.card_list','',ind,'key_name']]]]]]]}}" class="item box_shadow data-v-57280228" bindtap="__e"><view class="top data-v-57280228"><image src="{{ite.icon}}" class="data-v-57280228"></image>{{ite.name+''}}</view><view class="number data-v-57280228"><text class="{{['bold','data-v-57280228',ite.key_name=='body_level'||ite.key_name=='body_type'?'size14':'size20']}}">{{ite.value}}</text>{{ite.unit+''}}</view><view class="bold size14 data-v-57280228" style="{{'color:'+(ite.standard_color)+';'}}">{{ite.standard}}</view></view></block></view><record vue-id="8dd740cc-3" class="data-v-57280228" bind:__l="__l"></record></view></block><block wx:else><view class="nolist data-v-57280228"><image src="/static/none.png" class="data-v-57280228"></image><text class="data-v-57280228">暂无数据</text></view></block><drawer bind:handleToolsIndex="__e" vue-id="8dd740cc-4" data-event-opts="{{[['^handleToolsIndex',[['handleToolsIndex',[0]]]]]}}" class="data-v-57280228" bind:__l="__l"></drawer></view>