chore: 统一小程序代码格式
This commit is contained in:
1 parent
11dc293349
commit
1a2f179e15
48 files changed
+1701
-66
No files matched your search
@@ -1,10 +1,18 @@
|
||||
const { loadWorkspaceWithFallback } = require("../../utils/runtime-workspace");
|
||||
Page({
|
||||
data: {
|
||||
brand: {}, trustContent: [], records: [],
|
||||
brand: {},
|
||||
trustContent: [],
|
||||
records: [],
|
||||
},
|
||||
onLoad() {
|
||||
loadWorkspaceWithFallback().then((workspace) => this.setData({ brand: workspace.brand || {}, trustContent: workspace.trustContent || [], records: wx.getStorageSync("linjingInquiryRecords") || [] }));
|
||||
loadWorkspaceWithFallback().then((workspace) =>
|
||||
this.setData({
|
||||
brand: workspace.brand || {},
|
||||
trustContent: workspace.trustContent || [],
|
||||
records: wx.getStorageSync("linjingInquiryRecords") || [],
|
||||
}),
|
||||
);
|
||||
},
|
||||
onShow() {
|
||||
this.setData({ records: wx.getStorageSync("linjingInquiryRecords") || [] });
|
||||
@@ -12,8 +20,15 @@ Page({
|
||||
call() {
|
||||
wx.makePhoneCall({ phoneNumber: (this.data.brand.contactPhone || "").replace(/[^0-9-]/g, "") });
|
||||
},
|
||||
copyWechat() { wx.setClipboardData({ data: this.data.brand.contactWechat || "", success: () => wx.showToast({ title: "微信号已复制", icon: "none" }) }); },
|
||||
recordsPage() { wx.navigateTo({ url: "/pages/records/index" }); },
|
||||
copyWechat() {
|
||||
wx.setClipboardData({
|
||||
data: this.data.brand.contactWechat || "",
|
||||
success: () => wx.showToast({ title: "微信号已复制", icon: "none" }),
|
||||
});
|
||||
},
|
||||
recordsPage() {
|
||||
wx.navigateTo({ url: "/pages/records/index" });
|
||||
},
|
||||
inquire() {
|
||||
wx.navigateTo({ url: "/pages/inquiry/index" });
|
||||
},
|
||||
|
||||
@@ -2,5 +2,8 @@
|
||||
"navigationBarTitleText": "我的订单",
|
||||
"navigationBarBackgroundColor": "#FBF7F1",
|
||||
"navigationBarTextStyle": "black",
|
||||
"usingComponents": { "t-icon": "/miniprogram_npm/tdesign-miniprogram/icon/icon", "profile-module": "/components/modules/profile/profile" }
|
||||
"usingComponents": {
|
||||
"t-icon": "/miniprogram_npm/tdesign-miniprogram/icon/icon",
|
||||
"profile-module": "/components/modules/profile/profile"
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,153 @@
|
||||
.page{min-height:100vh;padding:28rpx 32rpx 56rpx;background:#f7f5f1;color:#252525}.contact-card{padding:34rpx 30rpx;background:#202221;color:#fff;border-radius:18rpx}.identity{display:flex;align-items:center;gap:20rpx}.avatar{width:88rpx;height:88rpx;border:2rpx solid #8a6846;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#d9c8b2;font:42rpx serif}.founder{display:block;font:34rpx serif}.role{display:block;margin-top:8rpx;color:#d9c8b2;font-size:22rpx}.contact-line{display:flex;justify-content:space-between;align-items:center;margin-top:22rpx;padding-top:18rpx;border-top:1rpx solid rgba(255,255,255,.12);color:#aaa;font-size:23rpx}.contact-line>view{display:flex;align-items:center;gap:10rpx;color:#fff}.contact-line button{margin:0;padding:0 14rpx;background:rgba(255,255,255,.1);color:#d9c8b2;font-size:21rpx}.records-entry,.info-card{margin-top:20rpx;padding:28rpx;background:#fff;border:1rpx solid #e6ded5;border-radius:16rpx}.records-entry{display:flex;justify-content:space-between;font-size:26rpx}.records-entry text:last-child{color:#8a6846}.card-title{display:block;font-weight:700;font-size:27rpx}.note,.bullet{display:block;margin-top:16rpx;color:#77736b;font-size:24rpx;line-height:1.75}
|
||||
.entry-icon{width:64rpx;height:64rpx;border-radius:12rpx;background:rgba(138,104,70,.1);color:#8a6846;display:flex;align-items:center;justify-content:center}.records-entry{align-items:center;gap:18rpx}.entry-copy{flex:1}.entry-copy text{display:block}.entry-copy text:last-child{margin-top:8rpx;color:#77736b;font-size:21rpx}.count{color:#8a6846;font-size:22rpx}.card-title{display:flex;align-items:center;gap:12rpx;color:#202221}.note{padding:20rpx;background:#f7f5f1;border:1rpx solid #e6ded5;border-radius:12rpx}.note-title{display:block;margin-bottom:6rpx;color:#202221;font-weight:700}.bullet{padding-left:8rpx}
|
||||
.contact-line button{display:flex;align-items:center;justify-content:center;gap:6rpx;height:44rpx;line-height:44rpx;white-space:nowrap}.contact-line button t-icon{display:inline-flex;vertical-align:middle}
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 28rpx 32rpx 56rpx;
|
||||
background: #f7f5f1;
|
||||
color: #252525;
|
||||
}
|
||||
.contact-card {
|
||||
padding: 34rpx 30rpx;
|
||||
background: #202221;
|
||||
color: #fff;
|
||||
border-radius: 18rpx;
|
||||
}
|
||||
.identity {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20rpx;
|
||||
}
|
||||
.avatar {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border: 2rpx solid #8a6846;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #d9c8b2;
|
||||
font: 42rpx serif;
|
||||
}
|
||||
.founder {
|
||||
display: block;
|
||||
font: 34rpx serif;
|
||||
}
|
||||
.role {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
color: #d9c8b2;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.contact-line {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 22rpx;
|
||||
padding-top: 18rpx;
|
||||
border-top: 1rpx solid rgba(255, 255, 255, 0.12);
|
||||
color: #aaa;
|
||||
font-size: 23rpx;
|
||||
}
|
||||
.contact-line > view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.contact-line button {
|
||||
margin: 0;
|
||||
padding: 0 14rpx;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #d9c8b2;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
.records-entry,
|
||||
.info-card {
|
||||
margin-top: 20rpx;
|
||||
padding: 28rpx;
|
||||
background: #fff;
|
||||
border: 1rpx solid #e6ded5;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.records-entry {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.records-entry text:last-child {
|
||||
color: #8a6846;
|
||||
}
|
||||
.card-title {
|
||||
display: block;
|
||||
font-weight: 700;
|
||||
font-size: 27rpx;
|
||||
}
|
||||
.note,
|
||||
.bullet {
|
||||
display: block;
|
||||
margin-top: 16rpx;
|
||||
color: #77736b;
|
||||
font-size: 24rpx;
|
||||
line-height: 1.75;
|
||||
}
|
||||
.entry-icon {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 12rpx;
|
||||
background: rgba(138, 104, 70, 0.1);
|
||||
color: #8a6846;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.records-entry {
|
||||
align-items: center;
|
||||
gap: 18rpx;
|
||||
}
|
||||
.entry-copy {
|
||||
flex: 1;
|
||||
}
|
||||
.entry-copy text {
|
||||
display: block;
|
||||
}
|
||||
.entry-copy text:last-child {
|
||||
margin-top: 8rpx;
|
||||
color: #77736b;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
.count {
|
||||
color: #8a6846;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.card-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
color: #202221;
|
||||
}
|
||||
.note {
|
||||
padding: 20rpx;
|
||||
background: #f7f5f1;
|
||||
border: 1rpx solid #e6ded5;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
.note-title {
|
||||
display: block;
|
||||
margin-bottom: 6rpx;
|
||||
color: #202221;
|
||||
font-weight: 700;
|
||||
}
|
||||
.bullet {
|
||||
padding-left: 8rpx;
|
||||
}
|
||||
.contact-line button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6rpx;
|
||||
height: 44rpx;
|
||||
line-height: 44rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.contact-line button t-icon {
|
||||
display: inline-flex;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@@ -1 +1,10 @@
|
||||
{"navigationBarTitleText":"品牌首页","usingComponents":{"founder-card":"/components/modules/founder-card/founder-card","brand-hero":"/components/modules/brand-hero/brand-hero","trust-proof":"/components/modules/trust-proof/trust-proof","trust-manifesto":"/components/modules/trust-manifesto/trust-manifesto","offering-list":"/components/modules/offering-list/offering-list"}}
|
||||
{
|
||||
"navigationBarTitleText": "品牌首页",
|
||||
"usingComponents": {
|
||||
"founder-card": "/components/modules/founder-card/founder-card",
|
||||
"brand-hero": "/components/modules/brand-hero/brand-hero",
|
||||
"trust-proof": "/components/modules/trust-proof/trust-proof",
|
||||
"trust-manifesto": "/components/modules/trust-manifesto/trust-manifesto",
|
||||
"offering-list": "/components/modules/offering-list/offering-list"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,208 @@
|
||||
.page{background:#f7f5f1;color:#252525;min-height:100vh;padding-bottom:30rpx}.founder{margin:32rpx 40rpx 20rpx;padding:28rpx;background:#fff;border:1px solid #e6ded5;border-radius:28rpx;display:flex;gap:20rpx;align-items:flex-start;position:relative}.avatar{width:112rpx;height:112rpx;border-radius:50%;border:4rpx solid #d9c8b2}.founder-name{display:block;font-family:serif;font-size:30rpx}.founder-title{display:block;color:#77736b;font-size:20rpx;margin-top:6rpx}.quote{display:block;font-family:serif;font-size:21rpx;margin-top:14rpx}.badge{position:absolute;right:20rpx;top:24rpx;color:#8a6846;background:#f3ede6;padding:8rpx 12rpx;border-radius:20rpx;font-size:18rpx}.hero{margin:0 40rpx 42rpx;height:400rpx;position:relative;border-radius:28rpx;overflow:hidden}.hero-image{width:100%;height:100%}.hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,22,21,.1),rgba(20,22,21,.82))}.hero-copy{position:absolute;left:28rpx;right:28rpx;bottom:28rpx;color:#fff}.eyebrow{display:block;font-size:18rpx;letter-spacing:3rpx;color:#d9c8b2;margin-bottom:14rpx}.eyebrow.dark{color:#8a6846}.hero-title{display:block;font-size:34rpx;font-family:serif}.hero-slogan{display:block;font-size:21rpx;margin-top:10rpx}.hero-button{position:absolute;right:0;bottom:0;background:rgba(255,255,255,.12);color:#d9c8b2;border:1px solid rgba(255,255,255,.3);font-size:19rpx;height:54rpx;line-height:54rpx;margin:0}.intro,.section{padding:0 40rpx 48rpx}.section-title{display:block;font-size:34rpx;font-family:serif;margin-bottom:16rpx}.body{display:block;color:#77736b;line-height:1.8;font-size:24rpx}.stats{display:grid;grid-template-columns:1fr 1fr;gap:16rpx;margin-top:22rpx}.stats view{background:#fff;border:1px solid #e6ded5;border-radius:20rpx;padding:22rpx}.stat-value{display:block;font-size:38rpx;color:#8a6846;font-family:serif}.stat-label{display:block;font-size:22rpx;font-weight:600;margin-top:4rpx}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:22rpx}.more{font-size:21rpx;color:#8a6846}.work-card{background:#fff;border:1px solid #e6ded5;border-radius:28rpx;overflow:hidden;margin-bottom:24rpx}.work-card image{width:100%;height:300rpx;display:block}.work-info{padding:24rpx}.work-category{font-size:19rpx;color:#8a6846}.work-name{display:block;font-family:serif;font-size:28rpx;margin:10rpx 0}.work-desc{font-size:22rpx;color:#77736b;line-height:1.6}.trust{margin-top:10rpx;background:#202221;color:#fff;padding:42rpx 40rpx}.light{color:#fff}.light-body{color:#c6c2ba;margin-bottom:26rpx}.outline-button{margin:0;background:transparent;border:1px solid #d9c8b2;color:#d9c8b2;border-radius:0;font-size:24rpx;height:72rpx;line-height:72rpx}
|
||||
.page {
|
||||
background: #f7f5f1;
|
||||
color: #252525;
|
||||
min-height: 100vh;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.founder {
|
||||
margin: 32rpx 40rpx 20rpx;
|
||||
padding: 28rpx;
|
||||
background: #fff;
|
||||
border: 1px solid #e6ded5;
|
||||
border-radius: 28rpx;
|
||||
display: flex;
|
||||
gap: 20rpx;
|
||||
align-items: flex-start;
|
||||
position: relative;
|
||||
}
|
||||
.avatar {
|
||||
width: 112rpx;
|
||||
height: 112rpx;
|
||||
border-radius: 50%;
|
||||
border: 4rpx solid #d9c8b2;
|
||||
}
|
||||
.founder-name {
|
||||
display: block;
|
||||
font-family: serif;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.founder-title {
|
||||
display: block;
|
||||
color: #77736b;
|
||||
font-size: 20rpx;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
.quote {
|
||||
display: block;
|
||||
font-family: serif;
|
||||
font-size: 21rpx;
|
||||
margin-top: 14rpx;
|
||||
}
|
||||
.badge {
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
top: 24rpx;
|
||||
color: #8a6846;
|
||||
background: #f3ede6;
|
||||
padding: 8rpx 12rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 18rpx;
|
||||
}
|
||||
.hero {
|
||||
margin: 0 40rpx 42rpx;
|
||||
height: 400rpx;
|
||||
position: relative;
|
||||
border-radius: 28rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hero-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.hero-shade {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(180deg, rgba(20, 22, 21, 0.1), rgba(20, 22, 21, 0.82));
|
||||
}
|
||||
.hero-copy {
|
||||
position: absolute;
|
||||
left: 28rpx;
|
||||
right: 28rpx;
|
||||
bottom: 28rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
font-size: 18rpx;
|
||||
letter-spacing: 3rpx;
|
||||
color: #d9c8b2;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
.eyebrow.dark {
|
||||
color: #8a6846;
|
||||
}
|
||||
.hero-title {
|
||||
display: block;
|
||||
font-size: 34rpx;
|
||||
font-family: serif;
|
||||
}
|
||||
.hero-slogan {
|
||||
display: block;
|
||||
font-size: 21rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.hero-button {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
color: #d9c8b2;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
font-size: 19rpx;
|
||||
height: 54rpx;
|
||||
line-height: 54rpx;
|
||||
margin: 0;
|
||||
}
|
||||
.intro,
|
||||
.section {
|
||||
padding: 0 40rpx 48rpx;
|
||||
}
|
||||
.section-title {
|
||||
display: block;
|
||||
font-size: 34rpx;
|
||||
font-family: serif;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.body {
|
||||
display: block;
|
||||
color: #77736b;
|
||||
line-height: 1.8;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.stats {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16rpx;
|
||||
margin-top: 22rpx;
|
||||
}
|
||||
.stats view {
|
||||
background: #fff;
|
||||
border: 1px solid #e6ded5;
|
||||
border-radius: 20rpx;
|
||||
padding: 22rpx;
|
||||
}
|
||||
.stat-value {
|
||||
display: block;
|
||||
font-size: 38rpx;
|
||||
color: #8a6846;
|
||||
font-family: serif;
|
||||
}
|
||||
.stat-label {
|
||||
display: block;
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
.section-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: end;
|
||||
margin-bottom: 22rpx;
|
||||
}
|
||||
.more {
|
||||
font-size: 21rpx;
|
||||
color: #8a6846;
|
||||
}
|
||||
.work-card {
|
||||
background: #fff;
|
||||
border: 1px solid #e6ded5;
|
||||
border-radius: 28rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
.work-card image {
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
display: block;
|
||||
}
|
||||
.work-info {
|
||||
padding: 24rpx;
|
||||
}
|
||||
.work-category {
|
||||
font-size: 19rpx;
|
||||
color: #8a6846;
|
||||
}
|
||||
.work-name {
|
||||
display: block;
|
||||
font-family: serif;
|
||||
font-size: 28rpx;
|
||||
margin: 10rpx 0;
|
||||
}
|
||||
.work-desc {
|
||||
font-size: 22rpx;
|
||||
color: #77736b;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.trust {
|
||||
margin-top: 10rpx;
|
||||
background: #202221;
|
||||
color: #fff;
|
||||
padding: 42rpx 40rpx;
|
||||
}
|
||||
.light {
|
||||
color: #fff;
|
||||
}
|
||||
.light-body {
|
||||
color: #c6c2ba;
|
||||
margin-bottom: 26rpx;
|
||||
}
|
||||
.outline-button {
|
||||
margin: 0;
|
||||
background: transparent;
|
||||
border: 1px solid #d9c8b2;
|
||||
color: #d9c8b2;
|
||||
border-radius: 0;
|
||||
font-size: 24rpx;
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
}
|
||||
@@ -1 +1,6 @@
|
||||
{"navigationBarTitleText":"咨询已提交","navigationBarBackgroundColor":"#F7F5F1","navigationBarTextStyle":"black","usingComponents":{"success-summary":"/components/modules/success-summary/success-summary"}}
|
||||
{
|
||||
"navigationBarTitleText": "咨询已提交",
|
||||
"navigationBarBackgroundColor": "#F7F5F1",
|
||||
"navigationBarTextStyle": "black",
|
||||
"usingComponents": { "success-summary": "/components/modules/success-summary/success-summary" }
|
||||
}
|
||||
@@ -1 +1,71 @@
|
||||
.page{min-height:100vh;padding:130rpx 48rpx;background:#f7f5f1;color:#252525}.mark{width:120rpx;height:120rpx;border:3rpx solid #8a6846;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#8a6846;font-size:70rpx;font-family:serif}.eyebrow{display:block;margin-top:70rpx;color:#8a6846;font-size:20rpx;letter-spacing:4rpx}.title{display:block;margin-top:18rpx;font-family:serif;font-size:58rpx}.intro{display:block;margin-top:24rpx;color:#77736b;font-size:28rpx;line-height:1.8}.summary{margin-top:56rpx;padding:10rpx 26rpx;background:#fff}.summary view{display:flex;justify-content:space-between;padding:26rpx 0;border-bottom:1rpx solid #e6ded5;font-size:27rpx}.summary view:last-child{border-bottom:0}.summary text:last-child{color:#8a6846}.primary,.secondary{margin-top:28rpx;border-radius:0;font-size:28rpx}.primary{background:#252827;color:#fff}.secondary{background:transparent;border:1rpx solid #8a6846;color:#8a6846}
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 130rpx 48rpx;
|
||||
background: #f7f5f1;
|
||||
color: #252525;
|
||||
}
|
||||
.mark {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border: 3rpx solid #8a6846;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #8a6846;
|
||||
font-size: 70rpx;
|
||||
font-family: serif;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
margin-top: 70rpx;
|
||||
color: #8a6846;
|
||||
font-size: 20rpx;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
.title {
|
||||
display: block;
|
||||
margin-top: 18rpx;
|
||||
font-family: serif;
|
||||
font-size: 58rpx;
|
||||
}
|
||||
.intro {
|
||||
display: block;
|
||||
margin-top: 24rpx;
|
||||
color: #77736b;
|
||||
font-size: 28rpx;
|
||||
line-height: 1.8;
|
||||
}
|
||||
.summary {
|
||||
margin-top: 56rpx;
|
||||
padding: 10rpx 26rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.summary view {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 26rpx 0;
|
||||
border-bottom: 1rpx solid #e6ded5;
|
||||
font-size: 27rpx;
|
||||
}
|
||||
.summary view:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.summary text:last-child {
|
||||
color: #8a6846;
|
||||
}
|
||||
.primary,
|
||||
.secondary {
|
||||
margin-top: 28rpx;
|
||||
border-radius: 0;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.primary {
|
||||
background: #252827;
|
||||
color: #fff;
|
||||
}
|
||||
.secondary {
|
||||
background: transparent;
|
||||
border: 1rpx solid #8a6846;
|
||||
color: #8a6846;
|
||||
}
|
||||
@@ -1 +1,67 @@
|
||||
.page{min-height:100vh;background:#f7f5f1;color:#252525}.head{background:#252827;color:#fff;padding:68rpx 40rpx 58rpx}.eyebrow{display:block;color:#d9c8b2;font-size:20rpx;letter-spacing:3rpx;margin-bottom:18rpx}.title{display:block;font-family:serif;font-size:50rpx}.sub{display:block;color:#c6c2ba;font-size:25rpx;line-height:1.6;margin-top:18rpx}.form{padding:40rpx}.field{margin-bottom:30rpx}.field text{display:block;font-size:24rpx;color:#77736b;margin-bottom:12rpx}.field input{box-sizing:border-box;width:100%;height:84rpx;padding:0 22rpx;background:#fff;border-bottom:1px solid #d7d0c6;font-size:27rpx}.submit{margin-top:22rpx;width:100%;height:88rpx;line-height:88rpx;border-radius:0;background:#8a6846;color:#fff;font-size:28rpx}.privacy{display:block;text-align:center;color:#aaa39a;font-size:20rpx;margin-top:26rpx}
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background: #f7f5f1;
|
||||
color: #252525;
|
||||
}
|
||||
.head {
|
||||
background: #252827;
|
||||
color: #fff;
|
||||
padding: 68rpx 40rpx 58rpx;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
color: #d9c8b2;
|
||||
font-size: 20rpx;
|
||||
letter-spacing: 3rpx;
|
||||
margin-bottom: 18rpx;
|
||||
}
|
||||
.title {
|
||||
display: block;
|
||||
font-family: serif;
|
||||
font-size: 50rpx;
|
||||
}
|
||||
.sub {
|
||||
display: block;
|
||||
color: #c6c2ba;
|
||||
font-size: 25rpx;
|
||||
line-height: 1.6;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
.form {
|
||||
padding: 40rpx;
|
||||
}
|
||||
.field {
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.field text {
|
||||
display: block;
|
||||
font-size: 24rpx;
|
||||
color: #77736b;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
.field input {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 84rpx;
|
||||
padding: 0 22rpx;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #d7d0c6;
|
||||
font-size: 27rpx;
|
||||
}
|
||||
.submit {
|
||||
margin-top: 22rpx;
|
||||
width: 100%;
|
||||
height: 88rpx;
|
||||
line-height: 88rpx;
|
||||
border-radius: 0;
|
||||
background: #8a6846;
|
||||
color: #fff;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.privacy {
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: #aaa39a;
|
||||
font-size: 20rpx;
|
||||
margin-top: 26rpx;
|
||||
}
|
||||
@@ -1,6 +1,16 @@
|
||||
const { loadWorkspaceWithFallback } = require("../../utils/runtime-workspace");
|
||||
Page({
|
||||
data: { item: null, loading: true },
|
||||
onLoad(options) { loadWorkspaceWithFallback().then((workspace) => { const offerings = workspace.offerings || []; const item = offerings.find((entry) => entry.id === options.id) || offerings[0]; if (!item) return this.setData({ loading: false }); this.setData({ item, loading: false }); wx.setNavigationBarTitle({ title: item.category || item.name }); }); },
|
||||
inquire() { wx.navigateTo({ url: "/pages/inquiry/index?offeringId=" + this.data.item.id }); },
|
||||
onLoad(options) {
|
||||
loadWorkspaceWithFallback().then((workspace) => {
|
||||
const offerings = workspace.offerings || [];
|
||||
const item = offerings.find((entry) => entry.id === options.id) || offerings[0];
|
||||
if (!item) return this.setData({ loading: false });
|
||||
this.setData({ item, loading: false });
|
||||
wx.setNavigationBarTitle({ title: item.category || item.name });
|
||||
});
|
||||
},
|
||||
inquire() {
|
||||
wx.navigateTo({ url: "/pages/inquiry/index?offeringId=" + this.data.item.id });
|
||||
},
|
||||
});
|
||||
@@ -1 +1,86 @@
|
||||
.page{background:#f7f5f1;min-height:100vh;color:#252525;padding-bottom:150rpx}.hero{width:100%;height:600rpx;display:block}.content{padding:42rpx 40rpx}.category,.label{font-size:21rpx;color:#8a6846;display:block;letter-spacing:1rpx}.title{display:block;font-size:46rpx;font-family:serif;line-height:1.35;margin:18rpx 0 8rpx}.series{display:block;color:#77736b;font-size:26rpx}.price{display:block;color:#8a6846;font-size:30rpx;margin-top:26rpx}.rule{height:1px;background:#ddd5cb;margin:38rpx 0}.desc,.body{display:block;color:#77736b;font-size:27rpx;line-height:1.9;margin-top:16rpx}.chips{display:flex;flex-wrap:wrap;gap:14rpx;margin:30rpx 0}.chips text{border:1px solid #c9b7a0;color:#8a6846;padding:10rpx 18rpx;font-size:22rpx}.section{border-top:1px solid #ddd5cb;padding-top:30rpx;margin-top:28rpx}.bar{position:fixed;bottom:0;left:0;right:0;background:#f7f5f1;padding:22rpx 32rpx calc(22rpx + env(safe-area-inset-bottom));box-shadow:0 -4rpx 18rpx rgba(37,40,39,.08)}.bar button{background:#252827;color:#fff;border-radius:0;height:86rpx;line-height:86rpx;font-size:28rpx}
|
||||
.page {
|
||||
background: #f7f5f1;
|
||||
min-height: 100vh;
|
||||
color: #252525;
|
||||
padding-bottom: 150rpx;
|
||||
}
|
||||
.hero {
|
||||
width: 100%;
|
||||
height: 600rpx;
|
||||
display: block;
|
||||
}
|
||||
.content {
|
||||
padding: 42rpx 40rpx;
|
||||
}
|
||||
.category,
|
||||
.label {
|
||||
font-size: 21rpx;
|
||||
color: #8a6846;
|
||||
display: block;
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
.title {
|
||||
display: block;
|
||||
font-size: 46rpx;
|
||||
font-family: serif;
|
||||
line-height: 1.35;
|
||||
margin: 18rpx 0 8rpx;
|
||||
}
|
||||
.series {
|
||||
display: block;
|
||||
color: #77736b;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.price {
|
||||
display: block;
|
||||
color: #8a6846;
|
||||
font-size: 30rpx;
|
||||
margin-top: 26rpx;
|
||||
}
|
||||
.rule {
|
||||
height: 1px;
|
||||
background: #ddd5cb;
|
||||
margin: 38rpx 0;
|
||||
}
|
||||
.desc,
|
||||
.body {
|
||||
display: block;
|
||||
color: #77736b;
|
||||
font-size: 27rpx;
|
||||
line-height: 1.9;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
.chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 14rpx;
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
.chips text {
|
||||
border: 1px solid #c9b7a0;
|
||||
color: #8a6846;
|
||||
padding: 10rpx 18rpx;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.section {
|
||||
border-top: 1px solid #ddd5cb;
|
||||
padding-top: 30rpx;
|
||||
margin-top: 28rpx;
|
||||
}
|
||||
.bar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #f7f5f1;
|
||||
padding: 22rpx 32rpx calc(22rpx + env(safe-area-inset-bottom));
|
||||
box-shadow: 0 -4rpx 18rpx rgba(37, 40, 39, 0.08);
|
||||
}
|
||||
.bar button {
|
||||
background: #252827;
|
||||
color: #fff;
|
||||
border-radius: 0;
|
||||
height: 86rpx;
|
||||
line-height: 86rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
@@ -1 +1,6 @@
|
||||
{"navigationBarTitleText":"咨询记录","navigationBarBackgroundColor":"#F7F5F1","navigationBarTextStyle":"black","usingComponents":{"records-module":"/components/modules/records/records"}}
|
||||
{
|
||||
"navigationBarTitleText": "咨询记录",
|
||||
"navigationBarBackgroundColor": "#F7F5F1",
|
||||
"navigationBarTextStyle": "black",
|
||||
"usingComponents": { "records-module": "/components/modules/records/records" }
|
||||
}
|
||||
@@ -1 +1,71 @@
|
||||
.page{min-height:100vh;padding:34rpx 36rpx;background:#f7f5f1;color:#252525}.head{display:flex;align-items:center;justify-content:space-between}.title{font-family:serif;font-size:48rpx}.head button{margin:0;padding:0 22rpx;border:1rpx solid #8a6846;background:transparent;color:#8a6846;font-size:24rpx}.empty{margin-top:180rpx;text-align:center;color:#99928a;font-size:26rpx;line-height:1.8}.empty-title{display:block;margin-bottom:16rpx;color:#252525;font-family:serif;font-size:40rpx}.empty button{margin-top:36rpx;background:#8a6846;color:#fff;border-radius:0}.record{margin-top:22rpx;padding:28rpx;background:#fff}.record-head{display:flex;justify-content:space-between;font-family:serif;font-size:33rpx}.status{font-family:inherit;color:#8a6846;font-size:23rpx}.project{display:block;margin-top:20rpx;color:#77736b;font-size:27rpx}.meta{display:block;margin-top:18rpx;color:#aaa39a;font-size:22rpx}
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 34rpx 36rpx;
|
||||
background: #f7f5f1;
|
||||
color: #252525;
|
||||
}
|
||||
.head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.title {
|
||||
font-family: serif;
|
||||
font-size: 48rpx;
|
||||
}
|
||||
.head button {
|
||||
margin: 0;
|
||||
padding: 0 22rpx;
|
||||
border: 1rpx solid #8a6846;
|
||||
background: transparent;
|
||||
color: #8a6846;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.empty {
|
||||
margin-top: 180rpx;
|
||||
text-align: center;
|
||||
color: #99928a;
|
||||
font-size: 26rpx;
|
||||
line-height: 1.8;
|
||||
}
|
||||
.empty-title {
|
||||
display: block;
|
||||
margin-bottom: 16rpx;
|
||||
color: #252525;
|
||||
font-family: serif;
|
||||
font-size: 40rpx;
|
||||
}
|
||||
.empty button {
|
||||
margin-top: 36rpx;
|
||||
background: #8a6846;
|
||||
color: #fff;
|
||||
border-radius: 0;
|
||||
}
|
||||
.record {
|
||||
margin-top: 22rpx;
|
||||
padding: 28rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.record-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-family: serif;
|
||||
font-size: 33rpx;
|
||||
}
|
||||
.status {
|
||||
font-family: inherit;
|
||||
color: #8a6846;
|
||||
font-size: 23rpx;
|
||||
}
|
||||
.project {
|
||||
display: block;
|
||||
margin-top: 20rpx;
|
||||
color: #77736b;
|
||||
font-size: 27rpx;
|
||||
}
|
||||
.meta {
|
||||
display: block;
|
||||
margin-top: 18rpx;
|
||||
color: #aaa39a;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
@@ -1 +1,94 @@
|
||||
.page{background:#f7f5f1;min-height:100vh;color:#252525}.head{background:#252827;color:#fff;padding:70rpx 40rpx 55rpx}.eyebrow{font-size:20rpx;letter-spacing:3rpx;color:#d9c8b2;display:block;margin-bottom:18rpx}.title{font-size:52rpx;font-family:serif;display:block}.sub{font-size:26rpx;color:#c6c2ba;display:block;margin-top:16rpx}.tabs{white-space:nowrap;padding:28rpx 32rpx;background:#f7f5f1}.tab{display:inline-block;font-size:25rpx;color:#77736b;margin:0 14rpx;padding-bottom:12rpx}.tab.active{color:#8a6846;border-bottom:2px solid #8a6846}.list{padding:0 32rpx 40rpx}.card{background:#fff;margin-bottom:30rpx}.card image{width:100%;height:380rpx;display:block}.card-body{padding:28rpx}.category{font-size:20rpx;color:#8a6846;display:block}.name{display:block;font-size:34rpx;line-height:1.45;margin:12rpx 0 6rpx}.series{display:block;color:#77736b;font-size:24rpx}.desc{display:block;color:#77736b;font-size:25rpx;line-height:1.7;margin-top:18rpx}.foot{display:flex;justify-content:space-between;border-top:1px solid #eee7de;margin-top:24rpx;padding-top:20rpx;color:#999;font-size:22rpx}.arrow{color:#8a6846}
|
||||
.page {
|
||||
background: #f7f5f1;
|
||||
min-height: 100vh;
|
||||
color: #252525;
|
||||
}
|
||||
.head {
|
||||
background: #252827;
|
||||
color: #fff;
|
||||
padding: 70rpx 40rpx 55rpx;
|
||||
}
|
||||
.eyebrow {
|
||||
font-size: 20rpx;
|
||||
letter-spacing: 3rpx;
|
||||
color: #d9c8b2;
|
||||
display: block;
|
||||
margin-bottom: 18rpx;
|
||||
}
|
||||
.title {
|
||||
font-size: 52rpx;
|
||||
font-family: serif;
|
||||
display: block;
|
||||
}
|
||||
.sub {
|
||||
font-size: 26rpx;
|
||||
color: #c6c2ba;
|
||||
display: block;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
.tabs {
|
||||
white-space: nowrap;
|
||||
padding: 28rpx 32rpx;
|
||||
background: #f7f5f1;
|
||||
}
|
||||
.tab {
|
||||
display: inline-block;
|
||||
font-size: 25rpx;
|
||||
color: #77736b;
|
||||
margin: 0 14rpx;
|
||||
padding-bottom: 12rpx;
|
||||
}
|
||||
.tab.active {
|
||||
color: #8a6846;
|
||||
border-bottom: 2px solid #8a6846;
|
||||
}
|
||||
.list {
|
||||
padding: 0 32rpx 40rpx;
|
||||
}
|
||||
.card {
|
||||
background: #fff;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.card image {
|
||||
width: 100%;
|
||||
height: 380rpx;
|
||||
display: block;
|
||||
}
|
||||
.card-body {
|
||||
padding: 28rpx;
|
||||
}
|
||||
.category {
|
||||
font-size: 20rpx;
|
||||
color: #8a6846;
|
||||
display: block;
|
||||
}
|
||||
.name {
|
||||
display: block;
|
||||
font-size: 34rpx;
|
||||
line-height: 1.45;
|
||||
margin: 12rpx 0 6rpx;
|
||||
}
|
||||
.series {
|
||||
display: block;
|
||||
color: #77736b;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.desc {
|
||||
display: block;
|
||||
color: #77736b;
|
||||
font-size: 25rpx;
|
||||
line-height: 1.7;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
.foot {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-top: 1px solid #eee7de;
|
||||
margin-top: 24rpx;
|
||||
padding-top: 20rpx;
|
||||
color: #999;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.arrow {
|
||||
color: #8a6846;
|
||||
}
|
||||
Reference in new issue
Block a user