adultDeviceApp/unpackage/dist/build/mp-weixin/pages/index/index.wxml

1 line
8.5 KiB
Plaintext

<view class="content data-v-79363cbc"><view class="header-con data-v-79363cbc" style="{{'background:'+(appTheme)+';'}}"><block wx:if="{{token}}"><view class="header data-v-79363cbc"><view class="left data-v-79363cbc"><image class="headimage mr-10 data-v-79363cbc" src="{{user.headimg}}" data-event-opts="{{[['tap',[['handleDrawer',['$event']]]]]}}" bindtap="__e"></image><view class="data-v-79363cbc"><view data-event-opts="{{[['tap',[['handleDrawer',['$event']]]]]}}" class="name data-v-79363cbc" bindtap="__e"><text class="overflow data-v-79363cbc">{{user.name}}</text><icon class="iconfont icon-yqfqiehuan data-v-79363cbc"></icon></view><view class="age data-v-79363cbc"><view class="data-v-79363cbc">{{'性别:'+(!user.sex?"未知":user.sex==1?'男':'女')+''}}</view><view class="data-v-79363cbc">{{'年龄:'+(user.mage?user.mage:"0岁")+''}}</view></view></view></view><view data-event-opts="{{[['tap',[['handleBluetoothClick',['$event']]]]]}}" class="celiang_r data-v-79363cbc" bindtap="__e"><icon class="t-icon t-icon-tizhongcheng data-v-79363cbc"></icon><text class="data-v-79363cbc">上秤测量</text></view></view></block><block wx:else><view data-event-opts="{{[['tap',[['handleLogin',['$event']]]]]}}" class="header2 data-v-79363cbc" bindtap="__e"><view class="text data-v-79363cbc"><text class="data-v-79363cbc">登录</text>查看更多信息</view></view></block></view><view class="tools_l data-v-79363cbc"><view data-event-opts="{{[['tap',[['clickTool',[0]]]]]}}" class="list data-v-79363cbc" bindtap="__e"><image src="/static/tool1.png" class="data-v-79363cbc"></image><view class="text data-v-79363cbc">手动记录</view></view><view data-event-opts="{{[['tap',[['clickTool',[1]]]]]}}" class="list data-v-79363cbc" bindtap="__e"><image src="/static/tool2.png" class="data-v-79363cbc"></image><view class="text data-v-79363cbc">体质评估</view></view><view data-event-opts="{{[['tap',[['clickTool',[2]]]]]}}" class="list data-v-79363cbc" bindtap="__e"><image src="/static/tool3.png" class="data-v-79363cbc"></image><view class="text data-v-79363cbc">儿童测量</view></view><view data-event-opts="{{[['tap',[['clickTool',[3]]]]]}}" class="list data-v-79363cbc" bindtap="__e"><image src="/static/tool4.png" class="data-v-79363cbc"></image><view class="text data-v-79363cbc">历史记录</view></view><block wx:if="{{token&&configBox.serviceappid}}"><message vue-id="8dd740cc-1" class="data-v-79363cbc" bind:__l="__l"></message></block></view><block wx:if="{{$root.g0}}"><view class="myinfo myinfoPage borderT15 data-v-79363cbc"><view class="h2 data-v-79363cbc"><view class="data-v-79363cbc"><text class="data-v-79363cbc"></text>健康评分</view></view><view class="box data-v-79363cbc"><view class="left data-v-79363cbc"><view class="circleprogress data-v-79363cbc"><view class="wrapper data-v-79363cbc"><view class="leftprogress data-v-79363cbc" style="{{'width:'+(MeasureResult.cmi+'%')+';'}}"></view></view><view class="fen data-v-79363cbc"><view class="data-v-79363cbc">{{MeasureResult.cmi}}</view>分</view></view></view><view class="right data-v-79363cbc"><view class="item data-v-79363cbc"><view class="data-v-79363cbc"><text class="data-v-79363cbc">{{MeasureResult.height}}</text>cm</view><view class="tivon data-v-79363cbc">身高</view></view><view class="item data-v-79363cbc"><view class="data-v-79363cbc"><text class="data-v-79363cbc">{{MeasureResult.weight}}</text>kg</view><view class="data-v-79363cbc">体重</view></view><view class="item data-v-79363cbc"><view class="data-v-79363cbc"><text class="data-v-79363cbc">{{MeasureResult.bodyage?MeasureResult.bodyage:'-'}}</text>岁</view><view class="data-v-79363cbc">体龄</view></view><view class="item data-v-79363cbc"><view class="data-v-79363cbc"><text class="f-15 data-v-79363cbc">{{MeasureResult.body?MeasureResult.body:'-'}}</text></view><view class="data-v-79363cbc">体型</view></view></view></view></view></block><block wx:if="{{$root.g1}}"><view class="f_banner borderT15 data-v-79363cbc"><swiper class="swiper data-v-79363cbc" indicator-dots="true" autoplay="true"><block wx:for="{{fimages}}" wx:for-item="image" wx:for-index="index" wx:key="index"><swiper-item data-event-opts="{{[['tap',[['detail',['$0'],[[['fimages','',index]]]]]]]}}" bindtap="__e" class="data-v-79363cbc"><image src="{{image.headimg}}" class="data-v-79363cbc"></image></swiper-item></block></swiper></view></block><view class="myinfo myinfoPage borderT15 data-v-79363cbc"><view class="h2 data-v-79363cbc"><view class="data-v-79363cbc"><text class="data-v-79363cbc"></text>健康分析</view><block wx:if="{{$root.g2}}"><view class="more data-v-79363cbc">{{"测量时间:"+user.lasthearttime}}</view></block></view><block wx:if="{{$root.g3}}"><view class="data-v-79363cbc"><view class="box1 data-v-79363cbc"><uni-collapse vue-id="8dd740cc-2" accordion="{{true}}" class="data-v-79363cbc" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><uni-collapse-item class="list data-v-79363cbc" vue-id="{{('8dd740cc-3-'+index)+','+('8dd740cc-2')}}" bind:__l="__l" vue-slots="{{['default','title']}}"><uni-list-item class="block data-v-79363cbc" vue-id="{{('8dd740cc-4-'+index)+','+('8dd740cc-3-'+index)}}" slot="title" bind:__l="__l" vue-slots="{{['default']}}"><view class="name data-v-79363cbc"><icon class="{{['t-icon','iconfont','data-v-79363cbc','t-icon-'+item.$orig.name]}}"></icon>{{''+item.$orig.title+''}}</view><block wx:if="{{item.$orig.title=='肥胖等级'}}"><view class="val data-v-79363cbc">{{''+(item.$orig.level?item.$orig.level:'-')+''}}</view></block><block wx:else><view class="val data-v-79363cbc">{{(item.$orig.value?item.$orig.value:'0')+item.$orig.unit}}</view></block><view class="level data-v-79363cbc"><view class="btnf data-v-79363cbc" style="{{'background-color:'+(item.$orig.color)+';'}}">{{item.$orig.level}}</view></view></uni-list-item><view class="desc data-v-79363cbc"><block wx:if="{{item.$orig.desc}}"><view class="data-v-79363cbc">{{item.$orig.desc}}</view></block><block wx:if="{{item.$orig.ishasscale}}"><view class="scale data-v-79363cbc">{{"本次评分:"+item.$orig.scale}}</view></block><block wx:if="{{item.$orig.list}}"><view class="{{['data-v-79363cbc',item.g4?'statuevue':'']}}"><block wx:if="{{item.$orig.title!='基础代谢'}}"><view class="bi data-v-79363cbc"><view class="peobox data-v-79363cbc" style="{{('left:'+item.$orig.offset+'%')}}"><view class="xx data-v-79363cbc"></view></view><block wx:for="{{item.l0}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="item data-v-79363cbc" style="{{'background-color:'+(ite.$orig.color)+';'}}"><view class="span1 data-v-79363cbc">{{ite.$orig.text}}</view><block wx:if="{{ind<ite.g5-1}}"><view class="span data-v-79363cbc">{{ite.$orig.maxvalue}}</view></block></view></block></view></block><block wx:else><view class="data-v-79363cbc"><block wx:if="{{item.g6}}"><view class="kcalClass data-v-79363cbc">{{'标准值:'+item.$orig.list[0].maxvalue+'kcal'}}</view></block></view></block></view></block></view></uni-collapse-item></block></uni-collapse></view></view></block><block wx:else><view class="nolist data-v-79363cbc"><image class="iconfont data-v-79363cbc" src="../../static/zanwu.png"></image><text class="data-v-79363cbc">暂无数据</text></view></block></view><block wx:if="{{$root.g7}}"><view class="introction data-v-79363cbc"><icon class="t-icon t-icon-tishi data-v-79363cbc"></icon><label class="_span data-v-79363cbc">此测量数据仅供参考,不可代替医学专业测试!</label></view></block><block wx:if="{{$root.g8}}"><view class="tipList borderRadius borderT15 mb-15 data-v-79363cbc"><view class="h2 data-v-79363cbc"><view class="data-v-79363cbc"><text class="data-v-79363cbc"></text>提醒设置</view></view><view class="item_box data-v-79363cbc"><block wx:for="{{checkList}}" wx:for-item="text" wx:for-index="id" wx:key="id"><view data-event-opts="{{[['tap',[['switch1Change',['$0'],[[['checkList','',id,'index']]]]]]]}}" class="item_box_tips data-v-79363cbc" bindtap="__e">{{''+text.title+''}}<image class="iconfont data-v-79363cbc" src="{{isShowEle==text.index?'../../static/switch-off.png':'../../static/switch-ON.png'}}"></image></view></block></view></view></block><block wx:if="{{!lastPage||page>=lastPage}}"><view class="endtext mt-15 data-v-79363cbc">—— 到底了,看看别的吧 ——</view></block><user-login vue-id="8dd740cc-5" class="data-v-79363cbc" bind:__l="__l"></user-login><manua-record vue-id="8dd740cc-6" class="data-v-79363cbc" bind:__l="__l"></manua-record><leftdrawer vue-id="8dd740cc-7" class="data-v-79363cbc" bind:__l="__l"></leftdrawer></view>