From a7ea2728eaece33397b433d5317c1b0fb2490a7f Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Wed, 6 May 2026 11:33:31 +0800 Subject: [PATCH] no message --- utils/common.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/utils/common.js b/utils/common.js index 4f7fed3..d41ad50 100644 --- a/utils/common.js +++ b/utils/common.js @@ -683,6 +683,16 @@ let data = { /** * canvas绘图 end */ + handleSetSex ($obj = {}) { + if (Boolean($obj.minAgeWoman) === true && Boolean($obj.minAgeMan) === false) { + $obj.gender = "女"; + } else if (Boolean($obj.minAgeWoman) === false && Boolean($obj.minAgeMan) === true) { + $obj.gender = "男"; + } else { + $obj.gender = "男女不限"; + } + return $obj; + }, } export default data; \ No newline at end of file