From 4f48f696252cef71c02d5babdd4cd225d79cb2ae Mon Sep 17 00:00:00 2001 From: que01 Date: Tue, 22 Sep 2026 22:47:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BB=BA=E7=AB=8B=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=B8=8E=E5=92=A8=E8=AF=A2=E6=A0=87=E5=87=86=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/miniapp/components/modules/inquiry-form/inquiry-form.js | 1 + apps/miniapp/components/modules/inquiry-form/inquiry-form.json | 1 + apps/miniapp/components/modules/inquiry-form/inquiry-form.wxml | 1 + apps/miniapp/components/modules/inquiry-form/inquiry-form.wxss | 1 + .../components/modules/offering-detail/offering-detail.js | 1 + .../components/modules/offering-detail/offering-detail.json | 1 + .../components/modules/offering-detail/offering-detail.wxml | 1 + .../components/modules/offering-detail/offering-detail.wxss | 1 + docs/template-runtime-progress.md | 1 + 9 files changed, 9 insertions(+) create mode 100644 apps/miniapp/components/modules/inquiry-form/inquiry-form.js create mode 100644 apps/miniapp/components/modules/inquiry-form/inquiry-form.json create mode 100644 apps/miniapp/components/modules/inquiry-form/inquiry-form.wxml create mode 100644 apps/miniapp/components/modules/inquiry-form/inquiry-form.wxss create mode 100644 apps/miniapp/components/modules/offering-detail/offering-detail.js create mode 100644 apps/miniapp/components/modules/offering-detail/offering-detail.json create mode 100644 apps/miniapp/components/modules/offering-detail/offering-detail.wxml create mode 100644 apps/miniapp/components/modules/offering-detail/offering-detail.wxss diff --git a/apps/miniapp/components/modules/inquiry-form/inquiry-form.js b/apps/miniapp/components/modules/inquiry-form/inquiry-form.js new file mode 100644 index 0000000..ac94529 --- /dev/null +++ b/apps/miniapp/components/modules/inquiry-form/inquiry-form.js @@ -0,0 +1 @@ +Component({ properties: { fields: { type: Array, value: [] }, values: { type: Object, value: {} }, submitting: { type: Boolean, value: false } }, methods: { input(e) { this.triggerEvent("input", { key: e.currentTarget.dataset.key, value: e.detail.value }); }, submit() { this.triggerEvent("submit"); } } }); diff --git a/apps/miniapp/components/modules/inquiry-form/inquiry-form.json b/apps/miniapp/components/modules/inquiry-form/inquiry-form.json new file mode 100644 index 0000000..d80dd20 --- /dev/null +++ b/apps/miniapp/components/modules/inquiry-form/inquiry-form.json @@ -0,0 +1 @@ +{"component":true} diff --git a/apps/miniapp/components/modules/inquiry-form/inquiry-form.wxml b/apps/miniapp/components/modules/inquiry-form/inquiry-form.wxml new file mode 100644 index 0000000..0e6f873 --- /dev/null +++ b/apps/miniapp/components/modules/inquiry-form/inquiry-form.wxml @@ -0,0 +1 @@ +{{item.label}}信息仅用于本次方案沟通,我们不会向第三方披露。 diff --git a/apps/miniapp/components/modules/inquiry-form/inquiry-form.wxss b/apps/miniapp/components/modules/inquiry-form/inquiry-form.wxss new file mode 100644 index 0000000..dd86445 --- /dev/null +++ b/apps/miniapp/components/modules/inquiry-form/inquiry-form.wxss @@ -0,0 +1 @@ +.form{margin-top:24rpx;padding:30rpx;background:#fff}.field{display:flex;align-items:center;gap:20rpx;padding:24rpx 0;border-bottom:1rpx solid #e6ded5}.field text{width:180rpx;color:#77736b;font-size:26rpx}.field input{flex:1;font-size:26rpx}.submit{margin-top:30rpx;background:#252827;color:#fff;border-radius:0}.privacy{display:block;margin-top:20rpx;color:#99928a;font-size:21rpx;text-align:center} diff --git a/apps/miniapp/components/modules/offering-detail/offering-detail.js b/apps/miniapp/components/modules/offering-detail/offering-detail.js new file mode 100644 index 0000000..d6a3d65 --- /dev/null +++ b/apps/miniapp/components/modules/offering-detail/offering-detail.js @@ -0,0 +1 @@ +Component({ properties: { item: { type: Object, value: {} } }, methods: { inquire() { this.triggerEvent("inquire"); } } }); diff --git a/apps/miniapp/components/modules/offering-detail/offering-detail.json b/apps/miniapp/components/modules/offering-detail/offering-detail.json new file mode 100644 index 0000000..d80dd20 --- /dev/null +++ b/apps/miniapp/components/modules/offering-detail/offering-detail.json @@ -0,0 +1 @@ +{"component":true} diff --git a/apps/miniapp/components/modules/offering-detail/offering-detail.wxml b/apps/miniapp/components/modules/offering-detail/offering-detail.wxml new file mode 100644 index 0000000..ff6deca --- /dev/null +++ b/apps/miniapp/components/modules/offering-detail/offering-detail.wxml @@ -0,0 +1 @@ +{{item.category}} · {{item.tag}}{{item.name}}{{item.series}}{{item.priceRange}}{{item.desc}}{{item}} diff --git a/apps/miniapp/components/modules/offering-detail/offering-detail.wxss b/apps/miniapp/components/modules/offering-detail/offering-detail.wxss new file mode 100644 index 0000000..a1eaa7b --- /dev/null +++ b/apps/miniapp/components/modules/offering-detail/offering-detail.wxss @@ -0,0 +1 @@ +.detail{background:#f7f5f1;min-height:100vh;color:#252525;padding-bottom:150rpx}.hero{width:100%;height:600rpx;display:block}.content{padding:42rpx 40rpx}.category{font-size:21rpx;color:#8a6846}.title{display:block;font:46rpx 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}.desc{display:block;margin-top:30rpx;color:#77736b;font-size:27rpx;line-height:1.9}.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}.bar{position:fixed;bottom:0;left:0;right:0;padding:22rpx 32rpx;background:#f7f5f1}.bar button{background:#252827;color:#fff;border-radius:0} diff --git a/docs/template-runtime-progress.md b/docs/template-runtime-progress.md index 9790e9e..8331284 100644 --- a/docs/template-runtime-progress.md +++ b/docs/template-runtime-progress.md @@ -36,6 +36,7 @@ - [x] 更新基础 Design Tokens 到林境门作视觉基线,后续主题通过 Runtime Workspace 覆盖。 - [x] 首页已抽取 `FounderCard`、`TrustProof`、`OfferingList` 标准模块。 - [x] 首页已抽取 `BrandHero`、`TrustManifesto` 标准模块。 +- [x] 建立 `OfferingDetail` 与 `InquiryForm` 标准模块骨架,待页面接入。 - [ ] Phase 3:模板中心、安装快照、升级和回滚。 - [ ] Phase 4:Capability Plugin。 - [ ] Phase 5:林境门作与第二行业双模板验证。