找回密码
 立即注册
搜索
热搜: 丝袜 魅魔 黑丝
查看: 18|回复: 0

27462553_爆乳网红伪娘女神妈妈的雌堕直播:被逆子爆肏调教成专属性奴精壶-2

[复制链接]

13万

主题

343

回帖

22万

积分

管理员

站长

UID
1
积分
224394
余额
13 R
Moe币
84875
在线时间
279 小时
注册时间
2025-12-28
最后登录
2026-11-3
发表于 2026-9-3 23:00:59 | 显示全部楼层 |阅读模式
"use strict";(globalThis["webpackChunkdocer_newdocs_2023"]=globalThis["webpackChunkdocer_newdocs_2023"]||[]).push([["screenmytpl"],{17898(t,e,a){a.r(e),a.d(e,{default:()=>ft});var s=a(68362),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a(s.A,{directives:[{name:"stick",rawName:"v-stick"}],ref:"rMainContentCon",staticClass:"mytpl mytpl__container",class:{"full-height":!t.isLogin&&t.getUserInfoFinish},attrs:{finished:t.finished,effectiveLength:t.effectiveLength,showFinishedTip:t.finished&&t.effectiveLength>t.pageSize,scrollPage:"screen"},on:{loadMore:t.loadMore,onScroll:t.handleScroll}},[!t.isLogin&&t.getUserInfoFinish?a("div",{staticClass:"mytpl__nologin"},[a("NotLogin")],1):[a("div",{staticClass:"mytpl__body"},[a("div",{staticClass:"mytpl__top"},[a("div",{staticClass:"mytpl__top__line"},[a("DocerUl",{attrs:{selectTab:t.menu},on:{change:t.changeMenu}})],1),a("MainTopBar",{attrs:{mark:t.mark,menu:t.menu,showUploadBtn:t.showUploadBtn,batchEditable:t.batchEditable,isBatchEditing:t.isBatchEditing,selectStatus:t.selectStatus,statusCode:t.statusCode,isUploading:t.isUploading},on:{changeTerm:t.changeTerm,changeShowBatchEdit:t.changeShowBatchEdit,batchDelete:t.batchDelete,batchDeleteUploadFiles:t.batchDeleteUploadFiles,changeSelectStatus:t.changeSelectStatus,handleClickUpload:t.handleClickUpload}})],1),a("div",{ref:"nContent",class:["mytpl__content","mytpl__content__"+t.mark]},[t.uploadDataEmpty?a("UploadEmpty",{attrs:{isUploading:t.isUploading},on:{handleClickUpload:t.handleClickUpload}}):t.statusCode?a("DataStatus",{attrs:{statusCode:t.statusCode,module:t.menu},on:{retry:t.getData}}):t._e(),a("List",{staticClass:"mytpl__list",attrs:{list:t.data,mark:t.mark,dataCovers:t.dataCovers,limit:t.limit,appType:t.mark,showFavBtn:t.showFavBtn,showDeleteBtn:t.showDeleteBtn,showDeleteFavBtn:"collect"==t.menu,isBatchOperate:t.isBatchEditing,isMyBought:"buy"==t.menu,commonCollectParams:t.commonCollectParams},on:{onClickDelete:t.onClickDelete,onClickDeleteFav:t.onClickDeleteFav,openUploadFile:t.openUploadFile,changeResSelectStatus:t.changeResSelectStatus}})],1)])]],2)},l=[],o=(a(74495),a(67622),a(80746),a(71119),a(38660),a(85528),a(86201),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"notlogin"},[a("div",{staticClass:"notlogin__main"},[a("SvgIcon",{attrs:{svgName:"placeholder_logout_100"}}),a("p",{staticClass:"notlogin__info"},[t._v("登录以查看我的模板")]),a("span",{staticClass:"m-btn m-btn-secondary-blue",on:{click:t.login}},[t._v("立即登录")])],1)])}),n=[],c=a(82171);const d={__componentId:"__cid_8c976607",data(){return{}},mounted(){this.setAppComponent("")},methods:{...(0,c.mapActions)("common",["setAppComponent"]),...(0,c.mapActions)("user",["checkUserInfo"]),login(){var t;const e={$m_n:"guide_login",$e_t:"button",$e_n:"login",$e_i:10813};null===(t=this.$_get_collect())||void 0===t||t.send("click",e),this.checkUserInfo().catch(()=>{})}}},h=d;var r=a(68700),p=(0,r.A)(h,o,n,!1,null,"faf47b68",null);const u=p.exports;var m=a(59153),_=a(6396),g=a(56152),f=a(81163),v=a(74279),C=a(25919),b=a.n(C);const y={wps:1,et:2,wpp:3,pdf:14},S={common:{recent:{serviceName:"user",methodName:"queryMyUsed"},collect:{serviceName:"user",methodName:"queryMyCollected"},buy:{serviceName:"user",methodName:"queryMyBought"},recentSearch:{serviceName:"user",methodName:"queryMyUsed"},collectSearch:{serviceName:"user",methodName:"searchMyCollect"},buySearch:{serviceName:"user",methodName:"searchMyTmp"},delMyUsed:{serviceName:"user",methodName:"delMyUsed"},delCollect:{serviceName:"user",methodName:"delCollect"},upload:{serviceName:"drive",methodName:"queryMyUpload"},delMyUpload:{serviceName:"drive",methodName:"batchDeleteUploadFile"}},smartMb:{recent:{serviceName:"smartMb",methodName:"queryMyUsed"},collect:{serviceName:"smartMb",methodName:"queryMyCollected"}}};var $=a(17745),k=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dul"},[a("ul",{staticClass:"ul",class:[t.ulType]},t._l(t.list,function(e,s){return a("li",{key:e.name+"_"+s,staticClass:"li",class:{active:t.selectTab==e.val},on:{click:function(a){return t.handleClick(e)}}},[a("div",{staticClass:"li__name"},[t._v(t._s(e.name))]),a("div",{staticClass:"li__line"})])}),0)])},w=[];const U={__componentId:"__cid_ea3fc678",name:"DocerUl",props:{ulType:{type:String,default:"nomal"},list:{type:Array,default:()=>[{name:"最近使用",val:"recent"},{name:"我上传的",val:"upload"},{name:"我的收藏",val:"collect"},{name:"已购资源",val:"buy"}]},selectTab:{type:String,default:""}},methods:{handleClick(t){this.$emit("change",t)}}},x=U;var D=(0,r.A)(x,k,w,!1,null,"c789133a",null);const E=D.exports;var F=a(377),B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"top"},[a("div",{staticClass:"top-bar"},[a("DocerUl",{attrs:{ulType:"radio",list:t.appData,selectTab:t.mark},on:{change:t.changeTerm}}),a("div",{staticClass:"top-batch"},[a("BatchEdit",{attrs:{batchEditable:t.batchEditable,isBatchEditing:t.isBatchEditing,selectStatus:t.selectStatus,statusCode:t.statusCode},on:{batchDelete:t.batchDelete,changeSelectStatus:t.changeSelectStatus,changeShowBatchEdit:t.changeShowBatchEdit}}),t.showUploadBtn?a("UploadBtn",{staticClass:"top-batch__upload",attrs:{mark:t.mark,isUploading:t.isUploading,isBatchEditing:t.isBatchEditing},on:{handleClickUpload:t.handleClickUpload}}):t._e()],1)],1)])},L=[],N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"batch-edit"},[t.isBatchEditing?a("div",{staticClass:"batch-edit__show"},[a("div",{directives:[{name:"collect",rawName:"v-collect.click",value:{$m_n:"batch_operation",$e_n:"choose_resource",$e_t:"button"},expression:"{ $m_n: 'batch_operation', $e_n: 'choose_resource', $e_t: 'button' }",modifiers:{click:!0}}],staticClass:"batch-edit__item",on:{click:t.changeSelectStatus}},[a("DcSwitch",{attrs:{isMiddle:"middle"==t.selectStatus,isSelect:"all"==t.selectStatus}}),a("span",{staticClass:"batch-edit__show--name"},[t._v("全选")])],1),a("div",{directives:[{name:"collect",rawName:"v-collect.click",value:{$m_n:"batch_operation",$e_n:"batch_delete",$e_t:"button"},expression:"{ $m_n: 'batch_operation', $e_n: 'batch_delete', $e_t: 'button' }",modifiers:{click:!0}}],staticClass:"batch-edit__item batch-edit__item__delete",class:{"btn-disable":"no"==t.selectStatus},on:{click:t.batchDelete}},[a("SvgIcon",{staticClass:"batch-edit__svg",attrs:{svgName:"garbage"}}),a("span",{staticClass:"batch-edit__show--name"},[t._v("删除")])],1),a("span",{staticClass:"batch-edit__line"}),a("span",{staticClass:"batch-edit__show--name batch-edit__out",on:{click:function(e){return e.stopPropagation(),t.changeShowBatchEdit(!1)}}},[t._v("退出")])]):a("div",{directives:[{name:"collect",rawName:"v-collect.click",value:{$m_n:"navtool",$e_n:"batch_operation",$e_t:"button"},expression:"{ $m_n: 'navtool', $e_n: 'batch_operation', $e_t: 'button' }",modifiers:{click:!0}}],staticClass:"batch-edit__hidden",class:{"btn-disable":!t.batchEditable},on:{click:function(e){return t.changeShowBatchEdit(!0)}}},[a("SvgIcon",{attrs:{svgName:"batch-edit"}}),a("span",{staticClass:"batch-edit__hidden--name"},[t._v("批量操作")])],1)])},I=[],M=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"switch",on:{click:t.handleClick}},[t.isMiddle?a("SvgIcon",{staticClass:"switch-middle",attrs:{svgName:"rec-switch-middle"}}):t.isSelect?a("SvgIcon",{staticClass:"switch-all",attrs:{svgName:"rec-switch-all"}}):a("SvgIcon",{staticClass:"switch-unselect",attrs:{svgName:"rec-switch-unselect"}})],1)])},T=[];const A={__componentId:"__cid_3341752e",name:"SfSwitch",props:{isSelect:{type:Boolean,default:!1},isMiddle:{type:Boolean,default:!1}},methods:{handleClick(){this.$emit("change")}}},P=A;var z=(0,r.A)(P,M,T,!1,null,"04803f5c",null);const R=z.exports,O={__componentId:"__cid_accf3edf",name:"BatchEdit",props:{isBatchEditing:{type:Boolean,default:!1},selectStatus:{type:String,default:"no"},statusCode:{type:String,default:""},batchEditable:{type:Boolean,default:!1}},methods:{changeShowBatchEdit(t){this.batchEditable&&(this.$emit("changeSelectStatus","no"),this.$emit("changeShowBatchEdit",t))},changeSelectStatus(){const t="no"===this.selectStatus?"all":"no";this.$emit("changeSelectStatus",t)},batchDelete(){this.$emit("batchDelete")}},components:{DcSwitch:R}},j=O;var q=(0,r.A)(j,N,I,!1,null,"fbb4c934",null);const G=q.exports;var W=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"uploadBtn",staticClass:"upload-btn",class:{"upload-btn--disable":t.isUploading||t.isBatchEditing},on:{click:function(e){return e.stopPropagation(),t.handleClick.apply(null,arguments)}}},[a("SvgIcon",{attrs:{svgName:"increase"}}),a("div",[t._v("添加模板")]),t.isShowDropdown?a("div",{staticClass:"upload-dropdown"},[a("div",{staticClass:"upload-dropdown__container"},[a("ul",t._l(t.filteredOptionList,function(e,s){return a("li",{key:s,staticClass:"upload-dropdown__container__item",on:{click:function(a){return a.stopPropagation(),t.handleClickUpload(e)}}},[t._v(" "+t._s(e.text)+" ")])}),0)])]):t._e()],1)},Q=[];const J={__componentId:"__cid_e8ace21c",name:"UploadBtn",props:{mark:{type:String,default:()=>""},isUploading:{type:Boolean,default:()=>!1},isBatchEditing:{type:Boolean,default:()=>!1}},data(){return{optionList:[{text:"上传本地文件",type:"local"},{text:"添加云文档",type:"cloud"}],isShowDropdown:!1}},created(){v["default"].$on(_.eventName.clickDocument,this.changeShowDropdown)},beforeDestroy(){v["default"].$off(_.eventName.clickDocument,this.changeShowDropdown)},methods:{...(0,c.mapActions)("upload",["setUploadFinderModel"]),changeShowDropdown(t){this.isShowDropdown=t||!1},handleClick(){this.isUploading||this.isBatchEditing||this.changeShowDropdown(!0)},async handleClickUpload(t){this.$emit("handleClickUpload",t),this.changeShowDropdown(!1)}},computed:{filteredOptionList(){return this.$isPad?this.optionList.filter(t=>"local"!==t.type):this.optionList}}},K=J;var H=(0,r.A)(K,W,Q,!1,null,"04085b68",null);const V=H.exports,X=[{val:"wps",name:"文字"},{val:"wpp",name:"演示"},{val:"et",name:"表格"},{val:"smartMb",name:"智能模板"}],Y={__componentId:"__cid_f1a92cf5",props:["mark","menu","defModeDisabled","isBatchEditing","selectStatus","statusCode","batchEditable","showUploadBtn","isUploading"],data(){return{}},methods:{changeTerm(t){this.$emit("changeTerm",t)},changeSelectStatus(t){this.$emit("changeSelectStatus",t)},batchDelete(){"upload"===this.menu?this.$emit("batchDeleteUploadFiles"):this.$emit("batchDelete")},changeShowBatchEdit(t){this.$emit("changeShowBatchEdit",t)},handleClickUpload(t){this.$emit("handleClickUpload",t)}},computed:{appData(){return"buy"==this.menu||"upload"==this.menu?X.slice(0,3):X}},components:{BatchEdit:G,DocerUl:E,UploadBtn:V}},Z=Y;var tt=(0,r.A)(Z,B,L,!1,null,"73c59a94",null);const et=tt.exports;var at=a(49147),st=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"upload-empty"},[a("div",{staticClass:"upload-empty__wrap"},[a("SvgIcon",{attrs:{svgName:"upload-icon"}}),a("div",{staticClass:"upload-empty__tip"},[t._v(t._s(t.tipText))]),a("div",{staticClass:"upload-empty__btn",class:{"upload-empty__btn--single":1===t.filteredBtnList.length}},t._l(t.filteredBtnList,function(e,s){return a("div",{key:s,staticClass:"upload-empty__btn__item",class:{"upload-empty__btn__item--disable":t.isUploading},on:{click:function(a){return t.handleClickUpload(e)}}},[t._v(" "+t._s(e.text)+" ")])}),0)],1)])},it=[];const lt={__componentId:"__cid_a90e10e0",name:"UploadEmpty",props:{isUploading:{type:Boolean,default:()=>!1}},data(){return{btnList:[{text:"上传本地文件",type:"local"},{text:"添加云文档",type:"cloud"}]}},methods:{...(0,c.mapActions)("upload",["setUploadFinderModel"]),handleClickUpload(t){this.$emit("handleClickUpload",t)}},computed:{filteredBtnList(){return this.$isPad?this.btnList.filter(t=>"local"!==t.type):this.btnList},tipText(){return this.$isPad?"添加云文档为我的模板,可实现快速新建":"上传本地文档或云文档为我的模板,可实现快速新建"}}},ot=lt;var nt=(0,r.A)(ot,st,it,!1,null,"9b443492",null);const ct=nt.exports;var dt=a(19371),ht=a(37474),rt=a.n(ht);const pt=f["default"].debounce(300),ut=250,mt={__componentId:"__cid_cd6940ac",mixins:[at.A],data(){return{statusCode:"",mark:"wps",menu:"recent",page:1,pageSize:0,data:[],getUserInfoFinish:!1,sessionId:null,maxCount:0,limit:0,isBatchEditing:!1,uploadGroupId:0,uploadParentId:0,dataCovers:[],isInterfaceLoading:!0,uploadListFinished:!0,isCloudFileUploading:!1}},beforeRouteEnter(t,e,a){a(e=>{e.init(t),rt().getUserProfessionFinish.then(()=>{e.getUserInfoFinish=!0,v["default"].$on(_.eventName.logout,e.userChange),v["default"].$on(_.eventName.login,e.getData),e.$nextTick(()=>{e.ajustTplLayout(),e.getData()})}),v["default"].$on(_.eventName.collectChange,e.collectChange),v["default"].$on(_.eventName.resizeWindow,e.ajustTplLayout),v["default"].$on(_.eventName.uploadUgcResourceSuccess,e.handleUploadLocalFileSuccess),v["default"].$on(_.eventName.confirmCloudFile,e.handleUploadCloudFile),$.A.setOriginInfo({scenesEntrance:"myfav",secondPage:"mytpl"})})},beforeRouteUpdate(t,e,a){this.init(t),rt().getUserProfessionFinish.then(()=>{this.ajustTplLayout(),this.getData()}),a()},beforeRouteLeave(t,e,a){v["default"].$emit(_.eventName.scrollFixed,!1),v["default"].$off(_.eventName.collectChange,this.collectChange),v["default"].$off(_.eventName.logout,this.userChange),v["default"].$off(_.eventName.login,this.getData),v["default"].$off(_.eventName.resizeWindow,this.ajustTplLayout),v["default"].$off(_.eventName.uploadUgcResourceSuccess,this.handleUploadLocalFileSuccess),v["default"].$off(_.eventName.confirmCloudFile,this.handleUploadCloudFile),a()},methods:{...(0,c.mapActions)("upload",["setUploadError","setUploadFinderModel"]),init(t){this.data=[],this.menu=t.query.type||"recent",this.mark=t.query.filterType||g.appInfo.name||"wps",this.page=1,this.maxCount=0,this.statusCode="",this.isInterfaceLoading=!1},userChange(){this.mark=g.appInfo.name||"wps",this.page=1,this.maxCount=0,this.data=[]},getData(t=!0){this.isLogin&&(t&&(this.data=new Array(this.pageSize).fill({})),this.statusCode="",this.isInterfaceLoading=!0,this.changeShowBatchEdit(!1),"upload"===this.menu?this.getUploadMenuData(t):pt(()=>{this.getMenuData(t)}))},getAccountFolderParams(){return new Promise(async(t,e)=>{let a;try{a=await b().get().get("drive").queryPrivateFilesData({data:{filter:"rootfolder"}})}catch(s){this.statusCode=_.netStatus.error}a&&"ok"==a.result?t(a):e(new Error("获取我的模板文件夹失败"))})},getUploadMenuData(t){this.getAccountFolderParams().then(e=>{var a,s;const i=(e.files||[]).filter(t=>"我的模板"===t.fname);i.length||(this.statusCode=_.netStatus.tmpEmpty),this.uploadGroupId=Number(null===(a=i[0])||void 0===a?void 0:a.groupid)||0,this.uploadParentId=Number(null===(s=i[0])||void 0===s?void 0:s.fileid)||0,this.uploadGroupId?pt(()=>{this.getMenuData(t)}):(this.statusCode=_.netStatus.tmpEmpty,this.data=[])}).catch(t=>{this.statusCode=_.netStatus.error,this.data=[]})},async getMenuData(t){let e={},a="";a=this.menu;const s="smartMb"===this.mark?S.smartMb[a]:S.common[a];"smartMb"===this.mark?e={file_type:[113],mb_app:3,platform:8,limit:this.pageSize,offset:this.pageSize*(this.page-1),theme_mb_urls:10,video_type:0,son_limit:0}:"upload"==this.menu?e={groupid:this.uploadGroupId,parentid:this.uploadParentId,linkgroup:!0,with_link:!0,offset:this.pageOffset,count:this.pageSize,include_exts:{wps:"doc,docx,rtf,txt,xml,mhtml,mht,html,htm,uof,dot,wps,wpt,dotx,docm,dotm,wpss,wpso,tpdoc",et:"et,ett,xls,xlt,xlsx,xlsm,xltx,xltm,csv,ets,eto,tpxls",wpp:"pptm,ppsx,ppsm,pps,potx,potm,dpt,dps,ppt,pptx,pot,dpss,dpso,tpppt"}[this.mark]}:(e={limit:this.pageSize,offset:this.pageOffset,mb_app:y[this.mark]||1,is_with_price:1},"recent"==this.menu&&(e.file_type="1",e.mb_platform="8",e.is_suffix=1),e=Object.assign(e,{wps:{file_type:"1:5",mb_app:1,mb_platform:8},et:{file_type:1,mb_app:2,mb_platform:8},wpp:{file_type:1,mb_app:3,mb_platform:8,add_preview:1}}[this.mark]||{}));let i={};try{i=await b().get().get(s.serviceName)[s.methodName]({restfull:"upload"==this.menu?`${this.uploadGroupId}/files`:"",data:e}),this.sessionId=f["default"].getRandomKey(),await this.renderResult(i,this.sessionId,t)}catch(l){this.maxCount=0,this.data=[],this.statusCode=this.data.length?"":_.netStatus.error}this.isInterfaceLoading=!1},async renderResult(t,e,a){if(this.sessionId==e){if("ok"===t.result){var s,i,l;const e=(null===(s=t.data)||void 0===s?void 0:s.data)||(null===(i=t.data)||void 0===i?void 0:i.list)||(null===(l=t.data)||void 0===l?void 0:l.records)||t.files||[];var o,n;if(await this.transformData(e),"upload"===this.menu&&(e.length&&this.handleUploadTemplateData(e),this.uploadListFinished=-1===t.next_offset),a)this.maxCount=(null===(o=t.data)||void 0===o?void 0:o.total)||(null===(n=t.data)||void 0===n?void 0:n.total_num)||0,this.data=e;else this.data=this.data.concat(e)}else this.maxCount=0,this.data=[];this.statusCode=this.data.length?"":_.netStatus.tmpEmpty}},transformUploadBaseData(t){return t.forEach(t=>{t.name=t.fname,t.cover_url=null,t.isUpload=!0,t.selected=!1}),t},async transformData(t){let e={};if("wps"===g.appInfo.name&&["collect","recent"].includes(this.menu)){const s=t.map(t=>t.id).join(":");let i={};try{i=await b().get().get("assess").getMbIsResume({data:{ids:s}})}catch(a){}e=i.data||{}}return t.forEach(t=>{e[t.id]&&(t.mb_data={...t.mb_data||{},is_resume:!0}),t.selected=!1}),t},handleClickUpload(t){var e,a;if(!this.isUploading)if("local"===t.type)null===(e=this.$_get_collect())||void 0===e||e.send("click",{$e_n:"upload_local_file",$e_t:"button",$e_i:11400,$m_n:"upload"}),null===(a=dt["default"].get())||void 0===a||a.openClientFileSelector({multiple:!1,filter:"*.docx;*doc;*txt;*pptx;*ppt;*xlsx;*.xls"}).then(t=>{const e=null===t||void 0===t?void 0:t.fileList[0];e.exists&&e.path&&this.handleUploadLocalFile(e.path)});else if("cloud"===t.type){var s;null===(s=this.$_get_collect())||void 0===s||s.send("click",{$e_n:"upload_cloud_documents",$e_t:"button",$e_i:11401,$m_n:"upload"}),this.setUploadFinderModel()}},async handleUploadTemplateData(t){const e=t.map(t=>t.id.toString()),a={wps:{width:156,height:220},wpp:{width:228,height:128},et:{width:208,height:148}}[this.mark];this.batchQueryUploadFileCover(e,a),this.transformUploadBaseData(t)},batchQueryUploadFileCover(t,e){b().get().get("kdocs").batchQueryUploadFileCover({data:{client:"pc",crop_params:[e],file_ids:t,os:"Win",platform:8}}).then(t=>{try{this.dataCovers=JSON.parse(t||"[]");const a=[];if(this.dataCovers.forEach(t=>{var e,s;null!==(e=t.async_task_resp)&&void 0!==e&&null!==(s=e.images[0])&&void 0!==s&&s.url||a.push(t.file_id)}),!a.length)return;this.batchExportUploadFileCover(a,e)}catch(a){this.dataCovers=[]}})},batchExportUploadFileCover(t,e){const a=t=>{b().get().get("kdocs").batchExportUploadFileCover({data:{file_ids:t,format:"png",options:{need_recover:!0,combine2LongPic:!0,crop_params:[e]}}})};if(t.length<=10)a(t);else{const e=[];for(let a=0;a<t.length;a+=10)e.push(t.slice(a,a+10));e.forEach(t=>{a(t)})}},handleUploadLocalFile(t){var e;null===(e=dt["default"].get())||void 0===e||e.uploadUgcResource({resInfo:{resType:"template",appType:this.mark,localFilePath:t}}).then(t=>{if(t&&t.code){if(3===t.code){var e;const a=f["default"].byteConvert(t.cloudFileSizeLimit);return this.toast({type:"error",content:`单个文件不支持超过${a}`}),void(null===(e=this.$_get_collect())||void 0===e||e.send("display",{$e_i:11409,$m_n:"upload_toast",$e_n:"file_oversize",$e_t:"link",filesize_limit:a}))}this.setUploadError(t)}})},handleUploadLocalFileSuccess(t){var e;this.toast({type:"success",content:"上传成功"}),null===(e=this.$_get_collect())||void 0===e||e.send("display",{$e_i:11407,$m_n:"upload_toast",$e_n:"success",$e_t:"link"}),this.page=1,this.data=[],this.maxCount=0,this.mark=["wps","wpp","et"].includes(t.appType)?t.appType:this.mark,this.ajustTplLayout(),this.getData()},handleUploadCloudFile(t){this.isCloudFileUploading=!0;const{fname:e,id:a,ext:s}=t;b().get().get("drive").cloudFileSaveAsUpload({restfull:`${a}/save_as`,data:{client:"pc",fileid:a,fname:e,os:"Win",platform:8,target_groupid:this.uploadGroupId,target_parentid:this.uploadParentId}}).then(t=>{var e;t&&"ok"===t.result?(this.toast({type:"success",content:"上传成功"}),null===(e=this.$_get_collect())||void 0===e||e.send("display",{$e_i:11407,$m_n:"upload_toast",$e_n:"success",$e_t:"link"}),this.page=1,this.data=[],this.maxCount=0,this.mark=this.suffixToAppType(s),this.isCloudFileUploading=!1,this.ajustTplLayout(),this.getData()):(this.toast({type:"error",content:"上传失败"}),this.isCloudFileUploading=!1)}).catch(t=>{this.toast({type:"error",content:"上传失败"}),this.isCloudFileUploading=!1})},openUploadFile(t){var e;null===(e=dt["default"].get())||void 0===e||e.openUgcResource({resInfo:{resType:"template",id:t.id,appType:this.mark,md5:t.fsha,size:t.fsize,name:t.name,suffix:t.name.split(".").pop().toLocaleLowerCase(),cloudFileId:t.id}})},suffixToAppType(t){const e=t.substr(1,t.length),a=["doc","docx","rtf","txt","xml","mhtml","mht","html","htm","uof","dot","wps","wpt","dotx","docm","dotm","wpss","wpso","tpdoc"],s=["pptm","ppsx","ppsm","pps","potx","potm","dpt","dps","ppt","pptx","pot","dpss","dpso","tpppt"],i=["et","ett","xls","xlt","xlsx","xlsm","xltx","xltm","csv","ets","eto","tpxls"];return a.includes(e)?"wps":s.includes(e)?"wpp":i.includes(e)?"et":this.mark},loadMore(){this.isInterfaceLoading||(this.page++,this.getData(!1))},changeMenu(t){var e;this.menu=t.val,"buy"!==this.menu&&"upload"!==this.menu||"smartMb"!==this.mark||(this.mark=g.appInfo.name),this.page=1,this.data=[],this.statusCode="",this.isInterfaceLoading=!1,this.getData(),this.maxCount=0,null===(e=this.$_get_collect())||void 0===e||e.send("click",{$m_n:"category_area",$e_n:"first_cat",$e_t:"tag",$e_i:10816,first_cat_name:t.name})},collectChange(){"collect"==this.menu&&(this.page=1,this.data=[],this.maxCount=0,this.getData())},recentChange(){"recent"==this.menu&&(this.page=1,this.data=[],this.maxCount=0,this.getData())},ajustTplLayout(){const[t,e]=f["default"].getScreenDisplay(this.$refs.rMainContentCon.$el,"smartMb"===this.mark?"wpp":this.mark);this.limit!=e&&(this.limit=e),this.pageSize||("upload"===this.menu?this.pageSize=t*e>20?20:t*e:this.pageSize=t*e<30?30:t*e)},changeTerm(t){var e;this.mark=t.val||"wps",this.page=1,this.data=[],this.word="",this.maxCount=0,this.statusCode="",this.isInterfaceLoading=!1,this.ajustTplLayout(),this.getData(),null===(e=this.$_get_collect())||void 0===e||e.send("click",{$m_n:"category_area",$e_n:"second_cat",$e_t:"tag",$e_i:10818,second_cat_name:t.name})},changeShowBatchEdit(t){this.isBatchEditing=t,this.changeSelectStatus("no")},handlerSelectAll(t,e=!1){this.data=t.map(t=>(t.selected=e,t))},batchDelete(t){let e,a;const s=this.data[t];var i;s&&(e=s.id,a=[s.id],null===(i=this.$_get_collect())||void 0===i||i.send("click",{...this.commonCollectParams,$e_i:10823,$e_n:"delete",$e_t:"button",$e_p:t+1}));if(this.selectedList.length>ut)return void this.toast({type:"error",content:`单次最多支持删除${ut}个`});const l="recent"===this.menu,o="smartMb"===this.mark?"smartMb":"user",n=l?"delMyUsed":"delCollect";e=e||this.selectedList.join(":"),a=a||this.selectedList;let c=[];if("smartMb"===this.mark)for(let d=0;d<a.length;d++)c.push(b().get().get(o)[n]({data:{moban_id:a[d]}}));else c.push(b().get().get(o)[n]({data:{mb_ids:e}}));Promise.all(c).then(()=>{this.page>1&&e&&e.toString().split(["common","library"].includes(this.serviceType)?":":",").length>=this.data.length&&(this.page-=1),this.getData(),l?this.recentChange():this.collectChange()}).catch(t=>{})},batchDeleteUploadFiles(t){let e,a;const s=this.data[t];var i;s&&(e=s.id,a=[s.id],null===(i=this.$_get_collect())||void 0===i||i.send("click",{...this.commonCollectParams,$e_i:10823,$e_n:"delete",$e_t:"button",$e_p:t+1}));a=a||this.selectedList,this.selectedList.length>ut?this.toast({type:"error",content:`单次最多支持删除${ut}个`}):b().get().get("drive").batchDeleteUploadFile({restfull:`${this.uploadGroupId}/files/batch/delete`,data:{fileids:a}}).then(t=>{t&&"ok"===t.result&&(this.page>1&&e&&e.toString().split(",").length>=this.data.length&&(this.page-=1),this.getData())})},changeSelectStatus(t){this.handlerSelectAll(this.data,"all"===t)},onClickDelete(t){const e=this.data.map(t=>t.id).indexOf(t.id);"upload"===this.menu?this.batchDeleteUploadFiles(e):this.batchDelete(e)},onClickDeleteFav(t){const e=this.data.map(t=>t.id).indexOf(t.id);this.batchDelete(e)},changeResSelectStatus(t){const e=this.data.map(t=>t.id).indexOf(t.id);this.data[e].selected=!this.data[e].selected},handleUploadFileCover(){this.dataCovers.length?this.data.forEach(t=>{this.dataCovers.some(e=>{var a,s;t.id==e.file_id&&(t.cover_url=(null===e||void 0===e||null===(a=e.async_task_resp)||void 0===a||null===(s=a.images[0])||void 0===s?void 0:s.url)||"")})}):this.data.forEach(t=>{t.cover_url=""})},handleScroll(){var t;const e=null===(t=this.$refs.rMainContentCon.$el)||void 0===t?void 0:t.scrollTop;e>50?v["default"].$emit(_.eventName.scrollFixed,!0):v["default"].$emit(_.eventName.scrollFixed,!1)}},computed:{...(0,c.mapState)("user",["isLogin","userInfo","isClientLogin"]),...(0,c.mapState)("upload",["uploadFile"]),pageOffset(){return this.pageSize*(this.page-1)},selectedList(){const t=[];return this.data.forEach(e=>{e.selected&&t.push(e.id)}),t},selectStatus(){return this.selectedList.length?this.selectedList.length==this.data.length?"all":"middle":"no"},showFavBtn(){return"buy"!==this.menu&&"smartMb"!==this.mark},showDeleteBtn(){return"recent"===this.menu&&"smartMb"!==this.mark&&!this.isBatchEditing},batchEditable(){return!this.isUploading&&"buy"!==this.menu&&!("recent"===this.menu&&"smartMb"===this.mark)&&!!this.data.length},showUploadBtn(){return"upload"===this.menu},commonCollectParams(){return{$m_n:"resource_list",$e_i:{display:10821,click:10822},first_cat_name:{recent:"最近使用",upload:"我上传的",collect:"我的收藏",buy:"已购资源"}[this.menu],second_cat_name:{wps:"文字",wpp:"演示",et:"表格"}[this.mark],$track:""}},finished(){return"upload"===this.menu?this.uploadListFinished:this.effectiveLength>=this.maxCount},effectiveLength(){return this.data.filter(t=>!!t.id).length},uploadDataEmpty(){return"upload"===this.menu&&this.statusCode===_.netStatus.tmpEmpty},isUploading(){return this.uploadFile&&this.uploadFile.status==_.uploadStatus.progress||this.isCloudFileUploading}},watch:{dataCovers:{handler(){this.handleUploadFileCover()}}},components:{NotLogin:u,DataStatus:m.A,DocerUl:E,List:F.A,MainTopBar:et,InfiniteScroll:s.A,UploadEmpty:ct}},_t=mt;var gt=(0,r.A)(_t,i,l,!1,null,"16cf403d",null);const ft=gt.exports}}]);
//# sourceMappingURL=screenmytpl.js.map神迹刺穿的、戴着蕾丝面罩的黑星。
[uploadedimage:23844069]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|M男之家

GMT+8, 2026-11-4 15:34 , Processed in 0.045774 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表