提交 f45d4f1a 作者: 毛细亚

修改代码

上级 503379c3
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>cebianlan</title><script defer="defer" src="static/js/app.46f55481.js"></script><link href="static/css/app.3ca40e10.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but cebianlan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html> <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>cebianlan</title><script src="./js/jweixin-1.2.0.js"></script><script src="./js/jwxwork-1.0.0.js"></script><script defer="defer" src="static/js/app.23002ac1.js"></script><link href="static/css/app.3ca40e10.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but cebianlan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file \ No newline at end of file
((e,n)=>{"function"==typeof define&&(define.amd||define.cmd)?define(function(){return n(e)}):n(e,!0)})(this,function(r,e){var a,c,n,i,t,s,d,o,l,u,p,f,m,g,h,S,y,I,_,w,v,T;if(!r.jWeixin)return a={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},c=(()=>{var e,n={};for(e in a)n[a[e]]=e;return n})(),i=(n=r.document).title,t=navigator.userAgent.toLowerCase(),f=navigator.platform.toLowerCase(),s=!(!f.match("mac")&&!f.match("win")),d=-1!=t.indexOf("wxdebugger"),o=-1!=t.indexOf("micromessenger"),l=-1!=t.indexOf("android"),u=-1!=t.indexOf("iphone")||-1!=t.indexOf("ipad"),p=(f=t.match(/micromessenger\/(\d+\.\d+\.\d+)/)||t.match(/micromessenger\/(\d+\.\d+)/))?f[1]:"",m={initStartTime:L(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},g={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:u?1:l?2:-1,clientVersion:p,url:encodeURIComponent(location.href)},h={},S={_completes:[]},y={state:0,data:{}},B(function(){m.initEndTime=L()}),I=!1,_=[],w={config:function(e){P("config",h=e);var o=!1!==h.check;B(function(){if(o)k(a.config,{verifyJsApiList:A(h.jsApiList)},(S._complete=function(e){m.preVerifyEndTime=L(),y.state=1,y.data=e},S.success=function(e){g.isPreVerifyOk=0},S.fail=function(e){S._fail?S._fail(e):y.state=-1},(t=S._completes).push(function(){var n;s||d||h.debug||p<"6.0.2"||g.systemType<0||(n=new Image,g.appId=h.appId,g.initTime=m.initEndTime-m.initStartTime,g.preVerifyTime=m.preVerifyEndTime-m.preVerifyStartTime,w.getNetworkType({isInnerInvoke:!0,success:function(e){g.networkType=e.networkType,n.src="https://open.weixin.qq.com/sdk/report?v="+g.version+"&o="+g.isPreVerifyOk+"&s="+g.systemType+"&c="+g.clientVersion+"&a="+g.appId+"&n="+g.networkType+"&i="+g.initTime+"&p="+g.preVerifyTime+"&u="+g.url}}))}),S.complete=function(e){for(var n=0,i=t.length;n<i;++n)t[n]();S._completes=[]},S)),m.preVerifyStartTime=L();else{y.state=1;for(var e=S._completes,n=0,i=e.length;n<i;++n)e[n]();S._completes=[]}var t}),h.beta&&!w.invoke&&(w.invoke=function(e,n,i){r.WeixinJSBridge&&WeixinJSBridge.invoke(e,M(n),i)},w.on=function(e,n){r.WeixinJSBridge&&WeixinJSBridge.on(e,n)})},ready:function(e){(0!=y.state||(S._completes.push(e),!o&&h.debug))&&e()},error:function(e){p<"6.0.2"||(-1==y.state?e(y.data):S._fail=e)},checkJsApi:function(e){k("checkJsApi",{jsApiList:A(e.jsApiList)},(e._complete=function(e){l&&(i=e.checkResult)&&(e.checkResult=JSON.parse(i));var n,i=e,t=i.checkResult;for(n in t){var o=c[n];o&&(t[o]=t[n],delete t[n])}},e))},onMenuShareTimeline:function(e){x(a.onMenuShareTimeline,{complete:function(){k("shareTimeline",{title:e.title||i,desc:e.title||i,img_url:e.imgUrl||"",link:e.link||location.href,type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareAppMessage:function(n){x(a.onMenuShareAppMessage,{complete:function(e){"favorite"===e.scene?k("sendAppMessage",{title:n.title||i,desc:n.desc||"",link:n.link||location.href,img_url:n.imgUrl||"",type:n.type||"link",data_url:n.dataUrl||""}):k("sendAppMessage",{title:n.title||i,desc:n.desc||"",link:n.link||location.href,img_url:n.imgUrl||"",type:n.type||"link",data_url:n.dataUrl||""},n)}},n)},onMenuShareQQ:function(e){x(a.onMenuShareQQ,{complete:function(){k("shareQQ",{title:e.title||i,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareWeibo:function(e){x(a.onMenuShareWeibo,{complete:function(){k("shareWeiboApp",{title:e.title||i,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareQZone:function(e){x(a.onMenuShareQZone,{complete:function(){k("shareQZone",{title:e.title||i,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},startRecord:function(e){k("startRecord",{},e)},stopRecord:function(e){k("stopRecord",{},e)},onVoiceRecordEnd:function(e){x("onVoiceRecordEnd",e)},playVoice:function(e){k("playVoice",{localId:e.localId},e)},pauseVoice:function(e){k("pauseVoice",{localId:e.localId},e)},stopVoice:function(e){k("stopVoice",{localId:e.localId},e)},onVoicePlayEnd:function(e){x("onVoicePlayEnd",e)},uploadVoice:function(e){k("uploadVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadVoice:function(e){k("downloadVoice",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},translateVoice:function(e){k("translateVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},chooseImage:function(e){k("chooseImage",{scene:"1|2",count:e.count||9,sizeType:e.sizeType||["original","compressed"],sourceType:e.sourceType||["album","camera"]},(e._complete=function(e){if(l){var n=e.localIds;try{n&&(e.localIds=JSON.parse(n))}catch(e){}}},e))},getLocation:function(e){},getLocation:function(e){e=e||{},k(a.getLocation,{type:e.type||"wgs84"},(e._complete=function(e){delete e.type},e))},previewImage:function(e){k(a.previewImage,{current:e.current,urls:e.urls},e)},uploadImage:function(e){k("uploadImage",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadImage:function(e){k("downloadImage",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},getLocalImgData:function(e){!1===I?(I=!0,k("getLocalImgData",{localId:e.localId},(e._complete=function(e){var n;I=!1,0<_.length&&(n=_.shift(),wx.getLocalImgData(n))},e))):_.push(e)},getNetworkType:function(e){k("getNetworkType",{},(e._complete=function(e){var n=e,e=n.errMsg,i=(n.errMsg="getNetworkType:ok",n.subtype);if(delete n.subtype,i)n.networkType=i;else{var i=e.indexOf(":"),t=e.substring(i+1);switch(t){case"wifi":case"edge":case"wwan":n.networkType=t;break;default:n.errMsg="getNetworkType:fail"}}},e))},openLocation:function(e){k("openLocation",{latitude:e.latitude,longitude:e.longitude,name:e.name||"",address:e.address||"",scale:e.scale||28,infoUrl:e.infoUrl||""},e)},hideOptionMenu:function(e){k("hideOptionMenu",{},e)},showOptionMenu:function(e){k("showOptionMenu",{},e)},closeWindow:function(e){k("closeWindow",{},e=e||{})},hideMenuItems:function(e){k("hideMenuItems",{menuList:e.menuList},e)},showMenuItems:function(e){k("showMenuItems",{menuList:e.menuList},e)},hideAllNonBaseMenuItem:function(e){k("hideAllNonBaseMenuItem",{},e)},showAllNonBaseMenuItem:function(e){k("showAllNonBaseMenuItem",{},e)},scanQRCode:function(e){k("scanQRCode",{needResult:(e=e||{}).needResult||0,scanType:e.scanType||["qrCode","barCode"]},(e._complete=function(e){var n;u&&(n=e.resultStr)&&(n=JSON.parse(n),e.resultStr=n&&n.scan_code&&n.scan_code.scan_result)},e))},openAddress:function(e){k(a.openAddress,{},(e._complete=function(e){(e=e).postalCode=e.addressPostalCode,delete e.addressPostalCode,e.provinceName=e.proviceFirstStageName,delete e.proviceFirstStageName,e.cityName=e.addressCitySecondStageName,delete e.addressCitySecondStageName,e.countryName=e.addressCountiesThirdStageName,delete e.addressCountiesThirdStageName,e.detailInfo=e.addressDetailInfo,delete e.addressDetailInfo},e))},openProductSpecificView:function(e){k(a.openProductSpecificView,{pid:e.productId,view_type:e.viewType||0,ext_info:e.extInfo},e)},addCard:function(e){for(var n=e.cardList,i=[],t=0,o=n.length;t<o;++t){var r=n[t],r={card_id:r.cardId,card_ext:r.cardExt};i.push(r)}k(a.addCard,{card_list:i},(e._complete=function(e){if(n=e.card_list){for(var n,i=0,t=(n=JSON.parse(n)).length;i<t;++i){var o=n[i];o.cardId=o.card_id,o.cardExt=o.card_ext,o.isSuccess=!!o.is_succ,delete o.card_id,delete o.card_ext,delete o.is_succ}e.cardList=n,delete e.card_list}},e))},chooseCard:function(e){k("chooseCard",{app_id:h.appId,location_id:e.shopId||"",sign_type:e.signType||"SHA1",card_id:e.cardId||"",card_type:e.cardType||"",card_sign:e.cardSign,time_stamp:e.timestamp+"",nonce_str:e.nonceStr},(e._complete=function(e){e.cardList=e.choose_card_info,delete e.choose_card_info},e))},openCard:function(e){for(var n=e.cardList,i=[],t=0,o=n.length;t<o;++t){var r=n[t],r={card_id:r.cardId,code:r.code};i.push(r)}k(a.openCard,{card_list:i},e)},consumeAndShareCard:function(e){k(a.consumeAndShareCard,{consumedCardId:e.cardId,consumedCode:e.code},e)},chooseWXPay:function(e){k(a.chooseWXPay,C(e),e)},openEnterpriseRedPacket:function(e){k(a.openEnterpriseRedPacket,C(e),e)},startSearchBeacons:function(e){k(a.startSearchBeacons,{ticket:e.ticket},e)},stopSearchBeacons:function(e){k(a.stopSearchBeacons,{},e)},onSearchBeacons:function(e){x(a.onSearchBeacons,e)},openEnterpriseChat:function(e){k("openEnterpriseChat",{useridlist:e.userIds,chatname:e.groupName},e)}},v=1,T={},n.addEventListener("error",function(e){var n,i,t;l||(t=(n=e.target).tagName,i=n.src,"IMG"!=t&&"VIDEO"!=t&&"AUDIO"!=t&&"SOURCE"!=t)||-1!=i.indexOf("wxlocalresource://")&&(e.preventDefault(),e.stopPropagation(),(t=n["wx-id"])||(t=v++,n["wx-id"]=t),T[t]||(T[t]=!0,wx.ready(function(){wx.getLocalImgData({localId:i,success:function(e){n.src=e.localData}})})))},!0),n.addEventListener("load",function(e){var n;l||(n=(e=e.target).tagName,"IMG"!=n&&"VIDEO"!=n&&"AUDIO"!=n&&"SOURCE"!=n)||(n=e["wx-id"])&&(T[n]=!1)},!0),e&&(r.wx=r.jWeixin=w),w;function k(n,e,i){r.WeixinJSBridge?WeixinJSBridge.invoke(n,M(e),function(e){V(n,e,i)}):P(n,i)}function x(n,i,t){r.WeixinJSBridge?WeixinJSBridge.on(n,function(e){t&&t.trigger&&t.trigger(e),V(n,e,i)}):P(n,t||i)}function M(e){return(e=e||{}).appId=h.appId,e.verifyAppId=h.appId,e.verifySignType="sha1",e.verifyTimestamp=h.timestamp+"",e.verifyNonceStr=h.nonceStr,e.verifySignature=h.signature,e}function C(e){return{timeStamp:e.timestamp+"",nonceStr:e.nonceStr,package:e.package,paySign:e.paySign,signType:e.signType||"SHA1"}}function V(e,n,i){"openEnterpriseChat"==e&&(n.errCode=n.err_code),delete n.err_code,delete n.err_desc,delete n.err_detail;var t=n.errMsg,e=(t||(t=n.err_msg,delete n.err_msg,t=((e,n)=>{var i,t=c[e];return t&&(e=t),t="ok",n&&(i=n.indexOf(":"),"access denied"!=(t=(t=(t=-1!=(t=-1!=(t="failed"==(t="confirm"==(t=n.substring(i+1))?"ok":t)?"fail":t).indexOf("failed_")?t.substring(7):t).indexOf("fail_")?t.substring(5):t).replace(/_/g," ")).toLowerCase())&&"no permission to execute"!=t||(t="permission denied"),""==(t="config"==e&&"function not exist"==t?"ok":t))&&(t="fail"),n=e+":"+t})(e,t),n.errMsg=t),(i=i||{})._complete&&(i._complete(n),delete i._complete),t=n.errMsg||"",h.debug&&!i.isInnerInvoke&&alert(JSON.stringify(n)),t.indexOf(":"));switch(t.substring(e+1)){case"ok":i.success&&i.success(n);break;case"cancel":i.cancel&&i.cancel(n);break;default:i.fail&&i.fail(n)}i.complete&&i.complete(n)}function A(e){if(e){for(var n=0,i=e.length;n<i;++n){var t=e[n],t=a[t];t&&(e[n]=t)}return e}}function P(e,n){var i;!h.debug||n&&n.isInnerInvoke||((i=c[e])&&(e=i),n&&n._complete&&delete n._complete,console.log('"'+e+'",',n||""))}function L(){return(new Date).getTime()}function B(e){o&&(r.WeixinJSBridge?e():n.addEventListener&&n.addEventListener("WeixinJSBridgeReady",e,!1))}});
\ No newline at end of file
!function(){var e;try{var t=null;function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function Ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ke=function(){return!!e})()}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $e(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ge(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?Ye(e):t}function Qe(e,t,n){return t=Xe(t),Ge(e,Ke()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}function Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t,n){return t&&et(e.prototype,t),n&&et(e,n),e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e,t){return rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rt(e,t)}function ot(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}function it(e,t,n){return it=Ke()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&rt(o,n.prototype),o},it.apply(null,arguments)}function at(e){var n="function"==typeof t?new t:void 0;return at=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return it(e,arguments,Xe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),rt(r,e)},at(e)}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nt(e,t,n[t])}))}return e}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var n=Object.prototype.toString;function st(e){return e&&"object"===(void 0===e?"undefined":$e(e))?"stack"in e&&"string"==typeof e.stack?lt(e):ft(e)?JSON.stringify(e):String(e):String(e)}function lt(e){var t=String(e),n=e.stack||"";return n.indexOf(t)>-1?n:"".concat(t,"\n").concat(n)}function ft(e){if(!e||"object"!==(void 0===e?"undefined":$e(e)))return!1;if("[object Object]"!==n.call(e))return!1;var t=Object.getPrototypeOf(e);return null==t||null==Object.getPrototypeOf(t)}function dt(e){var t,n,r,o,i=[],a=(r=ct({},e.bean),o=null!=(o={sessionId:(null===(t=e.bean)||void 0===t?void 0:t.sessionId)||Math.random().toString(36).slice(2)})?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ut(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})),r);function c(){n||(n=setTimeout(u,10))}function u(){if(n=void 0,0!==i.length){var t=e.from;"function"==typeof t&&(t=t()),null==t&&(t=location.origin||"".concat(location.protocol,"//").concat(location.host));var r="".concat("https://aegis.qq.com/collect","?id=").concat(e.id,"&from=").concat(t);a.aid&&(r+="&aid=".concat(encodeURIComponent(a.aid))),a.sessionId&&(r+="&sessionId=".concat(encodeURIComponent(a.sessionId))),a.uin&&(r+="&uin=".concat(encodeURIComponent(a.uin))),a.version&&(r+="&version=".concat(encodeURIComponent(a.version))),a.ext1&&(r+="&ext1=".concat(encodeURIComponent(a.ext1))),a.ext2&&(r+="&ext2=".concat(encodeURIComponent(a.ext2))),a.ext3&&(r+="&ext3=".concat(encodeURIComponent(a.ext3))),function(e,t){var n=new XMLHttpRequest;"withCredentials"in n||(n=new XDomainRequest);for(var r=[],o=t.length,i=0;i<o;i++)r.push(["msg[".concat(i,"]=").concat(encodeURIComponent(t[i].msg)),"level[".concat(i,"]=").concat(t[i].level)].join("&"));r.push("count=".concat(o)),n.open("POST",e),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.send(r.join("&"))}(r,i.reverse()),i=[]}}return{bean:a,setBean:function(e){e.sessionId&&(a.sessionId=e.sessionId),e.aid&&(a.aid=e.aid),e.uin&&(a.uin=e.uin)},info:function(e){i.unshift({level:2,msg:st(e)})},warn:function(e){i.unshift({level:2,msg:st(e)})},error:function(e){i.unshift({level:4,msg:st(e)}),c()},enqueueFlush:c,flush:u}}var r=window.encodeURIComponent;function pt(e){return e}function vt(){return Math.random().toString(36).slice(2)}var o=pt("250516-192935-335"),i=pt("wwopendata.web"),a=pt(""),c=pt(""),u=pt("mauvs8ah.Ukx0wN0K9vOFKkhLMR6IzVUdhg_jB7BTZ1mE5vr9UU6S"),s=pt("".concat(i,"@").concat(o)),l=dt({id:"bRLDot6R4Kymzz0jPO",bean:{sessionId:u,version:s}}),f=l.info,d=l.warn,p=l.error,v=l.flush,g={};function gt(e,t){ht(e,(function e(n){wt("name",e),t(n)}))}function ht(e,t){mt(g,e)||(g[e]=[]),g[e].push(t)}function wt(e,t){if(mt(g,e)){var n=g[e],r=n.indexOf(t);r>=0&&n.splice(r,1)}}function yt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(mt(g,e))if(n){var r={type:e,detail:t};g[e].forEach((function(t){try{t(r)}catch(t){console.log("[event] ".concat(e," error: ").concat(t))}}))}else yt(e,t,!0)}function mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function bt(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{return t.apply(this,r)}catch(t){St(t,e),yt("error",t)}}}e={captureException:St};var h=jt(f),w=jt(d),y=jt(p);function Ot(e){f(e),v()}function St(e,t){p("[".concat(t,"] ").concat(Et(e)))}function jt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=[],i=0,a=n.length;i<a;i++)o.push(Ct(n[i]));e(o.join(" "))}}function Ct(e){return e?"object"!==(void 0===e?"undefined":$e(e))?e:"string"==typeof e.stack?Et(e):JSON.stringify(e):e}function Et(e){return"".concat(e," ").concat(e.stack)}var m=Object.freeze({__proto__:null,captureException:St,captureMessage:Ot,error:y,log:h,warn:w,wrap:bt});function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kt(e){if(Array.isArray(e))return At(e)}function _t(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function xt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dt(e,t){if(e){if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function Mt(e){return kt(e)||_t(e)||Dt(e)||xt()}var b="[ww-open-data]";function It(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}function Pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=m).log.apply(r,Mt(t))}function Tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=m).warn.apply(r,Mt(t))}function Rt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=m).error.apply(r,Mt(t))}function Ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o;(r=console).error.apply(r,[b].concat(Mt(t))),(o=m).error.apply(o,Mt(t))}var O=Function.prototype.call;function Wt(){var e={Math:window.Math,Number:window.Number,JSON:window.JSON,Promise:window.Promise,Uint8Array:window.Uint8Array,Function:window.Function,Object:window.Object,Array:window.Array,String:window.String,WeakMap:window.WeakMap,Element:window.Element,ShadowRoot:window.ShadowRoot,Image:window.Image,Node:window.Node,EventTarget:window.EventTarget,HTMLIFrameElement:window.HTMLIFrameElement,CanvasRenderingContext2D:window.CanvasRenderingContext2D},t={fetch:window.fetch,parseInt:window.parseInt,setTimeout:window.setTimeout},n=Object.create(null);return qt(n,"protected",Object.create(null)),qt(n,"singleton",Object.create(null)),Object.keys(e).forEach((function(t){e[t]&&(qt(n.singleton,t,e[t]),qt(n.protected,t,Nt(e[t])),e[t].prototype&&(qt(n.protected[t],"prototype",Nt(e[t].prototype)),Object.freeze(n.protected[t].prototype)),Object.freeze(n.protected[t]))})),Object.keys(t).forEach((function(e){qt(n.singleton,e,t[e])})),qt(n.singleton,"call",O.bind(O)),Object.defineProperty(n,"__version__",{value:s}),Object.freeze(n.protected),Object.freeze(n.singleton),Object.freeze(n),n}function Nt(e){var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(n){if("prototype"!==n){var r=Object.getOwnPropertyDescriptor(e,n),o=Object.create(null);qt(o,"value",r.value),qt(o,"get",r.get),qt(o,"set",r.set),qt(t,n,Object.freeze(o))}})),t}function qt(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0})}var S=Wt(),j=null==S?void 0:S.protected,C=null==S?void 0:S.singleton,E=(null==C?void 0:C.call)||Function.prototype.call.bind(Function.prototype.call),A=Ut(j,"Function.prototype.bind"),k=Ut(j,"Function.prototype.call"),_=function(e){return e&&E(A,k,e)};Ut(j,"Object.keys");var x=Ut(j,"Object.defineProperty"),D=Ut(C,"setTimeout","direct"),M=_(Ut(j,"Object.prototype.hasOwnProperty")),I=_(Ut(j,"Array.prototype.push")),P=_(Ut(j,"Array.prototype.forEach")),T=_(Ut(j,"Array.prototype.slice"));_(Ut(j,"Math.random")),_(Ut(j,"Number.prototype.toString"));var R=_(Ut(j,"String.prototype.indexOf")),F=_(Ut(j,"String.prototype.slice")),W=Ut(C,"Image","direct"),N=_(Ut(j,"Image.prototype.src","set"))||_(Ut(j,"HTMLImageElement.prototype.src","set"))||function(e,t){e.src=t},q=_(Ut(j,"HTMLIframeElement.prototype.contentWindow","get"))||function(e){return e.contentWindow},U=_(Ut(j,"HTMLIframeElement.prototype.contentDocument","get"))||function(e){return e.contentDocument},L=_(Ut(j,"EventTarget.prototype.addEventListener"))||function(e,t,n){e.addEventListener(t,n)},z=_(Ut(j,"CanvasRenderingContext2D.prototype.fillText")),J=_(Ut(j,"CanvasRenderingContext2D.prototype.drawImage")),H=_(Ut(j,"CanvasRenderingContext2D.prototype.strokeText")),B=_(Ut(j,"CanvasRenderingContext2D.prototype.measureText")),V=Ut(C,"WeakMap","direct"),X=_(Ut(j,"WeakMap.prototype.get")),K=_(Ut(j,"WeakMap.prototype.set")),Y=_(Ut(j,"Element.prototype.attachShadow")),$=_(Ut(j,"Node.prototype.textContent","set"));function Ut(e,t){var n,r,o,i,a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value",u=(null==j||null===(n=j.String)||void 0===n?void 0:n.prototype.split.value)||window.String.prototype.split,s=(null==j||null===(r=j.Array)||void 0===r?void 0:r.prototype.pop.value)||window.Array.prototype.pop,l=(null==j||null===(o=j.Array)||void 0===o?void 0:o.prototype.forEach.value)||window.Array.prototype.forEach,f=(null==j||null===(i=j.Object)||void 0===i?void 0:i.getOwnPropertyDescriptor.value)||Object.getOwnPropertyDescriptor,d=E(u,t,"."),p=E(s,d),v=e,g=window;if(E(l,d,(function(e){v&&(v=v[e]),g&&(g=g[e])})),null==v?void 0:v[p]){if(v=v[p],"direct"===c)return v;if(v[c])return v[c]}if(g)return"direct"===c||"value"===c?g[p]:null===(a=f(g,p))||void 0===a?void 0:a[c]}var G=new W,Q=!1,Z=null,ee=[];function Lt(e){Q?e():Z?e(Z):ee.push(e)}function zt(){var e=ee;ee=[],P(e,(function(e){e(Z)}))}function Jt(e,t){if(M(e,t))return e[t]}function Ht(e,t,n){x(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}L(G,"load",(function(){Q=!0,D(zt,1)})),L(G,"error",(function(){Z=new Error("Failed to load crossorigin image"),D(zt,1)})),N(G,"https://wwcdn.weixin.qq.com/node/wework/images/1x1-00000000.91e42db1c6.png");var te="\ufeff",ne=String.fromCharCode(8204),re=String.fromCharCode(8205),oe=String.fromCharCode(8203),ie=[String.fromCharCode(8206),String.fromCharCode(8207),ne,re,oe],ae={},ce=0;function Bt(e){var t=Jt(e,"encrypt_token");if(t)return t;var n=Jt(e,"data"),r=Jt(e,"encrypt_text_data");if(n&&r){for(var o=(ce++).toString(5),i="",a=0,c=o.length;a<c;a++)i+=ie[Number(o[a])];var u=te+r+i+te;return Ht(ae,u,n),Ht(e,"encrypt_token",u),u}}function Vt(e){var t=R(e,te,0);if(-1===t)return e;for(var n=F(e,0,t);-1!==t;){var r=R(e,te,t+1);if(-1===r)break;var o=Jt(ae,F(e,t,r+1));o?(n+=o,t=r+1):(n+=F(e,t,r),t=r)}return n+F(e,t)}var ue=V&&new V,se=!1,le=!1;function Xt(){var e;if(se)return!0;var t=null===(e=window.CanvasRenderingContext2D)||void 0===e?void 0:e.prototype;return!!t&&(t.strokeText=function(e,t,n,r){if(!Q)return null==r?H(this,e,t,n):H(this,e,t,n,r);var o=Vt(e);return o!==e&&$t(this),null==r?H(this,o,t,n):H(this,o,t,n,r)},t.fillText=function(e,t,n,r){if(!Q)return null==r?z(this,e,t,n):z(this,e,t,n,r);var o=Vt(e);return o!==e&&$t(this),null==r?z(this,o,t,n):z(this,o,t,n,r)},t.measureText=function(e){return B(this,Q?Vt(e):e)},se=!0,!0)}function Kt(){Tt("enable canvas sharing"),le=!0}function Yt(){le=!1}function $t(e){X(ue,e)||(le||J(e,G,0,0),K(ue,e,!0))}var fe={};function Gt(e,t,n){return"".concat(e,"::").concat(t,"::").concat(n||"")}function Qt(e){return Gt(Jt(e,"type"),Jt(e,"id"),Jt(e,"corpid"))}function Zt(e){return Jt(fe,e)}var de=vt(),pe=1,ve={},ge={},he={};function en(e,t){var n="".concat(de,".").concat(pe++),r=[],o={},i=0;if(P(e,(function(e){var t=Jt(e,"type"),a=Jt(e,"id");if(t&&a){var c=Gt(t,a,Jt(e,"corpid"));Zt(c)||M(o,c)||(Ht(o,c,!0),i+=1,M(ve,c)?I(Jt(ve,c),n):(Ht(ve,c,[n]),I(r,e)))}})),i)return Ht(he,n,i),Ht(ge,n,t),r;t()}function tn(e,t){if(!e)return Rt("[callback] missing response"),void nn(t,new Error("missing response data"));var n=Jt(e,"items");if(!n)return Rt("[callback] missing items"),void nn(t,new Error("missing response items"));P(n,(function(e){var t;t=Qt(e),Ht(fe,t,e)}));var r=[];P(t,(function(e){var t=Qt(e);if(Zt(t)){var n=Jt(ve,t);n&&(delete ve[t],P(n,(function(e){var t=Jt(ge,e);if(t){var n=Jt(he,e)-1;n>0?Ht(he,e,n):(delete he[e],delete ge[e],t())}})))}else I(r,e)})),r.length>0&&nn(r,new Error("missing items"))}function nn(e,t){P(e,(function(e){var n=Qt(e),r=Jt(ve,n);r&&(delete ve[n],P(r,(function(e){var n=Jt(ge,e);delete he[e],delete ge[e],n&&n(t)})))}))}var we=location.origin||"".concat(location.protocol,"//").concat(location.host),ye="https://open.work.weixin.qq.com",me="".concat(ye,"/wwopen/openData/frame/index#origin=").concat(r(we));function rn(e){for(var t=Ut(j,"JSON.parse"),n=Ut(C,"Uint8Array","direct"),r=Ut(j,"String.fromCodePoint"),o=r,i=new n(e),a="",c=0,u=i.length;c<u;){var s=i[c++];if(s<=127)a+=o(s);else{var l=63&i[c++];if(s<=223)a+=o((31&s)<<6|l);else{var f=63&i[c++];if(s<=239)a+=o((15&s)<<12|l<<6|f);else{var d=63&i[c++];r?a+=o((7&s)<<18|l<<12|f<<6|d):(a+=o(63),c+=3)}}}}return t(a)}function on(e){for(var t=Ut(C,"Uint8Array","direct"),n=Ut(C,"parseInt","direct"),r=_(Ut(j,"String.prototype.substring")),o=new t(e.length/2),i=0,a=e.length;i<a;i+=2)o[i/2]=n(r(e,i,i+2),16);return o}var be,Oe,Se,je={skey:null},Ce=(null===(be=window.crypto)||void 0===be?void 0:be.subtle)||(null===(Oe=window.crypto)||void 0===Oe?void 0:Oe.webkitSubtle);function an(e,t,n,r){un(e,t,n,r,!0)}function cn(e,t,n,r){un(e,t,n,r,!1)}function un(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(window.fetch)window.fetch(e,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){if(200===e.status)return o?e.arrayBuffer():e.json();var t="Invalid response status ".concat(e.status);return e.json().catch((function(){throw new Error(t)})).then((function(e){throw(null==e?void 0:e.result)?null==e?void 0:e.result:new Error(t)}))})).then(n,r);else{var i=new XMLHttpRequest;i.open("POST",e),i.withCredentials=!0,o&&(i.responseType="arraybuffer"),i.setRequestHeader("Content-Type","application/json"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(200===i.status)if(o)n(i.response);else try{n(JSON.parse(i.responseText))}catch(e){r(new Error("Parse response error"))}else r(new Error("Invalid response status ".concat(i.status)))},i.onerror=function(){r(new Error("Request error"))},i.send(JSON.stringify(t))}}function sn(e){if(!a)return Rt("[fetchData] missing referer"),void nn(e,{errMsg:"wwapp.fetchOpenData:fail",hint:"Missing referer for jwxwork.js. See: https://developer.work.weixin.qq.com/document/path/91958"});var t=vt(),n="".concat(ye,"/wwopen/openData/getOpenData?f=json&r=").concat(t);Pt("[fetchData] begin #".concat(t));var r=Se||(Se=Ce.importKey("raw",on(a),"AES-CBC",!1,["decrypt"]));function o(n){Rt("[fetchData] fetch fail #".concat(t," (").concat(t,")"),n),nn(e,{errMsg:"wwapp.fetchOpenData:fail",rand:t,detail:n})}an(n,{items:e,skey:je.skey,sid:c},(function(n){Pt("[fetchData] fetch res #".concat(t)),r.then((function(e){return Ce.decrypt({name:"AES-CBC",iv:new Uint8Array(16)},e,n)})).then(rn).then((function(n){Pt("[fetchData] fetch parsed #".concat(t)),tn(n,e)})).catch(o)}),o)}function ln(e,t,n){var r=null;try{r=U(e)}catch(e){}if(null!==r)throw new Error("Missing cross origin");It("[iframe] postMessage",e,t,n),q(e).postMessage(t,n)}var Ee={},Ae=vt(),ke=0;function fn(e){var t="".concat(Ae,".").concat(vt(),".").concat(ke++);return Ht(Ee,t,e),t}function dn(e){delete Ee[e]}vt();var _e,xe=1e3,De=20,Me=[];function pn(e,t){var n=en(e,t);n&&(P(n,(function(e){I(Me,e)})),!_e&&Me.length&&(_e=D(bt("flush-fetch",vn),De)))}function vn(){var e=Me;_e=void 0,Me=[];for(var t=e.length,n=0;n<t;n+=xe){sn(T(e,n,n+xe))}}var Ie=function(){function e(){var t=this;Ze(this,e),nt(this,"iframe",document.createElement("iframe")),nt(this,"state",1),nt(this,"queue",[]),nt(this,"timer",void 0),this.iframe.onload=bt("MainFrame.onload",(function(){Pt("[MainFrame] onload"),t.state=2,t.fetchData()})),this.iframe.onerror=function(e){St((null==e?void 0:e.error)||new Error("MainFrame load error"),"MainFrame.onerror"),t.state=3},this.iframe.style.display="none",this.iframe.referrerPolicy="origin",this.iframe.src=me}return tt(e,[{key:"enqueueFetch",value:function(e){var t=this;this.queue.push(e),this.timer||(this.timer=D(bt("MainFrame.timeout",(function(){2===t.state&&t.fetchData()})),20))}},{key:"fetchData",value:function(){var e={},t=[];this.queue.forEach((function(n){var r="".concat(n.type,"::").concat(n.id,"::").concat(n.corpid||"");e[r]||(e[r]=!0,t.push(n))})),t.length&&(this.timer=void 0,this.queue=[],Pt("[MainFrame] fetchData"),ln(this.iframe,JSON.stringify({type:"fetch",items:t,skey:je.skey,sid:c}),ye))}}]),e}(),Pe=["fontFamily","fontSize","fontWeight","fontStyle","fontVariant","fontStretch","fontSizeAdjust","color","cursor"],Te=function(){function e(t,n){Ze(this,e),nt(this,"container",void 0),nt(this,"mainFrame",void 0),nt(this,"renderType",void 0),nt(this,"loadState",void 0),nt(this,"renderEl",void 0),this.container=t,this.mainFrame=n,this.renderType=1,this.loadState=1}return tt(e,[{key:"update",value:function(){var e=this.getItem();if(!e.type||!e.id)return this.renderEmpty();this.renderText(e)}},{key:"renderEmpty",value:function(){this.setChild(1)}},{key:"renderText",value:function(e){var t=this;if(2!==this.renderType||3===this.loadState){var n=document.createElement("iframe");n.onload=bt("Frame.onload",(function(){t.renderEl===n&&(t.loadState=2,t.notifyUpdate())})),n.onerror=function(e){t.renderEl===n&&(St((null==e?void 0:e.error)||new Error("Frame load error"),"Frame.onerror"),t.loadState=3)};var o=r("".concat(e.type,"::").concat(e.id,"::").concat(e.corpid||""));n.frameBorder="0",n.referrerPolicy="origin",n.src="".concat(me,"&init=").concat(o),this.loadState=4,this.setChild(2,n)}this.mainFrame.enqueueFetch(e),2===this.loadState&&this.notifyUpdate(e)}},{key:"setChild",value:function(e,t){for(var n=this.container;n.firstChild;)n.removeChild(n.firstChild);t&&n.appendChild(t),this.renderEl=t,this.renderType=e}},{key:"getItem",value:function(){return{type:this.container.getAttribute("type"),id:this.container.getAttribute("openid"),corpid:this.container.getAttribute("corpid")||void 0}}},{key:"notifyUpdate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getItem();if(e.type&&e.id){var t={},n=getComputedStyle(this.container);Pe.forEach((function(e){t[e]=n[e]})),ln(this.renderEl,JSON.stringify({type:"update",item:e,style:t}),ye)}}}]),e}(),Re={"ww.opendata.event":function(e,t){var n;"click"===e.eventType&&(null===(n=t.parentNode)||void 0===n||n.click())},"ww.opendata.resize":function(e,t){var n=e.size;t.style.width=n.width,t.style.height=n.height,yt("update",{el:t.parentNode,hasData:!!n.width})}};function gn(e){if(e.origin===ye){var t;try{t=JSON.parse(e.data)}catch(e){}t&&Re[t.type]&&P(document.querySelectorAll("ww-open-data iframe"),(function(n){n.contentWindow===e.source&&Re[t.type](t,n)}))}}var Fe,We,Ne="__WW_OPENDATA_RENDER__";function hn(){window.addEventListener?window.addEventListener("message",bt("dispatchMessage",gn)):window.attachEvent("onmessage",bt("dispatchMessage",gn));var e=document.querySelector("head");We=document.createElement("style"),e.appendChild(We),Fe=new Ie,e.appendChild(Fe.iframe);var t=We.sheet;t.insertRule("ww-open-data { display: inline-block; vertical-align: text-bottom; overflow: hidden }",0),t.insertRule("ww-open-data img { display: block; width: 100%; height: 100% }",1),t.insertRule("ww-open-data iframe { display: block; width: 0; height: 0 }",2)}function wn(e){if(e){var t=e;t[Ne]||(t[Ne]=new Te(e,Fe)),t[Ne].update()}}function yn(e){P(e,wn)}var qe=V&&new V;function mn(e){var t=X(qe,e);if(t)return t;try{var n=Y(e,{mode:"closed"});return K(qe,e,n),n}catch(t){Rt("[getShadow] fail",e,t)}}function bn(e){It("[bindAll] begin",e),P(e,On),It("[bindAll] end")}function On(e){if(!Sn(e,!0)){je.skey||(yt("error",{errMsg:"bind:fail",message:"missing agentConfig",element:e}),console.error("[ww-open-data] 页面未完成 wx.agentConfig,请先完成 wx.agentConfig 再调用 WWOpenData.bind,后续将逐步下线未完成 wx.agentConfig 时调用 WWOpenData.bind 的支持"));var t=vt();pn([{type:e.getAttribute("type"),id:e.getAttribute("openid"),corpid:e.getAttribute("corpid")}],bt("bind-pending",(function(n){if(n)return Rt("[bind] fetch error",t,n),void yt("error",{errMsg:"bind:fail",message:"fetch open-data fail",detail:n});Sn(e)})))}}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(null==e?void 0:e.getAttribute))return yt("error",{errMsg:"bind:fail",message:"missing bind element",element:e}),!1;var n=e.getAttribute("type");if(!n)return yt("error",{errMsg:"bind:fail",message:"missing open-data type",element:e}),!1;var r=e.getAttribute("openid");if(!r)return yt("error",{errMsg:"bind:fail",message:"missing open-data openid",element:e}),!1;var o=e.getAttribute("corpid"),i=mn(e);if(!i)return yt("error",{errMsg:"bind:fail",message:"attach shadow fail",element:e}),!1;var a=Zt(Gt(n,r,o));if(!a)return t||yt("error",{errMsg:"bind:fail",message:"missing open-data item",element:e}),!1;var c=Jt(a,"data");return $(i,c||""),yt("update",{element:e,hasData:!!c}),!!c}var Ue=0;Y||(Ue|=1),Ce||(Ue|=2),"http:"===document.location.protocol&&(Ue|=4);var Le,ze=0,Je=navigator.userAgent;if(!(/miniProgram/i.test(Je)||"miniprogram"===window.__wxjs_environment))/wxwork/i.test(Je)&&(ze|=4),window.WeixinSandBox&&(ze|=1),(null===(Le=window.wx)||void 0===Le?void 0:Le.agentConfig)&&(ze|=2);var He=bt("bind",Ue?wn:On),Be=bt("bindAll",Ue?yn:bn);function jn(){En("checkSession",{sid:c},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(e.corpid&&e.agentid&&e.timestamp&&e.nonceStr&&e.signature&&e.jsApiList)){var t,n,r={err_Info:"fail",errMsg:"agentConfig:fail",hint:"Missing params"};return null===(t=e.fail)||void 0===t||t.call(e,r),void(null===(n=e.complete)||void 0===n||n.call(e,r))}var o={corpid:"".concat(e.corpid),agentid:"".concat(e.agentid),timestamp:"".concat(e.timestamp),nonceStr:"".concat(e.nonceStr),signature:"".concat(e.signature),jsApiList:e.jsApiList,url:location.href};En("agentConfig",{config:o,sid:c},e,(function(e){var t,n;je.skey&&(null===(t=e.data)||void 0===t?void 0:t.skey)!==je.skey&&(fe={}),je.skey=null===(n=e.data)||void 0===n?void 0:n.skey,Be(document.querySelectorAll("ww-open-data")),Pt("[user config] #".concat(JSON.stringify(o)))}))}function En(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=vt();Pt("[invoke] ".concat(e," begin #").concat(o)),cn("".concat(ye,"/wwopen/openData/").concat(e,"?f=json&r=").concat(o),t,(function(t){var i,a,c,u,s=(null===(i=t.data)||void 0===i?void 0:i.result)||t.data||{errMsg:"".concat(e,":fail")};s.errMsg==="".concat(e,":ok")?(It("[invoke] ".concat(e," succ #").concat(o)),null==r||r(t),null===(c=n.success)||void 0===c||c.call(n,s)):(Rt("[invoke] ".concat(e," fail #").concat(o),t),null===(u=n.fail)||void 0===u||u.call(n,s));null===(a=n.complete)||void 0===a||a.call(n,s)}),(function(t){var r,i;Rt("[invoke] ".concat(e," fail #").concat(o),t);var a={errMsg:"".concat(e,":fail")};null===(r=n.fail)||void 0===r||r.call(n,a),null===(i=n.complete)||void 0===i||i.call(n,a)}))}function An(e,t){var n=e.items;pn(n,(function(e){if(e)return t(e);var r=[];P(n,(function(e){var t=Zt(Qt(e));t&&1===Jt(t,"datakind")&&r.push({type:e.type,id:e.id,corpid:e.corpid,data:Bt(t)})})),Lt((function(e){e?t(e):t(null,{items:r})}))}))}function kn(e,t){t(null,(function(e){_n(e)}))}function _n(e,t){ln(e,{type:"ww-open-data:inject-session",data:t},arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*")}if(ze)Tt("skip inject",ze);else{if(Ue?(Tt("inject iframe",Ue),hn()):Pt("inject begin",Ue),a||Ft("Missing referer for jwxwork.js. See: https://work.weixin.qq.com/api/doc/90001/90143/91958"),window.wx?window.wx.agentConfig||Pt("define wx.agentConfig"):Tt("missing window.wx"),window.wx||(window.wx={}),window.wx.agentConfig||x(window.wx,"agentConfig",{value:bt("agentConfig",Cn)}),window.WWOpenData)Rt("window.WWOpenData already exists");else{var Ve={};xn(Ve,"bindAll",Be),xn(Ve,"bind",He),xn(Ve,"on",ht),xn(Ve,"once",gt),xn(Ve,"off",wt),xn(Ve,"checkSession",jn),xn(Ve,"initCanvas",Xt),xn(Ve,"enableCanvasSharing",Kt),xn(Ve,"disableCanvasSharing",Yt),xn(Ve,"prefetch",An),xn(Ve,"registerOpenFrame",bt("registerOpenFrame",fn)),xn(Ve,"unregisterOpenFrame",bt("unregisterOpenFrame",dn)),xn(Ve,"createOpenSessionInjector",bt("createOpenSessionInjector",kn)),x(Ve,"__version__",{value:s}),xn(Ve,"agentConfig",bt("agentConfig",Cn)),xn(window,"WWOpenData",Ve),Pt("window.WWOpenData defined",window.WWOpenData)}"customElements"in window&&!customElements.get("ww-open-data")&&Dn()}function xn(e,t,n){x(e,t,{value:n,enumerable:!0})}function Dn(){try{Pt("register custom element");var e=function(e){e._current={type:e.getAttribute("type"),id:e.getAttribute("openid"),corpid:e.getAttribute("corpid")},e._current.type&&e._current.id&&je.skey&&He(e)},t=function(t){function n(){var t;return Ze(this,n),nt(t=Qe(this,n),"_current",{}),t.getAttribute("type")&&t.getAttribute("openid")?(e(t),t):Ge(t)}return ot(n,t),tt(n,[{key:"attributeChangedCallback",value:function(){this._current.type===this.getAttribute("type")&&this._current.id===this.getAttribute("openid")&&this._current.corpid===this.getAttribute("corpid")||e(this)}}],[{key:"observedAttributes",get:function(){return["type","openid","corpid"]}}]),n}(at(HTMLElement));customElements.define("ww-open-data",t)}catch(e){St(e,"register custom element")}}}catch(Z){e.captureException(Z,"?")}}();
...@@ -12,5 +12,5 @@ var r=Object.freeze({}),o=Array.isArray;function i(t){return void 0===t||null=== ...@@ -12,5 +12,5 @@ var r=Object.freeze({}),o=Array.isArray;function i(t){return void 0===t||null===
*/ */
function ri(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var oi="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},ii=oi.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ai(t){ii&&(t._devtoolHook=ii,ii.emit("vuex:init",t),ii.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){ii.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){ii.emit("vuex:action",t,e)}),{prepend:!0}))}function si(t,e){return t.filter(e)[0]}function ui(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=si(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=ui(t[n],e)})),r}function ci(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function li(t){return null!==t&&"object"===typeof t}function fi(t){return t&&"function"===typeof t.then}function di(t,e){return function(){return t(e)}}var pi=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},hi={namespaced:{configurable:!0}};hi.namespaced.get=function(){return!!this._rawModule.namespaced},pi.prototype.addChild=function(t,e){this._children[t]=e},pi.prototype.removeChild=function(t){delete this._children[t]},pi.prototype.getChild=function(t){return this._children[t]},pi.prototype.hasChild=function(t){return t in this._children},pi.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},pi.prototype.forEachChild=function(t){ci(this._children,t)},pi.prototype.forEachGetter=function(t){this._rawModule.getters&&ci(this._rawModule.getters,t)},pi.prototype.forEachAction=function(t){this._rawModule.actions&&ci(this._rawModule.actions,t)},pi.prototype.forEachMutation=function(t){this._rawModule.mutations&&ci(this._rawModule.mutations,t)},Object.defineProperties(pi.prototype,hi);var vi=function(t){this.register([],t,!1)};function mi(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;mi(t.concat(r),e.getChild(r),n.modules[r])}}vi.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},vi.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},vi.prototype.update=function(t){mi([],this.root,t)},vi.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new pi(e,n);if(0===t.length)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}e.modules&&ci(e.modules,(function(e,o){r.register(t.concat(o),e,n)}))},vi.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},vi.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var yi;var gi=function(t){var e=this;void 0===t&&(t={}),!yi&&"undefined"!==typeof window&&window.Vue&&Ri(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new vi(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new yi,this._makeLocalGettersCache=Object.create(null);var o=this,i=this,a=i.dispatch,s=i.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=r;var u=this._modules.root.state;xi(this,u,[],this._modules.root),Ci(this,u),n.forEach((function(t){return t(e)}));var c=void 0!==t.devtools?t.devtools:yi.config.devtools;c&&ai(this)},bi={state:{configurable:!0}};function _i(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function wi(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;xi(t,n,[],t._modules.root,!0),Ci(t,n,e)}function Ci(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,i={};ci(o,(function(e,n){i[n]=di(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=yi.config.silent;yi.config.silent=!0,t._vm=new yi({data:{$$state:e},computed:i}),yi.config.silent=a,t.strict&&Ti(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),yi.nextTick((function(){return r.$destroy()})))}function xi(t,e,n,r,o){var i=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!i&&!o){var s=Ai(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){yi.set(s,u,r.state)}))}var c=r.context=Si(t,a,n);r.forEachMutation((function(e,n){var r=a+n;Ei(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,o=e.handler||e;ki(t,r,o,c)})),r.forEachGetter((function(e,n){var r=a+n;$i(t,r,e,c)})),r.forEachChild((function(r,i){xi(t,e,n.concat(i),r,o)}))}function Si(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=ji(n,r,o),a=i.payload,s=i.options,u=i.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,o){var i=ji(n,r,o),a=i.payload,s=i.options,u=i.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return Oi(t,e)}},state:{get:function(){return Ai(t.state,n)}}}),o}function Oi(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function Ei(t,e,n,r){var o=t._mutations[e]||(t._mutations[e]=[]);o.push((function(e){n.call(t,r.state,e)}))}function ki(t,e,n,r){var o=t._actions[e]||(t._actions[e]=[]);o.push((function(e){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return fi(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function $i(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function Ti(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function Ai(t,e){return e.reduce((function(t,e){return t[e]}),t)}function ji(t,e,n){return li(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function Ri(t){yi&&t===yi||(yi=t,ri(yi))}bi.state.get=function(){return this._vm._data.$$state},bi.state.set=function(t){0},gi.prototype.commit=function(t,e,n){var r=this,o=ji(t,e,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),u=this._mutations[i];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},gi.prototype.dispatch=function(t,e){var n=this,r=ji(t,e),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(t){return t(i)}))):s[0](i);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(c){0}e(t)}))}))}},gi.prototype.subscribe=function(t,e){return _i(t,this._subscribers,e)},gi.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return _i(n,this._actionSubscribers,e)},gi.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},gi.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},gi.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),xi(this,this.state,t,this._modules.get(t),n.preserveState),Ci(this,this.state)},gi.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=Ai(e.state,t.slice(0,-1));yi.delete(n,t[t.length-1])})),wi(this)},gi.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},gi.prototype.hotUpdate=function(t){this._modules.update(t),wi(this,!0)},gi.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(gi.prototype,bi);var Pi=Bi((function(t,e){var n={};return Fi(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=Ui(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),Ii=Bi((function(t,e){var n={};return Fi(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=Ui(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),Ni=Bi((function(t,e){var n={};return Fi(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||Ui(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),Mi=Bi((function(t,e){var n={};return Fi(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=Ui(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),Li=function(t){return{mapState:Pi.bind(null,t),mapGetters:Ni.bind(null,t),mapMutations:Ii.bind(null,t),mapActions:Mi.bind(null,t)}};function Fi(t){return Di(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function Di(t){return Array.isArray(t)||li(t)}function Bi(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Ui(t,e,n){var r=t._modulesNamespaceMap[n];return r}function Vi(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var i=t.actionFilter;void 0===i&&(i=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var l=ui(t.state);"undefined"!==typeof c&&(s&&t.subscribe((function(t,i){var a=ui(i);if(n(t,l,a)){var s=Hi(),u=o(t),f="mutation "+t.type+s;zi(c,f,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(l)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),qi(c)}l=a})),u&&t.subscribeAction((function(t,n){if(i(t,n)){var r=Hi(),o=a(t),s="action "+t.type+r;zi(c,s,e),c.log("%c action","color: #03A9F4; font-weight: bold",o),qi(c)}})))}}function zi(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(o){t.log(e)}}function qi(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function Hi(){var t=new Date;return" @ "+Ki(t.getHours(),2)+":"+Ki(t.getMinutes(),2)+":"+Ki(t.getSeconds(),2)+"."+Ki(t.getMilliseconds(),3)}function Wi(t,e){return new Array(e+1).join(t)}function Ki(t,e){return Wi("0",e-t.toString().length)+t}var Ji={Store:gi,install:Ri,version:"3.6.2",mapState:Pi,mapMutations:Ii,mapGetters:Ni,mapActions:Mi,createNamespacedHelpers:Li,createLogger:Vi},Gi=Ji;e["default"].use(Gi);var Xi=new Gi.Store({state:{},getters:{},mutations:{},actions:{},modules:{}}); function ri(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var oi="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},ii=oi.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ai(t){ii&&(t._devtoolHook=ii,ii.emit("vuex:init",t),ii.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){ii.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){ii.emit("vuex:action",t,e)}),{prepend:!0}))}function si(t,e){return t.filter(e)[0]}function ui(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=si(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=ui(t[n],e)})),r}function ci(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function li(t){return null!==t&&"object"===typeof t}function fi(t){return t&&"function"===typeof t.then}function di(t,e){return function(){return t(e)}}var pi=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},hi={namespaced:{configurable:!0}};hi.namespaced.get=function(){return!!this._rawModule.namespaced},pi.prototype.addChild=function(t,e){this._children[t]=e},pi.prototype.removeChild=function(t){delete this._children[t]},pi.prototype.getChild=function(t){return this._children[t]},pi.prototype.hasChild=function(t){return t in this._children},pi.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},pi.prototype.forEachChild=function(t){ci(this._children,t)},pi.prototype.forEachGetter=function(t){this._rawModule.getters&&ci(this._rawModule.getters,t)},pi.prototype.forEachAction=function(t){this._rawModule.actions&&ci(this._rawModule.actions,t)},pi.prototype.forEachMutation=function(t){this._rawModule.mutations&&ci(this._rawModule.mutations,t)},Object.defineProperties(pi.prototype,hi);var vi=function(t){this.register([],t,!1)};function mi(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;mi(t.concat(r),e.getChild(r),n.modules[r])}}vi.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},vi.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},vi.prototype.update=function(t){mi([],this.root,t)},vi.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new pi(e,n);if(0===t.length)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}e.modules&&ci(e.modules,(function(e,o){r.register(t.concat(o),e,n)}))},vi.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},vi.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var yi;var gi=function(t){var e=this;void 0===t&&(t={}),!yi&&"undefined"!==typeof window&&window.Vue&&Ri(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new vi(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new yi,this._makeLocalGettersCache=Object.create(null);var o=this,i=this,a=i.dispatch,s=i.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=r;var u=this._modules.root.state;xi(this,u,[],this._modules.root),Ci(this,u),n.forEach((function(t){return t(e)}));var c=void 0!==t.devtools?t.devtools:yi.config.devtools;c&&ai(this)},bi={state:{configurable:!0}};function _i(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function wi(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;xi(t,n,[],t._modules.root,!0),Ci(t,n,e)}function Ci(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,i={};ci(o,(function(e,n){i[n]=di(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=yi.config.silent;yi.config.silent=!0,t._vm=new yi({data:{$$state:e},computed:i}),yi.config.silent=a,t.strict&&Ti(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),yi.nextTick((function(){return r.$destroy()})))}function xi(t,e,n,r,o){var i=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!i&&!o){var s=Ai(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){yi.set(s,u,r.state)}))}var c=r.context=Si(t,a,n);r.forEachMutation((function(e,n){var r=a+n;Ei(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,o=e.handler||e;ki(t,r,o,c)})),r.forEachGetter((function(e,n){var r=a+n;$i(t,r,e,c)})),r.forEachChild((function(r,i){xi(t,e,n.concat(i),r,o)}))}function Si(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=ji(n,r,o),a=i.payload,s=i.options,u=i.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,o){var i=ji(n,r,o),a=i.payload,s=i.options,u=i.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return Oi(t,e)}},state:{get:function(){return Ai(t.state,n)}}}),o}function Oi(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function Ei(t,e,n,r){var o=t._mutations[e]||(t._mutations[e]=[]);o.push((function(e){n.call(t,r.state,e)}))}function ki(t,e,n,r){var o=t._actions[e]||(t._actions[e]=[]);o.push((function(e){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return fi(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function $i(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function Ti(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function Ai(t,e){return e.reduce((function(t,e){return t[e]}),t)}function ji(t,e,n){return li(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function Ri(t){yi&&t===yi||(yi=t,ri(yi))}bi.state.get=function(){return this._vm._data.$$state},bi.state.set=function(t){0},gi.prototype.commit=function(t,e,n){var r=this,o=ji(t,e,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),u=this._mutations[i];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},gi.prototype.dispatch=function(t,e){var n=this,r=ji(t,e),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(t){return t(i)}))):s[0](i);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(c){0}e(t)}))}))}},gi.prototype.subscribe=function(t,e){return _i(t,this._subscribers,e)},gi.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return _i(n,this._actionSubscribers,e)},gi.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},gi.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},gi.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),xi(this,this.state,t,this._modules.get(t),n.preserveState),Ci(this,this.state)},gi.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=Ai(e.state,t.slice(0,-1));yi.delete(n,t[t.length-1])})),wi(this)},gi.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},gi.prototype.hotUpdate=function(t){this._modules.update(t),wi(this,!0)},gi.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(gi.prototype,bi);var Pi=Bi((function(t,e){var n={};return Fi(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=Ui(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),Ii=Bi((function(t,e){var n={};return Fi(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=Ui(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),Ni=Bi((function(t,e){var n={};return Fi(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||Ui(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),Mi=Bi((function(t,e){var n={};return Fi(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=Ui(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),Li=function(t){return{mapState:Pi.bind(null,t),mapGetters:Ni.bind(null,t),mapMutations:Ii.bind(null,t),mapActions:Mi.bind(null,t)}};function Fi(t){return Di(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function Di(t){return Array.isArray(t)||li(t)}function Bi(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Ui(t,e,n){var r=t._modulesNamespaceMap[n];return r}function Vi(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var i=t.actionFilter;void 0===i&&(i=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var l=ui(t.state);"undefined"!==typeof c&&(s&&t.subscribe((function(t,i){var a=ui(i);if(n(t,l,a)){var s=Hi(),u=o(t),f="mutation "+t.type+s;zi(c,f,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(l)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),qi(c)}l=a})),u&&t.subscribeAction((function(t,n){if(i(t,n)){var r=Hi(),o=a(t),s="action "+t.type+r;zi(c,s,e),c.log("%c action","color: #03A9F4; font-weight: bold",o),qi(c)}})))}}function zi(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(o){t.log(e)}}function qi(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function Hi(){var t=new Date;return" @ "+Ki(t.getHours(),2)+":"+Ki(t.getMinutes(),2)+":"+Ki(t.getSeconds(),2)+"."+Ki(t.getMilliseconds(),3)}function Wi(t,e){return new Array(e+1).join(t)}function Ki(t,e){return Wi("0",e-t.toString().length)+t}var Ji={Store:gi,install:Ri,version:"3.6.2",mapState:Pi,mapMutations:Ii,mapGetters:Ni,mapActions:Mi,createNamespacedHelpers:Li,createLogger:Vi},Gi=Ji;e["default"].use(Gi);var Xi=new Gi.Store({state:{},getters:{},mutations:{},actions:{},modules:{}});
/*! js-cookie v3.0.5 | MIT */ /*! js-cookie v3.0.5 | MIT */
function Zi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Yi={read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Qi(t,e){function n(n,r,o){if("undefined"!==typeof document){o=Zi({},e,o),"number"===typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=n+"="+t.write(r,n)+i}}function r(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(u){}}return e?r[e]:r}}return Object.create({set:n,get:r,remove:function(t,e){n(t,"",Zi({},e,{expires:-1}))},withAttributes:function(t){return Qi(this.converter,Zi({},this.attributes,t))},withConverter:function(t){return Qi(Zi({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var ta=Qi(Yi,{path:"/"});const ea="authorization";new Date((new Date).getTime()+31104e7);function na(){return ta.get(ea)}const ra=ni.CancelToken,oa=1,ia=[50008,50012,50014],aa=ni.create({baseURL:"/api/",timeout:1e5});aa.interceptors.request.use((t=>(t.cancelToken=new ra((e=>{const n=t.data?t.url+JSON.stringify(t.data):t.url;Xi.state.user.axiosCancelList.push({url:n,cancel:e})})),Xi.getters.token&&(t.headers["authToken"]=na()),t)),(t=>Promise.reject(t))),aa.interceptors.response.use((t=>{const e=t.data;return e.status_code!==oa?(Be()({message:e.msg||"Error",type:"error",duration:5e3}),ia.includes(e.status_code)&&Fe().confirm("登录过期,请重新登录",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then((()=>{console.log("重新登录")})),Promise.reject(new Error(e.msg||"Error"))):e}),(t=>(Be()({message:t.message,type:"error",duration:5e3}),Promise.reject(t))));var sa=aa;function ua(t){return sa({url:"/api/sidebar_login/workWeiXin",method:"post",data:t})}function ca(){let t=location.href,e=t.split("?")[0],n=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wweaefe716636df3d1&redirect_uri=${encodeURIComponent(e)}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;window.location.href=n}function la(t,e,n,r){console.log("进入getWxUserInfo",r),ua({code:r,corp_id:"wweaefe716636df3d1"}).then((e=>{if(console.log(e,"res"),1===e.status_code){let{userId:r}=e.data||{};r?(localStorage.setItem("userId",r),n()):ca(t)}else ca(t)})).catch((()=>{ca(t)}))}e["default"].use($e);const fa=[{path:"/",name:"home",component:Me},{path:"/about",name:"about",component:()=>n.e(155).then(n.bind(n,155))}],da=new $e({mode:"hash",base:"",routes:fa});da.beforeEach(((t,e,n)=>{let r=navigator.userAgent.toLowerCase(),o=-1!=r.indexOf("micromessenger");if(console.log("isWeixin",o),!o)return void n();console.log("进入router.beforeEach",t.query);let i=t.query.code||"",a=t.query.corp_id||"";i?la(t,e,n,i,a):ca(t)}));var pa=da;e["default"].config.productionTip=!1,new e["default"]({router:pa,store:Xi,render:t=>t(u)}).$mount("#app")}()})(); function Zi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Yi={read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Qi(t,e){function n(n,r,o){if("undefined"!==typeof document){o=Zi({},e,o),"number"===typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=n+"="+t.write(r,n)+i}}function r(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(u){}}return e?r[e]:r}}return Object.create({set:n,get:r,remove:function(t,e){n(t,"",Zi({},e,{expires:-1}))},withAttributes:function(t){return Qi(this.converter,Zi({},this.attributes,t))},withConverter:function(t){return Qi(Zi({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var ta=Qi(Yi,{path:"/"});const ea="authorization";new Date((new Date).getTime()+31104e7);function na(){return ta.get(ea)}const ra=ni.CancelToken,oa=1,ia=[50008,50012,50014],aa=ni.create({baseURL:"/api/",timeout:1e5});aa.interceptors.request.use((t=>(t.cancelToken=new ra((e=>{const n=t.data?t.url+JSON.stringify(t.data):t.url;Xi.state.user.axiosCancelList.push({url:n,cancel:e})})),Xi.getters.token&&(t.headers["authToken"]=na()),t)),(t=>Promise.reject(t))),aa.interceptors.response.use((t=>{const e=t.data;return e.status_code!==oa?(Be()({message:e.msg||"Error",type:"error",duration:5e3}),ia.includes(e.status_code)&&Fe().confirm("登录过期,请重新登录",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then((()=>{console.log("重新登录")})),Promise.reject(new Error(e.msg||"Error"))):e}),(t=>(Be()({message:t.message,type:"error",duration:5e3}),Promise.reject(t))));var sa=aa;function ua(t){return sa({url:"/api/sidebar_login/workWeiXin",method:"post",data:t})}function ca(){let t=location.origin+location.pathname,e=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wweaefe716636df3d1&redirect_uri=${encodeURIComponent(t)}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;console.log("进入Authorize",e),window.location.href=e}function la(t,e,n,r){console.log("进入getWxUserInfo",r),ua({code:r,corp_id:"wweaefe716636df3d1"}).then((e=>{if(console.log(e,"res"),1===e.status_code){let{userId:r}=e.data||{};r?(localStorage.setItem("userId",r),n()):ca(t)}else ca(t)})).catch((()=>{ca(t)}))}e["default"].use($e);const fa=[{path:"/",name:"home",component:Me},{path:"/about",name:"about",component:()=>n.e(155).then(n.bind(n,155))}],da=new $e({mode:"hash",base:"",routes:fa});da.beforeEach(((t,e,n)=>{let r=navigator.userAgent.toLowerCase(),o=-1!=r.indexOf("micromessenger");if(console.log("isWeixin",o),!o)return void n();console.log("进入router.beforeEach",t.query);let i=t.query.code||"",a=t.query.corp_id||"";i?la(t,e,n,i,a):ca(t)}));var pa=da;e["default"].config.productionTip=!1,new e["default"]({router:pa,store:Xi,render:t=>t(u)}).$mount("#app")}()})();
//# sourceMappingURL=app.46f55481.js.map //# sourceMappingURL=app.23002ac1.js.map
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
<script src="./js/jweixin-1.2.0.js"></script>
<script src="./js/jwxwork-1.0.0.js"></script>
</head> </head>
<body> <body>
<noscript> <noscript>
......
((e,n)=>{"function"==typeof define&&(define.amd||define.cmd)?define(function(){return n(e)}):n(e,!0)})(this,function(r,e){var a,c,n,i,t,s,d,o,l,u,p,f,m,g,h,S,y,I,_,w,v,T;if(!r.jWeixin)return a={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},c=(()=>{var e,n={};for(e in a)n[a[e]]=e;return n})(),i=(n=r.document).title,t=navigator.userAgent.toLowerCase(),f=navigator.platform.toLowerCase(),s=!(!f.match("mac")&&!f.match("win")),d=-1!=t.indexOf("wxdebugger"),o=-1!=t.indexOf("micromessenger"),l=-1!=t.indexOf("android"),u=-1!=t.indexOf("iphone")||-1!=t.indexOf("ipad"),p=(f=t.match(/micromessenger\/(\d+\.\d+\.\d+)/)||t.match(/micromessenger\/(\d+\.\d+)/))?f[1]:"",m={initStartTime:L(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},g={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:u?1:l?2:-1,clientVersion:p,url:encodeURIComponent(location.href)},h={},S={_completes:[]},y={state:0,data:{}},B(function(){m.initEndTime=L()}),I=!1,_=[],w={config:function(e){P("config",h=e);var o=!1!==h.check;B(function(){if(o)k(a.config,{verifyJsApiList:A(h.jsApiList)},(S._complete=function(e){m.preVerifyEndTime=L(),y.state=1,y.data=e},S.success=function(e){g.isPreVerifyOk=0},S.fail=function(e){S._fail?S._fail(e):y.state=-1},(t=S._completes).push(function(){var n;s||d||h.debug||p<"6.0.2"||g.systemType<0||(n=new Image,g.appId=h.appId,g.initTime=m.initEndTime-m.initStartTime,g.preVerifyTime=m.preVerifyEndTime-m.preVerifyStartTime,w.getNetworkType({isInnerInvoke:!0,success:function(e){g.networkType=e.networkType,n.src="https://open.weixin.qq.com/sdk/report?v="+g.version+"&o="+g.isPreVerifyOk+"&s="+g.systemType+"&c="+g.clientVersion+"&a="+g.appId+"&n="+g.networkType+"&i="+g.initTime+"&p="+g.preVerifyTime+"&u="+g.url}}))}),S.complete=function(e){for(var n=0,i=t.length;n<i;++n)t[n]();S._completes=[]},S)),m.preVerifyStartTime=L();else{y.state=1;for(var e=S._completes,n=0,i=e.length;n<i;++n)e[n]();S._completes=[]}var t}),h.beta&&!w.invoke&&(w.invoke=function(e,n,i){r.WeixinJSBridge&&WeixinJSBridge.invoke(e,M(n),i)},w.on=function(e,n){r.WeixinJSBridge&&WeixinJSBridge.on(e,n)})},ready:function(e){(0!=y.state||(S._completes.push(e),!o&&h.debug))&&e()},error:function(e){p<"6.0.2"||(-1==y.state?e(y.data):S._fail=e)},checkJsApi:function(e){k("checkJsApi",{jsApiList:A(e.jsApiList)},(e._complete=function(e){l&&(i=e.checkResult)&&(e.checkResult=JSON.parse(i));var n,i=e,t=i.checkResult;for(n in t){var o=c[n];o&&(t[o]=t[n],delete t[n])}},e))},onMenuShareTimeline:function(e){x(a.onMenuShareTimeline,{complete:function(){k("shareTimeline",{title:e.title||i,desc:e.title||i,img_url:e.imgUrl||"",link:e.link||location.href,type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareAppMessage:function(n){x(a.onMenuShareAppMessage,{complete:function(e){"favorite"===e.scene?k("sendAppMessage",{title:n.title||i,desc:n.desc||"",link:n.link||location.href,img_url:n.imgUrl||"",type:n.type||"link",data_url:n.dataUrl||""}):k("sendAppMessage",{title:n.title||i,desc:n.desc||"",link:n.link||location.href,img_url:n.imgUrl||"",type:n.type||"link",data_url:n.dataUrl||""},n)}},n)},onMenuShareQQ:function(e){x(a.onMenuShareQQ,{complete:function(){k("shareQQ",{title:e.title||i,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareWeibo:function(e){x(a.onMenuShareWeibo,{complete:function(){k("shareWeiboApp",{title:e.title||i,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareQZone:function(e){x(a.onMenuShareQZone,{complete:function(){k("shareQZone",{title:e.title||i,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},startRecord:function(e){k("startRecord",{},e)},stopRecord:function(e){k("stopRecord",{},e)},onVoiceRecordEnd:function(e){x("onVoiceRecordEnd",e)},playVoice:function(e){k("playVoice",{localId:e.localId},e)},pauseVoice:function(e){k("pauseVoice",{localId:e.localId},e)},stopVoice:function(e){k("stopVoice",{localId:e.localId},e)},onVoicePlayEnd:function(e){x("onVoicePlayEnd",e)},uploadVoice:function(e){k("uploadVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadVoice:function(e){k("downloadVoice",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},translateVoice:function(e){k("translateVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},chooseImage:function(e){k("chooseImage",{scene:"1|2",count:e.count||9,sizeType:e.sizeType||["original","compressed"],sourceType:e.sourceType||["album","camera"]},(e._complete=function(e){if(l){var n=e.localIds;try{n&&(e.localIds=JSON.parse(n))}catch(e){}}},e))},getLocation:function(e){},getLocation:function(e){e=e||{},k(a.getLocation,{type:e.type||"wgs84"},(e._complete=function(e){delete e.type},e))},previewImage:function(e){k(a.previewImage,{current:e.current,urls:e.urls},e)},uploadImage:function(e){k("uploadImage",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadImage:function(e){k("downloadImage",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},getLocalImgData:function(e){!1===I?(I=!0,k("getLocalImgData",{localId:e.localId},(e._complete=function(e){var n;I=!1,0<_.length&&(n=_.shift(),wx.getLocalImgData(n))},e))):_.push(e)},getNetworkType:function(e){k("getNetworkType",{},(e._complete=function(e){var n=e,e=n.errMsg,i=(n.errMsg="getNetworkType:ok",n.subtype);if(delete n.subtype,i)n.networkType=i;else{var i=e.indexOf(":"),t=e.substring(i+1);switch(t){case"wifi":case"edge":case"wwan":n.networkType=t;break;default:n.errMsg="getNetworkType:fail"}}},e))},openLocation:function(e){k("openLocation",{latitude:e.latitude,longitude:e.longitude,name:e.name||"",address:e.address||"",scale:e.scale||28,infoUrl:e.infoUrl||""},e)},hideOptionMenu:function(e){k("hideOptionMenu",{},e)},showOptionMenu:function(e){k("showOptionMenu",{},e)},closeWindow:function(e){k("closeWindow",{},e=e||{})},hideMenuItems:function(e){k("hideMenuItems",{menuList:e.menuList},e)},showMenuItems:function(e){k("showMenuItems",{menuList:e.menuList},e)},hideAllNonBaseMenuItem:function(e){k("hideAllNonBaseMenuItem",{},e)},showAllNonBaseMenuItem:function(e){k("showAllNonBaseMenuItem",{},e)},scanQRCode:function(e){k("scanQRCode",{needResult:(e=e||{}).needResult||0,scanType:e.scanType||["qrCode","barCode"]},(e._complete=function(e){var n;u&&(n=e.resultStr)&&(n=JSON.parse(n),e.resultStr=n&&n.scan_code&&n.scan_code.scan_result)},e))},openAddress:function(e){k(a.openAddress,{},(e._complete=function(e){(e=e).postalCode=e.addressPostalCode,delete e.addressPostalCode,e.provinceName=e.proviceFirstStageName,delete e.proviceFirstStageName,e.cityName=e.addressCitySecondStageName,delete e.addressCitySecondStageName,e.countryName=e.addressCountiesThirdStageName,delete e.addressCountiesThirdStageName,e.detailInfo=e.addressDetailInfo,delete e.addressDetailInfo},e))},openProductSpecificView:function(e){k(a.openProductSpecificView,{pid:e.productId,view_type:e.viewType||0,ext_info:e.extInfo},e)},addCard:function(e){for(var n=e.cardList,i=[],t=0,o=n.length;t<o;++t){var r=n[t],r={card_id:r.cardId,card_ext:r.cardExt};i.push(r)}k(a.addCard,{card_list:i},(e._complete=function(e){if(n=e.card_list){for(var n,i=0,t=(n=JSON.parse(n)).length;i<t;++i){var o=n[i];o.cardId=o.card_id,o.cardExt=o.card_ext,o.isSuccess=!!o.is_succ,delete o.card_id,delete o.card_ext,delete o.is_succ}e.cardList=n,delete e.card_list}},e))},chooseCard:function(e){k("chooseCard",{app_id:h.appId,location_id:e.shopId||"",sign_type:e.signType||"SHA1",card_id:e.cardId||"",card_type:e.cardType||"",card_sign:e.cardSign,time_stamp:e.timestamp+"",nonce_str:e.nonceStr},(e._complete=function(e){e.cardList=e.choose_card_info,delete e.choose_card_info},e))},openCard:function(e){for(var n=e.cardList,i=[],t=0,o=n.length;t<o;++t){var r=n[t],r={card_id:r.cardId,code:r.code};i.push(r)}k(a.openCard,{card_list:i},e)},consumeAndShareCard:function(e){k(a.consumeAndShareCard,{consumedCardId:e.cardId,consumedCode:e.code},e)},chooseWXPay:function(e){k(a.chooseWXPay,C(e),e)},openEnterpriseRedPacket:function(e){k(a.openEnterpriseRedPacket,C(e),e)},startSearchBeacons:function(e){k(a.startSearchBeacons,{ticket:e.ticket},e)},stopSearchBeacons:function(e){k(a.stopSearchBeacons,{},e)},onSearchBeacons:function(e){x(a.onSearchBeacons,e)},openEnterpriseChat:function(e){k("openEnterpriseChat",{useridlist:e.userIds,chatname:e.groupName},e)}},v=1,T={},n.addEventListener("error",function(e){var n,i,t;l||(t=(n=e.target).tagName,i=n.src,"IMG"!=t&&"VIDEO"!=t&&"AUDIO"!=t&&"SOURCE"!=t)||-1!=i.indexOf("wxlocalresource://")&&(e.preventDefault(),e.stopPropagation(),(t=n["wx-id"])||(t=v++,n["wx-id"]=t),T[t]||(T[t]=!0,wx.ready(function(){wx.getLocalImgData({localId:i,success:function(e){n.src=e.localData}})})))},!0),n.addEventListener("load",function(e){var n;l||(n=(e=e.target).tagName,"IMG"!=n&&"VIDEO"!=n&&"AUDIO"!=n&&"SOURCE"!=n)||(n=e["wx-id"])&&(T[n]=!1)},!0),e&&(r.wx=r.jWeixin=w),w;function k(n,e,i){r.WeixinJSBridge?WeixinJSBridge.invoke(n,M(e),function(e){V(n,e,i)}):P(n,i)}function x(n,i,t){r.WeixinJSBridge?WeixinJSBridge.on(n,function(e){t&&t.trigger&&t.trigger(e),V(n,e,i)}):P(n,t||i)}function M(e){return(e=e||{}).appId=h.appId,e.verifyAppId=h.appId,e.verifySignType="sha1",e.verifyTimestamp=h.timestamp+"",e.verifyNonceStr=h.nonceStr,e.verifySignature=h.signature,e}function C(e){return{timeStamp:e.timestamp+"",nonceStr:e.nonceStr,package:e.package,paySign:e.paySign,signType:e.signType||"SHA1"}}function V(e,n,i){"openEnterpriseChat"==e&&(n.errCode=n.err_code),delete n.err_code,delete n.err_desc,delete n.err_detail;var t=n.errMsg,e=(t||(t=n.err_msg,delete n.err_msg,t=((e,n)=>{var i,t=c[e];return t&&(e=t),t="ok",n&&(i=n.indexOf(":"),"access denied"!=(t=(t=(t=-1!=(t=-1!=(t="failed"==(t="confirm"==(t=n.substring(i+1))?"ok":t)?"fail":t).indexOf("failed_")?t.substring(7):t).indexOf("fail_")?t.substring(5):t).replace(/_/g," ")).toLowerCase())&&"no permission to execute"!=t||(t="permission denied"),""==(t="config"==e&&"function not exist"==t?"ok":t))&&(t="fail"),n=e+":"+t})(e,t),n.errMsg=t),(i=i||{})._complete&&(i._complete(n),delete i._complete),t=n.errMsg||"",h.debug&&!i.isInnerInvoke&&alert(JSON.stringify(n)),t.indexOf(":"));switch(t.substring(e+1)){case"ok":i.success&&i.success(n);break;case"cancel":i.cancel&&i.cancel(n);break;default:i.fail&&i.fail(n)}i.complete&&i.complete(n)}function A(e){if(e){for(var n=0,i=e.length;n<i;++n){var t=e[n],t=a[t];t&&(e[n]=t)}return e}}function P(e,n){var i;!h.debug||n&&n.isInnerInvoke||((i=c[e])&&(e=i),n&&n._complete&&delete n._complete,console.log('"'+e+'",',n||""))}function L(){return(new Date).getTime()}function B(e){o&&(r.WeixinJSBridge?e():n.addEventListener&&n.addEventListener("WeixinJSBridgeReady",e,!1))}});
\ No newline at end of file
!function(){var e;try{var t=null;function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function Ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ke=function(){return!!e})()}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $e(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ge(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?Ye(e):t}function Qe(e,t,n){return t=Xe(t),Ge(e,Ke()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}function Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t,n){return t&&et(e.prototype,t),n&&et(e,n),e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e,t){return rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rt(e,t)}function ot(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}function it(e,t,n){return it=Ke()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&rt(o,n.prototype),o},it.apply(null,arguments)}function at(e){var n="function"==typeof t?new t:void 0;return at=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return it(e,arguments,Xe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),rt(r,e)},at(e)}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nt(e,t,n[t])}))}return e}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var n=Object.prototype.toString;function st(e){return e&&"object"===(void 0===e?"undefined":$e(e))?"stack"in e&&"string"==typeof e.stack?lt(e):ft(e)?JSON.stringify(e):String(e):String(e)}function lt(e){var t=String(e),n=e.stack||"";return n.indexOf(t)>-1?n:"".concat(t,"\n").concat(n)}function ft(e){if(!e||"object"!==(void 0===e?"undefined":$e(e)))return!1;if("[object Object]"!==n.call(e))return!1;var t=Object.getPrototypeOf(e);return null==t||null==Object.getPrototypeOf(t)}function dt(e){var t,n,r,o,i=[],a=(r=ct({},e.bean),o=null!=(o={sessionId:(null===(t=e.bean)||void 0===t?void 0:t.sessionId)||Math.random().toString(36).slice(2)})?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ut(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})),r);function c(){n||(n=setTimeout(u,10))}function u(){if(n=void 0,0!==i.length){var t=e.from;"function"==typeof t&&(t=t()),null==t&&(t=location.origin||"".concat(location.protocol,"//").concat(location.host));var r="".concat("https://aegis.qq.com/collect","?id=").concat(e.id,"&from=").concat(t);a.aid&&(r+="&aid=".concat(encodeURIComponent(a.aid))),a.sessionId&&(r+="&sessionId=".concat(encodeURIComponent(a.sessionId))),a.uin&&(r+="&uin=".concat(encodeURIComponent(a.uin))),a.version&&(r+="&version=".concat(encodeURIComponent(a.version))),a.ext1&&(r+="&ext1=".concat(encodeURIComponent(a.ext1))),a.ext2&&(r+="&ext2=".concat(encodeURIComponent(a.ext2))),a.ext3&&(r+="&ext3=".concat(encodeURIComponent(a.ext3))),function(e,t){var n=new XMLHttpRequest;"withCredentials"in n||(n=new XDomainRequest);for(var r=[],o=t.length,i=0;i<o;i++)r.push(["msg[".concat(i,"]=").concat(encodeURIComponent(t[i].msg)),"level[".concat(i,"]=").concat(t[i].level)].join("&"));r.push("count=".concat(o)),n.open("POST",e),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.send(r.join("&"))}(r,i.reverse()),i=[]}}return{bean:a,setBean:function(e){e.sessionId&&(a.sessionId=e.sessionId),e.aid&&(a.aid=e.aid),e.uin&&(a.uin=e.uin)},info:function(e){i.unshift({level:2,msg:st(e)})},warn:function(e){i.unshift({level:2,msg:st(e)})},error:function(e){i.unshift({level:4,msg:st(e)}),c()},enqueueFlush:c,flush:u}}var r=window.encodeURIComponent;function pt(e){return e}function vt(){return Math.random().toString(36).slice(2)}var o=pt("250516-192935-335"),i=pt("wwopendata.web"),a=pt(""),c=pt(""),u=pt("mauvs8ah.Ukx0wN0K9vOFKkhLMR6IzVUdhg_jB7BTZ1mE5vr9UU6S"),s=pt("".concat(i,"@").concat(o)),l=dt({id:"bRLDot6R4Kymzz0jPO",bean:{sessionId:u,version:s}}),f=l.info,d=l.warn,p=l.error,v=l.flush,g={};function gt(e,t){ht(e,(function e(n){wt("name",e),t(n)}))}function ht(e,t){mt(g,e)||(g[e]=[]),g[e].push(t)}function wt(e,t){if(mt(g,e)){var n=g[e],r=n.indexOf(t);r>=0&&n.splice(r,1)}}function yt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(mt(g,e))if(n){var r={type:e,detail:t};g[e].forEach((function(t){try{t(r)}catch(t){console.log("[event] ".concat(e," error: ").concat(t))}}))}else yt(e,t,!0)}function mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function bt(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{return t.apply(this,r)}catch(t){St(t,e),yt("error",t)}}}e={captureException:St};var h=jt(f),w=jt(d),y=jt(p);function Ot(e){f(e),v()}function St(e,t){p("[".concat(t,"] ").concat(Et(e)))}function jt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=[],i=0,a=n.length;i<a;i++)o.push(Ct(n[i]));e(o.join(" "))}}function Ct(e){return e?"object"!==(void 0===e?"undefined":$e(e))?e:"string"==typeof e.stack?Et(e):JSON.stringify(e):e}function Et(e){return"".concat(e," ").concat(e.stack)}var m=Object.freeze({__proto__:null,captureException:St,captureMessage:Ot,error:y,log:h,warn:w,wrap:bt});function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kt(e){if(Array.isArray(e))return At(e)}function _t(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function xt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dt(e,t){if(e){if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function Mt(e){return kt(e)||_t(e)||Dt(e)||xt()}var b="[ww-open-data]";function It(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}function Pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=m).log.apply(r,Mt(t))}function Tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=m).warn.apply(r,Mt(t))}function Rt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;(r=m).error.apply(r,Mt(t))}function Ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o;(r=console).error.apply(r,[b].concat(Mt(t))),(o=m).error.apply(o,Mt(t))}var O=Function.prototype.call;function Wt(){var e={Math:window.Math,Number:window.Number,JSON:window.JSON,Promise:window.Promise,Uint8Array:window.Uint8Array,Function:window.Function,Object:window.Object,Array:window.Array,String:window.String,WeakMap:window.WeakMap,Element:window.Element,ShadowRoot:window.ShadowRoot,Image:window.Image,Node:window.Node,EventTarget:window.EventTarget,HTMLIFrameElement:window.HTMLIFrameElement,CanvasRenderingContext2D:window.CanvasRenderingContext2D},t={fetch:window.fetch,parseInt:window.parseInt,setTimeout:window.setTimeout},n=Object.create(null);return qt(n,"protected",Object.create(null)),qt(n,"singleton",Object.create(null)),Object.keys(e).forEach((function(t){e[t]&&(qt(n.singleton,t,e[t]),qt(n.protected,t,Nt(e[t])),e[t].prototype&&(qt(n.protected[t],"prototype",Nt(e[t].prototype)),Object.freeze(n.protected[t].prototype)),Object.freeze(n.protected[t]))})),Object.keys(t).forEach((function(e){qt(n.singleton,e,t[e])})),qt(n.singleton,"call",O.bind(O)),Object.defineProperty(n,"__version__",{value:s}),Object.freeze(n.protected),Object.freeze(n.singleton),Object.freeze(n),n}function Nt(e){var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(n){if("prototype"!==n){var r=Object.getOwnPropertyDescriptor(e,n),o=Object.create(null);qt(o,"value",r.value),qt(o,"get",r.get),qt(o,"set",r.set),qt(t,n,Object.freeze(o))}})),t}function qt(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0})}var S=Wt(),j=null==S?void 0:S.protected,C=null==S?void 0:S.singleton,E=(null==C?void 0:C.call)||Function.prototype.call.bind(Function.prototype.call),A=Ut(j,"Function.prototype.bind"),k=Ut(j,"Function.prototype.call"),_=function(e){return e&&E(A,k,e)};Ut(j,"Object.keys");var x=Ut(j,"Object.defineProperty"),D=Ut(C,"setTimeout","direct"),M=_(Ut(j,"Object.prototype.hasOwnProperty")),I=_(Ut(j,"Array.prototype.push")),P=_(Ut(j,"Array.prototype.forEach")),T=_(Ut(j,"Array.prototype.slice"));_(Ut(j,"Math.random")),_(Ut(j,"Number.prototype.toString"));var R=_(Ut(j,"String.prototype.indexOf")),F=_(Ut(j,"String.prototype.slice")),W=Ut(C,"Image","direct"),N=_(Ut(j,"Image.prototype.src","set"))||_(Ut(j,"HTMLImageElement.prototype.src","set"))||function(e,t){e.src=t},q=_(Ut(j,"HTMLIframeElement.prototype.contentWindow","get"))||function(e){return e.contentWindow},U=_(Ut(j,"HTMLIframeElement.prototype.contentDocument","get"))||function(e){return e.contentDocument},L=_(Ut(j,"EventTarget.prototype.addEventListener"))||function(e,t,n){e.addEventListener(t,n)},z=_(Ut(j,"CanvasRenderingContext2D.prototype.fillText")),J=_(Ut(j,"CanvasRenderingContext2D.prototype.drawImage")),H=_(Ut(j,"CanvasRenderingContext2D.prototype.strokeText")),B=_(Ut(j,"CanvasRenderingContext2D.prototype.measureText")),V=Ut(C,"WeakMap","direct"),X=_(Ut(j,"WeakMap.prototype.get")),K=_(Ut(j,"WeakMap.prototype.set")),Y=_(Ut(j,"Element.prototype.attachShadow")),$=_(Ut(j,"Node.prototype.textContent","set"));function Ut(e,t){var n,r,o,i,a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value",u=(null==j||null===(n=j.String)||void 0===n?void 0:n.prototype.split.value)||window.String.prototype.split,s=(null==j||null===(r=j.Array)||void 0===r?void 0:r.prototype.pop.value)||window.Array.prototype.pop,l=(null==j||null===(o=j.Array)||void 0===o?void 0:o.prototype.forEach.value)||window.Array.prototype.forEach,f=(null==j||null===(i=j.Object)||void 0===i?void 0:i.getOwnPropertyDescriptor.value)||Object.getOwnPropertyDescriptor,d=E(u,t,"."),p=E(s,d),v=e,g=window;if(E(l,d,(function(e){v&&(v=v[e]),g&&(g=g[e])})),null==v?void 0:v[p]){if(v=v[p],"direct"===c)return v;if(v[c])return v[c]}if(g)return"direct"===c||"value"===c?g[p]:null===(a=f(g,p))||void 0===a?void 0:a[c]}var G=new W,Q=!1,Z=null,ee=[];function Lt(e){Q?e():Z?e(Z):ee.push(e)}function zt(){var e=ee;ee=[],P(e,(function(e){e(Z)}))}function Jt(e,t){if(M(e,t))return e[t]}function Ht(e,t,n){x(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}L(G,"load",(function(){Q=!0,D(zt,1)})),L(G,"error",(function(){Z=new Error("Failed to load crossorigin image"),D(zt,1)})),N(G,"https://wwcdn.weixin.qq.com/node/wework/images/1x1-00000000.91e42db1c6.png");var te="\ufeff",ne=String.fromCharCode(8204),re=String.fromCharCode(8205),oe=String.fromCharCode(8203),ie=[String.fromCharCode(8206),String.fromCharCode(8207),ne,re,oe],ae={},ce=0;function Bt(e){var t=Jt(e,"encrypt_token");if(t)return t;var n=Jt(e,"data"),r=Jt(e,"encrypt_text_data");if(n&&r){for(var o=(ce++).toString(5),i="",a=0,c=o.length;a<c;a++)i+=ie[Number(o[a])];var u=te+r+i+te;return Ht(ae,u,n),Ht(e,"encrypt_token",u),u}}function Vt(e){var t=R(e,te,0);if(-1===t)return e;for(var n=F(e,0,t);-1!==t;){var r=R(e,te,t+1);if(-1===r)break;var o=Jt(ae,F(e,t,r+1));o?(n+=o,t=r+1):(n+=F(e,t,r),t=r)}return n+F(e,t)}var ue=V&&new V,se=!1,le=!1;function Xt(){var e;if(se)return!0;var t=null===(e=window.CanvasRenderingContext2D)||void 0===e?void 0:e.prototype;return!!t&&(t.strokeText=function(e,t,n,r){if(!Q)return null==r?H(this,e,t,n):H(this,e,t,n,r);var o=Vt(e);return o!==e&&$t(this),null==r?H(this,o,t,n):H(this,o,t,n,r)},t.fillText=function(e,t,n,r){if(!Q)return null==r?z(this,e,t,n):z(this,e,t,n,r);var o=Vt(e);return o!==e&&$t(this),null==r?z(this,o,t,n):z(this,o,t,n,r)},t.measureText=function(e){return B(this,Q?Vt(e):e)},se=!0,!0)}function Kt(){Tt("enable canvas sharing"),le=!0}function Yt(){le=!1}function $t(e){X(ue,e)||(le||J(e,G,0,0),K(ue,e,!0))}var fe={};function Gt(e,t,n){return"".concat(e,"::").concat(t,"::").concat(n||"")}function Qt(e){return Gt(Jt(e,"type"),Jt(e,"id"),Jt(e,"corpid"))}function Zt(e){return Jt(fe,e)}var de=vt(),pe=1,ve={},ge={},he={};function en(e,t){var n="".concat(de,".").concat(pe++),r=[],o={},i=0;if(P(e,(function(e){var t=Jt(e,"type"),a=Jt(e,"id");if(t&&a){var c=Gt(t,a,Jt(e,"corpid"));Zt(c)||M(o,c)||(Ht(o,c,!0),i+=1,M(ve,c)?I(Jt(ve,c),n):(Ht(ve,c,[n]),I(r,e)))}})),i)return Ht(he,n,i),Ht(ge,n,t),r;t()}function tn(e,t){if(!e)return Rt("[callback] missing response"),void nn(t,new Error("missing response data"));var n=Jt(e,"items");if(!n)return Rt("[callback] missing items"),void nn(t,new Error("missing response items"));P(n,(function(e){var t;t=Qt(e),Ht(fe,t,e)}));var r=[];P(t,(function(e){var t=Qt(e);if(Zt(t)){var n=Jt(ve,t);n&&(delete ve[t],P(n,(function(e){var t=Jt(ge,e);if(t){var n=Jt(he,e)-1;n>0?Ht(he,e,n):(delete he[e],delete ge[e],t())}})))}else I(r,e)})),r.length>0&&nn(r,new Error("missing items"))}function nn(e,t){P(e,(function(e){var n=Qt(e),r=Jt(ve,n);r&&(delete ve[n],P(r,(function(e){var n=Jt(ge,e);delete he[e],delete ge[e],n&&n(t)})))}))}var we=location.origin||"".concat(location.protocol,"//").concat(location.host),ye="https://open.work.weixin.qq.com",me="".concat(ye,"/wwopen/openData/frame/index#origin=").concat(r(we));function rn(e){for(var t=Ut(j,"JSON.parse"),n=Ut(C,"Uint8Array","direct"),r=Ut(j,"String.fromCodePoint"),o=r,i=new n(e),a="",c=0,u=i.length;c<u;){var s=i[c++];if(s<=127)a+=o(s);else{var l=63&i[c++];if(s<=223)a+=o((31&s)<<6|l);else{var f=63&i[c++];if(s<=239)a+=o((15&s)<<12|l<<6|f);else{var d=63&i[c++];r?a+=o((7&s)<<18|l<<12|f<<6|d):(a+=o(63),c+=3)}}}}return t(a)}function on(e){for(var t=Ut(C,"Uint8Array","direct"),n=Ut(C,"parseInt","direct"),r=_(Ut(j,"String.prototype.substring")),o=new t(e.length/2),i=0,a=e.length;i<a;i+=2)o[i/2]=n(r(e,i,i+2),16);return o}var be,Oe,Se,je={skey:null},Ce=(null===(be=window.crypto)||void 0===be?void 0:be.subtle)||(null===(Oe=window.crypto)||void 0===Oe?void 0:Oe.webkitSubtle);function an(e,t,n,r){un(e,t,n,r,!0)}function cn(e,t,n,r){un(e,t,n,r,!1)}function un(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(window.fetch)window.fetch(e,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){if(200===e.status)return o?e.arrayBuffer():e.json();var t="Invalid response status ".concat(e.status);return e.json().catch((function(){throw new Error(t)})).then((function(e){throw(null==e?void 0:e.result)?null==e?void 0:e.result:new Error(t)}))})).then(n,r);else{var i=new XMLHttpRequest;i.open("POST",e),i.withCredentials=!0,o&&(i.responseType="arraybuffer"),i.setRequestHeader("Content-Type","application/json"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(200===i.status)if(o)n(i.response);else try{n(JSON.parse(i.responseText))}catch(e){r(new Error("Parse response error"))}else r(new Error("Invalid response status ".concat(i.status)))},i.onerror=function(){r(new Error("Request error"))},i.send(JSON.stringify(t))}}function sn(e){if(!a)return Rt("[fetchData] missing referer"),void nn(e,{errMsg:"wwapp.fetchOpenData:fail",hint:"Missing referer for jwxwork.js. See: https://developer.work.weixin.qq.com/document/path/91958"});var t=vt(),n="".concat(ye,"/wwopen/openData/getOpenData?f=json&r=").concat(t);Pt("[fetchData] begin #".concat(t));var r=Se||(Se=Ce.importKey("raw",on(a),"AES-CBC",!1,["decrypt"]));function o(n){Rt("[fetchData] fetch fail #".concat(t," (").concat(t,")"),n),nn(e,{errMsg:"wwapp.fetchOpenData:fail",rand:t,detail:n})}an(n,{items:e,skey:je.skey,sid:c},(function(n){Pt("[fetchData] fetch res #".concat(t)),r.then((function(e){return Ce.decrypt({name:"AES-CBC",iv:new Uint8Array(16)},e,n)})).then(rn).then((function(n){Pt("[fetchData] fetch parsed #".concat(t)),tn(n,e)})).catch(o)}),o)}function ln(e,t,n){var r=null;try{r=U(e)}catch(e){}if(null!==r)throw new Error("Missing cross origin");It("[iframe] postMessage",e,t,n),q(e).postMessage(t,n)}var Ee={},Ae=vt(),ke=0;function fn(e){var t="".concat(Ae,".").concat(vt(),".").concat(ke++);return Ht(Ee,t,e),t}function dn(e){delete Ee[e]}vt();var _e,xe=1e3,De=20,Me=[];function pn(e,t){var n=en(e,t);n&&(P(n,(function(e){I(Me,e)})),!_e&&Me.length&&(_e=D(bt("flush-fetch",vn),De)))}function vn(){var e=Me;_e=void 0,Me=[];for(var t=e.length,n=0;n<t;n+=xe){sn(T(e,n,n+xe))}}var Ie=function(){function e(){var t=this;Ze(this,e),nt(this,"iframe",document.createElement("iframe")),nt(this,"state",1),nt(this,"queue",[]),nt(this,"timer",void 0),this.iframe.onload=bt("MainFrame.onload",(function(){Pt("[MainFrame] onload"),t.state=2,t.fetchData()})),this.iframe.onerror=function(e){St((null==e?void 0:e.error)||new Error("MainFrame load error"),"MainFrame.onerror"),t.state=3},this.iframe.style.display="none",this.iframe.referrerPolicy="origin",this.iframe.src=me}return tt(e,[{key:"enqueueFetch",value:function(e){var t=this;this.queue.push(e),this.timer||(this.timer=D(bt("MainFrame.timeout",(function(){2===t.state&&t.fetchData()})),20))}},{key:"fetchData",value:function(){var e={},t=[];this.queue.forEach((function(n){var r="".concat(n.type,"::").concat(n.id,"::").concat(n.corpid||"");e[r]||(e[r]=!0,t.push(n))})),t.length&&(this.timer=void 0,this.queue=[],Pt("[MainFrame] fetchData"),ln(this.iframe,JSON.stringify({type:"fetch",items:t,skey:je.skey,sid:c}),ye))}}]),e}(),Pe=["fontFamily","fontSize","fontWeight","fontStyle","fontVariant","fontStretch","fontSizeAdjust","color","cursor"],Te=function(){function e(t,n){Ze(this,e),nt(this,"container",void 0),nt(this,"mainFrame",void 0),nt(this,"renderType",void 0),nt(this,"loadState",void 0),nt(this,"renderEl",void 0),this.container=t,this.mainFrame=n,this.renderType=1,this.loadState=1}return tt(e,[{key:"update",value:function(){var e=this.getItem();if(!e.type||!e.id)return this.renderEmpty();this.renderText(e)}},{key:"renderEmpty",value:function(){this.setChild(1)}},{key:"renderText",value:function(e){var t=this;if(2!==this.renderType||3===this.loadState){var n=document.createElement("iframe");n.onload=bt("Frame.onload",(function(){t.renderEl===n&&(t.loadState=2,t.notifyUpdate())})),n.onerror=function(e){t.renderEl===n&&(St((null==e?void 0:e.error)||new Error("Frame load error"),"Frame.onerror"),t.loadState=3)};var o=r("".concat(e.type,"::").concat(e.id,"::").concat(e.corpid||""));n.frameBorder="0",n.referrerPolicy="origin",n.src="".concat(me,"&init=").concat(o),this.loadState=4,this.setChild(2,n)}this.mainFrame.enqueueFetch(e),2===this.loadState&&this.notifyUpdate(e)}},{key:"setChild",value:function(e,t){for(var n=this.container;n.firstChild;)n.removeChild(n.firstChild);t&&n.appendChild(t),this.renderEl=t,this.renderType=e}},{key:"getItem",value:function(){return{type:this.container.getAttribute("type"),id:this.container.getAttribute("openid"),corpid:this.container.getAttribute("corpid")||void 0}}},{key:"notifyUpdate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getItem();if(e.type&&e.id){var t={},n=getComputedStyle(this.container);Pe.forEach((function(e){t[e]=n[e]})),ln(this.renderEl,JSON.stringify({type:"update",item:e,style:t}),ye)}}}]),e}(),Re={"ww.opendata.event":function(e,t){var n;"click"===e.eventType&&(null===(n=t.parentNode)||void 0===n||n.click())},"ww.opendata.resize":function(e,t){var n=e.size;t.style.width=n.width,t.style.height=n.height,yt("update",{el:t.parentNode,hasData:!!n.width})}};function gn(e){if(e.origin===ye){var t;try{t=JSON.parse(e.data)}catch(e){}t&&Re[t.type]&&P(document.querySelectorAll("ww-open-data iframe"),(function(n){n.contentWindow===e.source&&Re[t.type](t,n)}))}}var Fe,We,Ne="__WW_OPENDATA_RENDER__";function hn(){window.addEventListener?window.addEventListener("message",bt("dispatchMessage",gn)):window.attachEvent("onmessage",bt("dispatchMessage",gn));var e=document.querySelector("head");We=document.createElement("style"),e.appendChild(We),Fe=new Ie,e.appendChild(Fe.iframe);var t=We.sheet;t.insertRule("ww-open-data { display: inline-block; vertical-align: text-bottom; overflow: hidden }",0),t.insertRule("ww-open-data img { display: block; width: 100%; height: 100% }",1),t.insertRule("ww-open-data iframe { display: block; width: 0; height: 0 }",2)}function wn(e){if(e){var t=e;t[Ne]||(t[Ne]=new Te(e,Fe)),t[Ne].update()}}function yn(e){P(e,wn)}var qe=V&&new V;function mn(e){var t=X(qe,e);if(t)return t;try{var n=Y(e,{mode:"closed"});return K(qe,e,n),n}catch(t){Rt("[getShadow] fail",e,t)}}function bn(e){It("[bindAll] begin",e),P(e,On),It("[bindAll] end")}function On(e){if(!Sn(e,!0)){je.skey||(yt("error",{errMsg:"bind:fail",message:"missing agentConfig",element:e}),console.error("[ww-open-data] 页面未完成 wx.agentConfig,请先完成 wx.agentConfig 再调用 WWOpenData.bind,后续将逐步下线未完成 wx.agentConfig 时调用 WWOpenData.bind 的支持"));var t=vt();pn([{type:e.getAttribute("type"),id:e.getAttribute("openid"),corpid:e.getAttribute("corpid")}],bt("bind-pending",(function(n){if(n)return Rt("[bind] fetch error",t,n),void yt("error",{errMsg:"bind:fail",message:"fetch open-data fail",detail:n});Sn(e)})))}}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(null==e?void 0:e.getAttribute))return yt("error",{errMsg:"bind:fail",message:"missing bind element",element:e}),!1;var n=e.getAttribute("type");if(!n)return yt("error",{errMsg:"bind:fail",message:"missing open-data type",element:e}),!1;var r=e.getAttribute("openid");if(!r)return yt("error",{errMsg:"bind:fail",message:"missing open-data openid",element:e}),!1;var o=e.getAttribute("corpid"),i=mn(e);if(!i)return yt("error",{errMsg:"bind:fail",message:"attach shadow fail",element:e}),!1;var a=Zt(Gt(n,r,o));if(!a)return t||yt("error",{errMsg:"bind:fail",message:"missing open-data item",element:e}),!1;var c=Jt(a,"data");return $(i,c||""),yt("update",{element:e,hasData:!!c}),!!c}var Ue=0;Y||(Ue|=1),Ce||(Ue|=2),"http:"===document.location.protocol&&(Ue|=4);var Le,ze=0,Je=navigator.userAgent;if(!(/miniProgram/i.test(Je)||"miniprogram"===window.__wxjs_environment))/wxwork/i.test(Je)&&(ze|=4),window.WeixinSandBox&&(ze|=1),(null===(Le=window.wx)||void 0===Le?void 0:Le.agentConfig)&&(ze|=2);var He=bt("bind",Ue?wn:On),Be=bt("bindAll",Ue?yn:bn);function jn(){En("checkSession",{sid:c},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(e.corpid&&e.agentid&&e.timestamp&&e.nonceStr&&e.signature&&e.jsApiList)){var t,n,r={err_Info:"fail",errMsg:"agentConfig:fail",hint:"Missing params"};return null===(t=e.fail)||void 0===t||t.call(e,r),void(null===(n=e.complete)||void 0===n||n.call(e,r))}var o={corpid:"".concat(e.corpid),agentid:"".concat(e.agentid),timestamp:"".concat(e.timestamp),nonceStr:"".concat(e.nonceStr),signature:"".concat(e.signature),jsApiList:e.jsApiList,url:location.href};En("agentConfig",{config:o,sid:c},e,(function(e){var t,n;je.skey&&(null===(t=e.data)||void 0===t?void 0:t.skey)!==je.skey&&(fe={}),je.skey=null===(n=e.data)||void 0===n?void 0:n.skey,Be(document.querySelectorAll("ww-open-data")),Pt("[user config] #".concat(JSON.stringify(o)))}))}function En(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=vt();Pt("[invoke] ".concat(e," begin #").concat(o)),cn("".concat(ye,"/wwopen/openData/").concat(e,"?f=json&r=").concat(o),t,(function(t){var i,a,c,u,s=(null===(i=t.data)||void 0===i?void 0:i.result)||t.data||{errMsg:"".concat(e,":fail")};s.errMsg==="".concat(e,":ok")?(It("[invoke] ".concat(e," succ #").concat(o)),null==r||r(t),null===(c=n.success)||void 0===c||c.call(n,s)):(Rt("[invoke] ".concat(e," fail #").concat(o),t),null===(u=n.fail)||void 0===u||u.call(n,s));null===(a=n.complete)||void 0===a||a.call(n,s)}),(function(t){var r,i;Rt("[invoke] ".concat(e," fail #").concat(o),t);var a={errMsg:"".concat(e,":fail")};null===(r=n.fail)||void 0===r||r.call(n,a),null===(i=n.complete)||void 0===i||i.call(n,a)}))}function An(e,t){var n=e.items;pn(n,(function(e){if(e)return t(e);var r=[];P(n,(function(e){var t=Zt(Qt(e));t&&1===Jt(t,"datakind")&&r.push({type:e.type,id:e.id,corpid:e.corpid,data:Bt(t)})})),Lt((function(e){e?t(e):t(null,{items:r})}))}))}function kn(e,t){t(null,(function(e){_n(e)}))}function _n(e,t){ln(e,{type:"ww-open-data:inject-session",data:t},arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*")}if(ze)Tt("skip inject",ze);else{if(Ue?(Tt("inject iframe",Ue),hn()):Pt("inject begin",Ue),a||Ft("Missing referer for jwxwork.js. See: https://work.weixin.qq.com/api/doc/90001/90143/91958"),window.wx?window.wx.agentConfig||Pt("define wx.agentConfig"):Tt("missing window.wx"),window.wx||(window.wx={}),window.wx.agentConfig||x(window.wx,"agentConfig",{value:bt("agentConfig",Cn)}),window.WWOpenData)Rt("window.WWOpenData already exists");else{var Ve={};xn(Ve,"bindAll",Be),xn(Ve,"bind",He),xn(Ve,"on",ht),xn(Ve,"once",gt),xn(Ve,"off",wt),xn(Ve,"checkSession",jn),xn(Ve,"initCanvas",Xt),xn(Ve,"enableCanvasSharing",Kt),xn(Ve,"disableCanvasSharing",Yt),xn(Ve,"prefetch",An),xn(Ve,"registerOpenFrame",bt("registerOpenFrame",fn)),xn(Ve,"unregisterOpenFrame",bt("unregisterOpenFrame",dn)),xn(Ve,"createOpenSessionInjector",bt("createOpenSessionInjector",kn)),x(Ve,"__version__",{value:s}),xn(Ve,"agentConfig",bt("agentConfig",Cn)),xn(window,"WWOpenData",Ve),Pt("window.WWOpenData defined",window.WWOpenData)}"customElements"in window&&!customElements.get("ww-open-data")&&Dn()}function xn(e,t,n){x(e,t,{value:n,enumerable:!0})}function Dn(){try{Pt("register custom element");var e=function(e){e._current={type:e.getAttribute("type"),id:e.getAttribute("openid"),corpid:e.getAttribute("corpid")},e._current.type&&e._current.id&&je.skey&&He(e)},t=function(t){function n(){var t;return Ze(this,n),nt(t=Qe(this,n),"_current",{}),t.getAttribute("type")&&t.getAttribute("openid")?(e(t),t):Ge(t)}return ot(n,t),tt(n,[{key:"attributeChangedCallback",value:function(){this._current.type===this.getAttribute("type")&&this._current.id===this.getAttribute("openid")&&this._current.corpid===this.getAttribute("corpid")||e(this)}}],[{key:"observedAttributes",get:function(){return["type","openid","corpid"]}}]),n}(at(HTMLElement));customElements.define("ww-open-data",t)}catch(e){St(e,"register custom element")}}}catch(Z){e.captureException(Z,"?")}}();
...@@ -5,9 +5,9 @@ import {getAuthUser} from '@/api/user' ...@@ -5,9 +5,9 @@ import {getAuthUser} from '@/api/user'
Vue.use(VueRouter) Vue.use(VueRouter)
function Authorize() { function Authorize() {
// 先获取企微配置信息 // 先获取企微配置信息
let originUrl = location.href; originUrl; let redirectUrl = location.origin + location.pathname;
let redirectUrl = originUrl.split('?')[0];
let returnUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wweaefe716636df3d1&redirect_uri=${encodeURIComponent(redirectUrl)}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect` let returnUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wweaefe716636df3d1&redirect_uri=${encodeURIComponent(redirectUrl)}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
console.log('进入Authorize',returnUrl)
window.location.href = returnUrl; window.location.href = returnUrl;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论