feat: 按林境门作原型完善静态小程序
This commit is contained in:
1 parent
4afb6bbbe8
commit
8489c8ca79
26 files changed
+92
-964
No files matched your search
@@ -6,6 +6,8 @@
|
||||
"pages/bookings/index",
|
||||
"pages/offering/detail",
|
||||
"pages/inquiry/index"
|
||||
,"pages/inquiry-success/index"
|
||||
,"pages/records/index"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTitleText": "个人品牌",
|
||||
@@ -27,13 +29,13 @@
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/services/index",
|
||||
"text": "服务",
|
||||
"text": "案例与体系",
|
||||
"iconPath": "assets/tab/briefcase.png",
|
||||
"selectedIconPath": "assets/tab/briefcase-selected.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/bookings/index",
|
||||
"text": "我的",
|
||||
"text": "主理人与我",
|
||||
"iconPath": "assets/tab/user.png",
|
||||
"selectedIconPath": "assets/tab/user-selected.png"
|
||||
}
|
||||
|
||||
@@ -1,72 +1,20 @@
|
||||
const { request, customerRequest } = require("../../utils/request");
|
||||
const { bookingViewModel } = require("../../utils/labels");
|
||||
const { getTemplate } = require("../../utils/templates");
|
||||
const { brand, trustContent } = require("../../utils/linjing-data");
|
||||
Page({
|
||||
data: {
|
||||
loading: true,
|
||||
error: "",
|
||||
bookings: [],
|
||||
cancellingId: "",
|
||||
template: getTemplate("personal"),
|
||||
brand, trustContent, records: [],
|
||||
},
|
||||
onLoad() {
|
||||
this.load();
|
||||
this.setData({ records: wx.getStorageSync("linjingInquiryRecords") || [] });
|
||||
},
|
||||
onShow() {
|
||||
this.load();
|
||||
this.setData({ records: wx.getStorageSync("linjingInquiryRecords") || [] });
|
||||
},
|
||||
load() {
|
||||
const token = wx.getStorageSync("customerToken");
|
||||
if (!token) return this.setData({ loading: false, bookings: [], error: "" });
|
||||
this.setData({ loading: true, error: "" });
|
||||
Promise.all([customerRequest("/customer/bookings"), request("/public/brand")])
|
||||
.then(([items, brand]) => {
|
||||
getApp().globalData.brand = brand;
|
||||
const template = getTemplate(brand.templateKey);
|
||||
this.setData({
|
||||
template,
|
||||
bookings: (Array.isArray(items) ? items : []).map((item) =>
|
||||
bookingViewModel(item, template),
|
||||
),
|
||||
loading: false,
|
||||
});
|
||||
})
|
||||
.catch((error) => this.setData({ loading: false, error: error.message || "网络请求失败" }));
|
||||
call() {
|
||||
wx.makePhoneCall({ phoneNumber: brand.phone.replace(/[^0-9-]/g, "") });
|
||||
},
|
||||
retry() {
|
||||
this.load();
|
||||
},
|
||||
contact() {
|
||||
const brand = getApp().globalData.brand || {};
|
||||
if (brand.contactPhone) return wx.makePhoneCall({ phoneNumber: brand.contactPhone });
|
||||
if (brand.contactWechat)
|
||||
return wx.showModal({
|
||||
title: "联系品牌方",
|
||||
content: "微信号:" + brand.contactWechat,
|
||||
showCancel: false,
|
||||
});
|
||||
wx.showToast({ title: "暂未配置联系方式", icon: "none" });
|
||||
},
|
||||
cancel(e) {
|
||||
const id = e.currentTarget.dataset.id;
|
||||
if (this.data.cancellingId) return;
|
||||
wx.showModal({
|
||||
title: "取消预约",
|
||||
content: "确定取消这笔预约吗?",
|
||||
success: (result) => {
|
||||
if (!result.confirm) return;
|
||||
this.setData({ cancellingId: id });
|
||||
customerRequest("/customer/bookings/" + id + "/cancel", { method: "POST", data: {} })
|
||||
.then(() => {
|
||||
this.setData({ cancellingId: "" });
|
||||
wx.showToast({ title: "已取消预约", icon: "success" });
|
||||
this.load();
|
||||
})
|
||||
.catch((error) => {
|
||||
this.setData({ cancellingId: "" });
|
||||
wx.showToast({ title: error.message || "取消失败", icon: "none" });
|
||||
});
|
||||
},
|
||||
});
|
||||
copyWechat() { wx.setClipboardData({ data: brand.wechat, success: () => wx.showToast({ title: "微信号已复制", icon: "none" }) }); },
|
||||
recordsPage() { wx.navigateTo({ url: "/pages/records/index" }); },
|
||||
inquire() {
|
||||
wx.navigateTo({ url: "/pages/inquiry/index" });
|
||||
},
|
||||
});
|
||||
@@ -2,8 +2,5 @@
|
||||
"navigationBarTitleText": "我的订单",
|
||||
"navigationBarBackgroundColor": "#FBF7F1",
|
||||
"navigationBarTextStyle": "black",
|
||||
"usingComponents": {
|
||||
"brand-loading": "/components/ui/brand-loading/brand-loading",
|
||||
"brand-empty": "/components/ui/brand-empty/brand-empty"
|
||||
}
|
||||
"usingComponents": { "t-icon": "/miniprogram_npm/tdesign-miniprogram/icon/icon" }
|
||||
}
|
||||
@@ -1,16 +1 @@
|
||||
<view class="page">
|
||||
<view class="heading-row"><text class="heading">我的订单</text><text class="phone" bindtap="contact">☎</text></view>
|
||||
<brand-loading wx:if="{{loading}}" />
|
||||
<view wx:elif="{{error}}" class="inline-error"><text>{{error}}</text><button size="mini" bindtap="retry">重新加载</button></view>
|
||||
<brand-empty wx:elif="{{!bookings.length}}" description="完成预约后,订单会显示在这里" />
|
||||
<block wx:else>
|
||||
<view class="status-banner"><view><text class="status-title">订单状态</text><text class="status-sub">查看每笔预约的最新进展</text></view><text class="check">✓</text></view>
|
||||
<view wx:for="{{bookings}}" wx:key="id" class="card">
|
||||
<view class="card-visual"><view class="dish-placeholder"></view><view class="card-main"><text class="name">{{item.serviceName}}</text><text class="summary">{{item.quantityLabel}} · {{item.fulfillmentLabel}} · {{item.requestedTime || '时间待确认'}}</text></view></view>
|
||||
<view class="card-foot"><text class="price">{{item.estimatedAmount ? '¥'+item.estimatedAmount/100 : '人工沟通报价'}}</text><text class="status">{{item.statusLabel}}</text></view>
|
||||
<view class="actions"><button class="contact" size="mini" bindtap="contact">{{template.contactLabel}}</button><button class="cancel" wx:if="{{item.status === 'received'}}" loading="{{cancellingId === item.id}}" disabled="{{!!cancellingId}}" size="mini" data-id="{{item.id}}" bindtap="cancel">{{cancellingId === item.id ? '取消中...' : template.cancelLabel}}</button></view>
|
||||
<text class="cancel-note" wx:if="{{item.status === 'received'}}">{{template.cancelNote}}</text>
|
||||
</view>
|
||||
<view class="faq"><view class="faq-title">常见问题 <text>›</text></view><view>○ 怎么确认预约? <text>›</text></view><view>○ 配送范围有多远? <text>›</text></view><view>○ 可以改时间吗? <text>›</text></view></view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="page"><view class="contact-card"><view class="identity"><view class="avatar">林</view><view><text class="founder">{{brand.founder}}</text><text class="role">{{brand.title}}</text></view></view><view class="contact-line"><text>专线电话</text><view><text>{{brand.phone}}</text><button bindtap="call"><t-icon name="call" size="28rpx"/> 呼叫</button></view></view><view class="contact-line"><text>工作室微信</text><view><text>{{brand.wechat}}</text><button bindtap="copyWechat"><t-icon name="file-copy" size="28rpx"/> 复制</button></view></view><view class="contact-line address"><text>实体工坊</text><text>{{brand.studioAddress}}</text></view></view><view class="records-entry" bindtap="recordsPage"><view class="entry-icon"><t-icon name="logo-notion" size="38rpx"/></view><view class="entry-copy"><text>我的量房与定制咨询</text><text>追踪主理人出图进度与现场勘测排期</text></view><text class="count">{{records.length}} 条记录 <t-icon name="chevron-right" size="30rpx"/></text></view><view class="info-card"><view class="card-title"><t-icon name="map" size="34rpx"/> <text>直派服务区域与履约说明</text></view><view class="note"><text class="note-title">直派核心圈:</text><text>上海、杭州、宁波、苏州、无锡、南京及深圳、广州。主理人及资深装配总工亲赴现场。</text></view><view class="note"><text class="note-title">全国其他城市私邸:</text><text>接受建筑设计师联合委托,安排远程 3D 激光测绘支持与专用物流直运安装。</text></view></view><view class="info-card"><view class="card-title"><t-icon name="secured" size="34rpx"/> <text>一门一档 · 终生质保规约</text></view><text class="bullet">门体内部防变形航空合金骨架承诺 10 年结构质保;</text><text class="bullet">重型天地轴、进口地弹簧及磁吸五金 5 年免费维护;</text><text class="bullet">每樘门出厂前进行 5000 次启闭校正;</text><text class="bullet">原木天然肌理享有首年 2 次木蜡油保养服务。</text></view></view>
|
||||
@@ -1,170 +1,3 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 24rpx 32rpx 60rpx;
|
||||
background: #fbf7f1;
|
||||
color: #2b2b2b;
|
||||
}
|
||||
.heading-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 12rpx 0 32rpx;
|
||||
}
|
||||
.heading {
|
||||
font-size: 48rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.phone {
|
||||
font-size: 48rpx;
|
||||
color: #7a4a2b;
|
||||
}
|
||||
.status-banner {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
padding: 34rpx 32rpx;
|
||||
background: #f4ebd9;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.status-title {
|
||||
display: block;
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.status-sub {
|
||||
display: block;
|
||||
margin-top: 10rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.check {
|
||||
color: #b54a2c;
|
||||
font-size: 88rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
.card {
|
||||
margin-bottom: 18rpx;
|
||||
padding: 22rpx;
|
||||
background: #f4ebd9;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.card-visual {
|
||||
display: flex;
|
||||
gap: 20rpx;
|
||||
align-items: center;
|
||||
}
|
||||
.dish-placeholder {
|
||||
width: 190rpx;
|
||||
height: 190rpx;
|
||||
flex: none;
|
||||
border-radius: 12rpx;
|
||||
background: #c79555;
|
||||
}
|
||||
.name {
|
||||
display: block;
|
||||
font-size: 36rpx;
|
||||
font-weight: 700;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
.summary {
|
||||
font-size: 28rpx;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.card-foot {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 24rpx;
|
||||
padding: 18rpx 4rpx;
|
||||
border-top: 1rpx solid #dfcda9;
|
||||
}
|
||||
.status {
|
||||
padding: 8rpx 20rpx;
|
||||
border: 1rpx solid #b54a2c;
|
||||
border-radius: 30rpx;
|
||||
color: #b54a2c;
|
||||
}
|
||||
.price {
|
||||
color: #b54a2c;
|
||||
font-size: 42rpx;
|
||||
}
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
.actions button {
|
||||
flex: 1;
|
||||
border-radius: 12rpx;
|
||||
font-size: 29rpx;
|
||||
}
|
||||
.contact {
|
||||
background: #2b2b2b;
|
||||
color: #fff;
|
||||
}
|
||||
.cancel {
|
||||
background: #b54a2c;
|
||||
color: #fff;
|
||||
}
|
||||
.cancel-note {
|
||||
display: block;
|
||||
margin-top: 18rpx;
|
||||
text-align: center;
|
||||
font-size: 25rpx;
|
||||
}
|
||||
.faq {
|
||||
margin-top: 24rpx;
|
||||
padding: 28rpx 30rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.faq view {
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 1rpx solid #eee;
|
||||
font-size: 29rpx;
|
||||
}
|
||||
.faq view:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.faq-title {
|
||||
font-size: 36rpx !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
.faq text {
|
||||
float: right;
|
||||
color: #7a4a2b;
|
||||
font-size: 40rpx;
|
||||
}
|
||||
.state,
|
||||
.empty {
|
||||
text-align: center;
|
||||
padding: 100rpx 20rpx;
|
||||
color: #7a4a2b;
|
||||
}
|
||||
.check {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
width: 108rpx;
|
||||
height: 108rpx;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 18rpx;
|
||||
border: 8rpx solid #b54a2c;
|
||||
border-radius: 50%;
|
||||
color: #b54a2c;
|
||||
font-size: 56rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
.inline-error {
|
||||
padding: 72rpx 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: var(--brand-color-muted);
|
||||
}
|
||||
.inline-error button {
|
||||
margin-top: 24rpx;
|
||||
color: var(--brand-color-primary);
|
||||
background: var(--brand-color-subtle);
|
||||
}
|
||||
.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}
|
||||
@@ -1,46 +1,9 @@
|
||||
const { request } = require("../../utils/request");
|
||||
const config = require("../../utils/config");
|
||||
const { getTemplate } = require("../../utils/templates");
|
||||
|
||||
const { brand, trustContent, offerings } = require("../../utils/linjing-data");
|
||||
Page({
|
||||
data: { loading: true, error: "", brand: {}, services: [], copy: {} },
|
||||
onLoad() {
|
||||
this.load();
|
||||
},
|
||||
load() {
|
||||
this.setData({ loading: true, error: "" });
|
||||
Promise.all([request("/public/brand"), request("/public/offerings")])
|
||||
.then(([brand, services]) => {
|
||||
getApp().globalData.brand = brand;
|
||||
wx.setNavigationBarTitle({ title: brand.name || "个人品牌" });
|
||||
const copy = getTemplate(brand.templateKey);
|
||||
this.setData({
|
||||
brand: { ...brand, coverUrl: brand.coverUrl || "/assets/brand/home-hero.jpg" },
|
||||
services,
|
||||
copy,
|
||||
loading: false,
|
||||
});
|
||||
})
|
||||
.catch(() => this.setData({ loading: false, error: "暂时无法加载内容" }));
|
||||
},
|
||||
selectService(event) {
|
||||
wx.navigateTo({
|
||||
url: "/pages/booking/index?offeringId=" + encodeURIComponent(event.currentTarget.dataset.id),
|
||||
});
|
||||
},
|
||||
goServices() {
|
||||
wx.switchTab({ url: "/pages/services/index" });
|
||||
},
|
||||
goPrivateChef() {
|
||||
wx.navigateTo({ url: "/pages/booking/index?type=private_chef" });
|
||||
},
|
||||
goBooking() {
|
||||
wx.navigateTo({ url: "/pages/booking/index" });
|
||||
},
|
||||
goBookings() {
|
||||
wx.switchTab({ url: "/pages/bookings/index" });
|
||||
},
|
||||
goHome() {
|
||||
wx.switchTab({ url: "/pages/index/index" });
|
||||
},
|
||||
data: { brand, trustContent, offerings, loading: false },
|
||||
onLoad() { wx.setNavigationBarTitle({ title: brand.name }); },
|
||||
selectOffering(e) { wx.navigateTo({ url: "/pages/offering/detail?id=" + e.currentTarget.dataset.id }); },
|
||||
goWorks() { wx.switchTab({ url: "/pages/services/index" }); },
|
||||
goInquiry() { wx.navigateTo({ url: "/pages/inquiry/index" }); },
|
||||
goProfile() { wx.switchTab({ url: "/pages/bookings/index" }); },
|
||||
});
|
||||
@@ -1,13 +1,7 @@
|
||||
<view class="page">
|
||||
<view class="topbar"><text class="brand-subtitle">{{brand.tagline || '现做家常饭,熟客都爱吃'}}</text></view>
|
||||
<view wx:if="{{loading}}" class="state">加载中...</view>
|
||||
<view wx:elif="{{error}}" class="state error">{{error}}<button bindtap="load">重试</button></view>
|
||||
<block wx:else>
|
||||
<view class="hero"><image wx:if="{{brand.coverUrl}}" src="{{brand.coverUrl}}" mode="aspectFill"/><view wx:else class="hero-placeholder"></view><view class="hero-copy"><text>{{copy.hero}}</text><text>{{copy.heroSub}}</text></view></view>
|
||||
<view class="intro"><text class="section-title">{{copy.about}}</text><text class="intro-copy">{{brand.description || copy.description}}</text></view>
|
||||
<view class="info-card"><view><text class="info-label">{{copy.timeLabel}}</text><text>{{brand.hours || copy.time}}</text></view><text class="chevron">›</text><view><text class="info-label">{{copy.addressLabel}}</text><text>{{brand.address || copy.address}}</text></view><view class="line"></view><view><text class="info-label">{{copy.noteLabel}}</text><text>{{brand.deliveryNote || copy.note}}</text></view></view>
|
||||
<view class="actions"><button class="primary" bindtap="goServices">{{copy.primary}}</button><button class="secondary" bindtap="goPrivateChef">{{copy.secondary}}</button></view>
|
||||
<view class="section-title services-title">今日服务</view>
|
||||
<view wx:for="{{services}}" wx:key="id" class="service" data-id="{{item.id}}" bindtap="selectService"><view><text class="service-name">{{item.name}}</text><text class="description">{{item.description}}</text></view><text class="price">{{item.priceText}}</text></view>
|
||||
</block>
|
||||
<view class="founder"><image class="avatar" src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=240&h=240&q=80"/><view><text class="founder-name">{{brand.founder}}</text><text class="founder-title">{{brand.title}}</text><text class="quote">“{{brand.slogan}}”</text></view><text class="badge">亲自主理量房</text></view>
|
||||
<view class="hero"><image class="hero-image" src="https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80" mode="aspectFill"/><view class="hero-shade"/><view class="hero-copy"><text class="eyebrow">年度落成实景 · 莫干山庄园</text><text class="hero-title">万籁系列 · 铸铜冷锻双轴入户门</text><text class="hero-slogan">门高 3.4m · 德国静音地轴</text><button class="hero-button" bindtap="goWorks">探索全系作品 →</button></view></view>
|
||||
<view class="intro"><text class="eyebrow dark">主理人工艺与信任凭证</text><text class="section-title">14 年,只做门与空间的关系</text><text class="body">{{brand.bio}}</text><view class="stats"><view wx:for="{{trustContent.stats}}" wx:key="value"><text class="stat-value">{{item.value}}</text><text class="stat-label">{{item.label}}</text><text class="body">{{item.sub}}</text></view></view></view>
|
||||
<view class="trust"><text class="eyebrow">林境门作品质宣言</text><text class="section-title light">拒绝流水线拼装</text><view wx:for="{{trustContent.pillars}}" wx:key="title"><text class="work-name light">{{item.title}}</text><text class="body light-body">{{item.desc}}</text></view></view>
|
||||
<view class="section"><view class="section-head"><view><text class="eyebrow dark">SELECTED WORKS</text><text class="section-title">精选门系统作品</text></view><text class="more" bindtap="goWorks">查看全部 →</text></view><view wx:for="{{offerings}}" wx:key="id" class="work-card" data-id="{{item.id}}" bindtap="selectOffering"><image src="{{item.image}}" mode="aspectFill"/><view class="work-info"><text class="work-category">{{item.category}} · {{item.area}}</text><text class="work-name">{{item.name}}</text><text class="work-desc">{{item.series}} · {{item.keywords[0]}} · {{item.keywords[1]}}</text></view></view></view>
|
||||
</view>
|
||||
@@ -1,161 +1 @@
|
||||
.page {
|
||||
box-sizing: border-box;
|
||||
padding: 8rpx 32rpx 170rpx;
|
||||
background: #fbf7f1;
|
||||
min-height: 100vh;
|
||||
color: #2b2b2b;
|
||||
}
|
||||
.topbar {
|
||||
text-align: center;
|
||||
padding: 2rpx 0 24rpx;
|
||||
}
|
||||
.brand-subtitle {
|
||||
display: block;
|
||||
color: #7a4a2b;
|
||||
font-size: 28rpx;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.hero {
|
||||
position: relative;
|
||||
height: 410rpx;
|
||||
overflow: hidden;
|
||||
border-radius: 24rpx;
|
||||
background: #7a4a2b;
|
||||
}
|
||||
.hero image,
|
||||
.hero-placeholder {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
background: linear-gradient(135deg, #7a4a2b, #2b2b2b);
|
||||
}
|
||||
.hero-copy {
|
||||
position: absolute;
|
||||
left: 34rpx;
|
||||
top: 36rpx;
|
||||
color: #fff;
|
||||
font-size: 42rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.hero-copy text {
|
||||
display: block;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.intro,
|
||||
.info-card {
|
||||
margin-top: 20rpx;
|
||||
padding: 28rpx;
|
||||
background: #f4ebd9;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.section-title {
|
||||
font-size: 36rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.intro-copy {
|
||||
display: block;
|
||||
margin-top: 18rpx;
|
||||
font-size: 30rpx;
|
||||
line-height: 1.55;
|
||||
}
|
||||
.info-card {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 20rpx;
|
||||
font-size: 29rpx;
|
||||
}
|
||||
.info-label {
|
||||
font-weight: 700;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
.chevron {
|
||||
font-size: 50rpx;
|
||||
}
|
||||
.line {
|
||||
grid-column: 1 / -1;
|
||||
border-top: 1rpx solid #d8c9af;
|
||||
}
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
.actions button {
|
||||
flex: 1;
|
||||
border-radius: 12rpx;
|
||||
font-size: 34rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.primary {
|
||||
background: #b54a2c;
|
||||
}
|
||||
.secondary {
|
||||
background: #7a4a2b;
|
||||
}
|
||||
.services-title {
|
||||
margin: 34rpx 0 16rpx;
|
||||
}
|
||||
.service {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 20rpx;
|
||||
margin-bottom: 12rpx;
|
||||
padding: 26rpx 22rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.service-name {
|
||||
display: block;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
.description {
|
||||
display: block;
|
||||
color: #7a4a2b;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.price {
|
||||
white-space: nowrap;
|
||||
color: #b54a2c;
|
||||
font-size: 34rpx;
|
||||
}
|
||||
.state {
|
||||
padding: 80rpx 20rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.error {
|
||||
color: #b54a2c;
|
||||
}
|
||||
.state button {
|
||||
margin-top: 24rpx;
|
||||
background: #b54a2c;
|
||||
color: #fff;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
.tabbar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 18rpx 0 34rpx;
|
||||
background: #fff;
|
||||
border-top: 1rpx solid #eee;
|
||||
z-index: 10;
|
||||
}
|
||||
.tab {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: #7a4a2b;
|
||||
font-size: 42rpx;
|
||||
min-width: 100rpx;
|
||||
}
|
||||
.tab text {
|
||||
font-size: 24rpx;
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
.tab.active {
|
||||
color: #b54a2c;
|
||||
}
|
||||
.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}
|
||||
@@ -0,0 +1 @@
|
||||
Page({ data: { record: {} }, onLoad(options) { const records = wx.getStorageSync("linjingInquiryRecords") || []; this.setData({ record: records.find((item) => item.id === options.id) || records[0] || {} }); }, viewRecords() { wx.redirectTo({ url: "/pages/records/index" }); }, home() { wx.switchTab({ url: "/pages/index/index" }); } });
|
||||
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"咨询已提交","navigationBarBackgroundColor":"#F7F5F1","navigationBarTextStyle":"black"}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="page"><view class="mark">✓</view><text class="eyebrow">PRIVATE CONSULTATION</text><text class="title">已收到你的咨询</text><text class="intro">主理人会根据你的项目资料,整理初步判断并在 1 个工作日内与你联系。</text><view class="summary"><view><text>档案编号</text><text>{{record.id}}</text></view><view><text>定制类型</text><text>{{record.type}}</text></view><view><text>当前状态</text><text>{{record.status}}</text></view></view><button class="primary" bindtap="viewRecords">查看咨询记录</button><button class="secondary" bindtap="home">返回首页</button></view>
|
||||
@@ -0,0 +1 @@
|
||||
.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,120 +1,7 @@
|
||||
const { request, customerRequest } = require("../../utils/request");
|
||||
|
||||
function isVisible(field, values) {
|
||||
const condition = field.visibleWhen;
|
||||
if (!condition || typeof condition !== "object") return true;
|
||||
return Object.entries(condition).every(([key, expected]) => values[key] === expected);
|
||||
}
|
||||
|
||||
const { offerings } = require("../../utils/linjing-data");
|
||||
Page({
|
||||
data: {
|
||||
loading: true,
|
||||
error: "",
|
||||
submitting: false,
|
||||
form: null,
|
||||
fields: [],
|
||||
renderFields: [],
|
||||
values: {},
|
||||
formId: "",
|
||||
},
|
||||
onLoad(options) {
|
||||
this.load(options.formId);
|
||||
},
|
||||
load(formId) {
|
||||
this.setData({ loading: true, error: "" });
|
||||
const formRequest = formId
|
||||
? request("/public/inquiry-forms/" + encodeURIComponent(formId))
|
||||
: request("/public/workspace").then((workspace) => workspace.inquiryForm);
|
||||
formRequest
|
||||
.then((form) => {
|
||||
if (!form)
|
||||
return this.setData({ loading: false, form: null, fields: [], renderFields: [] });
|
||||
const fields = Array.isArray(form.fieldsSnapshot) ? form.fieldsSnapshot : [];
|
||||
const values = Object.fromEntries(
|
||||
fields.map((field) => [field.key, field.defaultValue ?? ""]),
|
||||
);
|
||||
this.setData({
|
||||
form,
|
||||
formId: form.id,
|
||||
fields,
|
||||
renderFields: fields,
|
||||
values,
|
||||
loading: false,
|
||||
});
|
||||
})
|
||||
.catch((error) =>
|
||||
this.setData({ loading: false, error: error.message || "咨询表单加载失败" }),
|
||||
);
|
||||
},
|
||||
retry() {
|
||||
this.load();
|
||||
},
|
||||
visibleFields() {
|
||||
return this.data.fields.filter((field) => isVisible(field, this.data.values));
|
||||
},
|
||||
updateValue(key, value) {
|
||||
const values = { ...this.data.values, [key]: value };
|
||||
this.setData({
|
||||
values,
|
||||
renderFields: this.data.fields.filter((field) => isVisible(field, values)),
|
||||
});
|
||||
},
|
||||
onFieldChange(event) {
|
||||
const key = event.currentTarget.dataset.key;
|
||||
this.updateValue(key, event.detail?.value ?? event.detail);
|
||||
},
|
||||
onPickerChange(event) {
|
||||
const field = this.data.renderFields[event.currentTarget.dataset.index];
|
||||
this.updateValue(field.key, field.options[event.detail.value]);
|
||||
},
|
||||
onDateChange(event) {
|
||||
const field = this.data.renderFields[event.currentTarget.dataset.index];
|
||||
this.updateValue(field.key, event.detail.value);
|
||||
},
|
||||
validate() {
|
||||
const missing = this.visibleFields().find(
|
||||
(field) => field.required && !this.data.values[field.key],
|
||||
);
|
||||
if (missing) {
|
||||
wx.showToast({ title: "请填写" + missing.label, icon: "none" });
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
submit() {
|
||||
if (!this.data.formId || !this.validate() || this.data.submitting) return;
|
||||
const send = () =>
|
||||
customerRequest("/customer/inquiry-submissions", {
|
||||
method: "POST",
|
||||
data: { formId: this.data.formId, values: this.data.values },
|
||||
})
|
||||
.then(() => {
|
||||
this.setData({ submitting: false });
|
||||
wx.showToast({ title: "咨询已提交", icon: "success" });
|
||||
setTimeout(() => wx.switchTab({ url: "/pages/bookings/index" }), 500);
|
||||
})
|
||||
.catch((error) => {
|
||||
this.setData({ submitting: false });
|
||||
wx.showToast({ title: error.message || "提交失败", icon: "none" });
|
||||
});
|
||||
this.setData({ submitting: true });
|
||||
const token = wx.getStorageSync("customerToken");
|
||||
if (token) return send();
|
||||
wx.login({
|
||||
success: (login) =>
|
||||
request("/customer/session/wechat", { method: "POST", data: { code: login.code } })
|
||||
.then((result) => {
|
||||
wx.setStorageSync("customerToken", result.token);
|
||||
send();
|
||||
})
|
||||
.catch((error) => {
|
||||
this.setData({ submitting: false });
|
||||
wx.showToast({ title: error.message || "微信登录失败", icon: "none" });
|
||||
}),
|
||||
fail: () => {
|
||||
this.setData({ submitting: false });
|
||||
wx.showToast({ title: "微信登录失败", icon: "none" });
|
||||
},
|
||||
});
|
||||
},
|
||||
data: { offering: null, submitting: false, values: { name: "", phone: "", city: "", doorType: "", note: "" }, fields: [{ key: "name", label: "联系人", placeholder: "请输入称呼" }, { key: "phone", label: "手机号码", placeholder: "请输入手机号" }, { key: "city", label: "项目所在城市", placeholder: "例如:上海 · 佘山" }, { key: "doorType", label: "希望定制的门类型", placeholder: "入户门 / 庭院门 / 室内门" }, { key: "note", label: "补充说明", placeholder: "告诉我们你的空间和需求" }] },
|
||||
onLoad(options) { this.setData({ offering: offerings.find((item) => item.id === options.offeringId) || null }); },
|
||||
onInput(e) { this.setData({ ["values." + e.currentTarget.dataset.key]: e.detail.value }); },
|
||||
submit() { const values = this.data.values; if (!values.name || !values.phone) return wx.showToast({ title: "请填写联系人和手机号", icon: "none" }); this.setData({ submitting: true }); setTimeout(() => { const id = "LJ" + Date.now().toString().slice(-8); const record = { id, offeringName: this.data.offering ? this.data.offering.name : "门系统定制咨询", type: values.doorType || "门系统定制", project: values.city || "待确认项目", status: "待主理人复核图纸", createdAt: new Date().toLocaleDateString("zh-CN"), values }; const records = wx.getStorageSync("linjingInquiryRecords") || []; wx.setStorageSync("linjingInquiryRecords", [record].concat(records)); this.setData({ submitting: false }); wx.redirectTo({ url: "/pages/inquiry-success/index?id=" + id }); }, 500); },
|
||||
});
|
||||
@@ -1 +1 @@
|
||||
<view class="page"><brand-loading wx:if="{{loading}}" /><view wx:elif="{{error}}" class="inline-error"><text>{{error}}</text><button size="mini" bindtap="retry">重新加载</button></view><brand-empty wx:elif="{{!form}}" description="暂未开放咨询表单" /><view wx:else><view class="intro"><text class="title">{{form.name}}</text><text class="subtitle">告诉我你的想法,我会尽快与你联系</text></view><view class="form-card"><block wx:for="{{renderFields}}" wx:for-item="field" wx:for-index="index" wx:key="key"><brand-field wx:if="{{field.type === 'text' || field.type === 'textarea' || field.type === 'number' || field.type === 'url' || field.type === 'phone'}}" label="{{field.label}}" required="{{field.required}}" type="{{field.type === 'textarea' ? 'textarea' : field.type === 'number' ? 'number' : 'text'}}" placeholder="{{field.placeholder || '请输入' + field.label}}" value="{{values[field.key]}}" data-key="{{field.key}}" bind:change="onFieldChange" /><picker wx:elif="{{field.type === 'select'}}" mode="selector" range="{{field.options}}" value="0" bindchange="onPickerChange" data-index="{{index}}"><view class="picker-field"><text class="label">{{field.label}}<text wx:if="{{field.required}}" class="required"> *</text></text><text class="picker-value">{{values[field.key] || '请选择'}}</text></view></picker><picker wx:elif="{{field.type === 'date'}}" mode="date" value="{{values[field.key]}}" bindchange="onDateChange" data-index="{{index}}"><view class="picker-field"><text class="label">{{field.label}}<text wx:if="{{field.required}}" class="required"> *</text></text><text class="picker-value">{{values[field.key] || '请选择日期'}}</text></view></picker></block></view><brand-button loading="{{submitting}}" disabled="{{submitting}}" bind:tap="submit">{{submitting ? '提交中...' : '提交咨询'}}</brand-button></view></view>
|
||||
<view class="page"><view class="head"><text class="eyebrow">PRIVATE CONSULTATION</text><text class="title">私享测量预约</text><text class="sub">{{offering ? offering.name : '主理人亲自沟通,72 小时内反馈空间构想'}}</text></view><view class="form"><view wx:for="{{fields}}" wx:key="key" class="field"><text>{{item.label}}</text><input data-key="{{item.key}}" placeholder="{{item.placeholder}}" value="{{values[item.key]}}" bindinput="onInput"/></view><button class="submit" loading="{{submitting}}" bindtap="submit">提交定制需求</button><text class="privacy">信息仅用于本次方案沟通,我们不会向第三方披露。</text></view></view>
|
||||
@@ -1,62 +1 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 40rpx 32rpx 64rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.intro {
|
||||
margin-bottom: 32rpx;
|
||||
}
|
||||
.title {
|
||||
display: block;
|
||||
color: var(--brand-color-text);
|
||||
font-size: 44rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.subtitle {
|
||||
display: block;
|
||||
margin-top: 12rpx;
|
||||
color: var(--brand-color-muted);
|
||||
font-size: 28rpx;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.form-card {
|
||||
margin-bottom: 32rpx;
|
||||
padding: 32rpx 28rpx 8rpx;
|
||||
background: var(--brand-color-surface);
|
||||
border-radius: var(--brand-radius-card);
|
||||
box-shadow: 0 8rpx 24rpx rgba(122, 74, 43, 0.06);
|
||||
}
|
||||
.picker-field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 24rpx;
|
||||
padding: 24rpx 20rpx;
|
||||
border: 1rpx solid #eadfce;
|
||||
border-radius: var(--brand-radius-control);
|
||||
background: var(--brand-color-surface);
|
||||
}
|
||||
.label {
|
||||
color: var(--brand-color-text);
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
.required {
|
||||
color: var(--brand-color-primary);
|
||||
}
|
||||
.picker-value {
|
||||
color: var(--brand-color-muted);
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.inline-error {
|
||||
padding: 72rpx 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: var(--brand-color-muted);
|
||||
}
|
||||
.inline-error button {
|
||||
margin-top: 24rpx;
|
||||
color: var(--brand-color-primary);
|
||||
background: var(--brand-color-subtle);
|
||||
}
|
||||
.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,33 +1,6 @@
|
||||
const { request } = require("../../utils/request");
|
||||
const { offerings } = require("../../utils/linjing-data");
|
||||
Page({
|
||||
data: { loading: true, error: "", item: null },
|
||||
onLoad(options) {
|
||||
request("/public/offerings/" + encodeURIComponent(options.id))
|
||||
.then((item) => this.setData({ item, loading: false }))
|
||||
.catch(() => this.setData({ loading: false, error: "详情加载失败" }));
|
||||
},
|
||||
submit() {
|
||||
const cta = this.data.item?.cta || {};
|
||||
const form = this.data.item?.inquiryForms?.[0];
|
||||
if (cta.type === "inquiry" || form?.submissionAction === "create-inquiry") {
|
||||
const formId = form?.id || cta.config?.formId;
|
||||
return wx.navigateTo({
|
||||
url: "/pages/inquiry/index" + (formId ? "?formId=" + encodeURIComponent(formId) : ""),
|
||||
});
|
||||
}
|
||||
if (form?.submissionAction === "create-booking" || cta.type === "booking") {
|
||||
return wx.navigateTo({
|
||||
url: "/pages/booking/index?offeringId=" + encodeURIComponent(this.data.item?.id || ""),
|
||||
});
|
||||
}
|
||||
if (cta.type === "external-link") {
|
||||
return wx.showToast({ title: "请在支持外链的环境打开", icon: "none" });
|
||||
}
|
||||
if (cta.type === "contact") {
|
||||
return wx.showToast({ title: "请从品牌主页查看联系方式", icon: "none" });
|
||||
}
|
||||
wx.navigateTo({
|
||||
url: "/pages/booking/index?offeringId=" + encodeURIComponent(this.data.item?.id || ""),
|
||||
});
|
||||
},
|
||||
data: { item: null, loading: true },
|
||||
onLoad(options) { const item = offerings.find((entry) => entry.id === options.id) || offerings[0]; this.setData({ item, loading: false }); wx.setNavigationBarTitle({ title: item.category }); },
|
||||
inquire() { wx.navigateTo({ url: "/pages/inquiry/index?offeringId=" + this.data.item.id }); },
|
||||
});
|
||||
@@ -1 +1 @@
|
||||
<view class="page"><view wx:if="{{loading}}" class="state">加载中...</view><view wx:elif="{{error}}" class="state">{{error}}</view><view wx:else><image wx:if="{{item.coverUrl}}" class="cover" src="{{item.coverUrl}}" mode="aspectFill"/><view class="title">{{item.name}}</view><view class="summary">{{item.summary}}</view><view class="price">{{item.priceText || '沟通报价'}}</view><view wx:for="{{item.sections}}" wx:for-item="section" wx:key="title" class="section"><view class="section-title">{{section.title}}</view><view class="section-content">{{section.content}}</view><view wx:for="{{section.items}}" wx:for-item="sectionItem" wx:key="*this" class="section-item">{{sectionItem}}</view></view><button class="cta" bindtap="submit">{{item.cta.label || '立即咨询'}}</button></view></view>
|
||||
<view class="page" wx:if="{{item}}"><image class="hero" src="{{item.image}}" mode="aspectFill"/><view class="content"><text class="category">{{item.category}} · {{item.tag}}</text><text class="title">{{item.name}}</text><text class="series">{{item.series}}</text><text class="price">{{item.priceRange}}</text><view class="rule"/><text class="label">项目摘要</text><text class="desc">{{item.desc}} 本案位于{{item.area}},从建筑入口、材质触感到五金开合,均由主理人亲自参与深化。</text><view class="chips"><text wx:for="{{item.keywords}}" wx:key="*this">{{item}}</text></view><view class="section"><text class="label">定制流程</text><text class="body">私享沟通 → 上门实测 → 构造出图 → 实样确认 → 工坊试装 → 终生维护</text></view></view><view class="bar"><button bindtap="inquire">预约测量 / 获取方案</button></view></view>
|
||||
@@ -1,55 +1 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 32rpx;
|
||||
background: #fbf7f1;
|
||||
color: #2b2b2b;
|
||||
}
|
||||
.cover {
|
||||
width: 100%;
|
||||
height: 360rpx;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.title {
|
||||
margin-top: 28rpx;
|
||||
font-size: 48rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.summary {
|
||||
margin-top: 14rpx;
|
||||
color: #7a4a2b;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.price {
|
||||
margin-top: 20rpx;
|
||||
color: #b54a2c;
|
||||
font-size: 38rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.section {
|
||||
margin-top: 28rpx;
|
||||
padding: 24rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.section-title {
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.section-content {
|
||||
margin-top: 14rpx;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.section-item {
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.cta {
|
||||
margin-top: 36rpx;
|
||||
background: #b54a2c;
|
||||
color: #fff;
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
.state {
|
||||
text-align: center;
|
||||
padding: 120rpx;
|
||||
color: #7a4a2b;
|
||||
}
|
||||
.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}
|
||||
@@ -0,0 +1 @@
|
||||
Page({ data: { records: [] }, onShow() { this.setData({ records: wx.getStorageSync("linjingInquiryRecords") || [] }); }, inquire() { wx.navigateTo({ url: "/pages/inquiry/index" }); } });
|
||||
@@ -0,0 +1 @@
|
||||
{"navigationBarTitleText":"咨询记录","navigationBarBackgroundColor":"#F7F5F1","navigationBarTextStyle":"black"}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="page"><view class="head"><text class="title">我的咨询记录</text><button bindtap="inquire">+ 新增预约</button></view><view wx:if="{{!records.length}}" class="empty"><text class="empty-title">还没有咨询记录</text><text>预约一次私享沟通,让我们从你的空间开始。</text><button bindtap="inquire">开始咨询</button></view><view wx:else class="list"><view class="record" wx:for="{{records}}" wx:key="id"><view class="record-head"><text>{{item.type}}</text><text class="status">{{item.status}}</text></view><text class="project">{{item.project}} · {{item.offeringName}}</text><text class="meta">档案编号 {{item.id}} {{item.createdAt}}</text></view></view></view>
|
||||
@@ -0,0 +1 @@
|
||||
.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,54 +1,6 @@
|
||||
const { request } = require("../../utils/request");
|
||||
const { getTemplate } = require("../../utils/templates");
|
||||
const { offerings } = require("../../utils/linjing-data");
|
||||
Page({
|
||||
data: { loading: true, error: "", services: [], filtered: [], category: "package", labels: {} },
|
||||
onLoad() {
|
||||
this.load();
|
||||
},
|
||||
load() {
|
||||
this.setData({ loading: true, error: "" });
|
||||
Promise.all([request("/public/offerings"), request("/public/brand")])
|
||||
.then(([offerings, brand]) => {
|
||||
const labels = getTemplate(brand.templateKey);
|
||||
const source = offerings;
|
||||
const mapped = source.map((item) => ({
|
||||
...item,
|
||||
coverUrl:
|
||||
item.coverUrl ||
|
||||
(item.name.includes("红烧肉")
|
||||
? "/assets/brand/service-red-braised-pork.jpg"
|
||||
: item.name.includes("小炒鸡")
|
||||
? "/assets/brand/service-chicken.jpg"
|
||||
: item.name.includes("私厨")
|
||||
? "/assets/brand/service-private-chef.jpg"
|
||||
: ""),
|
||||
}));
|
||||
this.setData({
|
||||
services: mapped,
|
||||
labels,
|
||||
filtered: mapped.filter((item) => item.priceAmount !== null),
|
||||
loading: false,
|
||||
});
|
||||
})
|
||||
.catch(() => this.setData({ loading: false, error: "服务加载失败" }));
|
||||
},
|
||||
switchCategory(e) {
|
||||
const category = e.currentTarget.dataset.category;
|
||||
const filtered =
|
||||
category === "package"
|
||||
? this.data.services.filter((item) => item.priceAmount !== null)
|
||||
: this.data.services.filter((item) => item.priceAmount === null);
|
||||
this.setData({ category, filtered });
|
||||
},
|
||||
book(e) {
|
||||
if (e.currentTarget.dataset.offeringId) {
|
||||
wx.navigateTo({
|
||||
url: "/pages/offering/detail?id=" + encodeURIComponent(e.currentTarget.dataset.offeringId),
|
||||
});
|
||||
return;
|
||||
}
|
||||
wx.navigateTo({
|
||||
url: "/pages/booking/index?offeringId=" + encodeURIComponent(e.currentTarget.dataset.id),
|
||||
});
|
||||
},
|
||||
data: { loading: false, error: "", offerings, filtered: offerings, category: "全部" },
|
||||
switchCategory(e) { const category = e.currentTarget.dataset.category; this.setData({ category, filtered: category === "全部" ? offerings : offerings.filter((item) => item.category === category) }); },
|
||||
open(e) { wx.navigateTo({ url: "/pages/offering/detail?id=" + e.currentTarget.dataset.id }); },
|
||||
});
|
||||
@@ -1 +1 @@
|
||||
<view class="page"><view class="heading"><text>服务列表</text><text class="sub">{{labels.sub}}</text></view><view class="categories"><view class="category package {{category === 'package' ? 'selected' : ''}}" data-category="package" bindtap="switchCategory"><text class="category-title">● {{labels.first}}</text><text>{{labels.firstSub}}</text></view><view class="category chef {{category === 'private_chef' ? 'selected' : ''}}" data-category="private_chef" bindtap="switchCategory"><text class="category-title">● {{labels.second}}</text><text>{{labels.secondSub}}</text></view></view><brand-loading wx:if="{{loading}}" /><view wx:elif="{{error}}" class="inline-error"><text>{{error}}</text><button size="mini" bindtap="load">重新加载</button></view><brand-empty wx:elif="{{!filtered.length}}" description="{{labels.empty}}" /><view wx:else><view wx:for="{{filtered}}" wx:key="id" class="card" data-id="{{item.id}}" data-offering-id="{{item.kind ? item.id : ''}}" bindtap="book"><view class="dish-image"><image wx:if="{{item.coverUrl}}" src="{{item.coverUrl}}" mode="aspectFill"/><view wx:else class="dish-placeholder"></view></view><view class="card-content"><view class="card-head"><view class="name">{{item.name}}</view><text class="available">{{item.isEnabled !== false ? labels.available : labels.unavailable}}</text></view><text class="desc">{{item.description || item.summary}}</text><view class="card-bottom"><text class="price">{{item.priceText || '面议'}}</text><button size="mini">查看详情</button></view></view></view></view></view>
|
||||
<view class="page"><view class="head"><text class="eyebrow">LINJING ATELIER</text><text class="title">作品与系统</text><text class="sub">每一扇门,都是建筑秩序的一部分。</text></view><scroll-view scroll-x class="tabs"><text wx:for="{{['全部','入户大门','庭院围墙门','室内户内门','装饰隐形门']}}" wx:key="*this" class="tab {{category===item?'active':''}}" data-category="{{item}}" bindtap="switchCategory">{{item}}</text></scroll-view><view class="list"><view wx:for="{{filtered}}" wx:key="id" class="card" data-id="{{item.id}}" bindtap="open"><image src="{{item.image}}" mode="aspectFill"/><view class="card-body"><text class="category">{{item.category}} · {{item.tag}}</text><text class="name">{{item.name}}</text><text class="series">{{item.series}}</text><text class="desc">{{item.desc}}</text><view class="foot"><text>{{item.area}}</text><text class="arrow">查看详情 →</text></view></view></view></view></view>
|
||||
@@ -1,173 +1 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 24rpx 32rpx 60rpx;
|
||||
background: #fbf7f1;
|
||||
color: #2b2b2b;
|
||||
}
|
||||
.heading {
|
||||
margin: 12rpx 0 28rpx;
|
||||
}
|
||||
.heading text:first-child {
|
||||
display: block;
|
||||
font-size: 48rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.sub {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.categories {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
margin-bottom: 28rpx;
|
||||
}
|
||||
.category {
|
||||
flex: 1;
|
||||
padding: 28rpx 22rpx;
|
||||
border-radius: 16rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.category text {
|
||||
display: block;
|
||||
}
|
||||
.category-title {
|
||||
font-weight: 700;
|
||||
}
|
||||
.category text + text {
|
||||
margin-top: 12rpx;
|
||||
font-size: 25rpx;
|
||||
}
|
||||
.package {
|
||||
background: #b54a2c;
|
||||
color: #fff;
|
||||
}
|
||||
.chef {
|
||||
background: #f4ebd9;
|
||||
color: #2b2b2b;
|
||||
}
|
||||
.category.selected {
|
||||
box-shadow: 0 0 0 4rpx #e8a75f;
|
||||
}
|
||||
.card {
|
||||
display: flex;
|
||||
gap: 22rpx;
|
||||
align-items: stretch;
|
||||
margin-bottom: 16rpx;
|
||||
padding: 20rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.dish-image {
|
||||
width: 230rpx;
|
||||
min-width: 230rpx;
|
||||
height: 230rpx;
|
||||
border-radius: 12rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.dish-image image,
|
||||
.dish-placeholder {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
background: #d6b27c;
|
||||
}
|
||||
.card-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.card-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 8rpx;
|
||||
}
|
||||
.name {
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.available {
|
||||
padding: 6rpx 12rpx;
|
||||
border: 1rpx solid #c79555;
|
||||
border-radius: 24rpx;
|
||||
color: #7a4a2b;
|
||||
font-size: 21rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.desc {
|
||||
display: block;
|
||||
margin: 14rpx 0;
|
||||
color: #7a4a2b;
|
||||
font-size: 27rpx;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.card-bottom {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: end;
|
||||
margin-top: auto;
|
||||
}
|
||||
.price {
|
||||
display: block;
|
||||
color: #b54a2c;
|
||||
font-size: 38rpx;
|
||||
}
|
||||
.card button {
|
||||
background: #b54a2c;
|
||||
color: #fff;
|
||||
border-radius: 36rpx;
|
||||
}
|
||||
.state {
|
||||
text-align: center;
|
||||
padding: 80rpx;
|
||||
color: #7a4a2b;
|
||||
}
|
||||
.categories {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
margin-bottom: 28rpx;
|
||||
}
|
||||
.category {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.category:before,
|
||||
.category:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: -28rpx;
|
||||
bottom: -48rpx;
|
||||
width: 160rpx;
|
||||
height: 104rpx;
|
||||
border: 5rpx solid rgba(255, 255, 255, 0.16);
|
||||
border-radius: 50% 50% 44% 44%;
|
||||
transform: rotate(-16deg);
|
||||
pointer-events: none;
|
||||
}
|
||||
.category:after {
|
||||
right: 8rpx;
|
||||
bottom: -34rpx;
|
||||
width: 110rpx;
|
||||
height: 70rpx;
|
||||
border-width: 4rpx;
|
||||
border-color: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
.chef:before {
|
||||
border-color: rgba(181, 74, 44, 0.16);
|
||||
}
|
||||
.chef:after {
|
||||
border-color: rgba(181, 74, 44, 0.12);
|
||||
}
|
||||
.inline-error {
|
||||
padding: 72rpx 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: var(--brand-color-muted);
|
||||
}
|
||||
.inline-error button {
|
||||
margin-top: 24rpx;
|
||||
color: var(--brand-color-primary);
|
||||
background: var(--brand-color-subtle);
|
||||
}
|
||||
.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}
|
||||
@@ -0,0 +1,33 @@
|
||||
const brand = {
|
||||
name: "林境门作",
|
||||
tagline: "私享定制",
|
||||
founder: "梅记兵",
|
||||
title: "高端门系统建筑研造主理人",
|
||||
slogan: "为当代别墅空间,定制有秩序感与呼吸感的门",
|
||||
bio: "国家注册高级室内建筑师,专注高定大门及私宅空间门类系统研发 14 年。拒绝建材量产拼装,以“门与空间同构”之建筑理念,亲自主理选材、构造深化与落地试装。",
|
||||
experienceYears: 14,
|
||||
completedProjects: "260+",
|
||||
coverageArea: "长三角、珠三角核心别墅群及全国私家庄园",
|
||||
phone: "153-7712-8361",
|
||||
wechat: "LIN-ATELIER-2024",
|
||||
studioAddress: "上海市 · 林境门作私享工坊",
|
||||
studioAddress: "上海市静安区威海路设计中心 A 座 / 杭州良渚研造工坊",
|
||||
};
|
||||
const trustContent = { stats: [{ value: "14年", label: "高端门系深化经验", sub: "历经百项严苛私宅考验" }, { value: "260+", label: "落地庄园实景案例", sub: "全实景图库,可预约探访" }, { value: "100%", label: "主理人全案跟进", sub: "量房 / 出图 / 选料 / 试装" }, { value: "10年", label: "结构主轴质保承诺", sub: "终生五金润滑维保机制" }], pillars: [{ icon: "tree", title: "天然厚板与古铜锻打", desc: "精选 300 年北美黑胡桃、缅甸柚木直拼大板,搭配手工冷锻紫铜及意大利防爆钢核。" }, { icon: "ruler", title: "微米级红外高精量房", desc: "德国进口 3D 空间激光扫描,精准捕捉门洞沉降公差与建筑墙体垂直度,杜绝返工。" }, { icon: "shield", title: "隐匿式重型五金系统", desc: "自主研发三维可调静音承重铰链,单扇承载 450kg,开合轻盈如羽,静如深山。" }], serviceFlow: [{ step: "01", name: "私享沟通", desc: "勘定建筑图纸与设计意图,厘清生活动线与风候环境" }, { step: "02", name: "上门实测", desc: "主理人携激光雷达亲赴现场,复核门洞公差与地平基准" }, { step: "03", name: "构造出图", desc: "输出 1:1 断面结构图、五金受力分析与材质节点方案" }, { step: "04", name: "实样工坊确认", desc: "寄送天然木样、锻铜样块及密封胶条试样实物封样" }, { step: "05", name: "工坊试装交付", desc: "原厂精密试装调试无误后专车直运现场,技师组装" }, { step: "06", name: "终生私属维护", desc: "建立一门一档数字化档案,首年两次免维保巡检" }] };
|
||||
const offerings = [
|
||||
{ id: "entrance_door", category: "入户大门", name: "当代铸铜木核防暴装甲门", series: "「万籁」重型天地轴入户系统", tag: "主理人年度代表作", image: "https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=900&q=80", detailHero: "https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1000&q=85", priceRange: "¥38,000 - ¥85,000 / 樘", desc: "天然厚板、锻铜与隐匿式重型五金,为别墅入口建立沉稳仪式感。", woodMaterial: "60mm 北美特级黑胡桃整板 + 航空蜂窝铝芯", hardware: "德国 dormakaba 重型地弹簧 + 自主定制实心锻铜一体式长执手(高 2400mm)", spaceType: "独栋别墅建筑主入口 / 挑高大厅玄关", keywords: ["厚重大气", "隐式天地轴", "隔音 42dB", "抗暴防撬"], area: "浙江 · 莫干山私家山庄", enabled: true, details: { background: "项目位于浙北山间独栋庄园,常年多雨潮湿,且冬季山风冷峻。业主期望一扇既有古典厚重仪式感,又能抵御风雨、长久耐候的当代东方大门。", designConcept: "打破繁复雕花的欧式门逻辑,提炼江南屋檐与青砖比例。以暗调冷锻手工铜板包裹耐候钢核,内衬大厚度吸音绝热芯,门体内嵌隐藏式天地承重轴,推拉阻尼丝滑沉稳。", crafts: ["无缝冷锻铜边框,经自然氧化着色,泛深幽青褐金属光泽", "双道三元乙丙航天级发泡密封胶条,气密性达国标 8 级最高标准", "指纹识别模组完全隐于天然胡桃木纹理深处,不露丝毫电子廉价感"], materialsList: [{ name: "门扇主体", spec: "航空铝蜂窝 + 防暴钢板 + 黑胡桃" }, { name: "承重结构", spec: "不锈钢重型天地偏心轴(承重 600KG)" }, { name: "五金执手", spec: "实心黄铜拉丝防指纹覆膜,重 7.2kg" }, { name: "锁具系统", spec: "C 级多向防暴机械锁芯 + 隐匿式生物辨识" }] } },
|
||||
{ id: "courtyard_door", category: "庭院围墙门", name: "悬挑风琴式耐候双开院门", series: "「虚实」透光私家庭院门", tag: "建筑级耐候工艺", image: "https://images.unsplash.com/photo-1541123437800-1bb1317badc2?auto=format&fit=crop&w=900&q=80", detailHero: "https://images.unsplash.com/photo-1541123437800-1bb1317badc2?auto=format&fit=crop&w=1000&q=85", priceRange: "¥42,000 - ¥98,000 / 樘", desc: "以格栅光影平衡私密与通透,让院门成为建筑与自然的过渡。", woodMaterial: "深浸缅甸柚木条格栅 + 氟碳喷涂耐候钢", hardware: "意大利全隐形地埋式液压自闭器 + 静音电控锁", spaceType: "私家庭院入口 / 围墙园林玄关", keywords: ["园林意境", "格栅光影", "耐候耐蚀", "智能对讲协同"], area: "上海 · 佘山高尔夫别墅", enabled: true, details: { background: "庭院门直面自然日晒雨淋,普通木门极易开裂变形,普通铁艺门几年内斑驳锈蚀。本案要求 20 年免维护的高级自然质感。", designConcept: "利用竖向错落的柚木条构建视线遮蔽与透光的微妙平衡,外部无法看穿内部庭院,内部向外望去则如薄纱透竹。", crafts: ["微隙热胀冷缩结构槽设计,预留木材季候伸缩呼吸余量", "隐蔽式水路导流坡口,雨水冲刷即自然滑落不积水", "院墙铰链锚栓深入混凝土柱芯 300mm,经历 14 级台风无晃动"], materialsList: [{ name: "户外木种", spec: "高油脂老料缅甸柚木,经过 180 天自然风干" }, { name: "骨架型材", spec: "4mm 高强度航空铝镁合金,耐盐雾防腐" }, { name: "智能五金", spec: "隐藏式地下闭门轴,支持业主手机远程授权开门" }] } },
|
||||
{ id: "interior_door", category: "室内户内门", name: "通顶极窄边框实木室内门", series: "「空灵」2.8m-3.2m 满高通顶系统", tag: "极简建筑平直感", image: "https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=900&q=80", detailHero: "https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1000&q=85", priceRange: "¥7,800 - ¥16,000 / 樘", desc: "门与护墙板同色同构,通顶尺度让室内空间保持完整的建筑感。", woodMaterial: "天然白栓木拉丝烟熏木饰面 + 磁吸阻尼降噪", hardware: "意大利 AGB 磁吸静音门锁 + 隐藏式暗铰链", spaceType: "别墅主卧套房 / 私人藏书阁 / 视听室", keywords: ["满高通顶", "磁吸静音", "极窄边框", "与木作同色"], area: "江苏 · 苏州金鸡湖独栋", enabled: true, details: { background: "室内多道门如果尺寸矮小杂乱,会彻底切割私宅的建筑开阔感。业主希望整个二层主卧区实现门与护墙板毫无色差、绝对平齐的极致纯粹度。", designConcept: "做到门扇高 3.1 米一通到顶,无传统上门套与压边。门扇内嵌双向碳纤维抗弯龙骨,保证高纬度温差下永不变形扭曲。", crafts: ["门框与墙体批荡层彻底融为一体的无框反装工艺", "关门瞬间磁力吸舌弹出,落锁轻无声息,静音等级达书店级", "木皮精选同批原木切片,拼花纹理与旁边护墙板自然连贯"], materialsList: [{ name: "抗弯核心", spec: "双组份碳纤维预应力防变形拉力杆" }, { name: "吸音内衬", spec: "德国原装绍尔兰特均质空心桥洞力学板" }, { name: "隐形铰链", spec: "德国 KRONA 三维可调隐形铰链" }] } },
|
||||
{ id: "stealth_door", category: "装饰隐形门", name: "石材及皮质背景墙一体门", series: "「无垠」密室及背景墙融合门", tag: "精密收口工程", image: "https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=900&q=80", detailHero: "https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1000&q=85", priceRange: "¥18,000 - ¥36,000 / 樘", desc: "以毫厘对缝将门融入背景墙,保留空间完整秩序与隐藏仪式感。", woodMaterial: "3mm 超薄大理石复合蜂窝板 / 进口鞍革手工双缝线", hardware: "感应式电动自开闭装置或碰珠反弹器", spaceType: "雪茄室 / 私人金库 / 地下酒窖 / 视听隐藏储物区", keywords: ["视线隐形", "超薄岩板", "毫厘对缝", "无门把设计"], area: "广东 · 深圳香蜜湖一号", enabled: true, details: { background: "客厅背景墙长达 9 米,中间有一道通往主人密闭酒窖的通道,若突兀开门将完全破坏整面奢石的连贯韵律。", designConcept: "将奢石切割对纹直接复合于高刚性合金门扇表面,缝隙控制在严苛的 1.5mm 以内,未触发开关时完全是一整面天然水墨石壁。", crafts: ["石材水刀无应力薄切与航空蜂窝背栓复合", "脚踏地砖预埋重力复位转轴,避免墙面任何外露开孔", "支持指纹电控联动隐藏灯带变色,开门仪式感强烈"], materialsList: [{ name: "表面饰材", spec: "意大利顶级雪山银狐超薄天然大理石" }, { name: "驱动系统", spec: "低噪步进电机伺服闭门器,运行分贝低于 20dB" }] } },
|
||||
];
|
||||
offerings.forEach((item) => {
|
||||
item.woodMaterial = item.woodMaterial || "天然厚板 / 手工锻铜 / 岩板饰面";
|
||||
item.hardware = item.hardware || "隐匿式重型天地轴五金系统";
|
||||
item.spaceType = item.spaceType || "私家别墅 / 高端私宅";
|
||||
item.details = item.details || {
|
||||
background: item.desc + " 项目位于" + item.area + ",由主理人全程跟进。",
|
||||
designConcept: "以建筑尺度为起点,让门成为空间秩序与生活气息之间的自然过渡。",
|
||||
crafts: "毫米级门洞复核、结构深化与多次现场试装,确保开合、隔音与收口长期稳定。",
|
||||
};
|
||||
});
|
||||
module.exports = { brand, trustContent, offerings };
|
||||
Reference in new issue
Block a user