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.

1 line
16 KiB

10 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["subPackages-user-register"],{3513:function(t,e,i){"use strict";var n=i("e12e"),o=i.n(n);o.a},4435:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToPath=function(t){return new Promise((function(e,i){if("object"===("undefined"===typeof window?"undefined":(0,o.default)(window))&&"document"in window){t=t.split(",");var n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),c=r.length,u=new Uint8Array(c);while(c--)u[c]=r.charCodeAt(c);return e((window.URL||window.webkitURL).createObjectURL(new Blob([u],{type:n})))}var f=t.split(",")[0].match(/data\:\S+\/(\S+);/);f?f=f[1]:i(new Error("base64 error"));var d=function(){return Date.now()+String(s++)}()+"."+f;if("object"!==("undefined"===typeof plus?"undefined":(0,o.default)(plus)))if("object"===("undefined"===typeof wx?"undefined":(0,o.default)(wx))&&wx.canIUse("getFileSystemManager")){l=wx.env.USER_DATA_PATH+"/"+d;wx.getFileSystemManager().writeFile({filePath:l,data:a(t),encoding:"base64",success:function(){e(l)},fail:function(t){i(t)}})}else i(new Error("not support"));else{var l="_doc/uniapp_temp/"+d;if(!function(t,e){for(var i=t.split("."),n=e.split("."),o=!1,a=0;a<n.length;a++){var s=i[a]-n[a];if(0!==s){o=s>0;break}}return o}("Android"===plus.os.name?"1.9.9.80627":"1.9.9.80472",plus.runtime.innerVersion))return void plus.io.resolveLocalFileSystemURL("_doc",(function(n){n.getDirectory("uniapp_temp",{create:!0,exclusive:!1},(function(n){n.getFile(d,{create:!0,exclusive:!1},(function(n){n.createWriter((function(n){n.onwrite=function(){e(l)},n.onerror=i,n.seek(0),n.writeAsBinary(a(t))}),i)}),i)}),i)}),i);var v=new plus.nativeObj.Bitmap(d);v.loadBase64Data(t,(function(){v.save(l,{},(function(){v.clear(),e(l)}),(function(t){v.clear(),i(t)}))}),(function(t){v.clear(),i(t)}))}}))},e.pathToBase64=function(t){return new Promise((function(e,i){if("object"===("undefined"===typeof window?"undefined":(0,o.default)(window))&&"document"in window){if("function"===typeof FileReader){var n=new XMLHttpRequest;return n.open("GET",t,!0),n.responseType="blob",n.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=i,t.readAsDataURL(this.response)}},n.onerror=i,void n.send()}var a=document.createElement("canvas"),s=a.getContext("2d"),r=new Image;return r.onload=function(){a.width=r.width,a.height=r.height,s.drawImage(r,0,0),e(a.toDataURL()),a.height=a.width=0},r.onerror=i,void(r.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,o.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,o.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){i(t)}}):i(new Error("not support")):plus.io.resolveLocalFileSystemURL(function(t){if(0===t.indexOf("_www")||0===t.indexOf("_doc")||0===t.indexOf("_documents")||0===t.indexOf("_downloads"))return t;if(0===t.indexOf("file://"))return t;if(0===t.indexOf("/storage/emulated/0/"))return t;if(0===t.indexOf("/")){var e=plus.io.convertAbsoluteFileSystem(t);if(e!==t)return e;t=t.substr(1)}return"_www/"+t}(t),(function(t){t.file((function(t){var n=new plus.io.FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){i(t)},n.readAsDataURL(t)}),(function(t){i(t)}))}),(function(t){i(t)}))}))};var o=n(i("fcf3"));function a(t){var e=t.split(",");return e[e.length-1]}i("5ef2"),i("bf0f"),i("7a76"),i("c9b5"),i("5c47"),i("2c10"),i("15d1"),i("d5c6"),i("5a56"),i("f074"),i("4db2"),i("c976"),i("4d8f"),i("7b97"),i("668a"),i("c5b7"),i("8ff5"),i("2378"),i("641a"),i("64e0"),i("cce3"),i("efba"),i("d009"),i("bd7d"),i("7edd"),i("d798"),i("f547"),i("5e54"),i("b60a"),i("8c18"),i("12973"),i("f991"),i("198e"),i("8557"),i("63b1"),i("1954"),i("1cf1"),i("18f7"),i("de6c"),i("dc89"),i("2425");var s=0},"462b":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插