import { Button } from '@tarojs/components'; import { Dialog } from '@taroify/core'; import './index.less'; const PREFIX = 'message-dialog'; const HELP = `${PREFIX}__help`; const NO_TIMES = `${PREFIX}__no-times`; interface IHelpProps { open: boolean; onClose: () => void; } interface INoTimesProps { open: boolean; times: number; onClick: () => void; onClose: () => void; } export function MessageHelpDialog(props: IHelpProps) { const { open, onClose } = props; return ( 消息通知次数说明 {`离开小程序后,如果有用户向你发送消息,我们将通过微信的"服务通知"提醒你。\n由于微信服务通知有次数限制,次数使用完则无法收到通知。`} 通知次数 代表你还能接收服务通知的次数 点击增加 可以为你增加通知次数 知道了 ); } export function MessageNoTimesDialog(props: INoTimesProps) { const { open, times = 0, onClick, onClose } = props; return ( 未读消息提醒次数不够了! 有通知次数才能及时收到招聘邀请,快点击“点我增加”吧~ {`未读消息提醒剩余:${times}次`} 点我增加 ); }