# c300 **Repository Path**: ranjingqiao3_admin/c300 ## Basic Information - **Project Name**: c300 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-30 - **Last Updated**: 2025-06-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 代码说明 ## 零、所有账号信息 ### 微信开发平台 https://open.weixin.qq.com/ - 账号:qsxzyyds@163.com - 密码:- ### 百度云 https://cloud.baidu.com/ 请使用【登录/云服务】 - 账号:竹子建站定制 - 密码:- ### 1password #### orsenlam - 账号:orsenlam@gmail.com - 密码:- - 秘钥:- #### shawn - 账号:shawnsuen@icloud.com - 密码:- - 秘钥:咨询【孙圣安孙总】 ### 阿里云 - 账号:breoverse - 密码:- ### 七牛云 - 账号:ssa@relaxsleep.cn - 密码:- ### gitee 代码仓库 https://e.gitee.com/xiao-cong-qsxz/dashboard - 账号:自己的 - 密码:自己的 - 备注:让管理员给你权限 ### 苹果发布账号:咨询 何荣峰 zhishengweinan@163.com ## 一、打包签名 ### IOS #### 正式 - 路径 ~/packageSign/newAppStore/\* - 密码 1234567890 - 包名 uni.UNICED7D68 #### 测试 - 路径 ~/packageSign/newAppTest/\* - 密码 1234567890 - 包名 uni.UNICED7D68 ### Android - 路径 ~/packageSign/newAppAndroid/\* - 密码 123456 - 包名 uni.UNICED7D68 - 具体看 ~/packageSign/newAppAndroid/readme.rtf ## 二、Store 状态管理模式 ~/store/\* ### index 主库 - 缓存用户信息 - 缓存手机信息 - 注入下面 3 个状态库 [BluetoothManager、 RingDataManager、 Log4j] ### BluetoothManager 蓝牙模块状态库 - 蓝牙权限检测 - 蓝牙搜索 连接 通信 ### RingDataManager 戒指数据同步数据状态库 - 蓝牙通信指令的下发、接受 - 戒指的同步业务【电量、版本、体征、对时】 ### Log4j app 日志缓存库 - 需要生成日志文件的打印 - 需要提交后台的日志打印 ## 三、Utils 工具库 ~/js_sdk/\* ### bluetooth 蓝牙相关工具库 #### protocol 不同厂家的协议库 - index.js 根据戒指厂家不同 返回不同的库 - yongXin.js 勇芯公司的戒指蓝牙协议封装库 #### BleSDK.js - 蓝牙指令下发功能的封装 #### CommandQueue.js - 下发指令队列的封装 - 插入队列、停止队列 ### utils 工具库 #### expiration.js - 对 uni.setStorageSync 和 uni.getStorageInfoSync 的封装 #### utils.js - 转 Hex 并补 0:toHexString - Uint8Array 裝 Hex:decimalArrayToHexString - 获取当前时区时间对应的 0 时区时间:getUnixTimeAndZone - 获取 ts 时间戳对应的时间值和可以直接蓝牙下发的 hex 数组: timestamp2Arr - 判断是否为 0 或 1 - 移除数组末尾的 0 值对象 - 等待函数 - 深度克隆 - 勇芯指令的步长、距离、卡路里计算 :getStepLength、conversionDistanceBySteps、conversionCalorieBySteps ## 四、首页戒指模块 ~/pages/ring/* ### index.vue 首页 - 日历 - 电量 - 睡眠评分、健康评分 - 体征图表【步数&距离&卡路里、心率、血氧、睡眠、压力、温度】 ### connect.vue 戒指搜索页 - 搜索 - 绑定 - 连接 ### ringMsg 戒指详情页面 mac地址 电量 版本号 解绑功能 客服 ### invite 邀请页面 用canvas将页面保存到相册 ### customerService 客服二维码 ### search.vue 戒指调试页 (不对外开放) ### Detail 体征详情 ~/pages/ring/Detail/\* ### tutorial 使用教程 未开发 - 【步数&距离&卡路里、心率、血氧、睡眠、压力、温度】的指定日期的图表、说明 ### illustrate 指标说明 ~/pages/ring/illustrate/\* - 用于 点击 ⓘ 后的新页面展示 ### components 戒指模块需要用的 UI 组件 - BatteryLevel 电量 - BlueLinkStatus 顶部蓝牙状态展示 - ChartMain 首页体征图表容器 - DateChooser 日期(日月周+日期)选择器 - Detection 心率血氧监测模块 - HeadMain 首页的戒指连接&同步模块 - LinkHeader 首页顶部模块 包含导航栏 & HeadMain - PointReport 健康分数和积分报告 - DailyTask 每日任务 邀请任务 - NewComerChallenge 7日 30日挑战 ### components/chart 体征图表 - 【步数&距离&卡路里、心率、血氧、睡眠、压力、温度】 ### components/drawer 弹窗组件 - BatteryAlert 电量不足弹窗 - BottomDrawer 底部通用弹窗组件 【这个组件在~/components 中也有】 - CenterDrawer 居中通用弹窗组件 【这个组件在~/components 中也有】 - RSButton 按钮组件 - SleepReport 睡眠详情&积分领取弹窗 - DailyHealthRewardsAlert 每日睡眠弹窗(**需要重新修改**) - VigorGetterAlert 元气领取弹窗 - GiftGetterAlert 礼盒领取弹窗 ### sleep 睡眠模块组件 - index 睡眠图表 - timeFormat 睡眠始终格式 ## 五、二级市场 ~/pages/market/\* - index 二级市场 首页 - nft 藏品寄售 - nftCollection 藏品系列 - order 我的订单 - orderDetail 订单详情 - transaction 藏品交易支付页面 - store 个人小店 ### components 市场 UI 组件 - collection 藏品系列列表 - consignment 藏品寄售列表 - detail nft 详情 - detailSell 购买支付详情 - order 【购买、 寄售、求购】组件 ### components/drawer - selection nft 搜索弹窗 ### components/order - item 订单详情组件【购买、 寄售、求购、出价】 #### 人脸识别 & 录音支持 - 具体功能 全局搜索:liyahong-BDFace-v4 ```json "nativePlugins" : { "liyahong-BDFace-v4" : { "__plugin_info__" : { "name" : "【Android+IOS支持+口罩识别】百度人脸识别、活体检测、离线人脸采集", "description" : "百度人脸采集离线SDK,支持活体动作/无动作采集,支持修改文字及背景颜色,支持自定义图标及语音文件", "platforms" : "Android,iOS", "url" : "https://ext.dcloud.net.cn/plugin?id=3631", "android_package_name" : "uni.UNICED7D68", "ios_bundle_id" : "uni.UNICED7D68", "isCloud" : true, "bought" : 1, "pid" : "3631", "parameters" : {} } }, "KJ-Audio" : { "__plugin_info__" : { "name" : "录音支持暂停、继续、后台录音、息屏录音、长时间录音(ios、andorid)", "description" : "录音支持暂停、继续、后台录音、息屏录音、长时间录音、实时分贝值(ios、andorid)QQ群:651382358 可接单 离线包:单价X10 源码:单价X15", "platforms" : "Android,iOS", "url" : "https://ext.dcloud.net.cn/plugin?id=5849", "android_package_name" : "uni.UNICED7D68", "ios_bundle_id" : "uni.UNICED7D68", "isCloud" : true, "bought" : 1, "pid" : "5849", "parameters" : {} } } } ```