webpackJsonp([6],{260:function(t,e,i){function a(t){i(438)}var n=i(2)(i(392),i(482),a,"data-v-6f70793b",null);t.exports=n.exports},267:function(t,e,i){function a(t){i(270)}var n=i(2)(i(268),i(271),a,"data-v-055126de",null);t.exports=n.exports},268:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(9);i.n(a);e.default={name:"error",data:function(){return{ERROR:a.ERROR}}}},269:function(t,e,i){e=t.exports=i(247)(!1),e.push([t.i,".error[data-v-055126de]{min-height:500px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.tips[data-v-055126de]{font-size:12px;color:#888;letter-spacing:-.07px;margin-top:20px}.icon-container[data-v-055126de]{padding-left:24px}",""])},270:function(t,e,i){var a=i(269);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);i(248)("0c9822f6",a,!0,{})},271:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"error"},[t._m(0),t._v(" "),i("div",{staticClass:"tips"},[t._v(t._s(t.ERROR.NETWORK_ERROR_TIPS))])])},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"icon-container"},[i("span",{staticClass:"icon icon-network-error"})])}]}},274:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"loading"}},275:function(t,e,i){e=t.exports=i(247)(!1),e.push([t.i,".loading[data-v-7b858985]{min-height:400px}.loader[data-v-7b858985],.loading[data-v-7b858985]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.loader[data-v-7b858985]{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:0;-webkit-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1;-webkit-flex-shrink:0;flex-shrink:0;width:250px;height:200px;-webkit-flex-basis:25%;flex-basis:25%}.ball-zig-zag[data-v-7b858985]{position:relative;-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px)}.ball-zig-zag>div[data-v-7b858985]:first-child{-webkit-animation:ball-zig .7s 0s infinite linear;animation:ball-zig .7s 0s infinite linear}.ball-zig-zag>div[data-v-7b858985]{background-color:#4a94f8;width:15px;height:15px;-webkit-border-radius:100%;border-radius:100%;margin:2px;-webkit-animation-fill-mode:both;animation-fill-mode:both;position:absolute;margin-left:15px;top:4px;left:-7px}.ball-zig-zag>div[data-v-7b858985]:last-child{-webkit-animation:ball-zag .7s 0s infinite linear;animation:ball-zag .7s 0s infinite linear}",""])},276:function(t,e,i){var a=i(275);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);i(248)("17a199be",a,!0,{})},277:function(t,e,i){function a(t){i(276)}var n=i(2)(i(274),i(278),a,"data-v-7b858985",null);t.exports=n.exports},278:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loading"},[i("div",{staticClass:"loader"},[i("div",{staticClass:"loader-inner ball-zig-zag"},[i("div"),t._v(" "),i("div")])])])}]}},291:function(t,e,i){function a(t){i(335)}var n=i(2)(i(306),i(362),a,"data-v-95adc652",null);t.exports=n.exports},292:function(t,e,i){"use strict";var a=i(18),n=i.n(a),o=i(62),r=i.n(o),s=i(61),l=i.n(s),c=i(7),p=i.n(c),d=i(15),f=i(12),u=i(26),g={TGAS:"local-storage-wpp-tags",FILTERS:"local-storage-wpp-filters",CATEGORY:"local-storage-wpp-category"};e.a={mixins:[f.a],data:function(){return{details:{},isPreviewVisible:!1,isPreviewLoading:!0,previewData:{}}},methods:{fetchCategory:function(){var t=g.CATEGORY;return new p.a(function(e,i){u.a.get(t).then(function(t){if(t&&t.value&&+t.stamp>Date.now())return"string"==typeof t.value&&(t.value=JSON.parse(t.value)),void e(t.value);i(new Error("timeout!"))})}).catch(function(){return new p.a(function(e,i){d.a.get("easy").fetchCategory({data:{protocolVersion:"1.0",appId:"wps_pc",clientVersion:"1.0",aspectRatio:"16:9"},dataType:"application/json"}).then(function(i){u.a.set(t,i),e(i)}).catch(function(t){i(t)})})})},fetchCategoryDetails:function(t){var e=t.page,i=t.pageNum,a=t.content;return d.a.get("easy").fetchTheme({data:{protocolVersion:"1.0",appId:"wps_pc",clientVersion:"1.0",aspectRatio:"16:9",page:e,pageNum:i,content:a},dataType:"application/json"})},previewItem:function(t){var e=this;return l()(r.a.mark(function i(){var a,n,o,s,l;return r.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return a=t.list,n=t.index,o=t.theme,s=void 0===o?"":o,e.isPreviewLoading=!0,i.next=4,e.getPreviewData(a[n].id);case 4:l=i.sent,e.previewData={list:a,index:n,isRecommendations:!1,p:{p3:"normal_folder"},csource:"wpp_newfile_preview_word",position:"wpp",theme:s},e.isPreviewLoading=!1,e.details=l.data,e.isPreviewVisible=!0,e.sendCollect({p2:"wpp_more_template",p3:"preview",p4:a[n].id,p5:s});case 10:case"end":return i.stop()}},i,e)}))()},getPreviewData:function(t){return d.a.get("easy").fetchDetail({data:{protocolVersion:"1.0",appId:"wps_pc",clientVersion:"1.0",tid:t},dataType:"application/json"})},upgrade:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2];this.buyVIP({position:i.position||"newfile_index",csource:i.csource||"wpp_newfile_chn",renewDocerVip:!1}),this.sendCollect({p2:"wpp_more_template",p3:t,p4:e})},download:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return i=i||e.theme,this.sendCollect({p2:"wpp_more_template",p3:"use",p4:e.id,p5:i,p6:e.price?"pay":"free"}),d.a.get("easy").fetchDetail({data:{protocolVersion:"1.0",appId:"wps_pc",clientVersion:"1.0",tid:e.id},dataType:"application/json"}).then(function(t){return new p.a(function(e,i){if("ok"!==t.result||!t.data||!t.data.detail||!t.data.detail.sids)return void i(new Error("error"));e(t.data.detail.sids)})}).then(function(t){return d.a.get("easy").fetchUrls({data:{protocolVersion:"1.0",appId:"wps_pc",clientVersion:"1.0",wps_sid:window.app.sid,ids:t.map(function(t){return t.sid})},dataType:"application/json"})}).then(function(t){return new p.a(function(e,i){if("ok"!==t.result||!t.data||!t.data.fetchResults||!t.data.fetchResults.length)return void i(new Error("error"));e(t.data.fetchResults)})}).then(function(e){var i=e[0]||{};t.$store.dispatch("wppDownload",{url:i.mb_url,md5:i.md5,id:i.id,name:i.md5,filekey:i.filekey})}).catch(function(){t.$store.dispatch("wppDownloadFailed")})},closePreview:function(){this.isPreviewVisible=!1},searchWpp:function(t){var e=t.page,i=t.pageNum,a=t.colorTags,o=t.keywords,r=t.usageTags,s=t.styleTags,l=t.sort,c=n()(arguments[0]),f=!0;return new p.a(function(t,i){if(1!==e||o)return i(new Error("no")),void(f=!1);u.a.get(c).then(function(e){if(e&&e.value&&+e.stamp>Date.now())return"string"==typeof e.value&&(e.value=JSON.parse(e.value)),void t(e.value);i(new Error("timeout!"))})}).catch(function(){return new p.a(function(t,n){d.a.get("easy").search({data:{protocolVersion:"1.0",appId:"wps_pc",clientVersion:"1.0",page:e,pageNum:i,aspectRatio:"16:9",filter:{colorTags:a,keywords:o,usageTags:r,styleTags:s},sort:l},dataType:"application/json"}).then(function(e){f&&u.a.set(c,e),t(e)}).catch(function(t){n(t)})})})},fetchTags:function(){var t=g.TGAS;return new p.a(function(e,i){u.a.get(t).then(function(t){if(t&&t.value&&+t.stamp>Date.now())return"string"==typeof t.value&&(t.value=JSON.parse(t.value)),void e(t.value);i(new Error("timeout!"))})}).catch(function(){return new p.a(function(e,i){d.a.get("easy").fetchTags({data:{protocolVersion:"1.0",appId:"wps_pc",clientVersion:"1.0"},dataType:"application/json"}).then(function(i){u.a.set(t,i),e(i)}).catch(function(t){i(t)})})})}}}},306:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(6),n=i.n(a),o=i(349),r=i.n(o),s=i(277),l=i.n(s),c=i(95),p=i.n(c),d=i(267),f=i.n(d),u=i(4);e.default={name:"list",props:{listData:{type:Array,default:function(){return[]}},isLoading:{type:Boolean,default:function(){return!1}},isError:{type:Boolean,default:function(){return!1}},theme:{type:String,default:function(){return""}}},computed:n()({},i.i(u.a)(["isCEF"]),{qtClass:function(){return this.isCEF?"":"qt-list"}}),components:{ListItem:r.a,Loading:l.a,Empty:p.a,Error:f.a}}},307:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(3);e.default={name:"",props:{item:{type:Object}},computed:{fileName:function(){return i.i(a.v)(this.item.name)}}}},308:function(t,e,i){e=t.exports=i(247)(!1),e.push([t.i,".img-body[data-v-0183f9ec]{display:inline-block;width:240px;cursor:pointer;position:relative;background:#fff;-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,.08);box-shadow:0 1px 2px 0 rgba(0,0,0,.08)}.img-body[data-v-0183f9ec]:hover{-webkit-box-shadow:0 1px 12px 0 rgba(0,0,0,.3);box-shadow:0 1px 12px 0 rgba(0,0,0,.3)}.img-body:hover .docer-icon[data-v-0183f9ec]{width:94px}.img-body:hover .docer-icon .text[data-v-0183f9ec]{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}.list-item[data-v-0183f9ec]{margin:0 15px 60px;display:inline-block}.big[data-v-0183f9ec]{width:240px;height:135px}.small[data-v-0183f9ec]{width:120px;height:68px;display:inline-block;border-top:1px solid #dbdbdb;-webkit-box-sizing:border-box;box-sizing:border-box}.bottom[data-v-0183f9ec]{height:68px}.big[data-v-0183f9ec],.small[data-v-0183f9ec]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;overflow:hidden}.border-left[data-v-0183f9ec]{border-left:1px solid #dbdbdb}.name[data-v-0183f9ec]{font-size:12px;color:#696969;letter-spacing:.28px;text-align:center;margin-top:17.5px;width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.docer-icon[data-v-0183f9ec]{background:#ff5c29;-webkit-border-radius:0 0 6px 0;border-radius:0 0 6px 0;overflow:hidden;display:inline-block;position:absolute;left:0;top:0;height:22px;width:22px;color:#fff;font-size:11px;-webkit-transition:width .2s ease;transition:width .2s ease;white-space:nowrap}.docer-icon span[data-v-0183f9ec]{vertical-align:baseline}.docer-icon .icon[data-v-0183f9ec]{vertical-align:text-top;margin-left:4px}.docer-icon .text[data-v-0183f9ec]{display:inline-block;line-height:22px;font-size:11px;-webkit-transition:opacity .2s ease,-webkit-transform .2s ease;transition:opacity .2s ease,-webkit-transform .2s ease;transition:transform .2s ease,opacity .2s ease;transition:transform .2s ease,opacity .2s ease,-webkit-transform .2s ease;-webkit-transform:translateX(-94px);transform:translateX(-94px);margin-left:2px;opacity:0}",""])},320:function(t,e,i){e=t.exports=i(247)(!1),e.push([t.i,".list[data-v-95adc652]{-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.container[data-v-95adc652],.list[data-v-95adc652]{display:-webkit-box;display:-webkit-flex;display:flex}.container[data-v-95adc652]{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin:14px -15px 0;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding-top:14px;width:auto}.qt-list[data-v-95adc652]{display:inline-block;text-align:center}.vacant[data-v-95adc652]{display:inline-block;width:240px;height:0;margin:0 15px}",""])},323:function(t,e,i){var a=i(308);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);i(248)("8012128a",a,!0,{})},335:function(t,e,i){var a=i(320);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);i(248)("189696b7",a,!0,{})},349:function(t,e,i){function a(t){i(323)}var n=i(2)(i(307),i(350),a,"data-v-0183f9ec",null);t.exports=n.exports},350:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"list-item"},[i("div",{staticClass:"img-body",on:{click:function(e){t.$emit("preview")}}},[t.item.price>0?i("div",{staticClass:"docer-icon",on:{click:function(e){e.stopPropagation(),t.$emit("upgrade",t.item.id)}}},[i("span",{staticClass:"icon icon-docer-price"}),i("span",{staticClass:"text"},[t._v("稻壳会员免费")])]):t._e(),t._v(" "),i("div",{staticClass:"big"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.item.thumbUrl+"/240X135.png",expression:"item.thumbUrl + '/240X135.png'"}],staticClass:"big-img"})]),t._v(" "),i("div",{staticClass:"bottom"},[i("div",{staticClass:"small"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.item.TopPres[0]+"/120X68.png",expression:"item.TopPres[0] + '/120X68.png'"}],staticClass:"small-img"})]),i("div",{staticClass:"small border-left"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.item.TopPres[1]+"/120X68.png",expression:"item.TopPres[1] + '/120X68.png'"}],staticClass:"small-img"})])])]),t._v(" "),i("div",{staticClass:"name",attrs:{title:t.fileName}},[t._v(t._s(t.fileName))])])},staticRenderFns:[]}},362:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"list"},[t.isLoading?t._e():i("div",{staticClass:"container",class:t.qtClass},[t._l(t.listData,function(e,a){return i("list-item",{key:e.id,attrs:{item:e},on:{preview:function(e){t.$emit("preview",{list:t.listData,index:a,theme:t.theme})},upgrade:function(e){t.$emit("upgrade",e)}}})}),t._v(" "),t._l(10,function(t){return i("div",{staticClass:"vacant"})})],2),t._v(" "),0!==t.listData.length||t.isLoading||t.isError?t._e():i("empty",{attrs:{tip:"暂无结果,请更改筛选条件",iconClass:"icon-wpp-empty"}}),t._v(" "),!t.isLoading&&t.isError?i("error"):t._e(),t._v(" "),t.isLoading?i("loading"):t._e()],1)},staticRenderFns:[]}},392:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(22),n=i.n(a),o=i(60),r=i.n(o),s=i(291),l=i.n(s),c=i(292),p=i(91),d=i(3),f=i(99),u=!1;e.default={name:"wpp-theme",mixins:[p.a,c.a],data:function(){return{WppPreview:f.d,theme:"",content:"",totalCount:0,page:1,pageNum:20,loading:!0,isError:!1,scrollHandler:null,listData:[],scrollTop:0}},computed:{getPositionTag:function(){return"newfile2_"+window.app.wppPage+"_tags_"+window.app.userProfession+"_a1-0~a2-0"},getPosition:function(){return"newfile2_"+window.app.wppPage+"_chn_"+window.app.userProfession}},mounted:function(){this.theme=this.$route.query.theme,this.content=this.$route.query.content,this.fetchData()},methods:{nextPage:function(){this.page*this.pageNum>=this.totalCount||this.loading||u||(this.page++,this.fetchData(!0))},fetchData:function(t){var e=this;t||(this.loading=!0,this.isError=!1,this.page=1);var i=this.pageNum,a=this.content,n=this.page;u=!0,this.fetchCategoryDetails({pageNum:i,content:a,page:n}).then(function(i){if(e.loading=!1,u=!1,"ok"===i.result&&i.data)if(e.totalCount=i.data.count||0,t){var a;(a=e.listData).push.apply(a,r()(i.data.tmpls||[]))}else e.listData=i.data.tmpls}).catch(function(){e.loading=!1,e.isError=!0,u=!1})},onscroll:function(t){var e=t.target,i=e.scrollHeight,a=e.clientHeight,n=e.scrollTop;this.scrollTop=n,i200?"show-button":"",on:{click:t.gotoTop}},[i("span",{staticClass:"icon icon-arrow-top"})])],1)},staticRenderFns:[]}}});