增加ET620
parent
cebaad20b8
commit
5c09e1af28
@ -0,0 +1,66 @@
|
||||
// pages/hrv/hrv.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -0,0 +1,208 @@
|
||||
<view class="hrv">
|
||||
<view class="group_220">
|
||||
<view class="frame_1120">
|
||||
<text class="text_1">06-17 15:45</text>
|
||||
<image class="vector_3" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234532/e0ef/7589/9668/7a78cda87b9baaa5d1f13aadc90d852e.png" />
|
||||
</view>
|
||||
<view class="frame_1068">
|
||||
<view class="flexcontainer_2">
|
||||
<view class="frame_289">
|
||||
<text class="text_2">200</text>
|
||||
<text class="text_3">160</text>
|
||||
<text class="text_4">120</text>
|
||||
<text class="text_5">80</text>
|
||||
<text class="text_6">40</text>
|
||||
<text class="text_7">0</text>
|
||||
</view>
|
||||
<view class="flexcontainer_3">
|
||||
<view class="group_288">
|
||||
<view class="line_3" />
|
||||
<view class="line_4" />
|
||||
<view class="line_5" />
|
||||
<view class="line_6" />
|
||||
<view class="line_7" />
|
||||
</view>
|
||||
<view class="frame_292">
|
||||
<view class="flexcontainer_4">
|
||||
<image class="ellipse_30" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007237422/4075/ad27/5628/f5e3fd90625bf59382e2ca86ba592be2.png" />
|
||||
<view class="vector_2_1">
|
||||
<view class="flexcontainer_5">
|
||||
<image class="ellipse_32" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007237422/4075/ad27/5628/f5e3fd90625bf59382e2ca86ba592be2.png" />
|
||||
<image class="ellipse_26" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007238035/2c13/d0c0/67a2/5fc50f666cfdfe507fef442833c6c85f.png" />
|
||||
<image class="ellipse_28" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007237422/4075/ad27/5628/f5e3fd90625bf59382e2ca86ba592be2.png" />
|
||||
</view>
|
||||
<view class="flexcontainer_6">
|
||||
<image class="ellipse_27" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007237422/4075/ad27/5628/f5e3fd90625bf59382e2ca86ba592be2.png" />
|
||||
<image class="ellipse_29" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007237422/4075/ad27/5628/f5e3fd90625bf59382e2ca86ba592be2.png" />
|
||||
</view>
|
||||
</view>
|
||||
<image class="ellipse_33" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007237422/4075/ad27/5628/f5e3fd90625bf59382e2ca86ba592be2.png" />
|
||||
<image class="ellipse_31" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007237422/4075/ad27/5628/f5e3fd90625bf59382e2ca86ba592be2.png" />
|
||||
</view>
|
||||
<image class="vector_1_1" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007237362/24d5/8441/2ba7/f6eff25455ea01b926f80c402eecff60.png" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flexcontainer_7">
|
||||
<text class="text_8">04:57</text>
|
||||
<text class="text_9">04:58</text>
|
||||
<text class="text_10">04:59</text>
|
||||
<text class="text_11">05:00</text>
|
||||
<text class="text_12">05:01</text>
|
||||
<text class="text_13">05:02</text>
|
||||
<text class="text_14">05:03</text>
|
||||
<text class="text_15">05:04</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="text_16">平均值/10分钟</text>
|
||||
</view>
|
||||
<view class="group_44">
|
||||
<view class="group_14">
|
||||
<text class="text_17">82</text>
|
||||
<text class="div_2">
|
||||
<text class="text_18">心脏健康指数:</text>
|
||||
<text class="text_19">正常</text>
|
||||
</text>
|
||||
</view>
|
||||
<view class="flexcontainer_8">
|
||||
<view class="flexcontainer_9">
|
||||
<image class="subtract" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007235654/89b9/45fc/95f6/d5a24d1dc445d04ac1700456e87100a8.png" />
|
||||
<view class="rectangle_7" />
|
||||
</view>
|
||||
<view class="rectangle_5" />
|
||||
<view class="rectangle_6" />
|
||||
</view>
|
||||
<view class="flexcontainer_10">
|
||||
<text class="text_20">0</text>
|
||||
<text class="text_21">40</text>
|
||||
<text class="text_22">异常</text>
|
||||
<text class="text_23">轻度</text>
|
||||
<text class="text_24">正常</text>
|
||||
<text class="text_25">60</text>
|
||||
<text class="text_26">100</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="group_221">
|
||||
<text class="text_27">HRV概况</text>
|
||||
<view class="frame_1087">
|
||||
<view class="frame_1084">
|
||||
<view class="frame_573">
|
||||
<text class="text_28">最大值</text>
|
||||
<text class="text_29">18.1</text>
|
||||
<text class="text_30">ms</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="frame_1085">
|
||||
<view class="frame_573_1">
|
||||
<text class="text_31">最小值</text>
|
||||
<text class="text_32">75.24</text>
|
||||
<text class="text_33">ms</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="frame_1086">
|
||||
<view class="frame_573_2">
|
||||
<text class="text_34">平均值</text>
|
||||
<text class="text_35">17.2</text>
|
||||
<text class="text_36">ms</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="group_219">
|
||||
<view class="frame_897">
|
||||
<view class="flexcontainer_11">
|
||||
<text class="text_37">散点图</text>
|
||||
<text class="text_38">热度图</text>
|
||||
</view>
|
||||
<view class="frame_1075" />
|
||||
</view>
|
||||
<view class="flexcontainer_12">
|
||||
<view class="frame_1068_1">
|
||||
<view class="frame_289_1">
|
||||
<text class="text_39">2000</text>
|
||||
<text class="text_40">RRN+1(ms)</text>
|
||||
<text class="text_41">0</text>
|
||||
</view>
|
||||
<view class="flexcontainer_13">
|
||||
<view class="group_288_1">
|
||||
<view class="line_3_1" />
|
||||
<view class="line_4_1" />
|
||||
<view class="line_5_1" />
|
||||
<view class="line_6_1" />
|
||||
<view class="line_7_1" />
|
||||
</view>
|
||||
<view class="flexcontainer_14">
|
||||
<text class="text_42">0</text>
|
||||
<text class="text_43">2000</text>
|
||||
<text class="text_44">RRN(ms)</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<text class="text_45">无数据</text>
|
||||
</view>
|
||||
<image class="group_1" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007236723/fca1/a6aa/d933/7c66c26f7b4d21c7a5678e5273902414.png" />
|
||||
<view class="group_217">
|
||||
<view class="rectangle_56" />
|
||||
<view class="rectangle_57" />
|
||||
<view class="rectangle_58" />
|
||||
<view class="rectangle_59" />
|
||||
<view class="rectangle_60" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="group_218">
|
||||
<text class="text_46">最新血压</text>
|
||||
<view class="frame_9">
|
||||
<view class="frame_8">
|
||||
<view class="frame_7">
|
||||
<text class="text_47">心率变化</text>
|
||||
<view class="frame_571">
|
||||
<image class="frame_2" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_3" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_4" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_5" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_6" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
</view>
|
||||
</view>
|
||||
<text class="text_48">测量期间心率的最大变化正常,心率变化的范围偏低,一般身体素质较好,有良好睡眠习惯的人群,夜间心率的变化范围会较低,但有较小概率为心动过缓,如无不适,无需特别治疗,以观察为主。</text>
|
||||
</view>
|
||||
<view class="rectangle_62" />
|
||||
<view class="frame_9_1">
|
||||
<view class="frame_7_1">
|
||||
<text class="text_49">心率突变</text>
|
||||
<view class="frame_571_1">
|
||||
<image class="frame_2_1" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_3_1" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_4_1" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_5_1" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_6_1" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
</view>
|
||||
</view>
|
||||
<text class="text_50">心率最大突变发生于正常范围,突变程度正常。</text>
|
||||
</view>
|
||||
<view class="rectangle_63" />
|
||||
<view class="frame_10">
|
||||
<view class="frame_7_2">
|
||||
<text class="text_51">神经状态</text>
|
||||
<view class="frame_571_2">
|
||||
<image class="frame_2_2" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_3_2" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
</view>
|
||||
</view>
|
||||
<text class="text_52">有轻微的早搏风险,可发生于正常人(情绪激动,神经紧张,疲劳,消化不良,过度吸烟、饮酒或喝浓茶等),如无不适,建议长期观察</text>
|
||||
</view>
|
||||
<view class="rectangle_64" />
|
||||
<view class="frame_11">
|
||||
<view class="frame_7_3">
|
||||
<text class="text_53">心律变化</text>
|
||||
<view class="frame_571_3">
|
||||
<image class="frame_2_3" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
<image class="frame_3_3" src="https://seal-img.nos-jd.163yun.com/obj/w5rCgMKVw6DCmGzCmsK-/62007234654/7aa2/459a/aebf/2125b0d7b34218891184db2b76b99d08.png" />
|
||||
</view>
|
||||
</view>
|
||||
<text class="text_54">夜间心律平稳,心脏状况良好。</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<text class="text_55">温馨提示:健康手环数据仅作为参考,不作为诊断治疗依据</text>
|
||||
<!-- <home-indicator class="home_indicator" />-->
|
||||
</view>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
<!--pages/sjchen/sjchen.wxml-->
|
||||
<view class="container">
|
||||
<!-- 状态显示 -->
|
||||
<view wx:if="{{!bleReady}}" class="tip">蓝牙功能初始化中...</view>
|
||||
|
||||
<!-- 设备扫描区域 -->
|
||||
<view wx:if="{{bleReady}}">
|
||||
<button bindtap="startScan" type="primary">扫描设备</button>
|
||||
|
||||
<!-- 设备列表 -->
|
||||
<view wx:if="{{devices.length > 0}}" class="device-list">
|
||||
<view wx:for="{{devices}}" wx:key="deviceId"
|
||||
bindtap="connectDevice" data-item="{{item}}"
|
||||
class="device-item">
|
||||
<text>MAC:{{item.mac}}</text>
|
||||
<text>信号强度: {{item.RSSI}}dBm</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:else class="tip">未发现设备,请点击扫描</view>
|
||||
</view>
|
||||
<button bindtap="readHealthData">获取健康数据</button>
|
||||
<button bindtap="test">test</button>
|
||||
<button bindtap="synchronizeHistoricalData">同步历史数据</button>
|
||||
</view>
|
||||
@ -0,0 +1,17 @@
|
||||
/* pages/sjchen/sjchen.wxss */
|
||||
.tip {
|
||||
color: #000;
|
||||
text-align: center;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.device-list {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.device-item {
|
||||
padding: 12px;
|
||||
border-bottom: 1px solid #eee;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
// // utils/bleSDKLoader.js
|
||||
// export const loadVeepooSDK = () => {
|
||||
// return new Promise((resolve, reject) => {
|
||||
// // 使用分包的绝对路径(从项目根目录开始)
|
||||
// require.async('/veepooSDK/sdk/index.js', (sdkModule) => {
|
||||
// // 检查模块导出结构
|
||||
// if (sdkModule?.default) { // 兼容不同导出方式
|
||||
// sdkModule = sdkModule.default;
|
||||
// }
|
||||
|
||||
// const { veepooBle, veepooFeature } = sdkModule;
|
||||
|
||||
// if (!veepooBle || !veepooFeature) {
|
||||
// reject(new Error('SDK模块加载不完整'));
|
||||
// return;
|
||||
// }
|
||||
|
||||
// resolve({ veepooBle, veepooFeature });
|
||||
// }, (err) => {
|
||||
// console.error("子包加载失败",err.message)
|
||||
// reject(new Error(`子包加载失败: ${err.message}`));
|
||||
// });
|
||||
// });
|
||||
// };
|
||||
|
||||
const { veepooBle, veepooFeature } = require('./veepooSDK/sdk/index.js');
|
||||
console.log(veepooBle,veepooFeature)
|
||||
|
||||
export const loadVeepooSDK = () => {
|
||||
return Promise.resolve({ veepooBle, veepooFeature });
|
||||
};
|
||||
|
||||
// 也可以提供同步加载选项
|
||||
export const getVeepooBle = () => veepooBle;
|
||||
export const getVeepooFeature = () => veepooFeature;
|
||||
@ -0,0 +1,3 @@
|
||||
declare let veepooBle: any;
|
||||
declare let veepooFeature: any;
|
||||
export { veepooBle, veepooFeature };
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue