Merge remote-tracking branch 'origin/master'

This commit is contained in:
czz
2025-07-09 14:37:17 +08:00
10 changed files with 81 additions and 21 deletions

View File

@@ -77,10 +77,45 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
Obx(() {
if (userInfoController.model.login! == null ||
userInfoController.model.login! == 0) {
return Text(
"登录查看睡眠报告".tr,
style:
TextStyle(color: Colors.white, fontSize: 30.rpx),
return Center(
child: InkWell(
onTap: () => Get.toNamed("/loginPage"),
child: RichText(
text: TextSpan(
children: [
WidgetSpan(
child: Stack(
children: [
Text(
"登录",
style: TextStyle(
color: stringToColor("#84F5FF"),
fontSize: 30.rpx,
),
),
Positioned(
bottom: 0, // 控制下划线与文字的间距
left: 0,
right: 0,
child: Container(
height: 1, // 下划线粗细
color: stringToColor("#84F5FF"),
),
),
],
),
),
TextSpan(
text: "查看睡眠报告",
style: TextStyle(
color: Colors.white,
fontSize: 30.rpx,
),
),
],
),
),
),
);
}
return Container();