(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shop-video/shop-video"],{104:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var i=o(t(105));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},105:function(n,e,t){"use strict";t.r(e);var o=t(106),i=t(108);for(var a in i)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(a);t(110);var r,c=t(32),u=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"c35b8e74",null,!1,o["components"],r);u.options.__file="pages/shop-video/shop-video.vue",e["default"]=u.exports},106:function(n,e,t){"use strict";t.r(e);var o=t(107);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},107:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return i})),t.d(e,"staticRenderFns",(function(){return r})),t.d(e,"recyclableRender",(function(){return a})),t.d(e,"components",(function(){return o}));var i=function(){var n=this,e=n.$createElement,t=(n._self._c,n.__map(n.videoList,(function(e,t){var o=n.__get_orig(e),i=0==t?n._f("getName")(e.name,18):null,a=0!=t?n._f("getName")(e.name,9):null;return{$orig:o,f0:i,f1:a}})));n._isMounted||(n.e0=function(e){n.isChange=!0},n.e1=function(e){n.isChange=!1}),n.$mp.data=Object.assign({},{$root:{l0:t}})},a=!1,r=[];i._withStripped=!0},108:function(n,e,t){"use strict";t.r(e);var o=t(109),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);e["default"]=i.a},109:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(71),i={data:function(){return{videoList:"",isChange:!1}},onLoad:function(){this.getVideo()},methods:{change:function(n){n.isChecked=!n.isChecked},getVideo:function(){var n=this;(0,o.getAllVideo)().then((function(e){if(200==e.code){var t=e.data;t.map((function(e){n.$set(e,"isChecked",!1)})),n.videoList=t}}))},downLoad:function(){var e=this,t=[],o=this.videoList;if(o.map((function(n){n.isChecked&&t.push(n.value)})),0!==t.length){n.showLoading({title:"下载中...",mask:!0});for(var i=0,a=0;a<t.length;a++)n.downloadFile({url:t[a],success:function(o){200===o.statusCode?(n.showLoading({title:"保存中...",mask:!0}),i++,e.save(o.tempFilePath,i,t.length)):(n.showToast({title:"下载视频失败",icon:"none"}),n.hideLoading())},fail:function(e){n.showToast({title:"下载视频失败",icon:"none"}),n.hideLoading()}})}else n.showToast({title:"请至少选择一个下载项",icon:"none"})},save:function(e,t,o){n.saveVideoToPhotosAlbum({filePath:e,success:function(e){t===o&&(n.hideLoading(),n.showModal({content:"教程已全部下载",showCancel:!1}))},fail:function(){n.showToast({title:"保存失败",icon:"none"}),n.hideLoading()}})}}};e.default=i}).call(this,t(2)["default"])},110:function(n,e,t){"use strict";t.r(e);var o=t(111),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);e["default"]=i.a},111:function(n,e,t){}},[[104,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/shop-video/shop-video.js.map