(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shop-video/shop-video"],{"2be3":function(e,n,t){"use strict";t.r(n);var o=t("41ac"),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},"41ac":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("057a"),i={data:function(){return{videoList:"",isChange:!1}},onLoad:function(){this.getVideo()},methods:{change:function(e){e.isChecked=!e.isChecked},getVideo:function(){var e=this;(0,o.getAllVideo)().then((function(n){if(200==n.code){var t=n.data;t.map((function(n){e.$set(n,"isChecked",!1)})),e.videoList=t}}))},downLoad:function(){var n=this,t=[],o=this.videoList;if(o.map((function(e){e.isChecked&&t.push(e.value)})),0!==t.length){e.showLoading({title:"下载中...",mask:!0});for(var i=0,a=0;a<t.length;a++)e.downloadFile({url:t[a],success:function(o){200===o.statusCode?(e.showLoading({title:"保存中...",mask:!0}),i++,n.save(o.tempFilePath,i,t.length)):(e.showToast({title:"下载视频失败",icon:"none"}),e.hideLoading())},fail:function(n){e.showToast({title:"下载视频失败",icon:"none"}),e.hideLoading()}})}else e.showToast({title:"请至少选择一个下载项",icon:"none"})},save:function(n,t,o){e.saveVideoToPhotosAlbum({filePath:n,success:function(n){t===o&&(e.hideLoading(),e.showModal({content:"教程已全部下载",showCancel:!1}))},fail:function(){e.showToast({title:"保存失败",icon:"none"}),e.hideLoading()}})}}};n.default=i}).call(this,t("543d")["default"])},"4ae0":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,e.__map(e.videoList,(function(n,t){var o=e.__get_orig(n),i=0==t?e._f("getName")(n.name,18):null,a=0!=t?e._f("getName")(n.name,9):null;return{$orig:o,f0:i,f1:a}})));e._isMounted||(e.e0=function(n){e.isChange=!0},e.e1=function(n){e.isChange=!1}),e.$mp.data=Object.assign({},{$root:{l0:t}})},a=[]},"4da9":function(e,n,t){"use strict";(function(e){t("fdf4");o(t("66fd"));var n=o(t("c074"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},a105:function(e,n,t){},a4ec:function(e,n,t){"use strict";var o=t("a105"),i=t.n(o);i.a},c074:function(e,n,t){"use strict";t.r(n);var o=t("4ae0"),i=t("2be3");for(var a in i)"default"!==a&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t("a4ec");var c,u=t("f0c5"),s=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"3949daa6",null,!1,o["a"],c);n["default"]=s.exports}},[["4da9","common/runtime","common/vendor"]]]);