From e65d84f95ff6f702ab4497326edd66ad226ed3ed Mon Sep 17 00:00:00 2001 From: Chopper Date: Thu, 24 Jun 2021 11:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=AB=AF=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E5=AD=97=E6=AE=B5=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/utils/filters.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/manager/src/utils/filters.js b/manager/src/utils/filters.js index 71c092db..9124cbfe 100644 --- a/manager/src/utils/filters.js +++ b/manager/src/utils/filters.js @@ -16,6 +16,22 @@ export function unitPrice(val, unit, location) { return (unit || '') + price } +/** + * 订单来源 + */ +export function clientTypeWay(val) { + if (val == "H5") { + return "移动端"; + } else if (val == "PC") { + return "PC端"; + } else if (val == "WECHAT_MP") { + return "小程序端"; + } else if (val == "APP") { + return "移动应用端"; + } else { + return val; + } +}