(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-IOSDownLoad-IOSDownLoad"],{"00a1":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-view",[e.isWeiXin?e._e():t("v-uni-button",{staticClass:"download-btn",attrs:{type:"default"},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.downLoad()}}},[e._v("点击下载pdf")])],1)},a=[]},"03da":function(e,n,t){"use strict";var o=t("195c"),i=t.n(o);i.a},"195c":function(e,n,t){var o=t("de33");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=t("4f06").default;i("066a4714",o,!0,{sourceMap:!1,shadowMode:!1})},"7f59":function(e,n,t){"use strict";t.r(n);var o=t("b16e"),i=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},b16e:function(e,n,t){"use strict";t("d3b7"),t("ac1f"),t("3ca3"),t("466d"),t("ddb0"),t("2b3d"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{isWeiXin:!0,fileUrl:""}},onLoad:function(e){e&&e.url&&(this.fileUrl=e.url,console.log(this.fileUrl)),this.getIsWxClient()},methods:{getIsWxClient:function(){var e=navigator.userAgent.toLowerCase();"micromessenger"==e.match(/MicroMessenger/i)?(this.isWeiXin=!0,uni.showModal({title:"提示",content:"请点击右上角，在浏览器打开页面。",showCancel:!1})):this.isWeiXin=!1},downLoad:function(){console.log("download"),uni.showLoading({title:"正在请求数据"}),uni.request({url:"/video/txt.pdf",responseType:"arraybuffer",success:function(e){uni.hideLoading(),console.log("response:",e),e||uni.showToast({title:"下载失败",duration:2e3});var n=new Blob([e.data]),t=document.createElement("a"),o=window.URL.createObjectURL(n);t.href=o,t.download="文件.pdf",document.body.appendChild(t),t.click(),uni.showToast({title:"下载成功",duration:2e3}),document.body.removeChild(t),window.URL.revokeObjectURL(o)}})}}};n.default=o},c2a4:function(e,n,t){"use strict";t.r(n);var o=t("00a1"),i=t("7f59");for(var a in i)"default"!==a&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t("03da");var r,d=t("f0c5"),u=Object(d["a"])(i["default"],o["b"],o["c"],!1,null,"7b84e5fe",null,!1,o["a"],r);n["default"]=u.exports},de33:function(e,n,t){var o=t("24fb");n=o(!1),n.push([e.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */.download-btn[data-v-7b84e5fe]{width:50%;background:#3273bd;color:#fff;margin-top:%?100?%}',""]),e.exports=n}}]);