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.
69 lines
1.4 KiB
69 lines
1.4 KiB
//订单状态 50待预约,51待送货,52结算中,53已完成,54已关闭
|
|
function orderStatus(status) {
|
|
if (status == 50) {
|
|
return '待预约'
|
|
} else if (status == 51) {
|
|
return '待送货'
|
|
} else if (status == 52) {
|
|
return '收货待审核'
|
|
} else if (status == 53) {
|
|
return '结算中'
|
|
} else if (status == 54) {
|
|
return '已完成'
|
|
} else if (status == 55) {
|
|
return '已关闭'
|
|
}
|
|
return ''
|
|
}
|
|
|
|
function iconStatus(status) {
|
|
if (status == 50) {
|
|
return 'time'
|
|
} else if (status == 51) {
|
|
return 'time'
|
|
} else if (status == 52) {
|
|
return 'time'
|
|
} else if (status == 53) {
|
|
return 'time'
|
|
} else if (status == 54) {
|
|
return 'roundcheck'
|
|
} else if (status == 55) {
|
|
return 'roundclose'
|
|
}
|
|
return ''
|
|
}
|
|
|
|
function backStatus(status) {
|
|
if (status == 50) {
|
|
return 'blue'
|
|
} else if (status == 51) {
|
|
return 'blue'
|
|
} else if (status == 52) {
|
|
return 'blue'
|
|
} else if (status == 53) {
|
|
return 'blue'
|
|
} else if (status == 54) {
|
|
return 'yellow'
|
|
} else if (status == 55) {
|
|
return 'gray'
|
|
}
|
|
return ''
|
|
}
|
|
|
|
function getActivitySettleType(type) {
|
|
if (type == 0) {
|
|
return '70%'
|
|
} else if (type == 1) {
|
|
return '85%'
|
|
} else if (type == 2) {
|
|
return '100%'
|
|
}
|
|
return ''
|
|
}
|
|
|
|
module.exports = {
|
|
orderStatus: orderStatus,
|
|
iconStatus: iconStatus,
|
|
backStatus: backStatus,
|
|
getActivitySettleType: getActivitySettleType
|
|
}
|