- 添加订单取消

- 优化订单列表
- 添加订单备注
This commit is contained in:
sin
2019-03-31 14:46:05 +08:00
parent 85a1be3998
commit 5b51d529de
18 changed files with 1438 additions and 49 deletions

View File

@@ -3,6 +3,7 @@
const DictionaryConstants = {
GENDER: 'gender',
ORDER_STATUS: 'order_status',
ORDER_CANCEL_REASONS: 'order_cancel_reasons',
};
export default DictionaryConstants;

View File

@@ -9,11 +9,9 @@ import qs from 'qs';
function filterEmptyStr(params) {
function filterObject(object) {
const res = {};
for (const key in params) {
const val = params[key];
if (typeof val === 'string' && val) {
res[key] = val;
} else {
for (const key in object) {
const val = object[key];
if (val !== undefined && val !== 'undefined' && val !== null && val !== 'null') {
res[key] = val;
}
}