|
@@ -5,6 +5,7 @@ import {
|
5
|
5
|
ProFormMoney,
|
6
|
6
|
ProFormSelect,
|
7
|
7
|
ProFormText,
|
|
8
|
+ ProFormRadio,
|
8
|
9
|
} from "@ant-design/pro-components";
|
9
|
10
|
import { Button, Row, Col } from "antd";
|
10
|
11
|
import { useNavigate } from "react-router-dom";
|
|
@@ -62,24 +63,32 @@ export default (props) => {
|
62
|
63
|
>
|
63
|
64
|
<ProFormText name="packageName" label="套餐名称" />
|
64
|
65
|
<ProFormText name="packageType" label="套餐类型" />
|
65
|
|
- <ProForm.Item name="thumb" label="图片">
|
|
66
|
+ <ProForm.Item name="thumb" label="套餐图片">
|
66
|
67
|
<UploadImage onChange={onChange} />
|
67
|
68
|
</ProForm.Item>
|
68
|
|
- <ProFormMoney name="charge" label="价格" />
|
69
|
|
- <ProFormText name="limitType" label="是否限制型消费" />
|
|
69
|
+ <ProFormMoney name="charge" label="套餐价格" />
|
|
70
|
+ {/* <ProFormText name="limitType" label="是否限制型消费" /> */}
|
70
|
71
|
<ProFormText name="limitNum" label="限制数目" />
|
71
|
72
|
<ProFormSelect
|
72
|
73
|
name="limitUnit"
|
73
|
74
|
label="限制单位"
|
74
|
75
|
options={[
|
75
|
|
- { key: "year", label: "year" },
|
76
|
|
- { key: "month", label: "month" },
|
77
|
|
- { key: "day", label: "day" },
|
78
|
|
- { key: "order", label: "order" },
|
|
76
|
+ { key: "year", label: "年" },
|
|
77
|
+ { key: "month", label: "月" },
|
|
78
|
+ { key: "day", label: "日" },
|
|
79
|
+ { key: "order", label: "次" },
|
79
|
80
|
]}
|
80
|
81
|
/>
|
81
|
|
- <ProFormText name="desc" label="说明" />
|
82
|
|
- <ProFormSelect
|
|
82
|
+ <ProFormText name="desc" label="套餐说明" />
|
|
83
|
+ <ProFormRadio.Group
|
|
84
|
+ name="limitType"
|
|
85
|
+ label="是否限制型消费"
|
|
86
|
+ options={[
|
|
87
|
+ { label: '是', value: 1 },
|
|
88
|
+ { label: '否', value: 0 },
|
|
89
|
+ ]}
|
|
90
|
+ />
|
|
91
|
+ {/* <ProFormSelect
|
83
|
92
|
name="status"
|
84
|
93
|
label="状态"
|
85
|
94
|
options={[
|
|
@@ -92,6 +101,14 @@ export default (props) => {
|
92
|
101
|
value: 1,
|
93
|
102
|
},
|
94
|
103
|
]}
|
|
104
|
+ /> */}
|
|
105
|
+ <ProFormRadio.Group
|
|
106
|
+ name="status"
|
|
107
|
+ label="套餐状态"
|
|
108
|
+ options={[
|
|
109
|
+ { label: '上架', value: 1 },
|
|
110
|
+ { label: '下架', value: 0 },
|
|
111
|
+ ]}
|
95
|
112
|
/>
|
96
|
113
|
</ProForm>
|
97
|
114
|
);
|