You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
965 B
45 lines
965 B
function isEmpty(val) {
|
|
return typeof val === 'undefined' || val === '' || val === null
|
|
}
|
|
|
|
function orderBidding(status) {
|
|
if (status == -1) {
|
|
return '已流拍'
|
|
} else if (status == 0) {
|
|
return '竞价中'
|
|
} else if (status == 1) {
|
|
return '待下单'
|
|
} else if (status == 2) {
|
|
return '已结束'
|
|
}
|
|
return ''
|
|
}
|
|
|
|
function orderStatus(status) {
|
|
if (status == 1) {
|
|
return '待付诚意金'
|
|
} else if (status == 2) {
|
|
return '待上传资料'
|
|
} else if (status == 3) {
|
|
return '待上传资料确认'
|
|
} else if (status == 4) {
|
|
return '待支付尾款'
|
|
} else if (status == 5) {
|
|
return '待收货'
|
|
} else if (status == 6) {
|
|
return '待扣点确认'
|
|
} else if (status == 7) {
|
|
return '待退货确认'
|
|
} else if (status == 8) {
|
|
return '已完成'
|
|
} else if (status == 9) {
|
|
return '已关闭'
|
|
}
|
|
return ''
|
|
}
|
|
|
|
|
|
module.exports = {
|
|
orderBidding: orderBidding,
|
|
orderStatus: orderStatus
|
|
}
|