You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
40 KiB
2 lines
40 KiB
|
2 years ago
|
var e,n,t="undefined"!=typeof window?window:void 0,r="undefined"!=typeof document?document:void 0,i="undefined"!=typeof navigator?navigator:void 0,o="undefined"!=typeof location?location:void 0;function a(){return(null==o?void 0:o.href)||""}function u(){return(null==r?void 0:r.title)||""}var c,s,l,d=(null==i?void 0:i.userAgent)||"",f=(null==i?void 0:i.platform)||"",p=null===(n=null==d?void 0:d.match(/wxwork\/([\d.]+)/i))||void 0===n?void 0:n[1],v=!!p,h=!v&&/micromessenger/i.test(d),g=/\bAndroid\b/i.test(d),m=/Win/i.test(f),w=(e=function(){var e,n=null!==(e=null==i?void 0:i.maxTouchPoints)&&void 0!==e?e:1,t=/Mac/i.test(f);if(t&&n>2)return{isMac:!1,isIOS:!0};return{isMac:t,isIOS:/\b(iPhone|iPad|iPod)\b/i.test(d)}}(),e.isIOS),y=e.isMac;function C(){return c}function S(){var e;return null===(e=null==s?void 0:s.getResult())||void 0===e?void 0:e.params}function b(){var e;return null===(e=null==l?void 0:l.getResult())||void 0===e?void 0:e.params}function _(){var e=C();if(v&&(null==e?void 0:e.getAgentConfigSignature)){var n=b();return null==n?void 0:n.corpid}var t=S();return null==t?void 0:t.appId}function k(){var e=function(){var e=C();return v&&(null==e?void 0:e.getAgentConfigSignature)?b():S()}();if(e){var n=_();return{appId:n,verifyAppId:n,verifySignType:"sha1",verifyTimestamp:e.timestamp,verifyNonceStr:e.nonceStr,verifySignature:e.signature}}}var I=function(e,n){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},I(e,n)};function A(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}I(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var P=function(){return P=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},P.apply(this,arguments)};function x(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(n){o(n)}}function u(e){try{c(r.throw(e))}catch(n){o(n)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}c((r=r.apply(e,n||[])).next())}))}function M(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(u){o=[6,u],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function B(e,n,t){if(t||2===arguments.length)for(var r,i=0,o=n.length;i<o;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}for(var D={config:"preVerifyJsApi",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareWechat:"menu:share:wechat",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",startSearchBeac
|