download.js 3.6 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/download/download"],{388:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(389));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},389:function(e,n,t){"use strict";t.r(n);var o=t(390),r=t(392);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t(394);var c,l=t(32),u=Object(l["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],c);u.options.__file="pages/download/download.vue",n["default"]=u.exports},390:function(e,n,t){"use strict";t.r(n);var o=t(391);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},391:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return c})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return o}));try{o={mescrollEmpty:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/mescroll-uni/components/mescroll-empty/mescroll-empty")]).then(t.bind(null,495))},uvIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uv-icon/components/uv-icon/uv-icon")]).then(t.bind(null,699))}}}catch(l){if(-1===l.message.indexOf("Cannot find module")||-1===l.message.indexOf(".vue"))throw l;console.error(l.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.list.length);e.$mp.data=Object.assign({},{$root:{g0:t}})},i=!1,c=[];r._withStripped=!0},392:function(e,n,t){"use strict";t.r(n);var o=t(393),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},393:function(e,n,t){"use strict";(function(e,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{list:[],deviceId:""}},onLoad:function(){this.init()},methods:{init:function(){var n=this,t=e.getStorageSync("downliadFile")?JSON.parse(e.getStorageSync("downliadFile")):[];this.list=t.filter((function(e){return e.userId===n.$store.getters.user.userId}))},deleteFile:function(n){var t=this,o=e.getStorageSync("downliadFile")?JSON.parse(e.getStorageSync("downliadFile")):[],r=t.list[n];e.showModal({title:"有极提示",content:"是否删除该文件?",success:function(n){if(n.confirm){console.log(o),console.log(r);var i=o.findIndex((function(e){return e.wxUrl===r.wxUrl}));o.splice(i,1),e.setStorageSync("downliadFile",JSON.stringify(o)),t.init()}}})},shareFile:function(e){var n=this.list[e];t.shareFileMessage({filePath:n.wxUrl,fileName:n.fileName,success:function(e){}})},openDocument:function(n){var t=this,o=this.list[n];e.openDocument({filePath:o.wxUrl,fileType:o.type,success:function(e){},fail:function(e){t.$toast("打开失败")}})}}};n.default=o}).call(this,t(2)["default"],t(1)["default"])},394:function(e,n,t){"use strict";t.r(n);var o=t(395),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},395:function(e,n,t){}},[[388,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/download/download.js.map