style(ui): 图标整体放大并与页面比例协调
按 6 级尺寸阶梯统一放大图标,避免小而散、提升大气感: - 底部导航 40 -> 48,容器 104 -> 116,标签 22 -> 23 - 首页快捷入口 40 -> 52,容器 96 -> 112、圆角 32 -> 36,标签 22 -> 24 - 首页品牌花标 40 -> 46,牌标容器 72 -> 84 - 今日心语 52 -> 62,提醒 38 -> 46 - 情绪选择 40 -> 50(容器 76),记录 30 -> 36,疗愈内容 34 -> 42 - 健康 Tab 26 -> 32(Tab 76 -> 84),建议项 34 -> 42(容器 84) - 我的设置项 32 -> 40,头像 108 -> 116 - 备孕/关系/亲子勾选 20 -> 24(容器 40 -> 46),会员勾选 18 -> 22 - 咨询师头像 40 -> 50(容器 100),热线 34/36 -> 42,急救工具 44 -> 54 - 空状态与会员锁 72 -> 96,内容详情头图 64 -> 78,登录花瓣与输入框图标同步放大 - 大尺寸图标描边降至 1.6-1.8,小尺寸保持 1.8-2.4,线宽视觉统一 - 文档补充「图标尺寸阶梯」规范 验证:no_emoji 0 问题 / 契约 84 接口 0 偏差 / Vue 20-20 / SCSS 19-19
这个提交包含在:
@@ -22,7 +22,7 @@ export default {
|
||||
/** 图标名,或历史 emoji(自动映射) */
|
||||
name: { type: String, default: 'flower' },
|
||||
/** 尺寸,单位 rpx */
|
||||
size: { type: [Number, String], default: 40 },
|
||||
size: { type: [Number, String], default: 44 },
|
||||
/** 颜色 */
|
||||
color: { type: String, default: '#E8604C' },
|
||||
/** 描边宽度 */
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
>
|
||||
<hq-icon
|
||||
:name="item.icon"
|
||||
:size="40"
|
||||
:size="48"
|
||||
:stroke="1.9"
|
||||
:color="current === item.key ? '#E8604C' : '#C9B4AA'"
|
||||
/>
|
||||
@@ -66,7 +66,7 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 104rpx;
|
||||
height: 116rpx;
|
||||
}
|
||||
|
||||
.hq-tab {
|
||||
@@ -75,14 +75,14 @@ export default {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 8rpx 0;
|
||||
border-radius: 24rpx;
|
||||
padding: 10rpx 0;
|
||||
border-radius: 26rpx;
|
||||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.hq-tab-label {
|
||||
margin-top: 6rpx;
|
||||
font-size: 22rpx;
|
||||
margin-top: 10rpx;
|
||||
font-size: 23rpx;
|
||||
color: #B9A79E;
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
|
||||
@@ -89,6 +89,23 @@
|
||||
| 兼容历史数据 | 后端返回的 emoji 字段(如 `cover_emoji`)由 `resolveIcon()` 自动映射成矢量图标 |
|
||||
| 语义映射 | `iconForContentType / iconForMood / iconForReminder / iconForSymptom / iconForVaccine / iconForRelation` |
|
||||
|
||||
**图标尺寸阶梯(rpx)**——保证"放大后仍然协调"的统一尺度:
|
||||
|
||||
| 场景 | 尺寸 | 说明 |
|
||||
|---|---|---|
|
||||
| 导航 / 主 Tab | 48 | 底部导航,选中态配 `#FFF1E9` 胶囊底 |
|
||||
| 首页快捷入口 | 52 | 容器 112×112、圆角 36,视觉重量与文字标签平衡 |
|
||||
| 情绪选择 / 大按钮组 | 50 | 容器 76 高,图标占容器约 2/3 |
|
||||
| 区块内容图标(列表卡) | 42 | 容器 84×84,配副标题层级 |
|
||||
| 建议/子 Tab 行内图标 | 32 | 与 24rpx 文字同行,垂直居中 |
|
||||
| 单元格 / 设置项 | 40 | 左侧图标,右侧文字与箭头 |
|
||||
| 内联标签 / 症状胶囊 | 28 | 与 24rpx 文字搭配 |
|
||||
| 勾选态 | 22–24 | 圆形勾选容器 38–46 |
|
||||
| 空状态 / 会员锁 | 96 | 大留白插图感,颜色 `#E6D3C9` |
|
||||
| 内容详情头图 | 78 | 标题上方主视觉 |
|
||||
|
||||
描边随尺寸微调:≥42rpx 用 `stroke 1.6–1.8`,≤32rpx 用 `1.8–1.9`,勾选等小尺寸用 `2.4`,保证线宽视觉一致、不糊不飘。
|
||||
|
||||
**硬规则**
|
||||
1. 页面与组件中**不允许出现 emoji 或字符图标**(含 ✓ ✿ ☾ ⚡ ☎ 等),一律使用 `<hq-icon>`;
|
||||
2. 新增图标必须先加入 `utils/icons.js` 的 `PATHS`,再在页面引用;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<!-- 危机干预 -->
|
||||
<view class="crisis" @tap="callHotline">
|
||||
<hq-icon name="phone" :size="34" color="#C9482F" style="margin-right: 16rpx" />
|
||||
<hq-icon name="phone" :size="42" :stroke="1.7" color="#C9482F" style="margin-right: 20rpx" />
|
||||
<view class="crisis-body">
|
||||
<text class="crisis-title">如果此刻很难,请先联系热线</text>
|
||||
<text class="crisis-sub">全国心理援助热线 12356 · 紧急情况请拨 120</text>
|
||||
@@ -18,7 +18,7 @@
|
||||
<view class="hq-card counselor" v-for="item in counselors" :key="item.id">
|
||||
<view class="counselor-head">
|
||||
<view class="counselor-avatar">
|
||||
<hq-icon :name="counselorIcon(item)" :size="40" color="#C9482F" />
|
||||
<hq-icon :name="counselorIcon(item)" :size="50" :stroke="1.7" color="#C9482F" />
|
||||
</view>
|
||||
<view class="counselor-info">
|
||||
<view class="counselor-name-row">
|
||||
@@ -83,7 +83,7 @@
|
||||
</view>
|
||||
<view class="hq-card" v-else>
|
||||
<view class="hq-empty">
|
||||
<hq-icon name="chat-heart" :size="72" color="#E6D3C9" />
|
||||
<hq-icon name="chat-heart" :size="96" :stroke="1.6" color="#E6D3C9" />
|
||||
<text class="hq-empty-text">还没有咨询预约</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -240,7 +240,7 @@ export default {
|
||||
.crisis {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 24rpx 28rpx;
|
||||
padding: 28rpx 30rpx;
|
||||
border-radius: 28rpx;
|
||||
background: linear-gradient(135deg, #FFF1E0 0%, #FFE3D3 100%);
|
||||
border: 2rpx solid #F7DCC8;
|
||||
@@ -279,9 +279,9 @@ export default {
|
||||
}
|
||||
|
||||
.counselor-avatar {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border-radius: 28rpx;
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 30rpx;
|
||||
background-color: #FFF1E9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="hq-page">
|
||||
<view class="head">
|
||||
<hq-icon :name="headIcon" :size="64" color="#E8604C" style="margin-bottom: 16rpx" />
|
||||
<hq-icon :name="headIcon" :size="78" :stroke="1.7" color="#E8604C" style="margin-bottom: 22rpx" />
|
||||
<text class="head-title">{{ detail.title || '' }}</text>
|
||||
<text class="head-summary" v-if="detail.summary">{{ detail.summary }}</text>
|
||||
<view class="head-tags">
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
:class="{ 'hq-chip-active': form.symptom_ids.indexOf(tag.id) > -1 }"
|
||||
@tap="toggleTag(tag.id)"
|
||||
>
|
||||
<hq-icon :name="symptomIcon(tag.category)" :size="24" color="#B5715B" class="chip-icon" />
|
||||
<hq-icon :name="symptomIcon(tag.category)" :size="28" :stroke="1.7" color="#B5715B" class="chip-icon" />
|
||||
<text class="chip-text">{{ tag.name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -93,8 +93,8 @@
|
||||
>
|
||||
<hq-icon
|
||||
:name="m.icon"
|
||||
:size="30"
|
||||
:stroke="1.9"
|
||||
:size="36"
|
||||
:stroke="1.8"
|
||||
:color="form.mood === m.value ? '#E8604C' : '#B5715B'"
|
||||
/>
|
||||
</view>
|
||||
@@ -490,7 +490,7 @@ export default {
|
||||
}
|
||||
|
||||
.chip-icon {
|
||||
margin-right: 6rpx;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.pain-row {
|
||||
@@ -531,9 +531,9 @@ export default {
|
||||
}
|
||||
|
||||
.mood-btn {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 20rpx;
|
||||
width: 76rpx;
|
||||
height: 76rpx;
|
||||
border-radius: 24rpx;
|
||||
background-color: #FFF4EE;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
</view>
|
||||
<view class="hq-card" v-else>
|
||||
<view class="hq-empty">
|
||||
<hq-icon name="sprout" :size="72" color="#E6D3C9" />
|
||||
<hq-icon name="sprout" :size="96" :stroke="1.6" color="#E6D3C9" />
|
||||
<text class="hq-empty-text">本期还没有症状记录</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="hq-empty" v-if="!(data.binds || []).length">
|
||||
<hq-icon name="users" :size="72" color="#E6D3C9" />
|
||||
<hq-icon name="users" :size="96" :stroke="1.6" color="#E6D3C9" />
|
||||
<text class="hq-empty-text">还没有绑定家人\n生成邀请码发给 TA 即可</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -94,7 +94,7 @@
|
||||
</view>
|
||||
<view class="hq-card script" v-for="item in scriptList" :key="item.id" @tap="openContent(item)">
|
||||
<view class="script-head">
|
||||
<hq-icon :name="contentIcon(item.type)" :size="30" color="#E8604C" style="margin-right: 12rpx" />
|
||||
<hq-icon :name="contentIcon(item.type)" :size="38" :stroke="1.7" color="#E8604C" style="margin-right: 16rpx" />
|
||||
<text class="script-title">{{ item.title }}</text>
|
||||
</view>
|
||||
<text class="script-summary">{{ item.summary }}</text>
|
||||
@@ -360,9 +360,9 @@ export default {
|
||||
}
|
||||
|
||||
.member-avatar {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
border-radius: 24rpx;
|
||||
width: 82rpx;
|
||||
height: 82rpx;
|
||||
border-radius: 26rpx;
|
||||
background-color: #FFF1E9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
<view class="tab-inner">
|
||||
<hq-icon
|
||||
:name="tab.icon"
|
||||
:size="26"
|
||||
:size="32"
|
||||
:stroke="1.8"
|
||||
:color="active === tab.key ? '#FFFFFF' : '#B5715B'"
|
||||
/>
|
||||
<text class="tab-text" :class="{ 'tab-text-active': active === tab.key }">{{ tab.title }}</text>
|
||||
@@ -33,7 +34,7 @@
|
||||
|
||||
<view class="hq-card item" v-for="item in currentList" :key="item.id" @tap="open(item)">
|
||||
<view class="item-left">
|
||||
<hq-icon :name="contentIcon(item.type)" :size="34" color="#E8604C" />
|
||||
<hq-icon :name="contentIcon(item.type)" :size="42" :stroke="1.7" color="#E8604C" />
|
||||
</view>
|
||||
<view class="item-body">
|
||||
<text class="item-title">{{ item.title }}</text>
|
||||
@@ -47,7 +48,7 @@
|
||||
|
||||
<view class="hq-card" v-if="!currentList.length">
|
||||
<view class="hq-empty">
|
||||
<hq-icon name="leaf" :size="72" color="#E6D3C9" />
|
||||
<hq-icon name="leaf" :size="96" :stroke="1.6" color="#E6D3C9" />
|
||||
<text class="hq-empty-text">该阶段暂无建议内容\n可以先记录身体状态</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -151,7 +152,7 @@ export default {
|
||||
|
||||
.tab {
|
||||
flex: 1;
|
||||
height: 76rpx;
|
||||
height: 84rpx;
|
||||
border-radius: 24rpx;
|
||||
background-color: #FFFFFF;
|
||||
margin-right: 12rpx;
|
||||
@@ -192,9 +193,9 @@ export default {
|
||||
}
|
||||
|
||||
.item-left {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
border-radius: 24rpx;
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
border-radius: 26rpx;
|
||||
background-color: #FFF4EE;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<view class="brand">
|
||||
<view class="brand-left">
|
||||
<view class="brand-mark">
|
||||
<hq-icon name="flower" :size="40" :stroke="1.9" color="#FFFFFF" />
|
||||
<hq-icon name="flower" :size="46" :stroke="1.9" color="#FFFFFF" />
|
||||
</view>
|
||||
<view class="brand-text">
|
||||
<text class="brand-name">花期</text>
|
||||
@@ -69,7 +69,7 @@
|
||||
<view class="quick">
|
||||
<view class="quick-item" v-for="item in quicks" :key="item.label" @tap="go(item)">
|
||||
<view class="quick-icon" :style="{ backgroundColor: item.bg }">
|
||||
<hq-icon :name="item.icon" :size="40" :stroke="1.9" color="#E8604C" />
|
||||
<hq-icon :name="item.icon" :size="52" :stroke="1.85" color="#E8604C" />
|
||||
</view>
|
||||
<text class="quick-label">{{ item.label }}</text>
|
||||
</view>
|
||||
@@ -91,7 +91,7 @@
|
||||
</view>
|
||||
<view class="jijing hq-card" v-if="home.jijing" @tap="openJijing">
|
||||
<view class="jijing-top">
|
||||
<hq-icon :name="jijingIcon" :size="52" color="#E8604C" style="margin-right: 20rpx" />
|
||||
<hq-icon :name="jijingIcon" :size="62" :stroke="1.7" color="#E8604C" style="margin-right: 22rpx" />
|
||||
<view class="jijing-head">
|
||||
<text class="jijing-title">{{ home.jijing.title }}</text>
|
||||
<text class="jijing-summary">{{ home.jijing.summary }}</text>
|
||||
@@ -110,7 +110,7 @@
|
||||
</view>
|
||||
<view class="reminder hq-card">
|
||||
<view class="reminder-item" v-for="(item, index) in home.reminders" :key="index">
|
||||
<hq-icon :name="reminderIcon(item.type)" :size="38" color="#F5A65B" style="margin-right: 20rpx" />
|
||||
<hq-icon :name="reminderIcon(item.type)" :size="46" :stroke="1.7" color="#F5A65B" style="margin-right: 22rpx" />
|
||||
<view class="reminder-body">
|
||||
<text class="reminder-title">{{ item.title }}</text>
|
||||
<text class="reminder-desc">{{ item.desc }}</text>
|
||||
@@ -279,9 +279,9 @@ export default {
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
border-radius: 24rpx;
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
border-radius: 28rpx;
|
||||
background: linear-gradient(135deg, #F58C7C 0%, #E8604C 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -296,7 +296,7 @@ export default {
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 36rpx;
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
letter-spacing: 6rpx;
|
||||
color: #3E2C27;
|
||||
@@ -309,8 +309,8 @@ export default {
|
||||
}
|
||||
|
||||
.brand-avatar {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #FFFFFF;
|
||||
border: 2rpx solid #F5E7DF;
|
||||
@@ -320,7 +320,7 @@ export default {
|
||||
}
|
||||
|
||||
.brand-avatar-text {
|
||||
font-size: 28rpx;
|
||||
font-size: 30rpx;
|
||||
color: #E8604C;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -497,17 +497,17 @@ export default {
|
||||
}
|
||||
|
||||
.quick-icon {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
border-radius: 32rpx;
|
||||
width: 112rpx;
|
||||
height: 112rpx;
|
||||
border-radius: 36rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.quick-label {
|
||||
margin-top: 12rpx;
|
||||
font-size: 22rpx;
|
||||
margin-top: 14rpx;
|
||||
font-size: 24rpx;
|
||||
color: #8C7367;
|
||||
}
|
||||
|
||||
@@ -602,20 +602,14 @@ export default {
|
||||
|
||||
.reminder-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
padding: 20rpx 0;
|
||||
align-items: center;
|
||||
padding: 22rpx 0;
|
||||
}
|
||||
|
||||
.reminder-item + .reminder-item {
|
||||
border-top: 2rpx solid #F5E7DF;
|
||||
}
|
||||
|
||||
.reminder-icon {
|
||||
font-size: 36rpx;
|
||||
margin-right: 20rpx;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.reminder-body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<!-- 品牌区 -->
|
||||
<view class="hero">
|
||||
<view class="petals">
|
||||
<view class="petal petal-1"><hq-icon name="flower" :size="44" :stroke="1.7" color="#F5A65B" /></view>
|
||||
<view class="petal petal-2"><hq-icon name="flower" :size="60" :stroke="1.8" color="#E8604C" /></view>
|
||||
<view class="petal petal-1"><hq-icon name="flower" :size="54" :stroke="1.7" color="#F5A65B" /></view>
|
||||
<view class="petal petal-2"><hq-icon name="flower" :size="76" :stroke="1.8" color="#E8604C" /></view>
|
||||
<view class="petal petal-3"><hq-icon name="flower" :size="44" :stroke="1.7" color="#F5A65B" /></view>
|
||||
</view>
|
||||
<text class="brand">花期</text>
|
||||
@@ -15,7 +15,7 @@
|
||||
<!-- 登录表单 -->
|
||||
<view class="form hq-card">
|
||||
<view class="input-wrap">
|
||||
<hq-icon name="user" :size="32" color="#B5715B" class="input-icon" />
|
||||
<hq-icon name="user" :size="40" :stroke="1.7" color="#B5715B" class="input-icon" />
|
||||
<input
|
||||
class="input"
|
||||
v-model="account"
|
||||
@@ -25,7 +25,7 @@
|
||||
/>
|
||||
</view>
|
||||
<view class="input-wrap">
|
||||
<hq-icon name="lock" :size="32" color="#B5715B" class="input-icon" />
|
||||
<hq-icon name="lock" :size="40" :stroke="1.7" color="#B5715B" class="input-icon" />
|
||||
<input
|
||||
class="input"
|
||||
v-model="password"
|
||||
@@ -116,8 +116,8 @@ export default {
|
||||
|
||||
.petals {
|
||||
position: relative;
|
||||
height: 120rpx;
|
||||
width: 240rpx;
|
||||
height: 140rpx;
|
||||
width: 280rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ export default {
|
||||
}
|
||||
|
||||
.input-icon {
|
||||
margin-right: 18rpx;
|
||||
margin-right: 22rpx;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
</view>
|
||||
<view class="plan-check">
|
||||
<view class="plan-check-circle" :class="{ 'plan-check-circle-active': selected === plan.id }">
|
||||
<hq-icon v-if="selected === plan.id" name="check" :size="18" :stroke="2.4" color="#FFFFFF" />
|
||||
<hq-icon v-if="selected === plan.id" name="check" :size="22" :stroke="2.4" color="#FFFFFF" />
|
||||
</view>
|
||||
<text class="plan-check-label">{{ selected === plan.id ? '已选择' : '点击选择' }}</text>
|
||||
</view>
|
||||
@@ -285,8 +285,8 @@ export default {
|
||||
}
|
||||
|
||||
.plan-check-circle {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid #E4D3C9;
|
||||
display: flex;
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
<view class="hq-card setting-card">
|
||||
<view class="hq-cell" @tap="chooseLock">
|
||||
<view class="cell-left">
|
||||
<hq-icon name="lock" :size="32" color="#C79A7B" style="margin-right: 16rpx" />
|
||||
<hq-icon name="lock" :size="40" :stroke="1.7" color="#C79A7B" style="margin-right: 20rpx" />
|
||||
<text class="hq-cell-label">应用锁</text>
|
||||
</view>
|
||||
<view class="cell-right">
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
<view class="hq-cell">
|
||||
<view class="cell-left">
|
||||
<hq-icon name="smartphone" :size="32" color="#C79A7B" style="margin-right: 16rpx" />
|
||||
<hq-icon name="smartphone" :size="40" :stroke="1.7" color="#C79A7B" style="margin-right: 20rpx" />
|
||||
<text class="hq-cell-label">仅本地存储</text>
|
||||
</view>
|
||||
<switch
|
||||
@@ -96,7 +96,7 @@
|
||||
<view class="hq-card setting-card">
|
||||
<view class="hq-cell" v-for="item in remindItems" :key="item.key">
|
||||
<view class="cell-left">
|
||||
<hq-icon :name="item.icon" :size="32" color="#C79A7B" style="margin-right: 16rpx" />
|
||||
<hq-icon :name="item.icon" :size="40" :stroke="1.7" color="#C79A7B" style="margin-right: 20rpx" />
|
||||
<text class="hq-cell-label">{{ item.label }}</text>
|
||||
</view>
|
||||
<switch
|
||||
@@ -110,7 +110,7 @@
|
||||
<picker mode="time" :value="remind.time || '21:00'" @change="onTimeChange">
|
||||
<view class="hq-cell">
|
||||
<view class="cell-left">
|
||||
<hq-icon name="clock" :size="32" color="#C79A7B" style="margin-right: 16rpx" />
|
||||
<hq-icon name="clock" :size="40" :stroke="1.7" color="#C79A7B" style="margin-right: 20rpx" />
|
||||
<text class="hq-cell-label">提醒时间</text>
|
||||
</view>
|
||||
<view class="cell-right">
|
||||
@@ -475,9 +475,9 @@ export default {
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 108rpx;
|
||||
height: 108rpx;
|
||||
border-radius: 36rpx;
|
||||
width: 116rpx;
|
||||
height: 116rpx;
|
||||
border-radius: 38rpx;
|
||||
background: linear-gradient(135deg, #F58C7C 0%, #E8604C 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -486,7 +486,7 @@ export default {
|
||||
}
|
||||
|
||||
.avatar-text {
|
||||
font-size: 44rpx;
|
||||
font-size: 48rpx;
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</view>
|
||||
|
||||
<view class="hotline" @tap="callHotline">
|
||||
<hq-icon name="phone" :size="36" color="#C9482F" style="margin-right: 16rpx" />
|
||||
<hq-icon name="phone" :size="42" :stroke="1.7" color="#C9482F" style="margin-right: 20rpx" />
|
||||
<view class="hotline-body">
|
||||
<text class="hotline-title">如果可以,先告诉一个人「我现在不太好」</text>
|
||||
<text class="hotline-sub">需要专业支持:{{ data.hotline && data.hotline.phone ? data.hotline.phone : '12356' }}</text>
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<view class="hq-card tool" v-for="item in data.list || []" :key="item.id" @tap="open(item)">
|
||||
<view class="tool-head">
|
||||
<hq-icon :name="toolIcon(item)" :size="44" color="#E8604C" style="margin-right: 20rpx" />
|
||||
<hq-icon :name="toolIcon(item)" :size="54" :stroke="1.7" color="#E8604C" style="margin-right: 24rpx" />
|
||||
<view class="tool-title-wrap">
|
||||
<text class="tool-title">{{ item.title }}</text>
|
||||
<text class="tool-summary">{{ item.summary }}</text>
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
<view class="hq-card" v-if="!(data.list || []).length">
|
||||
<view class="hq-empty">
|
||||
<hq-icon name="droplets" :size="72" color="#E6D3C9" />
|
||||
<hq-icon name="droplets" :size="96" :stroke="1.6" color="#E6D3C9" />
|
||||
<text class="hq-empty-text">加载中…</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -105,7 +105,7 @@ export default {
|
||||
.hotline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 24rpx 28rpx;
|
||||
padding: 28rpx 30rpx;
|
||||
border-radius: 28rpx;
|
||||
background: linear-gradient(135deg, #FFF1E0 0%, #FFE3D3 100%);
|
||||
border: 2rpx solid #F7DCC8;
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
>
|
||||
<hq-icon
|
||||
:name="m.icon"
|
||||
:size="40"
|
||||
:stroke="1.9"
|
||||
:size="50"
|
||||
:stroke="1.8"
|
||||
:color="form.mood === m.key ? '#E8604C' : '#B5715B'"
|
||||
/>
|
||||
<text class="mood-option-text" :class="{ 'mood-option-text-active': form.mood === m.key }">{{ m.text }}</text>
|
||||
@@ -126,7 +126,7 @@
|
||||
<view class="hq-card record-card" v-if="records.length">
|
||||
<view class="record" v-for="item in records" :key="item.id">
|
||||
<view class="record-left">
|
||||
<hq-icon :name="moodIcon(item.mood)" :size="30" :color="item.color" />
|
||||
<hq-icon :name="moodIcon(item.mood)" :size="36" :stroke="1.7" :color="item.color" />
|
||||
</view>
|
||||
<view class="record-body">
|
||||
<view class="record-head">
|
||||
@@ -145,7 +145,7 @@
|
||||
</view>
|
||||
<view class="hq-card" v-else>
|
||||
<view class="hq-empty">
|
||||
<hq-icon name="moon" :size="72" color="#E6D3C9" />
|
||||
<hq-icon name="moon" :size="96" :stroke="1.6" color="#E6D3C9" />
|
||||
<text class="hq-empty-text">还没有情绪记录\n记录一次,就能看见自己的情绪脉络</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -157,7 +157,7 @@
|
||||
</view>
|
||||
<view class="hq-card content-card" v-for="item in contents" :key="item.id" @tap="openContent(item)">
|
||||
<view class="content-left">
|
||||
<hq-icon :name="contentIcon(item.type)" :size="34" color="#E8604C" />
|
||||
<hq-icon :name="contentIcon(item.type)" :size="42" :stroke="1.7" color="#E8604C" />
|
||||
</view>
|
||||
<view class="content-body">
|
||||
<text class="content-title">{{ item.title }}</text>
|
||||
@@ -352,8 +352,8 @@ export default {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 20rpx 0;
|
||||
border-radius: 24rpx;
|
||||
padding: 24rpx 0;
|
||||
border-radius: 26rpx;
|
||||
background-color: #FFF9F5;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
@@ -368,8 +368,8 @@ export default {
|
||||
}
|
||||
|
||||
.mood-option-text {
|
||||
margin-top: 8rpx;
|
||||
font-size: 22rpx;
|
||||
margin-top: 10rpx;
|
||||
font-size: 23rpx;
|
||||
color: #8C7367;
|
||||
}
|
||||
|
||||
@@ -584,9 +584,9 @@ export default {
|
||||
}
|
||||
|
||||
.record-left {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 20rpx;
|
||||
width: 76rpx;
|
||||
height: 76rpx;
|
||||
border-radius: 24rpx;
|
||||
background-color: #FFF4EE;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -655,9 +655,9 @@ export default {
|
||||
}
|
||||
|
||||
.content-left {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
border-radius: 24rpx;
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
border-radius: 26rpx;
|
||||
background-color: #FFF4EE;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<text class="hq-section-more">按月龄推荐</text>
|
||||
</view>
|
||||
<view class="hq-card activity" v-for="item in data.activities || []" :key="item.id" @tap="openContent(item)">
|
||||
<hq-icon :name="contentIcon(item.type)" :size="32" color="#E8604C" />
|
||||
<hq-icon :name="contentIcon(item.type)" :size="40" :stroke="1.7" color="#E8604C" />
|
||||
<view class="activity-body">
|
||||
<text class="activity-title">{{ item.title }}</text>
|
||||
<text class="activity-summary">{{ item.summary }}</text>
|
||||
@@ -80,7 +80,7 @@
|
||||
</view>
|
||||
<view class="task" v-for="item in data.co_tasks || []" :key="item.id" @tap="toggleCoTask(item)">
|
||||
<view class="task-check" :class="{ 'task-check-done': item.done }">
|
||||
<hq-icon v-if="item.done" name="check" :size="20" :stroke="2.4" color="#FFFFFF" />
|
||||
<hq-icon v-if="item.done" name="check" :size="24" :stroke="2.4" color="#FFFFFF" />
|
||||
</view>
|
||||
<text class="task-title" :class="{ 'task-title-done': item.done }">{{ item.title }}</text>
|
||||
</view>
|
||||
@@ -489,8 +489,8 @@ export default {
|
||||
}
|
||||
|
||||
.task-check {
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid #E4D3C9;
|
||||
display: flex;
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
|
||||
<view class="task" v-for="item in data.tasks || []" :key="item.id" @tap="toggleTask(item)">
|
||||
<view class="task-check" :class="{ 'task-check-done': item.done }">
|
||||
<hq-icon v-if="item.done" name="check" :size="20" :stroke="2.4" color="#FFFFFF" />
|
||||
<hq-icon v-if="item.done" name="check" :size="24" :stroke="2.4" color="#FFFFFF" />
|
||||
</view>
|
||||
<text class="task-title" :class="{ 'task-title-done': item.done }">{{ item.title }}</text>
|
||||
<text class="task-due" v-if="item.due_date">{{ item.due_date.slice(5) }}</text>
|
||||
@@ -124,7 +124,7 @@
|
||||
<text class="hq-muted" v-if="data.intercourse_locked">会员权益</text>
|
||||
</view>
|
||||
<view class="hq-empty" v-if="data.intercourse_locked" @tap="goMember">
|
||||
<hq-icon name="lock" :size="72" color="#E6D3C9" />
|
||||
<hq-icon name="lock" :size="92" :stroke="1.6" color="#E6D3C9" />
|
||||
<text class="hq-empty-text">开通会员后可查看受孕窗口、频率与体位建议</text>
|
||||
</view>
|
||||
<view class="guide-item" v-else v-for="item in guideList" :key="item.id" @tap="openContent(item)">
|
||||
@@ -498,7 +498,7 @@ export default {
|
||||
}
|
||||
|
||||
.lh-btn {
|
||||
height: 76rpx;
|
||||
height: 84rpx;
|
||||
padding: 0 32rpx;
|
||||
}
|
||||
|
||||
@@ -575,8 +575,8 @@ export default {
|
||||
}
|
||||
|
||||
.task-check {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid #E4D3C9;
|
||||
display: flex;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</view>
|
||||
<view class="task" v-for="item in data.tasks || []" :key="item.id" @tap="toggleTask(item)">
|
||||
<view class="task-check" :class="{ 'task-check-done': item.done }">
|
||||
<hq-icon v-if="item.done" name="check" :size="20" :stroke="2.4" color="#FFFFFF" />
|
||||
<hq-icon v-if="item.done" name="check" :size="24" :stroke="2.4" color="#FFFFFF" />
|
||||
</view>
|
||||
<text class="task-title" :class="{ 'task-title-done': item.done }">{{ item.title }}</text>
|
||||
</view>
|
||||
@@ -46,7 +46,7 @@
|
||||
</view>
|
||||
<view class="hq-card card" v-for="item in [...(data.cards || []), ...(data.conflicts || [])]" :key="'c' + item.id" @tap="openContent(item)">
|
||||
<view class="card-head">
|
||||
<hq-icon :name="contentIcon(item.type)" :size="30" color="#E8604C" style="margin-right: 12rpx" />
|
||||
<hq-icon :name="contentIcon(item.type)" :size="38" :stroke="1.7" color="#E8604C" style="margin-right: 16rpx" />
|
||||
<text class="card-title">{{ item.title }}</text>
|
||||
<text class="card-lock" v-if="item.locked">会员</text>
|
||||
</view>
|
||||
@@ -265,8 +265,8 @@ export default {
|
||||
}
|
||||
|
||||
.task-check {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid #E4D3C9;
|
||||
display: flex;
|
||||
|
||||
在新工单中引用
屏蔽一个用户