feat: 让咨询页适配报价能力语义

This commit is contained in:
que01 committed 2026-09-23 09:17:37 +08:00
1 parent 52f741cc2c
commit 16b0967dc5
7 files changed
+76 -11

No files matched your search

@@ -1 +1,16 @@
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"); } } });
Component({
properties: {
fields: { type: Array, value: [] },
values: { type: Object, value: {} },
submitting: { type: Boolean, value: false },
submitLabel: { type: String, value: "提交需求" },
},
methods: {
input(e) {
this.triggerEvent("input", { key: e.currentTarget.dataset.key, value: e.detail.value });
},
submit() {
this.triggerEvent("submit");
},
},
});
@@ -1 +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>
<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">{{submitLabel || '提交需求'}}</button><text class="privacy">信息仅用于本次方案沟通,我们不会向第三方披露。</text></view>