"use strict";(self["webpackChunkyjk"]=self["webpackChunkyjk"]||[]).push([[340],{4013:function(e,t,n){n.d(t,{p:function(){return b}});var o=n(8741),r=n(653),i=n(859),s=n(3947);const a="https://res.wx.qq.com/open/js/jweixin-1.6.0.js",c=o.o.getConfig("server_path")+"user/wx/jsapi_sign",l=/micromessenger/i.test(navigator.userAgent),u=/miniProgram/i.test(navigator.userAgent),d=location.origin.length>12&&location.origin.indexOf("192.168")<0&&l,p=window;function g(e,t=1e5){const n=document.createElement("script"),o=document.getElementsByTagName("head")[0];n.type="text/javascript",n.src=e;const i=(0,r.N)();return n.addEventListener("load",(function(){i.resolve("")}),!1),setTimeout((()=>{i.reject("timeout")}),t),o.appendChild(n),i.promise}function h(){return p.wx?r.N.when(p.wx):g(a).then((()=>p.wx))}let m;function f(){if(!d)return r.N.reject("not wx");if(m)return r.N.when(m);const e=m=(0,r.N)();return r.N.when(p.wx||h()).then((t=>{const n=encodeURIComponent(location.href.split("#")[0]),r=o.o.getConfig("app_wx");i.t.post(c,{name:r.name,url:n}).then((n=>{const o=n.data.config;if(!o)return e.reject("config error!"),void(m=void 0);t.config({debug:!1,appId:o.appId,timestamp:o.timestamp,nonceStr:o.nonceStr,signature:o.signature,jsApiList:["updateTimelineShareData","updateAppMessageShareData","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","startRecord","stopRecord","onVoiceRecordEnd","playVoice","pauseVoice","stopVoice","onVoicePlayEnd","uploadVoice","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","translateVoice","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","closeWindow","scanQRCode","chooseWXPay"]}),t.ready((function(){m=t,e.resolve(t)})),t.error((function(t){console.error("JSSDK失败",t),e.reject("JSSDK失败"),m=void 0}))})).catch((t=>{e.reject({text:"getWjSign error!",e:t}),m=void 0}))})),e.promise}function w(e,t){const n=(0,r.N)(),o={success:e=>n.resolve(e),fail:e=>n.reject(e)};return f().then((n=>{t=s.ng.extend({},o,t),n[e](t)})),n.promise}function x(e){const t=o.o.getConfig("wx_share");return e=s.ng.extend({},t,e),e.shareTitle=e.shareTitle||e.title,f().then((t=>v(t,e)))}function v(e,t){if(u&&e.miniProgram){let n=location.hash;if(t.link){const e=t.link.split("#");n=e[e.length-1],"#"==n[0]&&(n=n.substring(1))}return e.miniProgram.postMessage({data:{type:"微信分享",data:{title:t.shareTitle,desc:t.desc,imageUrl:t.imgUrl,path:n}}})}const n=w("updateAppMessageShareData",{title:t.title,desc:t.desc,link:t.link,imgUrl:t.imgUrl}),o=w("updateTimelineShareData",{title:t.shareTitle,link:t.link,imgUrl:t.imgUrl});return r.N.all([n,o])}function S(){return w("getLocation",{type:"gcj02"}).then((e=>{const t=e.resultStr;return t}))}function j(){const e={needResult:1,scanType:["qrCode","barCode"]};return w("scanQRCode",e).then((e=>{const t=e.latitude,n=e.longitude,o=e.speed,r=e.accuracy;return{lat:t,lng:n,speed:o,accuracy:r}}))}function y(e,t=0){return w("previewImage",{urls:e,current:e[t]})}const b={initWx:f,setShare:x,get_wx_pos:S,QrCode:j,preview:y}},340:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var o=n(3396);const r={class:"flex-v flex-1 flex-stretch"},i={class:"flex-v flex-1 flex-stretch v-scroll"},s={class:"flex-v flex-1 flex-stretch"},a={class:"pb-2"};function c(e,t,n,c,l,u){const d=(0,o.up)("TianJiaHeaderMobile"),p=(0,o.up)("MobileCloundList"),g=(0,o.up)("HomeQrcodes"),h=(0,o.up)("CopyRight");return(0,o.wg)(),(0,o.iD)("div",r,[(0,o.Wm)(d,{class:"flex bb-ccc"}),(0,o._)("div",i,[(0,o._)("div",s,[(0,o._)("div",a,[(0,o.Wm)(p,{ismine:!0,css:"preview-row"})]),(0,o.Wm)(g,{class:"flex flex-around bt-ccc h12"})])]),(0,o.Wm)(h,{class:"h12 py-2 bt-ccc"})])}var l=n(3136),u=n(8741),d=n(4013),p=(0,o.aZ)({name:"MobileHome",setup(){const e=l.O.user;return e.heartbeat(0),u.o.isWx&&d.p.setShare({title:"天加快模：在手机上也能快速全面审核盈建科结构模型",desc:"天加快模是天加建筑推出的能在手机、电脑中查看盈建科模型的软件系统",link:location.origin+location.pathname+""}),{}}}),g=n(89);const h=(0,g.Z)(p,[["render",c],["__scopeId","data-v-7a9cf5e4"]]);var m=h}}]);