feat: 建立详情与咨询标准模块

This commit is contained in:
que01 committed 2026-09-22 22:47:43 +08:00
1 parent b8186652e6
commit 4f48f69625
9 files changed
+9

No files matched your search

@@ -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"); } } });
@@ -0,0 +1 @@
{"component":true}
@@ -0,0 +1 @@
<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="input"/></view><button class="submit" loading="{{submitting}}" bindtap="submit">提交定制需求</button><text class="privacy">信息仅用于本次方案沟通,我们不会向第三方披露。</text></view>
@@ -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}