2.翻译比常用软件更值得信赖
3.界面清新不压抑
4.识别智能还能跨页
5.可以做笔记很方便
6.电脑端和平板端实时同步很赞
"},{avatar:"./static/images/index/comment_6.png",nickname:"谷粒多",job:"在读研究生",comment:"一直在跟学弟学妹推荐小绿鲸!能够边阅读文献边做文献标注(笔记还能切换成思维导图的模式!)电脑平板笔记是同步的,有时不想看电脑了,拿出平板可以直接用笔写笔记,而且可以直接写在论文上,手写笔记党福音!每天坚持学习还能领网盘奖励,非常有成就感!
"},{avatar:"./static/images/index/comment_7.png",nickname:"Chen",job:"博士在读",comment:"作为一名医学生,以前每次都要找各种翻译工具和专业词汇表。像某云那些国外阅读软件,页面和操作逻辑都很不舒适,对国内科研人员没那么友好。直到遇到小绿鲸,不仅能划词翻译,翻译精准,还能高效管理文献。希望国内的科研产品开发团队都能像小绿鲸一样,从我们的需求出发。祝小绿鲸越来越好~
"},{avatar:"./static/images/index/comment_8.png",nickname:"L",job:"研究生",comment:"朋友圈看到了导师推荐小绿鲸,下载之后发现软件页面简洁美观,这就是我想找的那款工具,有准确的划词翻译、丰富的笔记模板、AI解析文献功能等等。如今在小绿鲸的帮助下,已经发了2篇顶刊了,大大提升了我的学习效率。推荐大家使用小绿鲸,祝我们paper发到手软!
"}],registerImg:""}},computed:{grade(){if("学生"===this.ruleForm.career.itemName&&this.ruleForm.education&&this.ruleForm.education.itemName){return this.common_info.grade.find((e=>e.itemName===this.ruleForm.education.itemName)).children||[]}return[]}},watch:{registerMask:e=>{e?document.body.classList.add("noScroll"):document.body.classList.remove("noScroll")},showEntryVideo:e=>{if(e){const e=document.querySelector(".entry-videos");e.loop=!1,e.load()}}},created(){getCdnDomain().then((e=>{this.cdnDomain=e.data.data,getPadConfig().then((e=>{this.downloadWindows=this.cdnDomain+"download/xiaolvjing_downloader_setup_2.4.6.exe",this.downloadMac=this.cdnDomain+"download/%E5%B0%8F%E7%BB%BF%E9%B2%B8%E8%8B%B1%E6%96%87%E6%96%87%E7%8C%AE%E9%98%85%E8%AF%BB%E5%99%A8-2.4.6.dmg",e.data.data&&(this.downloadIosPad=e.data.data.iosDownload,this.downloadAndroidPad=e.data.data.androidDownload,this.downloadIosPadQrcode=e.data.data.iosUrl,this.downloadAndroidPadQrcode=e.data.data.androidUrl)}))}))},mounted:function(){this.canvas=document.getElementById("entryCanvas"),this.ctx=this.canvas.getContext("2d"),this.getInviteCode(),this._initTops(),this.timerh2(),this.timerh3(),this.timerh4(),this.testMac(),this.$refs.bannerVideo.disablePictureInPicture=!0,this.channelRecord(),this.initNavfirstSwiper(),this.initCommentSwiper(),this.getRegistNumImg()},methods:{downloadFn(e){downloadAction(),"windows"!==e?"mac"!==e?"iosPad"!==e?"androidPad"!==e||(window.location.href=this.downloadAndroidPad):window.location.href=this.downloadIosPad:window.location.href=this.downloadMac:window.location.href=this.downloadWindows},getInviteCode(){this.channelCode&&axios.post("/whale/api/activity/manage/getChannelReward","unique="+this.channelCode).then((e=>{0===e.data.code&&(this.ruleForm.reg_code=e.data.data.code,this.channel=e.data.data,$(".channelMask").show())})),this.actRegCode&&axios.get("/whale/api/activity/manage/getUserByCode?code="+this.actRegCode).then((e=>{e.data.data&&(this.actRegCodeUserName=e.data.data,$(".actRegCodeMask").show())}))},dotitles(e){this.titleIndex=e,this.isScrolling=!0,window.scrollTo(1e3,this.tops[e]),setTimeout((()=>{this.isScrolling=!1}),300)},dotab(e){if(this.tabIndex=e,2==e){this.swiper=null;var t=this;this.$nextTick((()=>{this.swiper=new Swiper(".mySwiper",{spaceBetween:30,loop:!0,centeredSlides:!0,autoplay:{delay:2500,disableOnInteraction:!1},direction:"vertical",pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{slideChangeTransitionEnd:function(){8==this.activeIndex?t.tabIndex5=0:t.tabIndex5=this.activeIndex-1}}})}))}},dotab2(e){this.tabIndex2=e},dotab3(e){this.tabIndex3=e},dotab4(e){this.tabIndex4=e},dotabAnalysis(e){this.tabIndexAnalysis=e},dotabPPT(e){this.tabIndexPPT=e,0===e&&document.querySelector(".ppt_left_video").play()},_initTops(){let e=document.getElementById("headercont").clientHeight;this.headerh=e;let t=[],i=document.getElementById("headercont").offsetTop+e;[...document.querySelectorAll(".video-text-box")].forEach(((e,a)=>{0!==a&&(i+=e.clientHeight),t.push(i)})),this.tops=t},lazyload(){if(console.log(this.titleIndex),this.isScrolling)return;let e=document.querySelectorAll(".video-text-box"),t=document.documentElement.scrollTop||document.body.scrollTop,i=[];for(let a=0;a{e.call(this),i=null}),t))}},timerh2(){this.timer&&clearInterval(this.timer),this.timer=setInterval((()=>{1==this.tabIndex2?this.tabIndex2=0:this.tabIndex2++}),4500)},timerh3(){this.timer3&&clearInterval(this.timer3),this.timer=setInterval((()=>{2==this.tabIndex3?this.tabIndex3=0:this.tabIndex3++}),2e3)},timerh4(){this.timer4&&clearInterval(this.timer4),this.timer=setInterval((()=>{1==this.tabIndex4?this.tabIndex4=0:this.tabIndex4++}),5e3)},doswiper(e){this.tabIndex5=e,this.swiper.slideTo(e+1,100)},getCode:function(){if(/^1[0-9]{10}$/.test(this.ruleForm.tel)){var e=this;axios.post("/whale/user/info/sendSms",{tel:this.ruleForm.tel}).then((function(t){0===t.data.code?(e.nosend=0,timer=setInterval((function(){e.time-=1,e.time<=0&&(clearInterval(timer),e.time=60,e.nosend=1)}),1e3)):e.$message.error(t.data.msg)})).catch((function(e){console.log(e)}))}else this.$message.error("手机号码有误!")},educationChange(){this.ruleForm.grade=""},yijiTypeChange(e){this.ruleForm.major=void 0,this.ruleForm.subMajor=void 0,this.subjectSecondData=e.children},changeSection(e){this.ruleForm.subDepartment=void 0,this.sectionSecondList=e.children},firstMajorChange(e){this.ruleForm.subMajor=void 0,this.subjectThirdData=e.children},subjectData(){axios.get("/whale/user/item/majorTree").then((e=>{0===e.data.code&&(this.subjectList=e.data.data)}))},sectionData(){axios.get("/whale/user/item/sectionTree").then((e=>{0===e.data.code&&(this.sectionList=e.data.data)}))},selectData(){axios.get("/whale/user/item/listAllItem?noTree=1").then((e=>{0===e.data.code&&(this.common_info.career=e.data.data.careerList,this.common_info.department=e.data.data.departmentList,this.common_info.jobtitle=e.data.data.jobTitleList,this.common_info.source=e.data.data.sourceList)}))},gradeData(){axios.get("/whale/user/item/educationTree").then((e=>{0===e.data.code&&(this.common_info.grade=e.data.data,this.common_info.education=e.data.data)}))},submitForm(e){this.$refs[e].validate((e=>{if(!e)return console.log("error submit!!"),this.$message.error("您还有选项没有填写"),setTimeout((()=>{document.getElementsByClassName("is-error")[0].querySelector("input").focus()}),100),!1;axios.post("/whale/user/info/bindPhone",{tel:vm.ruleForm.tel,code:vm.ruleForm.code}).then((function(e){if(0===e.data.code)axios.post("/whale/user/register/perfect",{career:vm.ruleForm.career.id,firstDepartment:"医生"===vm.ruleForm.career.itemName?vm.ruleForm.firstDepartment.id:void 0,subDepartment:"医生"===vm.ruleForm.career.itemName?vm.ruleForm.subDepartment.id:void 0,education:vm.ruleForm.education.id,email:vm.ruleForm.email,employer:vm.ruleForm.employer,grade:"学生"===vm.ruleForm.career.itemName?vm.ruleForm.grade.id:void 0,inviteCode:vm.ruleForm.reg_code,jobtitle:"学生"!==vm.ruleForm.career.itemName?vm.ruleForm.jobtitle.id:void 0,major:vm.ruleForm.major.id,majorCategory:vm.ruleForm.majorCategory.id,nickname:vm.ruleForm.nickname,source:vm.ruleForm.source.id,subMajor:vm.ruleForm.subMajor.id,tel:vm.ruleForm.tel,channel:vm.channel}).then((e=>{0===e.data.code?(vm.registerMask=!1,$("#sidejoin").show(),$("#join").show(),$("#login").hide(),$("#sidelogin").hide(),localStorage.setItem("registDownloadGiftType","web"),goList()):vm.$message.error(e.data.msg)})).catch((function(e){vm.$message.error(e.messages),console.log(e)}));else{let t=e.data.msg;40016===e.data.code?t="请输入正确的邀请码":40017===e.data.code&&(t="您不能输入自己的邀请码"),vm.$message.error(t)}})).catch((function(e){vm.$message.error(e.messages),console.log(e)}))}))},testMac(){const e=navigator.userAgent.toLowerCase();this.isMac=/macintosh|mac os x/i.test(e)},drawCanvas(e,t,i,a){const o=this.canvas,n=this.ctx;n.clearRect(0,50,o.width,o.height),n.beginPath(),n.moveTo(t,o.height),n.bezierCurveTo(t,.6*o.height,a,.2*o.height,a,50),n.lineTo(i,50),n.bezierCurveTo(i,.2*o.height,e,.6*o.height,e,o.height),n.lineTo(t,o.height),n.fillStyle="rgba(0, 0, 0, .2)",n.fill()},clearRect(e,t,i){const a=this.canvas,o=this.ctx;"zoomout"===i?o.clearRect(0,e,a.width,t):"zoomin"===i&&o.clearRect(0,e,a.width,a.height)},scale(e,t,i,a,o,n){const s=this.canvas,r=(this.ctx,Math.abs(i-e)),d=Math.abs(a-t);let c,l,h,m,g,p,u;if(0!==r&&0!==d||(r=1,d=1),g=50,u=50,"zoomout"===o){c=i>=e&&i{if(m-h<=a-i){clearInterval(v);let e=setInterval((()=>{p<=0&&(clearInterval(e),n&&n()),this.clearRect(p,u,o),p-=u,u+=5}),16)}this.drawCanvas(e,t,h,m),h+=c,m+=l,(c<0&&h<=i||c>0&&h>=i)&&(h=i),(l<0&&m<=a||l>0&&m>=a)&&(m=a)}),16)}else if("zoomin"===o){c=i>=e&&i{if(p>=s.height){clearInterval(v);let i=setInterval((()=>{m-h>=t-e&&(clearInterval(i),n&&n()),this.drawCanvas(e,t,h,m),h+=c,m+=l}),16)}this.drawCanvas(e,t,h,m),this.clearRect(p,u,o),p+=u,u+=5}),16)}},openEntryVideo(e){"zoomin"===e&&(isMobile()||isPad())||this.openVideo(document.querySelector(".topEntey"),e)},openVideo(e,t){const i=this.canvas;this.ctx;try{if(!this.islocked){this.islocked=!0,i.width=window.innerWidth||document.documentElement.clientWidth,i.height=window.innerHeight||document.documentElement.clientHeight,i.style.top=0,i.style.zIndex=100;let a=0,o=document.body.clientWidth,n=e.offsetLeft,s=e.offsetLeft+e.offsetWidth;e.className;"zoomout"===t?(this.isTopEntry=!1,this.showEntryVideo=!1,this.scale(a,o,n,s,"zoomout",(()=>{i.style.zIndex=-1,this.islocked=!1}))):this.scale(a,o,n,s,"zoomin",(()=>{i.style.zIndex=-1,this.isTopEntry=!0,this.showEntryVideo=!0,this.islocked=!1}))}}catch{this.islocked=!1}},channelRecord(){this.channel&&axios.get("/whale/api/activity/manage/channelRecord?channel="+this.channel)},initNavfirstSwiper(){new Swiper(".navfirstSwiper",{direction:"vertical",mousewheel:{releaseOnEdges:!0},pagination:{el:".navfirstSwiper .swiper-pagination",clickable:!0},on:{slideChange:function(){document.querySelector(".navfirstSwiper").scrollIntoView({block:"end",behavior:"smooth"})}}})},initCommentSwiper(){new Swiper(".commentSwiper",{loop:!0,autoplay:{disableOnInteraction:!1},centeredSlides:!0,slidesPerView:"auto"})},getRegistNumImg(){axios.get("/whale/api/config/getInfo?name=register_img").then((e=>{0===e.data.code&&(this.registerImg=e.data.data)}))},showCodeFn(){this.showCode=!0,this.showOtherLoginTypeModal=!1},showOtherLoginTypeModalFn(){this.showCode=!1,this.showOtherLoginTypeModal=!0,this.getLoginCode()},closeOtherLoginTypeModalFn(){this.showOtherLoginTypeModal=!1,clearTimeout(this.otherLoginTypeTimer),this.otherLoginTypeTimer=null},getLoginCode(){axios.get("/whale/auth/createLoginCode",{params:{clientType:0}}).then((e=>{this.officalAccountLoginCode=e.data.data.code,this.showOtherLoginTypeModal&&(clearTimeout(this.otherLoginTypeTimer),this.otherLoginTypeTimer=null,this.otherLoginTypeTimer=setTimeout((()=>{this.getLoginCode()}),6e5))}))},refreshLoginCode(){clearTimeout(this.otherLoginTypeTimer),this.otherLoginTypeTimer=null,this.getLoginCode()}}});function showDott(e){e?$(".index-download").find("i").show():$(".index-download").find("i").hide()}function getRegisterStatus(e){if(!localStorage.getItem("token"))return showDott(!0),void $("#sidelogin").show();vm.subjectData(),vm.gradeData(),vm.selectData(),vm.sectionData(),axios.get("/whale/user/register/regStatus").then((function(t){if(0===t.data.code){const{status:i}=t.data.data;$("#status").val(i),2==i?($("#login").hide(),$("#join").show(),$("#sidejoin").show()):($("#login").show(),$("#sidelogin").show(),$("#join").hide()),e&&e(i)}})).catch((function(e){console.log(e)})),axios.get("/whale/user/info/isDownload").then((e=>{showDott(!!!e.data.data)}))}$((function(){$("video.lazy,img.lazy").lazyload({effect:"fadeIn"});sessionStorage.clear(),getRegisterStatus(),headerChange()}));var sum="",inputDoneFlag=!0;function activeCodeInputChange(e){var t=e.target.value.replace(/[\u4E00-\u9FA5]+/,"").trim();if($(".ipt-real-nick").val(t),inputDoneFlag){var i=$(".ipt-fake-box input");t||$(".ipt-active-nick").css("left",i.eq(0).offset().left-parseInt($(".ipt-box-nick").parent().css("padding-left"))+"px");for(var a=0,o=t.length;a=o&&$(this).val("")}))}}$(".ipt-real-nick").on("compositionstart",(function(){inputDoneFlag=!1})),$(".ipt-real-nick").on("compositionend",(e=>{inputDoneFlag=!0,activeCodeInputChange(e)})),$(".ipt-real-nick").on("input",activeCodeInputChange);var logininfo="";function headerChange(){$(window).on("scroll",(function(){$(document).scrollTop()>800?($(".sidebar").show(),$(".headderfixed").css({visibility:"visible",zIndex:98})):($(".sidebar").hide(),$(".headderfixed").css({visibility:"hidden",zIndex:-1}))}))}function fnregister(){var e=$("#status").val();0==e?createQrCode():1==e?vm.registerMask=!0:2==e&&goList()}function goList(){window.location.href=`${window.origin.includes("www.xljsci.com")&&window.origin.startsWith("http://")?window.origin.replace("http","https"):window.origin}/editor/`}function createQrCode(){$("#eweimaBox").removeClass("hide"),axios.get("/whale/auth/createQrc",{params:{clientType:0,lastScene:$("#scene").val()||""},headers:{"X-API-VERSION":2}}).then((e=>{if(0===e.data.code){$(".wechatMask").show(),$("#scene").val(e.data.data.scene);const t=document.createElement("img");t.src=e.data.data.qrcUrl,t.onload=()=>{$(".eweima").attr("src",e.data.data.qrcUrl),$("#eweimaBox").addClass("hide"),timer=setInterval(getStatus,1500)}}}))}function register(){var e=$("#status").val();0==e?createQrCode():2==e?vm.registerMask=!0:goList()}function reScan(){clearInterval(timer),vm.qrCodeStatus=0,createQrCode()}function getStatus(){let e;e=vm.showOtherLoginTypeModal&&vm.officalAccountLoginCode?axios.get("/whale/auth/getTokenByCode",{params:{code:vm.officalAccountLoginCode}}):axios.get("/whale/auth/getTokenByScene",{params:{scene:$("#scene").val()},headers:{"X-API-VERSION":2}}),e.then((e=>{if(0===e.data.code&&e.data.data){const{status:t,token:i}=e.data.data;if(1===t)return clearInterval(timer),vm.qrCodeStatus=1,void(vm.showOtherLoginTypeModal&&vm.officalAccountLoginCode&&(timer=setInterval(getStatus,1500)));if(2===t)return void(vm.qrCodeStatus=2);3===t&&i&&(clearInterval(timer),vm.closeOtherLoginTypeModalFn(),$(".eweima-meng").show(),localStorage.setItem("token",i),axios.defaults.headers.Authorization=localStorage.getItem("token"),vm.subjectData(),vm.gradeData(),vm.selectData(),getRegisterStatus((function(e){2===e?($("#sidejoin").show(),$("#join").show(),$("#login").hide(),$("#sidelogin").hide(),goList()):0===e||1===e&&($(".wechatMask").hide(),vm.registerMask=!0,vm.qrCodeStatus=0)})),axios.get("/whale/user/info/isDownload").then((e=>{showDott(!!!e.data.data)})))}}))}function getCode(){var e=$("#tel").val();/^1[0-9]{10}$/.test(e)?axios.post("/whale/user/info/sendSms",{tel:e}).then((function(e){if(1==e.data.code){$(".telephone").removeClass("importbtn"),$(".tip").hide();var t=60;$("#djs").show(),$("#getcode").hide(),timer=setInterval((function(){t-=1,$("#djs").html("重新获取"+t+"s"),t<=0&&(clearInterval(timer),$("#djs").html("重新获取60s"),$("#djs").hide(),$("#getcode").show())}),1e3)}else successTip(e.data.msg)})).catch((function(e){console.log(e)})):($(".telephone").addClass("importbtn"),$(".tip").show())}function submitRegist(){var e=$("#tel").val(),t=$("#code").val();axios.post("/whale/user/info/bindPhone",{tel:e,code:t}).then((function(e){1==e.data.code?($("#sidejoin").show(),$("#join").show(),$("#login").hide(),$("#sidelogin").hide(),goList()):successTip(e.data.info)})).catch((function(e){console.log(e)}))}function loginout(){try{clearInterval(timer)}catch(e){console.log(e)}localStorage.removeItem("token"),vm.registerMask=!1,vm.qrCodeStatus=0,$(".wechatMask").show(),$("#status").val(0),createQrCode()}function verification(){var e="";if($(".ipt-fake-box input").each((function(){e+=$(this).val()})),!localStorage.getItem("token"))return successTip("请先扫码登录!"),!1;6==e.length?axios.get("/whale/user/code/activate",{params:{activateCode:e}}).then((function(e){0==e.data.code?($(".wechatMask").hide(),$("#status").val(2),vm.registerMask=!0):successTip(e.data.msg)})):successTip("请输入激活码")}function closeWechat(){clearInterval(timer),$(".wechatMask").hide()}function scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}function getQueryParams(e){for(var t=window.location.search.substring(1).split("&"),i=0;i