perf: 邮件修改绑定

dev/emitter
Lei OT 10 months ago
parent fc22cf038d
commit 76544f7c1a

@ -76,7 +76,9 @@ const BubbleEmail = ({ onOpenEditor, onOpenEmail, ...message }) => {
? {
styles: { backgroundColor: '#e0e7ff', boxShadow: 'none', border: '1px solid #818cf8' }, // 100 400
}
: {})}
: {
styles: { backgroundColor: '#fff', boxShadow: 'none', border: '1px solid #818cf8' },
})}
className={[
'whitespace-pre-wrap',
message.sender === 'me' ? 'whatsappme-container' : '',

@ -14,7 +14,7 @@ const fetchOrderList = async (params) => {
return errcode !== 0 ? [] : result
}
export const EmailBindFormModal = ({ mai_sn, conversationid, userId, onBoundSuccess }) => {
export const EmailBindFormModal = ({ mai_sn, conversationid, userId, onBoundSuccess, ...props }) => {
const [open, setOpen] = useState(false)
const { userId: loginUserId } = useAuthStore((state) => state.loginUser)
@ -121,7 +121,7 @@ export const EmailBindFormModal = ({ mai_sn, conversationid, userId, onBoundSucc
现在关联
</Button> */}
<Button key={'bound'} onClick={() => setOpen(true)} size='small' type='text' icon={<ApiOutlined className='text-red-500' />}>
绑定订单
{props.showBindBtn ? '绑定订单' : '修改绑定'}
</Button>
<Modal
width={window.innerWidth < 700 ? '95%' : '100%'}

@ -84,10 +84,10 @@ const EmailDetail = ({ open, setOpen, emailMsg={}, ...props }) => {
let btns = []
// ``
if (showBindBtn) {
btns.push(<EmailBindFormModal onBoundSuccess={() => setShowBindBtn(false)} {...{conversationid, mai_sn}} />)
// if (showBindBtn) {
btns.push(<EmailBindFormModal onBoundSuccess={() => setShowBindBtn(false)} {...{conversationid, mai_sn, showBindBtn}} />)
btns.push(<Divider type='vertical' key={'divider'} />);
}
// }
switch (status) {
case 'accepted':

Loading…
Cancel
Save