1234567891011121314151617181920 |
- {
- "baseHead":"<!DOCTYPE html><html lang='en'><head><meta charset='UTF-8'><meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;' name='viewport'/><meta http-equiv='X-UA-Compatible' content='ie=edge'><title>Document</title><style>html,body{height: 100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-family:'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;margin:0;padding:0;border:0;font-size:14px}.rong-link-site{color: #0579f4;} .rong-pc{width: 30%;min-width: 400px;margin: 0 auto;border-left: 1px solid#DFDFDF;border-right: 1px solid#DFDFDF;min-height:100%;}.rong-time{width:100%;height:40px;text-align:center;color:#999999;position: relative;}.rong-hr{width:96%;border-bottom:1px solid#DFDFDF;position:absolute;top:20px;z-index:-1;margin-left:2%;}.rong-time-value{text-align:center;height:40px;line-height:40px;background:#fff;padding:0 10px;margin:0 auto}.rong-message{margin:10px;padding-bottom:10px;border-bottom:1px solid#DFDFDF;color:#999999;margin-left:49px;position: relative;}.rong-message-user{display:inline-block;vertical-align:top;position:absolute;margin-left:-39px}.rong-message-user-bg{display:inline-block;width:39px;height:39px;background:#ccc;text-align:center;line-height:39px;border-radius:8px;color:#FFF}.rongcloud-message-body{display:inline-block;vertical-align:top;padding-left:5px;max-width:65%}.rongcloud-message-user-name{font-size:16px;color:#262626;margin-bottom:4px}.rongcloud-message-text pre{margin:0;padding:0;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;overflow:auto;word-break:break-all;word-wrap:break-word}.rong-message-time{display:inline-block;position:absolute;right:10px;color:#999999;font-size:14px;}.rongcloud-message-combinemsg{width:100%;margin-left:50px;margin-top:10px;padding-top:15px;border-top:1px solid#ccc}.rong-message-file{display:inline-block;vertical-align:top;padding-left:5px;max-width:64%;}.rong-message-file div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.rongcloud-message-img img{max-width:230px;max-height:250px;border:none;vertical-align:middle;border-radius:5px}.rong-message-file img{width:32px;height:32px}.rong-message-file img{border-radius:4px}.rong-message-combine{border:1px solid#C4C4C4;border-radius:8px;padding:10px 0;width:224px} a{text-decoration:none;color:#999999}.rong-combine-title{padding-left:10px;padding-bottom:5px;color:#262626}.rong-combine-body{padding-left:10px;line-height:20px;margin-bottom:10px}.rong-conbine-foot{border-top:1px solid#DFDFDF;margin:0 10px;padding-top:5px}.rong-none-user{margin-left:49px}.rong-none-user .rong-none-user-img{display:none}.rong-big-img{position:absolute;top:0;width:100%;height:100%;background:#fff;display:none}.rong-big-video{position:absolute;top:0;width:100%;height:100%;background:#fff;display:none}.rong-big-img img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:100%;max-height:100%;border:none;vertical-align:middle}video{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:100%;max-height:100%;border:none;vertical-align:middle}</style><style>{%style%}</style></head><body><div class='rong-main'>",
- "baseBottom":"</div><div class='rong-big-img' onclick='hide(\"rong-big-img\")'></div><div class='rong-big-video' onclick='hide(\"rong-big-video\")'></div><script> window.onload = function() {if(document.getElementsByName('RC:TxtMsg').length > 0) {for(var i = 0; i < document.getElementsByName('RC:TxtMsg').length; i++) {var text = document.getElementsByName('RC:TxtMsg')[i].children[1].children[0].innerHTML;var replaceText = '';replaceText=replaceUri(text, function(uri, protocol) {var link = uri;if(!protocol) {link = 'http://' + uri;}phnumAfter = \"<a class='rong-link-site' onclick=show({link:'\"+link+\"',type:'link'}) target='_blank' href='\" + link + \"'>\" + uri + \"</a>\"; return phnumAfter;});var numArr = getNum(replaceText);if(numArr) {for (var j=0;j<numArr.length;j++) {if(numArr[j].length == 7 || numArr[j].length == 11){phnumAfter = \"<span class='rong-link-site' onclick=show({phoneNum:\" + numArr[j] + \",type:'phone'})>\" + numArr[j] + \"</span>\"; replaceText = replaceText.replace(numArr[j], phnumAfter);}}}document.getElementsByName('RC:TxtMsg')[i].children[1].children[0].innerHTML = replaceText;}}};var domainArray = ['.com', '.net', '.org', '.biz', '.coop', '.info', '.museum', '.name', '.pro', '.edu', '.gov', '.int', '.mil', '.ac', '.ad', '.ae', '.af', '.ag', '.ai', '.al', '.am', '.an', '.ao', '.aq', '.ar', '.as', '.at', '.au', '.aw', '.az', '.ba', '.bb', '.bd', '.be', '.bf', '.bg', '.bh', '.bi', '.bj', '.bm', '.bn', '.bo', '.br', '.bs', '.bt', '.bv', '.bw', '.by', '.bz', '.ca', '.cc', '.cd', '.cf', '.cg', '.ch', '.ci', '.ck', '.cl', '.cm', '.cn', '.co', '.cr', '.cu', '.cv', '.cx', '.cy', '.cz', '.de', '.dj', '.dk', '.dm', '.do', '.dz', '.ec', '.ee', '.eg', '.eh', '.er', '.es', '.et', '.fi', '.fj', '.fk', '.fm', '.fo', '.fr', '.ga', '.gd', '.ge', '.gf', '.gg', '.gh', '.gi', '.gl', '.gm', '.gn', '.gp', '.gq', '.gr', '.gs', '.gt', '.gu', '.gv', '.gy', '.hk', '.hm', '.hn', '.hr', '.ht', '.hu', '.id', '.ie', '.il', '.im', '.in', '.io', '.iq', '.ir', '.is', '.it', '.je', '.jm', '.jo', '.jp', '.ke', '.kg', '.kh', '.ki', '.km', '.kn', '.kp', '.kr', '.kw', '.ky', '.kz', '.la', '.lb', '.lc', '.li', '.lk', '.lr', '.ls', '.lt', '.lu', '.lv', '.ly', '.ma', '.mc', '.md', '.me', '.mh', '.mk', '.ml', '.mm', '.mn', '.mo', '.mp', '.mq', '.mr', '.ms', '.mt', '.mu', '.mv', '.mw', '.mx', '.my', '.mz', '.na', '.nc', '.ne', '.nf', '.ng', '.ni', '.nl', '.no', '.np', '.nr', '.nu', '.nz', '.om', '.pa', '.pe', '.pf', '.pg', '.ph', '.pk', '.pl', '.pm', '.pn', '.pr', '.ps', '.pt', '.pw', '.py', '.qa', '.re', '.ro', '.rw', '.ru', '.sa', '.sb', '.sc', '.sd', '.se', '.sg', '.sh', '.si', '.sj', '.sk', '.sl', '.sm', '.sn', '.so', '.sr', '.st', '.sv', '.sy', '.sz', '.tc', '.td', '.tf', '.tg', '.th', '.tj', '.tk', '.tm', '.tn', '.to', '.tp', '.tr', '.tt', '.tv', '.tw', '.tz', '.ua', '.ug', '.uk', '.um', '.us', '.uy', '.uz', '.va', '.vc', '.ve', '.vg', '.vi', '.vn', '.vu', '.ws', '.wf', '.ye', '.yt', '.yu', '.za', '.zm', '.zw', '.mg', '.site'];function replaceUri(str, callback) {var result = '';var protocolReg = '((?:http|https|ftp)\\:\\\/\\\/)?';var ipReg = '(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])';var hostReg = '(?!@)(?:[a-z0-9-]{1,36}\\\\.)+[a-z]{2,6}';var portReg = '(?:\\\\:[0-9]{1,5})?';var pathReg = '(?:(?:/[a-zA-Z0-9.,;?\\\\\\'+&%$#=~_\\\\-!()*\\\\\/]*)?)';var uriReg = new RegExp(protocolReg + '(?:(' + ipReg + ')|(' + hostReg + '))' + portReg + pathReg, 'ig');result = str.replace(uriReg, function(uriStr, protocol, ip, host) {return callback.apply(null, arguments);});return result;}function getNum(text) {var value = text.match(/\\d+(\\.\\d+)?/g);return value;}var scroll_top=0;function show(data){buttonClick(data);try{window.webkit.messageHandlers.buttonClick.postMessage(data)}catch(error){console.log(error)}try {window.interface.sendInfoToAndroid(JSON.stringify(data));} catch (error) {console.log(error)} if (window.RCFlutterInterface && window.RCFlutterInterface.postMessage) { window.RCFlutterInterface.postMessage(JSON.stringify(data)); } if(data.type!='RC:LBSMsg'){if(data.fileUrl){window.open(data.fileUrl);};}};function buttonClick(json){};function hide(id){document.getElementsByClassName(id)[0].style.display = 'none';document.getElementsByClassName(id)[0].children[0].remove();document.getElementsByClassName('rong-main')[0].style.display='block';window.scrollTo(0,scroll_top)};function isWeb(){var browser={versions:function(){var u=navigator.userAgent,app=navigator.appVersion;return{android:u.indexOf('Android')>-1||u.indexOf('Linux')>-1,iPhone:u.indexOf('iPhone')>-1||u.indexOf('Mac')>-1,iPad:u.indexOf('iPad')>-1,}}()};if(browser.versions.android||browser.versions.iPhone||browser.versions.iPad){return false}else{return true}};function showBig(type,url){document.getElementsByClassName('rong-big-'+type)[0].style.display='block';scroll_top=getScrollTop();event.currentTarget.name=new Date().getTime();var imgNode=document.createElement(type);imgNode.src=url;imgNode.id=event.currentTarget.name;if(type=='video'){imgNode['x-webkit-airplay']='true';imgNode['webkit-playsinline']='true';imgNode.autoplay='autoplay';imgNode.controls='controls';}document.getElementsByClassName('rong-big-'+type)[0].name=event.currentTarget.name;document.getElementsByClassName('rong-big-'+type)[0].append(imgNode);document.getElementsByClassName('rong-main')[0].style.display='none'}function getScrollTop(){var scroll_top=0;if(document.documentElement&&document.documentElement.scrollTop){scroll_top=document.documentElement.scrollTop}else if(document.body){scroll_top=document.body.scrollTop}return scroll_top}var os = function (){var ua = navigator.userAgent,isWindowsPhone = /(?:Windows Phone)/.test(ua),isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone,isAndroid = /(?:Android)/.test(ua),isPhone = /(?:iPhone)/.test(ua) && !isTablet,isPc = !isPhone && !isAndroid && !isSymbian;return {isPc: isPc};}();if(os.isPc) {document.getElementsByClassName('rong-main')[0].classList.add('rong-pc')}</script></body></html>",
- "time":"<div class='rong-time' name='timeTemplate'><div class='rong-hr'></div><span class='rong-time-value'>{%time%}</span></div>",
- "CombineMsgBody":"<div><span class='rong-combin-body-text'>{%text%}</span></div>",
- "RC:TxtMsg":"<div class='rong-message {%showUser%}'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:TxtMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rongcloud-message-text'><pre class='rongcloud-message-entry'>{%text%}</pre></div></div></div></div>",
- "RC:SightMsg":"<div class='rong-message {%showUser%}' onClick='show({fileUrl:\"{%fileUrl%}\",duration:\"{%duration%}\",imageBase64:\"{%imageBase64%}\",type:\"RC:SightMsg\"})'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:SightMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rong-message-file'><img class='rong-message-user-bg' src='http://rongcloud-image.ronghub.com/339f9d4b93be27e26d.png?e=2147483647&token=livk5rb3__JZjCtEiMxXpQ8QscLxbNLehwhHySnX:YFPYsabMCGqTxLoTYSqaKPMBPeI=' /></div><div class='rong-message-file'><div>{%fileName%}</div><div>{%size%}</div></div></div></div></div>",
- "RC:ImgMsg":"<div class='rong-message {%showUser%}'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:ImgMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rongcloud-message-img' onClick='show({imgUrl:\"{%imgUrl%}\",fileUrl:\"{%fileUrl%}\",type:\"RC:ImgMsg\"})'><img src='{%imgUrl%}'></div></div></div></div>",
- "RC:CombineMsg":"<div class='rong-message {%showUser%}' onClick='show({fileUrl:\"{%fileUrl%}\",title:\"{%title%}\",type:\"RC:CombineMsg\"})'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:CombineMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rong-message-combine' ><div class='rong-combine-title'>{%title%}</div><div class='rong-combine-body'>{%combineBody%}</div><div class='rong-conbine-foot'>{%foot%}</div></div></div></div></div>",
- "RC:FileMsg":" <div class='rong-message {%showUser%}' onClick='show({fileName:\"{%fileName%}\",fileType:\"{%fileType%}\",fileUrl:\"{%fileUrl%}\",fileSize:\"{%fileSize%}\",type:\"RC:FileMsg\"})'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg'/></div><div class='rongcloud-message-body'><div name='RC:FileMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rong-message-file' ><img class='rong-message-user-bg' src='{%fileIcon%}' /></div><div class='rong-message-file'><div>{%fileName%}</div><div>{%size%}</div></div></div></div></div>",
- "RC:VcMsg":"<div class='rong-message {%showUser%}'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:VcMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rongcloud-message-text'><pre class='rongcloud-message-entry'>{%text%}</pre></div></div></div></div>",
- "RC:CardMsg":"<div class='rong-message {%showUser%}'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:CardMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rongcloud-message-text'><pre class='rongcloud-message-entry'>{%text%}</pre></div></div></div></div>",
- "RC:StkMsg":"<div class='rong-message {%showUser%}'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:StkMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rongcloud-message-text'><pre class='rongcloud-message-entry'>{%text%}</pre></div></div></div></div>",
- "RC:ImgTextMsg":"<div class='rong-message {%showUser%}'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:ImgTextMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rongcloud-message-text'><pre class='rongcloud-message-entry'>{%text%}</pre></div></div></div></div>",
- "RC:LBSMsg":"<div class='rong-message {%showUser%}' onclick='show({locationName:\"{%locationName%}\",latitude:\"{%latitude%}\",longitude:\"{%longitude%}\",type:\"RC:LBSMsg\"})'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg'></div><div class='rongcloud-message-body'><div name='RC:LBSMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rong-message-file' ><img class='rong-message-user-bg' src='http://rongcloud-image.ronghub.com/0c7f794d6a8a6c0bf4.png?e=2147483647&token=CddrKW5AbOMQaDRwc3ReDNvo3-sL_SO1fSUBKV3H:OwdFMwNz7jpMve0svCkvmlh9AiI='></div><div class='rong-message-file'><div>{%locationName%}</div></div></div></div></div>",
- "RC:GIFMsg":"<div class='rong-message {%showUser%}'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:ImgMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rongcloud-message-img' onClick='show({imgUrl:\"{%imgUrl%}\",fileUrl:\"{%fileUrl%}\",type:\"RC:ImgMsg\"})'><img src='{%imgUrl%}'></div></div></div></div>",
- "RCJrmf:RpMsg":"<div class='rong-message {%showUser%}'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RCJrmf:RpMsg'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rongcloud-message-text'><pre class='rongcloud-message-entry'>{%text%}</pre></div></div></div></div>",
- "RC:VCSummary":"<div class='rong-message {%showUser%}'><div class='rong-message-user rong-none-user-img'><img src='{%portrait%}' class='rong-message-user-bg' /></div><div class='rongcloud-message-body'><div name='RC:VCSummary'><div class='rongcloud-message-user-name'><span name='userName'>{%userName%}</span><span class='rong-message-time' name='sendTime'>{%sendTime%}</span></div><div class='rongcloud-message-text'><pre class='rongcloud-message-entry'>{%text%}</pre></div></div></div></div>"
- }
|