(function(e){function t(t){for(var a,o,c=t[0],u=t[1],d=t[2],s=0,l=[];s>>接口请求出错,请联系管理员"})}))}else e({code:200})}))},outLogin:function(e,t){e.commit;var n=e.state;return new Promise((function(e,t){var a=c["Loading"].service({lock:!0,text:"正在退出登录...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),o={str:n.token};Object(i["D"])(o).then((function(t){0==t.data.code?e({code:200,data:t.data.data}):e({code:401,msg:t.data.msg}),a.close()})).catch((function(e){t({error:">>>接口请求出错,请联系管理员"})}))}))}}})},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("d3b7"),n("159b"),n("b64b");var a=n("2b0e"),o=n("5c96"),r=n.n(o),i=(n("0fae"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view"),e.fileurl?n("audio",{ref:"audio",staticStyle:{display:"none"},attrs:{src:e.fileurl,controls:"controls",id:"myaudio"}}):e._e(),(e.switchRecord,e._e()),1==e.switchRecord?n("div",{staticClass:"recordAudio",on:{click:e.myrecording}},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.RecordingSwitch,expression:"!RecordingSwitch"}],staticClass:"bc6C55FE",attrs:{type:"primary",loading:e.uloading,disabled:e.uloading,round:""}},[e._v("开 始")]),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.RecordingSwitch,expression:"RecordingSwitch"}],attrs:{type:"danger",loading:e.oloading,disabled:e.oloading,round:""}},[e._v("结 束")])],1):e._e()],1)}),c=[],u=n("5530");n("ac1f"),n("00b4"),n("5319"),n("b0c0"),n("3ca3"),n("ddb0"),n("2b3d"),n("9861"),n("a15b"),n("cfc3"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("c19f"),n("25f0");window.URL=window.URL||window.webkitURL,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;var d=function(e,t){t=t||{},t.sampleBits=t.sampleBits||128,t.sampleRate=t.sampleRate||44100;var n=new(window.webkitAudioContext||window.AudioContext),a=n.createMediaStreamSource(e),o=n.createScriptProcessor||n.createJavaScriptNode,r=o.apply(n,[4096,1,1]),i={size:0,buffer:[],inputSampleRate:n.sampleRate,inputSampleBits:16,outputSampleRate:t.sampleRate,oututSampleBits:t.sampleBits,input:function(e){this.buffer.push(new Float32Array(e)),this.size+=e.length},compress:function(){for(var e=new Float32Array(this.size),t=0,n=0;n2&&/MacIntel/.test(navigator.platform),t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return e||t}}),watch:{isNoperate:{handler:function(e){var t=this;e&&(window.outTimer&&clearTimeout(window.outTimer),this.$confirm("长时间未操作,请确认是否继续使用!","信息提示",{confirmButtonText:"退出登录",cancelButtonText:"继续使用",type:"warning"}).then((function(){t.askOutlognFun()})).catch((function(){window.outTimer=setTimeout((function(){clearTimeout(window.outTimer),t.setNoperate(!0)}),18e5),t.setNoperate(!1)})))},immediate:!0}},created:function(){var e=this.getQueryStringArgs(location.href);e.token&&this.setToken(e.token),this.setRecordTime()},mounted:function(){var e=new(window.AudioContext||window.webkitAudioContext);g=new f.a(e)},methods:Object(u["a"])(Object(u["a"])(Object(u["a"])({},Object(l["c"])(["setToken","setRecordArr","setRecordArrEmpty","setNoperate","setRecordTime","clearTimer"])),Object(l["b"])(["setRequestRecord","outLogin"])),{},{getQueryStringArgs:function(e){e=null==e?window.location.href:e;var t=e.substring(e.lastIndexOf("?")+1),n={},a=/([^?&=]+)=([^?&=]*)/g;return t.replace(a,(function(e,t,a){var o=decodeURIComponent(t),r=decodeURIComponent(a);return r=String(r),n[o]=r,e})),n},askOutlognFun:function(){var e=this;this.RecordingSwitch?this.isMobileDevices?(this.timer&&clearInterval(this.timer),this.setRecordArr(this.timeNumber),this.stopRecording()):(this.timer&&clearInterval(this.timer),this.loading=this.$loading({lock:!0,text:"正在提交音频数据...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),this.setRecordArr(this.timeNumber),this.End(),this.RecordingSwitch=!1):this.setRequestRecord().then((function(t){200==t.code?e.outLogin().then((function(t){200==t.code&&(p["a"].cookies.remove("smartToken"),localStorage.clear(),sessionStorage.clear(),window.location.replace("https://"+window.location.host+window.location.pathname+"#/home?token="+t.data),"home"===e.$route.name&&window.location.reload())})):401==t.code&&e.$message.error(t.msg)}))},myrecording:function(){var e=this;this.$store.state.bindflag&&"0"!=this.$store.state.bindflag?this.isMobileDevices?this.RecordingSwitch?(this.timer&&clearInterval(this.timer),this.setRecordArr(this.timeNumber),this.stopRecording()):(this.timer=setInterval((function(){e.timeNumber++}),1e3),this.uloading=!0,this.getUserMedia()):(this.RecordingSwitch?(this.timer&&clearInterval(this.timer),this.loading=this.$loading({lock:!0,text:"正在提交音频数据...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),this.setRecordArr(this.timeNumber),this.End()):(this.timer=setInterval((function(){e.timeNumber++}),1e3),this.Start()),this.RecordingSwitch=!this.RecordingSwitch):this.$children[0].setcodetap()},getUserMedia:function(){var e=this,t=(navigator.mediaDevices?navigator.mediaDevices.getUserMedia:null)||navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;t?navigator.mediaDevices.getUserMedia({audio:!0}).then((function(t){g.init(t),setTimeout((function(){g.start().then((function(){e.RecordingSwitch=!0,e.uloading=!1}))}),300)})).catch((function(t){e.uloading=!1,console.error("Error accessing microphone:",t)})):(this.RecordingSwitch=!1,this.$message.error("当前浏览器不支持录音"))},stopRecording:function(){var e=this;this.oloading=!0,g.stop().then((function(t){var n=t.blob;t.buffer;e.RecordingSwitch=!1;var a=new File([n],"recording.mp3",{type:"audio/mp3;codecs=opus",lastModified:Date.now()});e.loading=e.$loading({lock:!0,text:"正在提交音频数据...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),e.fileurl=URL.createObjectURL(a),e.uploadAudioFile(a)}))},Start:function(){var e=this;s.get((function(t){t&&(e.recorder=t,e.recorder.start())}))},End:function(){var e=this;if(this.recorder){this.recorder.stop();var t=this.recorder.getBlob(),n=new File([t],"recording.mp3",{type:"audio/mp3;codecs=opus",lastModified:Date.now()});this.files=n;var a=URL.createObjectURL(n);this.fileurl=a;var o=new Audio(a);o.addEventListener("loadedmetadata",(function(t){o.duration,e.uploadAudioFile(n)}))}},uploadAudioFile:function(e){var t=this;this.uploadALY(e).then((function(e){var n=new FormData;n.append("file",e),n.append("token",t.token),n.append("time",t.recordArr.join(",")),Object(h["B"])(n).then((function(e){if(0==e.data.code){t.oloading=!1,t.setRecordArrEmpty([]),t.clearTimer(),t.loading.close(),t.$message({message:"已成功提交",type:"success"});var n=setTimeout((function(){clearTimeout(n),t.outloginFun()}),1e3)}else t.loading.close(),t.$message({message:e.data.msg,type:"error"})})).catch((function(e){t.loading.close(),t.$message({message:"音频提交失败!",type:"error"})}))}))},uploadALY:function(e){var t=this;return new Promise((function(n,a){var o=new OSS({region:"oss-cn-hangzhou",accessKeyId:"LTAI5tHjWupJSCAycy2yVbQZ",accessKeySecret:"eNFicm77Cfq3u7ZnQyw1urFmFNpf3w",bucket:"zyzswzh",secure:!0}),r=new Date,i=r.getFullYear()+""+(1*r.getMonth()+1)+r.getDate();t.fileName="dashboard/"+i+"/"+Date.now()+".mp3",o.multipartUpload(t.fileName,e).then((function(e){n(e.name)})).catch((function(e){a(e)}))}))},outloginFun:function(){var e=this;this.outLogin().then((function(t){200==t.code&&(p["a"].cookies.remove("smartToken"),localStorage.clear(),sessionStorage.clear(),window.location.replace("https://"+window.location.host+window.location.pathname+"#/home?token="+t.data),"home"===e.$route.name&&window.location.reload())}))}})},k=b,w=(n("034f"),n("af8e"),n("2877")),v=Object(w["a"])(k,i,c,!1,null,"8ff072a8",null),y=v.exports,S=n("8c4f"),A=n("4360"),R=n("323e"),x=n.n(R);n("a5d8");a["default"].use(S["a"]);var E=null,O=[{path:"/",redirect:"home"},{path:"/home",name:"home",component:function(){return n.e("chunk-9dde97e6").then(n.bind(null,"f391"))},meta:{title:"智慧屏-首页",auth:!1,index:0,keep:!0}},{redirect:"/index/company",path:"/index",name:"index",component:function(){return n.e("chunk-08050d0a").then(n.bind(null,"06ab"))},meta:{title:"智慧屏",auth:!1},children:[{path:"/index/company",name:"company",component:function(){return n.e("chunk-f023c980").then(n.bind(null,"2136"))},meta:{title:"智慧屏-公司简介",auth:!1,index:1,module:"introduce",keep:!0}},{path:"/index/modelAdvantages",name:"modelAdvantages",component:function(){return n.e("chunk-36b911c0").then(n.bind(null,"6f4b"))},meta:{title:"智慧屏-模式优势",auth:!1,index:2,module:"pattern",keep:!0}},{path:"/index/boutiqueDesign",name:"boutiqueDesign",component:function(){return n.e("chunk-881c2bbc").then(n.bind(null,"0db3"))},meta:{title:"智慧屏-精品设计",auth:!1,index:3,module:"boutique",keep:!0}},{path:"/index/platinumEngineering",name:"platinumEngineering",component:function(){return n.e("chunk-4ae71590").then(n.bind(null,"8130"))},meta:{title:"智慧屏-铂金工程",auth:!1,index:4,module:"platinum",keep:!0}},{path:"/index/materials",name:"materials",component:function(){return n.e("chunk-a59405ca").then(n.bind(null,"8cc3"))},meta:{title:"智慧屏-大牌材料",auth:!1,index:5,module:"science",keep:!0}},{path:"/index/softDecoration",name:"softDecoration",component:function(){return n.e("chunk-124fa9c2").then(n.bind(null,"f02e"))},meta:{title:"智慧屏-大牌软装",auth:!1,index:6,module:"major",keep:!0}},{path:"/index/customized",name:"customized",component:function(){return n.e("chunk-2c0d6c1e").then(n.bind(null,"23ac"))},meta:{title:"智慧屏-定制家具",auth:!1,index:7,module:"customized",keep:!0}},{path:"/index/modelHouses",name:"modelHouses",component:function(){return n.e("chunk-617596b6").then(n.bind(null,"8a0e"))},meta:{title:"智慧屏-实景样板房",auth:!1,index:8,module:"realistic",keep:!0}},{path:"/index/publicPraise",name:"publicPraise",component:function(){return n.e("chunk-4ff4a214").then(n.bind(null,"13a0"))},meta:{title:"智慧屏-口碑及服务",auth:!1,index:9,module:"praise",keep:!0}},{path:"/index/effect",name:"effect",component:function(){return n.e("chunk-2136ea2a").then(n.bind(null,"1b67"))},meta:{title:"智慧屏-效果图",auth:!1,index:10,module:"praise",keep:!0}},{path:"/index/realview",name:"realview",component:function(){return n.e("chunk-8255aba2").then(n.bind(null,"aea2"))},meta:{title:"智慧屏-实景图",auth:!1,index:11,module:"praise",keep:!0}},{path:"/index/casedetail",name:"casedetail",component:function(){return n.e("chunk-49b5958e").then(n.bind(null,"f06f"))},meta:{title:"智慧屏-案例详情",auth:!1,index:12,keep:!1}},{path:"/index/articledetail",name:"articledetail",component:function(){return n.e("chunk-e38868b0").then(n.bind(null,"6dd5"))},meta:{title:"智慧屏-图文详情",auth:!1,index:13,keep:!1}},{path:"/index/videodetail",name:"videodetail",component:function(){return n.e("chunk-d361de44").then(n.bind(null,"1fdc"))},meta:{title:"智慧屏-视频详情",auth:!1,index:14,keep:!1}},{path:"/index/vrdetail",name:"vrdetail",component:function(){return n.e("chunk-d8ce739e").then(n.bind(null,"0f837"))},meta:{title:"智慧屏-VR详情",auth:!1,index:15,keep:!1}},{path:"/index/pdfDetail",name:"pdfDetail",component:function(){return n.e("chunk-3808e5e0").then(n.bind(null,"4155"))},meta:{title:"智慧屏-PDF详情",auth:!1,index:16,keep:!1}},{path:"/index/calcquote",name:"calcquote",component:function(){return n.e("chunk-b326df62").then(n.bind(null,"cdf7"))},meta:{title:"智慧屏-计算报价",auth:!1,index:17,keep:!1}},{path:"/index/construction",name:"construction",component:function(){return n.e("chunk-03ac0c0b").then(n.bind(null,"f688"))},meta:{title:"智慧屏-在施工地",auth:!1,index:18,keep:!1}},{path:"/index/inventory",name:"inventory",component:function(){return n.e("chunk-1aaf262b").then(n.bind(null,"e610"))},meta:{title:"智慧屏-报价清单",auth:!1,index:19,keep:!1}},{path:"/index/designer",name:"designer",component:function(){return n.e("chunk-4a65a124").then(n.bind(null,"c6d5"))},meta:{title:"智慧屏-设计师介绍",auth:!1,index:20,keep:!0}},{path:"/index/worksDetail",name:"worksDetail",component:function(){return n.e("chunk-4abb1e16").then(n.bind(null,"5d15"))},meta:{title:"智慧屏-作品集详情",auth:!1,index:21,keep:!1}},{path:"/index/programme",name:"programme",component:function(){return n.e("chunk-90e590ec").then(n.bind(null,"7af6"))},meta:{title:"智慧屏-方案资料",auth:!1,index:24,keep:!1}},{path:"/index/viewpdf",name:"viewpdf",component:function(){return n.e("chunk-65a2c9bd").then(n.bind(null,"1126"))},meta:{title:"智慧屏-方案资料PDF",auth:!1,index:25,keep:!1}}]},{redirect:"/setting/projectsetting",path:"/setting",name:"setting",component:function(){return n.e("chunk-b64c6542").then(n.bind(null,"f6ce"))},meta:{title:"智慧屏",auth:!1},children:[{path:"/setting/projectsetting",name:"projectsetting",component:function(){return n.e("chunk-730ea89b").then(n.bind(null,"e652"))},meta:{title:"智慧屏-方案资料设置",auth:!1,index:55,keep:!1}},{path:"/setting/workSetting",name:"workSetting",component:function(){return n.e("chunk-39aa058f").then(n.bind(null,"adaa"))},meta:{title:"智慧屏-作品集设置",auth:!1,index:56,keep:!1}},{path:"/setting/information",name:"information",component:function(){return n.e("chunk-0bf52100").then(n.bind(null,"eaae"))},meta:{title:"智慧屏-内部资料",auth:!1,index:57,keep:!1}}]},{path:"*",component:function(){return n.e("chunk-65e38907").then(n.bind(null,"1ec6"))},meta:{title:"404页面",auth:!1}}],T=new S["a"]({mode:"hash",base:"smartscreen/",routes:O});T.beforeEach((function(e,t,n){A["a"].state.token&&(E&&clearTimeout(E),window.outTimer&&clearTimeout(window.outTimer),E=setTimeout((function(){clearTimeout(E),A["a"].commit("setNoperate",!0)}),18e5)),A["a"].state.configObj&&A["a"].state.configObj[e.meta.module]?p["a"].title("智慧屏-".concat(A["a"].state.configObj[e.meta.module].title)):p["a"].title(e.meta.title),x.a.start(),n(!0)})),T.afterEach((function(e){x.a.done()}));var N=T;function I(e){var t=[];Object.keys(e).forEach((function(n){t.push(e[n])})),A["a"].commit("setAsideArr",t)}a["default"].use(r.a),a["default"].config.productionTip=!1,new a["default"]({router:N,store:A["a"],render:function(e){return e(y)},mounted:function(){Object(h["q"])({}).then((function(e){0==e.data.code&&(A["a"].commit("setSwitchRecord",e.data.switch),I(e.data.data))}))}}).$mount("#app")},"85ec":function(e,t,n){},af8e:function(e,t,n){"use strict";n("04a1")},f1ed:function(e,t,n){"use strict";n("99af");var a=n("a78e"),o=n.n(a),r={set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a={expires:1};Object.assign(a,n),o.a.set("xqadmin-".concat("1.0.1","-").concat(e),t,a)},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return o.a.get("xqadmin-".concat("1.0.1","-").concat(e))},getAll:function(){return o.a.get()},remove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return o.a.remove("xqadmin-".concat("1.0.1","-").concat(e))}},i=r,c=n("4360"),u={cookies:i,title:function(e){var t="雪鹊";window.document.title="".concat(c["a"].state.companyName?c["a"].state.companyName:t).concat(e?" | ".concat(e):"")},open:function(e){var t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("target","_blank"),t.setAttribute("id","xqadmin-link-temp"),document.body.appendChild(t),t.click(),document.body.removeChild(document.getElementById("xqadmin-link-temp"))}};t["a"]=u}});