|
|
@ -28,24 +28,6 @@ import ExpireTimeClock from './ExpireTimeClock';
|
|
|
|
import dayjs from 'dayjs';
|
|
|
|
import dayjs from 'dayjs';
|
|
|
|
|
|
|
|
|
|
|
|
const aliOSSHost = `https://haina-sale-system.oss-cn-shenzhen.aliyuncs.com/WAMedia/`;
|
|
|
|
const aliOSSHost = `https://haina-sale-system.oss-cn-shenzhen.aliyuncs.com/WAMedia/`;
|
|
|
|
/**
|
|
|
|
|
|
|
|
* image
|
|
|
|
|
|
|
|
* ext: ani;bmp;gif;ico;jpe;jpeg;jpg;pcx;png;psd;tga;tif;tiff;wmf
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* audio
|
|
|
|
|
|
|
|
* ext: aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* video
|
|
|
|
|
|
|
|
* ext: 3g2;3gp;3gp2;3gpp;amr;amv;asf;avi;bdmv;bik;d2v;divx;drc;dsa;dsm;dss;dsv;evo;f4v;flc;fli;flic;flv;hdmov;ifo;ivf;m1v;m2p;m2t;m2ts;m2v;m4b;m4p;m4v;mkv;mp2v;mp4;mp4v;mpe;mpeg;mpg;mpls;mpv2;mpv4;mov;mts;ogm;ogv;pss;pva;qt;ram;ratdvd;rm;rmm;rmvb;roq;rpm;smil;smk;swf;tp;tpr;ts;vob;vp6;webm;wm;wmp;wmv
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
const fileTypesExt = {
|
|
|
|
|
|
|
|
sticker: ['webp'],
|
|
|
|
|
|
|
|
photo: ['jpeg', 'jpg', 'png'],
|
|
|
|
|
|
|
|
video: ['gif', 'mp4', '3gp'],
|
|
|
|
|
|
|
|
document: ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'csv'],
|
|
|
|
|
|
|
|
audio: ['aac', 'mp4', 'm4a', 'mp3', 'amr', 'ogg'],
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const InputComposer = ({ mobile }) => {
|
|
|
|
const InputComposer = ({ mobile }) => {
|
|
|
|
const userId = useAuthStore((state) => state.loginUser.userId);
|
|
|
|
const userId = useAuthStore((state) => state.loginUser.userId);
|
|
|
@ -266,7 +248,7 @@ const InputComposer = ({ mobile }) => {
|
|
|
|
maxLength={2000}
|
|
|
|
maxLength={2000}
|
|
|
|
showCount={textabled}
|
|
|
|
showCount={textabled}
|
|
|
|
placeholder={
|
|
|
|
placeholder={
|
|
|
|
gt24h
|
|
|
|
!textabled
|
|
|
|
? '会话已过期. 请发送打招呼消息激活对话💬.'
|
|
|
|
? '会话已过期. 请发送打招呼消息激活对话💬.'
|
|
|
|
: mobile === undefined
|
|
|
|
: mobile === undefined
|
|
|
|
? 'Enter 发送, Shift+Enter 换行\n支持复制粘贴 [截图/文件] 以备发送'
|
|
|
|
? 'Enter 发送, Shift+Enter 换行\n支持复制粘贴 [截图/文件] 以备发送'
|
|
|
|