无法连接云端
页面未能加载 Supabase 组件,请检查网络后刷新重试。

家校暖心桥

记录成长每一天 · 家校共育零距离

学习记录保存在云端(Supabase),更换设备也能查看。教师密码仅保存在本机浏览器。

云端版 v3.1 · 手机浏览器打开体验最佳

教师端
学习记录 · 云端同步
添加学习记录
云端记录 0 条
修改教师密码

教师默认密码 123456。此密码仅保存在本机浏览器,用于防止误触,更换设备后需用默认密码重新登录。

云端信息
服务地址cqkngqvjqkaysczzphie.supabase.co
数据表public.records
内容分栏作业情况 / 重难点 / 易错点
图片存储images 存储桶(或内嵌保存)

图片优先上传到 Supabase 的 images 公开存储桶(可在控制台 Storage 中手动创建并设为公开);未创建时,图片会压缩后内嵌保存在 image_urls 字段中。

表结构升级 SQL(必看)
-- 家校暖心桥 · records 表升级:三个内容栏 + 多图
-- 在 Supabase 的 SQL Editor 中整段运行,可重复执行
alter table public.records
  add column if not exists homework text,      -- 作业完成情况/进度
  add column if not exists hard_points text,   -- 重难点(不太熟练的地方)
  add column if not exists easy_errors text,   -- 易错点
  add column if not exists image_urls text;    -- 多张图片链接(JSON 数组)

-- 旧数据迁移:按原来的类型前缀拆分到新栏
update public.records
  set homework = nullif(regexp_replace(content, '^【[^】]+】', ''), '')
  where homework is null and content like '【知识点】%';
update public.records
  set hard_points = nullif(regexp_replace(content, '^【[^】]+】', ''), '')
  where hard_points is null and content like '【重难点】%';
update public.records
  set easy_errors = nullif(regexp_replace(content, '^【[^】]+】', ''), '')
  where easy_errors is null and content like '【疑惑点】%';
update public.records
  set homework = nullif(content, '')
  where homework is null and content is not null and content not like '【%';

-- 旧的单图字段迁移为多图数组
update public.records
  set image_urls = json_build_array(image_url)::text
  where image_urls is null and image_url is not null and image_url <> '';

-- 允许旧字段留空(程序之后只写入新字段)
alter table public.records alter column content drop not null;
alter table public.records alter column image_url drop not null;

运行后旧记录会自动归入对应板块(知识点→作业、重难点→重难点、疑惑点→易错点),旧单图也会保留。运行完回到本页刷新即可。

家长端
一二三四五六日
作业 重难点 易错点
点击带彩色小点的日期,即可查看当天的学习记录
图片预览