新增 促销文本。
This commit is contained in:
parent
f7d5a8f547
commit
7a56ee8607
@ -189,6 +189,19 @@
|
||||
<a-input v-model:value="formState.tags" placeholder="多个标签用逗号分隔" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
label="促销文本"
|
||||
name="promotion_text"
|
||||
extra="显示在商品下方的促销文本,限5个字以内"
|
||||
>
|
||||
<a-input
|
||||
v-model:value="formState.promotion_text"
|
||||
placeholder="例如:新人三折"
|
||||
:maxLength="5"
|
||||
show-count
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
label="赠送积分比例"
|
||||
name="gift_points_rate"
|
||||
@ -306,6 +319,19 @@
|
||||
<a-input v-model:value="editFormState.tags" placeholder="多个标签用逗号分隔" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
label="促销文本"
|
||||
name="promotion_text"
|
||||
extra="显示在商品下方的促销文本,限5个字以内"
|
||||
>
|
||||
<a-input
|
||||
v-model:value="editFormState.promotion_text"
|
||||
placeholder="例如:新人三折"
|
||||
:maxLength="5"
|
||||
show-count
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
label="赠送积分比例"
|
||||
name="gift_points_rate"
|
||||
@ -538,7 +564,8 @@ export default defineComponent({
|
||||
settlement_amount: null,
|
||||
purchase_limit: 0,
|
||||
tags: '',
|
||||
gift_points_rate: 0
|
||||
gift_points_rate: 0,
|
||||
promotion_text: ''
|
||||
})
|
||||
|
||||
// 显示修改模态框
|
||||
@ -552,7 +579,8 @@ export default defineComponent({
|
||||
settlement_amount: record.settlement_amount,
|
||||
purchase_limit: record.purchase_limit,
|
||||
tags: record.tags,
|
||||
gift_points_rate: record.gift_points_rate
|
||||
gift_points_rate: record.gift_points_rate,
|
||||
promotion_text: record.promotion_text
|
||||
}
|
||||
editModalVisible.value = true
|
||||
}
|
||||
@ -621,7 +649,8 @@ export default defineComponent({
|
||||
settlement_amount: null,
|
||||
purchase_limit: 0,
|
||||
tags: '',
|
||||
gift_points_rate: 0
|
||||
gift_points_rate: 0,
|
||||
promotion_text: ''
|
||||
}
|
||||
editModalVisible.value = false
|
||||
}
|
||||
@ -640,7 +669,8 @@ export default defineComponent({
|
||||
settlement_amount: null,
|
||||
purchase_limit: 0,
|
||||
tags: '',
|
||||
gift_points_rate: 0
|
||||
gift_points_rate: 0,
|
||||
promotion_text: ''
|
||||
})
|
||||
|
||||
const rules = {
|
||||
@ -727,7 +757,8 @@ export default defineComponent({
|
||||
settlement_amount: null,
|
||||
purchase_limit: 0,
|
||||
tags: '',
|
||||
gift_points_rate: 0
|
||||
gift_points_rate: 0,
|
||||
promotion_text: ''
|
||||
}
|
||||
addModalVisible.value = false
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user