(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-IOSDownLoad-IOSDownLoad"],{"028f":function(e,n,t){"use strict";t.r(n);var o=t("57d6"),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},"57d6":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(){var e=this;console.log("download"),uni.showLoading({title:"正在请求数据"}),uni.request({url:"/img"+this.fileUrl,responseType:"arraybuffer",success:function(n){uni.hideLoading(),console.log("response:",n),n||uni.showToast({title:"下载失败",duration:2e3});var t=new Blob([n.data]),o=document.createElement("a"),i=window.URL.createObjectURL(t);o.href=i,o.download=e.fileUrl,document.body.appendChild(o),o.click(),uni.showToast({title:"下载成功",duration:2e3}),document.body.removeChild(o),window.URL.revokeObjectURL(i)}})}}};n.default=o},5956:function(e,n,t){"use strict";t.r(n);var o=t("cd6e"),i=t("028f");for(var a in i)"default"!==a&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t("747b");var r,u=t("f0c5"),d=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"06280700",null,!1,o["a"],r);n["default"]=d.exports},"747b":function(e,n,t){"use strict";var o=t("be2f"),i=t.n(o);i.a},be2f:function(e,n,t){var o=t("e0ec");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=t("4f06").default;i("6bb4fb1d",o,!0,{sourceMap:!1,shadowMode:!1})},cd6e: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("点击下载"+e._s(e.fileUrl))])],1)},a=[]},e0ec:function(e,n,t){var o=t("24fb");n=o(!1),n.push([e.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */.download-btn[data-v-06280700]{width:50%;background:#3273bd;color:#fff;margin-top:%?100?%}',""]),e.exports=n}}]);