| 1 |
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,a,i,s){try{var u=e[i](s),c=u.value}catch(o){return void n(o)}u.done?t(c):Promise.resolve(c).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var s=e.apply(t,n);function u(e){r(s,a,i,u,c,"next",e)}function c(e){r(s,a,i,u,c,"throw",e)}u(void 0)}))}}System.register(["./index-legacy.81fd4e6f.js","./index-legacy.00d82922.js","./index-legacy.a9944503.js","./index-legacy.0e551442.js","./index-legacy.c7f919fb.js","./index-legacy.5ee1edf1.js","./index.module-legacy.dd749bc4.js","./index-legacy.8271e59c.js","./index-legacy.75e78f7b.js","./index-legacy.16d013c6.js","./index-legacy.e997fd26.js","./index-legacy.819d05e3.js","./index-legacy.0256f666.js","./use-tab-status-legacy.7b80393c.js","./index-legacy.8bfb99fc.js","./index-legacy.2a9471c6.js"],(function(e){"use strict";var n,r,i,s,u,c,o,l,f,d,h,g,p,m,v,y,b,w,x,j,S,k;return{setters:[function(e){n=e.O},function(e){r=e.O},function(e){i=e.d,s=e.ag,u=e.r,c=e.$,o=e.c,l=e.a5,f=e.ai,d=e.F,h=e.aj,g=e.m,p=e.q},function(e){m=e.O},function(e){v=e.O},function(e){y=e.s},function(e){b=e.s},function(e){w=e.L},function(e){x=e.C},function(e){j=e.C},function(e){S=e.T,k=e.a},function(){},function(){},function(){},function(){},function(){}],execute:function(){var O=i({name:"mass-list",props:{status:{type:String,default:""},height:{type:Number,default:0}},setup:function(e){var n=s(),r=u({refreshing:!1,height:0,list:[],dataShow:!0,loading:!1,finished:!1,params:{keyword:null,sendStatus:e.status||"WAIT",page:1,rows:10},isClick:!1}),i=function(){var e=a(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!r.isClick){e.next=3;break}return e.abrupt("return");case 3:return r.isClick=!0,e.next=6,g.post("/api-school/imMessageBatchSending/page",{data:t({},r.params)});case 6:if(n=e.sent,r.isClick=!1,r.loading=!1,r.refreshing=!1,a=n.data||{},!(r.list.length>0&&1===a.current)){e.next=13;break}return e.abrupt("return");case 13:r.list=r.list.concat(a.rows||[]),r.finished=a.current>=a.pages,r.params.page=a.current+1,r.dataShow=r.list.length>0,e.next=25;break;case 19:e.prev=19,e.t0=e.catch(0),r.isClick=!1,r.dataShow=!1,r.refreshing=!1,r.finished=!0;case 25:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),p=function(){r.params.page=1,r.list=[],r.dataShow=!0,r.loading=!1,r.finished=!1,i()},S=function(){var e=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.push({path:"/create-message",query:{id:t.id}});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return c((function(){i()})),function(){var e;return o(d,null,[o(v,{placeholder:"请输入群聊/学员名称/伴学指导名称",onSearch:function(e){r.params.keyword=e,p()}},null),o("div",{style:{height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - var(--van-search-input-height) - 0.53334rem)",overflow:"hidden",overflowY:"auto"}},[r.dataShow?o(m,{modelValue:r.refreshing,"onUpdate:modelValue":function(e){return r.refreshing=e},onRefresh:p,style:{minHeight:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - var(--van-search-input-height) - 0.53334rem)"}},{default:function(){return[o(w,{finished:r.finished,finishedText:" ",class:[b.liveList],onLoad:i,style:{paddingTop:"12px"},immediateCheck:!1},(t=e=r.list.map((function(e){return o(x,{inset:!0,onClick:function(){return S(e)},style:{marginBottom:"12px"}},{default:function(){return[o(j,{class:[b.waitSend,"SEND"===e.sendStatus&&b.messageSend],titleStyle:{flex:"1 auto"}},{title:function(){return o("div",{class:b.time},["WAIT"===e.sendStatus&&o(l,{name:"clock-o",class:b.clockO},null),e.sendTime])},value:function(){return o("span",null,[y[e.sendStatus]])}}),o(j,{valueClass:[b.messageContent,"van-multi-ellipsis--l3"]},{default:function(){return[e.textMessage]}})]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!h(t)?e:{default:function(){return[e]}}))];var t}}):o(f,{btnStatus:!1,tips:"暂无群发消息"},null)])])}}});e("default",i({name:"mass-message",setup:function(){var e=s(),i=sessionStorage.getItem("mass-message-send"),l=u({refreshing:!1,height:0,list:[],dataShow:!0,loading:!1,finished:!1,tabValue:i||"WAIT",params:{keyword:null,sendStatus:i||"WAIT",page:1,rows:10},isClick:!1}),f=function(){var e=a(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!l.isClick){e.next=3;break}return e.abrupt("return");case 3:return l.isClick=!0,e.next=6,g.post("/api-school/imMessageBatchSending/page",{data:t({},l.params)});case 6:if(n=e.sent,l.isClick=!1,l.loading=!1,l.refreshing=!1,r=n.data||{},!(l.list.length>0&&1===r.current)){e.next=13;break}return e.abrupt("return");case 13:l.list=l.list.concat(r.rows||[]),l.finished=r.current>=r.pages,l.params.page=r.current+1,l.dataShow=l.list.length>0,e.next=25;break;case 19:e.prev=19,e.t0=e.catch(0),l.isClick=!1,l.dataShow=!1,l.refreshing=!1,l.finished=!0;case 25:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}();return c((function(){f()})),function(){return o("div",{class:[b.massMessage]},[o(r,{position:"top",onGetHeight:function(e){l.height=e,document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[o(n,{border:!1},{right:function(){return o("span",{style:"color: var(--van-primary-color)",onClick:function(){e.push("/create-message")}},[p("消息群发")])}})]}}),o(S,{lineWidth:18,active:l.tabValue,"onUpdate:active":function(e){return l.tabValue=e},sticky:!0,animated:!0,swipeable:!0,offsetTop:l.height,onChange:function(e){l.params.sendStatus=e,l.params.page=1,l.list=[],l.dataShow=!0,l.loading=!1,l.finished=!1,f(),sessionStorage.setItem("mass-message-send",e)}},{default:function(){return[o(k,{title:"待发送",name:"WAIT"},{default:function(){return[o(O,{status:"WAIT",height:l.height},null)]}}),o(k,{title:"已发送",name:"SEND"},{default:function(){return[o(O,{status:"SEND",height:l.height},null)]}})]}})])}}}))}}}))}();
|