From 41a43c5be7488f8d10889ff3ae242ab3a8bc45c5 Mon Sep 17 00:00:00 2001 From: xuan Date: Wed, 14 Dec 2022 11:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(ID1000961):=20=E3=80=90?= =?UTF-8?q?=E7=94=B5=E5=AD=90=E5=95=86=E5=9F=8E=E3=80=9111-21=EF=BC=88UI?= =?UTF-8?q?=E8=BF=98=E5=8E=9F-1=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【【电子商城】11-21(UI还原-1)】 https://www.tapd.cn/53459131/bugtrace/bugs/view/1153459131001000961 --- project.config.json | 4 ++-- .../bindSalesManDialog/index.module.scss | 18 +++++++------- src/components/bindSalesManDialog/index.tsx | 17 +++++++------ src/components/closeBtn/index.module.scss | 2 -- src/components/closeBtn/index.tsx | 2 +- src/pages/inviteCode/index.module.scss | 7 +++++- src/pages/inviteCode/index.tsx | 24 ++++++++++++------- 7 files changed, 43 insertions(+), 31 deletions(-) diff --git a/project.config.json b/project.config.json index e796931..4a878bc 100644 --- a/project.config.json +++ b/project.config.json @@ -34,7 +34,7 @@ "minifyWXML": true }, "compileType": "miniprogram", - "libVersion": "2.24.5", + "libVersion": "2.28.0", "srcMiniprogramRoot": "dist/", "packOptions": { "ignore": [], @@ -45,4 +45,4 @@ "tabIndent": "insertSpaces", "tabSize": 2 } -} \ No newline at end of file +} diff --git a/src/components/bindSalesManDialog/index.module.scss b/src/components/bindSalesManDialog/index.module.scss index 08afb64..ebc3d64 100644 --- a/src/components/bindSalesManDialog/index.module.scss +++ b/src/components/bindSalesManDialog/index.module.scss @@ -16,7 +16,7 @@ margin-left: 20px; margin-top: 16px; .title { - padding-bottom: 15px; + padding-bottom: 10px; font-size: 40px; font-weight: 550; } @@ -44,16 +44,20 @@ } .inputCode { width: 100%; - height: 106px; background: #f6f6f6; border: 2px solid #f0f0f0; border-radius: 20px; display: flex; align-items: center; - padding: 20px 0 20px 30px; + padding: 48px 0 48px 30px; box-sizing: border-box; position: relative; - input { + &Result { + position: absolute; + left: 0; + bottom: -40px; + } + .inputBar { flex: 1; z-index: 0; letter-spacing: 10px; @@ -64,11 +68,6 @@ display: flex; justify-content: center; align-items: center; - border-left: 1px solid #ccc; - .miconfont { - font-size: 50px; - color: #007aff; - } } .close_btn { padding: 0 20px; @@ -90,6 +89,7 @@ border-radius: 10px; } &__text { + font-size: 28px; } } .salesMan { diff --git a/src/components/bindSalesManDialog/index.tsx b/src/components/bindSalesManDialog/index.tsx index 1ca29f9..f53ccb2 100644 --- a/src/components/bindSalesManDialog/index.tsx +++ b/src/components/bindSalesManDialog/index.tsx @@ -9,6 +9,7 @@ import LayoutBlock from '../layoutBlock' import IconText from '../iconText' import IconFont from '../iconfont/iconfont' import InputX from '../InputX' +import Divider from '../divider' import styles from './index.module.scss' import { formatImgUrl } from '@/common/fotmat' import { alert, goLink } from '@/common/common' @@ -138,7 +139,6 @@ const BindSalesManDialog = ({ onSuccess }: params, ref: Ref) - @@ -148,7 +148,7 @@ const BindSalesManDialog = ({ onSuccess }: params, ref: Ref) ) type="text" /> - {submitData.invitation_code && } + {submitData.invitation_code && } - onScanCode()}> + + + + {(salesMan && !isError) ? 邀请人:{salesMan?.name} {salesMan?.phone} : null} + {(submitData.invitation_code && isError) ? 邀请码错误 : null} + - {(salesMan && !isError) ? 邀请人:{salesMan?.name} {salesMan?.phone} : null} - {(submitData.invitation_code && isError) ? 邀请码错误 : null} 1、联系自己的专属客户经理获取邀请码 2、私聊客服进行获取- @@ -173,7 +176,7 @@ const BindSalesManDialog = ({ onSuccess }: params, ref: Ref) - 确定 + 确认 diff --git a/src/components/closeBtn/index.module.scss b/src/components/closeBtn/index.module.scss index a928cfc..4c14b8b 100644 --- a/src/components/closeBtn/index.module.scss +++ b/src/components/closeBtn/index.module.scss @@ -1,9 +1,7 @@ .icon_a_cuowuwrong_self { height: 20px; width: 20px; - font-size: 27px; padding: 10px; - border-radius: 50%; color: #ccc; display: flex; justify-content: center; diff --git a/src/components/closeBtn/index.tsx b/src/components/closeBtn/index.tsx index ddc30a1..8e3d377 100644 --- a/src/components/closeBtn/index.tsx +++ b/src/components/closeBtn/index.tsx @@ -12,7 +12,7 @@ const CloseBtn = ({ onClose, styleObj = {} }: Params) => { onClose?.()} + onClick={onClose} > diff --git a/src/pages/inviteCode/index.module.scss b/src/pages/inviteCode/index.module.scss index 588dfc0..3039a1f 100644 --- a/src/pages/inviteCode/index.module.scss +++ b/src/pages/inviteCode/index.module.scss @@ -74,7 +74,6 @@ page { flex-flow: row nowrap; justify-content: center; align-items: center; - letter-spacing: 10px; font-size: 40px; font-weight: 400; color: #9fa0a1; @@ -93,6 +92,12 @@ page { color: #9e9e9e; } .inviteCordTitle { + display: flex; + align-items: center; + justify-content: flex-start; + .titleText { + width: 200px; + } font-weight: 500; color: #000000; } diff --git a/src/pages/inviteCode/index.tsx b/src/pages/inviteCode/index.tsx index c04b171..5945d47 100644 --- a/src/pages/inviteCode/index.tsx +++ b/src/pages/inviteCode/index.tsx @@ -280,8 +280,11 @@ const BindSalesman = () => { - 我的邀请记录: - {invite === 0 ? 暂无邀请信息 : {invite}人} + + 我的邀请记录: + {invite === 0 && 暂无邀请信息} + + {invite !== 0 && {invite}人} @@ -289,15 +292,18 @@ const BindSalesman = () => { - 朋友邀请我: - {!salesMan?.inviter_id - ? 未绑定 - : + + 朋友邀请我: + {!salesMan?.inviter_id && 未绑定} + + {!!salesMan?.inviter_id && 已绑定 {salesMan.inviter_name}({salesMan.phone}) - } - {!salesMan?.inviter_id && - } + {!salesMan?.inviter_id + && + + + } 温馨提示:邀请码确定绑定后,不支持解绑。