This commit is contained in:
Haiyi
2022-06-27 19:02:42 +08:00
parent 4322624605
commit c13539a9d4
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -1,9 +1,21 @@
import { Image, Text, Textarea, View } from "@tarojs/components"
import Taro, { useDidShow, usePullDownRefresh, useRouter } from "@tarojs/taro";
import { useBluetooth } from "@/use/contextBlueTooth"
import classnames from "classnames";
import styles from './index.module.scss'
export default () => {
const { state: colorState, measureAndGetLab } = useBluetooth()
const getLab = () => {
if (colorState.connected) {
measureAndGetLab()
} else {
Taro.showToast({
title: '请链接设备',
icon: 'none'
})
}
}
return (
<View className={styles.body}>
<View className={styles.topBox}>