请选择语言
English
español
Русский язык
Português
français
Қазақ тілі
Italiano
Nederlands
Türkçe
Монгол
日本語 (にほんご/にっぽんご)
Deutsch
O'zbek
$1,470.00$1,499.00
Develop your business with App anywhere anytime
Scan the QR code to download. (Only Android users are supported.)
Welcome to your inquire...
') $('#isContentNull').val(1); } setTimeout(function () { let content = document.getElementById('chats'); content.scrollTop = content.scrollHeight + 100; }, 500) } function homeChatMessage(chat) { let isContentNull = $('#isContentNull').val(); if (isContentNull == 1) { $("#chats").html(''); $('#isContentNull').val(2); } let date = new Date(chat.create_time.replace(/-/g, '/')); //注意:此处时间为中国时区,如果是全球项目,需要转成【协调世界时】(toUTCString) let globalDate = date.toString(); let chinaDateArray = globalDate.split(' '); // let displayDate = `${chinaDateArray[0]} ${chinaDateArray[2]}. ${chinaDateArray[1]}, ${chinaDateArray[3]} ${chinaDateArray[4]}`; let displayDate =chinaDateArray[0]+'. '+chinaDateArray[2]+'. '+chinaDateArray[1]+', '+chinaDateArray[3]+' '+chinaDateArray[4]; if (chat.type == 1) { cont = chat.content } if (chat.type == 2) { cont = '' } if (chat.type == 3) { cont = ' '+chat.file_name+'' } $("#chats").append(''+displayDate+'
'+cont+'
'+displayDate+'
'+cont+'
'+$("#chatinput").val()+'
') let content = document.getElementById('chat'); content.scrollTop = content.scrollHeight; let formData = new FormData(); formData.append('file_data', fileList[0]); $.ajax({ type: "post", url: "/index/asset/chatupload.html", dataType: "json", data: formData, processData : false, contentType : false, success: function (data) { if(data.code == 200){ let params = {}; params['message_type'] = "homeChatMessage"; params['m_cid'] = "519"; params['chat_user_id'] = $("#chat_user_id").val(); params['type'] = data.data.type; params['view_url'] = "https://www.tobee.store/products/sid/6.htmlv"; params['content'] = data.data.urlStr; params['file_name'] = data.data.files; sendMsgChat(params); } else { showToast(data.msg); } }, error: function () { showToast("发送失败"); } }); } function sendMsgChat(params) { params = JSON.stringify(params); ws.send(params); } function chatEntryChat(){ if($("#chatinput").val().trim()==""){ showToast("The content is empty and cannot be sent"); return false } let data = {}; data['message_type'] = "homeChatMessage"; data['m_cid'] = "519"; data['chat_user_id'] = $("#chat_user_id").val(); data['type'] = 1; data['view_url'] = "https://www.tobee.store/products/sid/6.htmlv"; data['content'] = $("#chatinput").val(); sendMsgChat(data) // $("#chats").append(`${$("#chatinput").val()}
${$("#chatinput").val()}
Copyright © 1987-2021 Tobee Store. All Rights Reserved Sitemap POWERED BY REANOD