chunk-79731caa.518e337b.js 10 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79731caa"],{"088b":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAwlJREFUWEfNmE1oE0EUx/9vt7GLKB5WJYIIVQ8qoiBYRUtBET30JhhaPBVNNlM09KJ48uBJ9FKiZLKJ0ovSEsGbB0UUpIofKCiiPRQKIhjUHESR1CH7ZMpG0tjapI1l5jpv3vzmvXkfM4QmRz6f76hUKkcAdAHYyswbAKwM1Xwnog8A3gMYs237bjwen2xmC2pEuFAo2KVS6RiAUwD2AWhoHQAG8ATAVdd1b8Viscp8+82rOJfLHapUKlcAbKlaAcAdAA8AvFZKTUaj0W96rlgsropEIh0AdgI4CKCnxnrjtm2fTiQS9/8FNSfQ8PCwUy6Xh4gowcxaboKILhLRiOd5P+c7qZ73fX85M/cx8zkAm4mImTnnOM5gf39/eTYdswKl0+k1kUhEW2E3gLJlWecBDHmepxoBqZfxfT8CYDAIggsAHAAvlFI9qVTqS73sX0AhzKPQRZ+Y+ejAwMDThYDUr8lkMnuJ6DaAdQDGlVLd9VAzgEI3aRhtmTfhKT62AqaqI51Orw+tv0NbynGc7lr3zQCSUmYBeAA+KaU6U6lUS2HqoJ6HlvKFEMnq3B8gHU1BENxj5ilmPtAqN81l3dB9D4mo3bKsw9XomwYK88xbfW8syzrred7lVrppLl2+758JguCSvk+u627XeWoaSErZC2BEh7ZlWdsWGk3NHkJHXxAE73RKANAnhBitAo0B2E9EJ5PJ5PVmFS9GPpvNnmDmawAeCyG6KJPJbCSiCQA/LMuKNpr0FgNRu1YnzyAIigBWtLW1baJsNptkZglgVAjR16qNmtEjpdTXpZeIhAa6wczHASSEEPlmFLVKVkoZB5Ajopsa6CUz7wKwRwihc8OSDyllJ4BnRPSKpJS6nqxWSq2drbYsBV1Yrj4D+KqBdNVtd123PRaL/VoKgPo9CoXCslKpNAVgykggs1xm3KU2MezNSozGlY6w2ptTXI1sP4xr0LSVjGphq6ncqCZfQxn3DNJQRj0Ua95N5jylq1BGfTbU9ivGfMfUQhn1YVXf3enap5++/+tL7zfuJypjTGintwAAAABJRU5ErkJggg=="},"0cd8":function(t,i,A){"use strict";var e=A("5ca1"),n=A("7b23");e(e.P+e.F*!A("2f21")([].reduce,!0),"Array",{reduce:function(t){return n(this,t,arguments.length,arguments[1],!1)}})},"0f97":function(t,i,A){},"24d9":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAjBJREFUWEftlr+OTVEUxn8fFSYKtESBVngCxVDQoOABiGoiCCHTSwhBppR4AA0aChReQNCimND6m5iZzifrZt/JiZyzz9nn3Iji7PLevdb6nbW+tdcSA4/t3cDz5OaIpOUhLjXEOGxtXwTuJD+XJN0d4nMWQFeBGwnimqSbI1A1A7bHDGUlMWaorWPGDI0ZastA2///VEO2twFrktaawEqAbG8Ctkj60uSvcZbZngeeAj+Ao5Je1znpCmT7IPAMiI88JulFnb8c0GXgVjL6Dhyug+oClGACIGDiXJF0uxRoK/AKOJCDagOqgXkLHJL0swgo7TrxRS9zUDmgBph5SV+LNTQ1SMJuhGoC6gMTMTstaDmoOqC+MJ2BcuUDohvXN0YgxFsVcGgmW6Zq+TplqKV8EfxUuvMwurHSTUUwRRnKQDXpsximF1BD+f6G6gXTG6gFqjfMIKAGqEEwEyDbZ4EzwD1JIcqik56EJWAjsJB79Joc2z4NXAAeBNCvmMDAZ0m7imhmdNn2J2AnsBJATn6/Sdo+oxhFbmzHKJkM3v8SaAXYHIsYMCfpd9HnDbxsewMQsonlbTUyFJ2xP/k9KenxwBhF5rZPAI+S0bsAWgSupx9itTwHPJE01VZRgK6XbcfYOg7cB3Yku8UAmgPeAHsqzlZTCbv673MvShRSmZ6PsXdNhqvtfWl/rkL1CdLXJmBiz36/Pu1Tps4D8UjtTSLrG6CLXTTRByAe4yVJIWz+AKJ6PbwJLhCeAAAAAElFTkSuQmCC"},"2f93":function(t,i,A){"use strict";A("0f97")},"5df3":function(t,i,A){"use strict";var e=A("02f4")(!0);A("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,i=this._t,A=this._i;return A>=i.length?{value:void 0,done:!0}:(t=e(i,A),this._i+=t.length,{value:t,done:!1})}))},"730d":function(t,i,A){"use strict";A.r(i);var e=function(){var t=this,i=t._self._c;return i("div",{staticClass:"wrap"},[i("div",{staticClass:"header"},[i("img",{staticClass:"return-img",attrs:{src:A("f5a4")},on:{click:function(i){return t.$router.back()}}}),i("p",{staticClass:"header-title"},[t._v("选择文件")])]),t.info.url_arr?i("ul",{staticClass:"list"},t._l(t.info.url_arr,(function(e,n){return i("li",{key:n,on:{click:function(i){return t.select(e)}}},[e.selected?i("img",{staticClass:"circle",attrs:{src:A("7bcf")}}):i("img",{staticClass:"circle",attrs:{src:A("088b")}}),i("div",{staticClass:"item-sidebar"},[i("img",{staticClass:"img",attrs:{src:e.fileIcon}}),i("div",{staticClass:"item-sidebar-sidebar"},[i("div",{staticClass:"item-sidebar-column"},[i("p",{staticClass:"font-1"},[t._v(t._s(e.title||t.info.title))]),i("p",{staticClass:"font-2"},[t._v(t._s(e.desc||t.info.desc||" "))])]),i("div",{staticClass:"row"},[i("img",{staticClass:"row-icon",attrs:{src:A("85b0")}}),i("span",{staticClass:"font-3"},[t._v(t._s(e.down_num||t.info.down_num))])])])])])})),0):t._e(),i("div",{staticClass:"footer"},[i("div",{staticClass:"footer-left",on:{click:function(i){return t.selectAll()}}},[t.isSelectAll?i("img",{attrs:{src:A("7bcf")}}):i("img",{attrs:{src:A("088b")}}),t._v("\n\t\t\t\t全选\n\t\t\t")]),i("div",{staticClass:"footer-right"},[i("button",{attrs:{type:"button"},on:{click:function(i){return t.save()}}},[i("img",{attrs:{src:A("24d9")}}),t._v("下载\n\t\t\t\t")])])]),i("van-overlay",{attrs:{show:t.showOpenVip,"z-index":"99999"},on:{click:function(i){t.showOpenVip=!1}}},[i("div",{staticClass:"open-vip"},[i("p",[t._v("仅支持VIP查看")]),i("p",[t._v("开通VIP查看本材料")]),i("button",{on:{click:function(i){return t.$router.push("/member")}}},[t._v("开通VIP会员")])])])],1)},n=[],s=(A("6d67"),A("5df3"),A("0cd8"),A("2909")),r=(A("d25f"),A("a481"),A("ac6a"),A("f3e2"),A("f523")),a=A("d399"),o=A("2241"),c=A("21a6"),l=A.n(c),f=A("325c"),u={components:{},data:function(){return{showOpenVip:!1,info:{id:0,url_arr:[]},isLogin:!1,isVip:!1,isSelectAll:!1}},mounted:function(){this.getUserInfo();var t=this.$route.query,i=parseInt(t.id||0);this.info.id=i,i>0&&this.getDatumDetail()},methods:{getDatumDetail:function(){var t=this;r["g"].getDatumDetail({id:this.info.id}).then((function(i){var A=i.data;A.detail.url_arr.forEach((function(t){t["fileType"]=Object(f["h"])(t.url||A.detail.datum_url),t["fileIcon"]=Object(f["g"])(t["fileType"])})),t.info=A.detail}))},getUserInfo:function(){var t=this;r["v"].getUserInfo().then((function(i){var A=i.data;t.isLogin=!0;var e=A.user_level;if(e&&e.id>0){var n=(new Date).getTime(),s=new Date(e.end_date.replace(/-/g,"/")).getTime();t.isVip=n<s}}))},select:function(t){this.$set(t,"selected",!t.selected);for(var i=!0,A=0;A<this.info.url_arr.length;A++)if(!this.info.url_arr[A].selected){i=!1;break}this.isSelectAll=i},selectAll:function(){var t=this;this.isSelectAll=!this.isSelectAll,this.info.url_arr.forEach((function(i){t.$set(i,"selected",t.isSelectAll)}))},save:function(){var t=this,i=this.info.url_arr.filter((function(t){return t.selected}));if(0===i.length)return Object(a["a"])("至少选择一个");i=Object(s["a"])(i);var A=i.reduce((function(t,i){return t?i.is_vip:t}),!0);if(A){if(!this.isLogin)return o["a"].confirm({message:"VIP资料请登录后查看",confirmButtonText:"去登录"}).then((function(){t.$router.push("/login")}));if(!this.isVip)return this.showOpenVip=!0}Promise.all(i.map((function(t){return r["g"].datumDownload({datum_id:t.datum_id,url_id:t.id})}))).then((function(){return i.forEach((function(i){t.$set(i,"down_num",(i.down_num||0)+1),l.a.saveAs(i.url||t.info.datum_url),t.select(i)}))}))}}},g=u,h=(A("2f93"),A("2877")),d=Object(h["a"])(g,e,n,!1,null,"60ec3472",null);i["default"]=d.exports},"7b23":function(t,i,A){var e=A("d8e8"),n=A("4bf8"),s=A("626a"),r=A("9def");t.exports=function(t,i,A,a,o){e(i);var c=n(t),l=s(c),f=r(c.length),u=o?f-1:0,g=o?-1:1;if(A<2)for(;;){if(u in l){a=l[u],u+=g;break}if(u+=g,o?u<0:f<=u)throw TypeError("Reduce of empty array with no initial value")}for(;o?u>=0:f>u;u+=g)u in l&&(a=i(a,l[u],u,c));return a}},"7bcf":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA0tJREFUWEfNmEtoE0EYx//fpq+kLfVQr4JPLHgS9KClpCgbRa8FH3dtQcWDhaQIxYMmiIpYwcfZotKT2FK6PtCS9lLsQQQDWl94sj0opdmkTfaT2e22m1ezk00hc5z95vt+O99rZgiSQ72qb6eMEWJQJwgdxLyNQa1CDYEXmegXGJ8JHM9gRXsT2/JNxgS5Ee7pYd+/3XoPDFwA+JBp291ggKah4H7bF//IyAhlyy0rqzgU1o8yskMA7S2nbOPvnCD4Lk7E/K83kisJFBzkpobl1F2wcd4biHM1MYgeLzc0XX53jVLF9BYFOh5Z3Gqwb4zBB6oHs66JQDMKZU+MR1vn8/UXAAmYLHyTYPboojK/QpTwIduVD5UDJNzUmNYnN2tnCneDZtKN/i6n+3KA1Ij+sLox48LhpDzSov5eW3INyMom1gAum3kuzEiIEBNItbPPNG7WmZ36J2Bz44YZC4pCz8F8kAFHwlCibc6/T9QpE0gdSJ6CwU8lfktelOh7RqHut9f9P4ODXNeQTn4E0LGmSKHT2o3AMwsokoyD+bC8FZcrHDD2CjW89BLASUcxmNJ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