fix: 统一小程序按钮契约并补齐模板图标
This commit is contained in:
1 parent
07629a4596
commit
3330b536dc
9 files changed
+118
-10
No files matched your search
@@ -203,6 +203,7 @@ function Profile({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
data-editor-target="linjing-editorial.profile.records"
|
||||
onClick={() => navigate("records")}
|
||||
>
|
||||
<View className="entry-icon" />
|
||||
<View className="entry-copy">
|
||||
<Text>{p.recordsTitle || "我的咨询记录"}</Text>
|
||||
<Text>{p.recordsSubtitle}</Text>
|
||||
@@ -211,7 +212,7 @@ function Profile({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
</View>
|
||||
{rows(config.coverage).length > 0 && (
|
||||
<View className="info-card" data-editor-target="linjing-editorial.profile.coverage">
|
||||
<View className="card-title">{p.coverageTitle}</View>
|
||||
<View className="card-title coverage-title">{p.coverageTitle}</View>
|
||||
{rows(config.coverage).map((item, index) => (
|
||||
<View className="note" key={index}>
|
||||
<Text className="note-title">{item.title}</Text>
|
||||
@@ -222,7 +223,7 @@ function Profile({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
)}
|
||||
{Array.isArray(config.warranty) && config.warranty.length > 0 && (
|
||||
<View className="info-card" data-editor-target="linjing-editorial.profile.warranty">
|
||||
<View className="card-title">{p.warrantyTitle}</View>
|
||||
<View className="card-title warranty-title">{p.warrantyTitle}</View>
|
||||
{config.warranty.map((item, index) => (
|
||||
<View className="warranty" key={index}>
|
||||
<Text className="dot">•</Text>
|
||||
|
||||
@@ -344,6 +344,7 @@
|
||||
}
|
||||
.editorial-profile .contact-action button {
|
||||
display: flex;
|
||||
width: auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
@@ -388,6 +389,10 @@
|
||||
height: 66px;
|
||||
border-radius: 12px;
|
||||
background: rgba(138, 104, 70, 0.1);
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6846' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h5a3 3 0 0 1 3 3v9a2.5 2.5 0 0 0-2.5-2.5H4z'/%3E%3Cpath d='M20 6h-5a3 3 0 0 0-3 3v9a2.5 2.5 0 0 1 2.5-2.5H20z'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 34px;
|
||||
color: #8a6846;
|
||||
}
|
||||
.editorial-profile .entry-copy {
|
||||
@@ -427,6 +432,29 @@
|
||||
.editorial-profile .card-title t-icon {
|
||||
color: #8a6846;
|
||||
}
|
||||
.editorial-profile .coverage-title,
|
||||
.editorial-profile .warranty-title {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.editorial-profile .coverage-title::before,
|
||||
.editorial-profile .warranty-title::before {
|
||||
display: block;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
content: "";
|
||||
background-color: #8a6846;
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: contain;
|
||||
}
|
||||
.editorial-profile .coverage-title::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 0 0-14 0c0 5.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E");
|
||||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 0 0-14 0c0 5.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E");
|
||||
}
|
||||
.editorial-profile .warranty-title::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c5-2 7-5.4 7-10V6l-7-3-7 3v5c0 4.6 2 8 7 10z'/%3E%3Cpath d='M9.2 12l2 2 3.6-3.8'/%3E%3C/svg%3E");
|
||||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c5-2 7-5.4 7-10V6l-7-3-7 3v5c0 4.6 2 8 7 10z'/%3E%3Cpath d='M9.2 12l2 2 3.6-3.8'/%3E%3C/svg%3E");
|
||||
}
|
||||
.editorial-profile .note {
|
||||
margin-top: 18px;
|
||||
padding: 20px;
|
||||
@@ -647,6 +675,7 @@
|
||||
margin: 30px 0;
|
||||
}
|
||||
.editorial-detail .chips text {
|
||||
display: inline-block;
|
||||
border: 1px solid #c9b7a0;
|
||||
color: #8a6846;
|
||||
padding: 10px 18px;
|
||||
@@ -657,7 +686,10 @@
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
box-sizing: border-box;
|
||||
padding: 22px 32px;
|
||||
padding-bottom: calc(22px + env(safe-area-inset-bottom));
|
||||
background: #f7f5f1;
|
||||
}
|
||||
.editorial-detail .bar button {
|
||||
|
||||
Reference in new issue
Block a user