diff --git a/admin-web/src/components/SiderMenu/BaseMenu.js b/admin-web/src/components/SiderMenu/BaseMenu.js
index 6c8c70222..407d529a1 100644
--- a/admin-web/src/components/SiderMenu/BaseMenu.js
+++ b/admin-web/src/components/SiderMenu/BaseMenu.js
@@ -105,7 +105,7 @@ export default class BaseMenu extends PureComponent {
onClick={
isMobile
? () => {
- onCollapse(true);
+ onCollapsetrue;
}
: undefined
}
diff --git a/admin-web/src/pages/Promotion/CouponCardTemplateList.js b/admin-web/src/pages/Promotion/CouponCardTemplateList.js
index b8de700ac..fc7461d7e 100644
--- a/admin-web/src/pages/Promotion/CouponCardTemplateList.js
+++ b/admin-web/src/pages/Promotion/CouponCardTemplateList.js
@@ -220,11 +220,12 @@ const AddOrUpdateForm = Form.create()(props => {
if (err) return;
let newFileds = {
...fields,
- priceAvailable: fields['priceAvailable'] ? parseInt(fields.priceAvailable * 100) : undefined,
- priceOff: fields['priceOff'] ? parseInt(fields.priceOff * 100) : undefined,
- discountPriceLimit: fields['discountPriceLimit'] ? parseInt(fields.discountPriceLimit * 100) : undefined,
- }
- debugger;
+ priceAvailable: fields.priceAvailable ? parseInt(fields.priceAvailable * 100) : undefined,
+ priceOff: fields.priceOff ? parseInt(fields.priceOff * 100) : undefined,
+ discountPriceLimit: fields.discountPriceLimit ? parseInt(fields.discountPriceLimit * 100) : undefined,
+ validStartTime: fields.validStartTime ? fields.validStartTime.format('YYYY-MM-DD') : undefined,
+ validEndTime: fields.validEndTime ? fields.validEndTime.format('YYYY-MM-DD') : undefined
+ };
// 添加表单
if (modalType === 'add') {
dispatch({
@@ -291,7 +292,8 @@ const AddOrUpdateForm = Form.create()(props => {
>
{form.getFieldDecorator('title', {
- rules: [{ required: true, message: '请输入标题!' }],
+ rules: [{ required: true, message: '请输入标题!' },
+ {max: 16, min:2, message: '长度为 2-16 位'},],
initialValue: formVals.title,
})()}
@@ -310,7 +312,6 @@ const AddOrUpdateForm = Form.create()(props => {
initialValue: formVals.quota,
})(