1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Leave"],{"052f":function(t,e,n){"use strict";var r=n("76ff"),a=n.n(r);a.a},"38f0":function(t,e,n){"use strict";var r=n("5b7e"),a=n.n(r);a.a},"5b7e":function(t,e,n){},"6e6e":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader",style:{height:"calc("+t.titleHeight+"px + "+t.navBarHeight+"px)"}},[n("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""],style:[t.headStyle]},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[n("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),n("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),n("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},a=[],i=n("a34a"),o=n.n(i),u=n("ddf4");function s(t,e,n,r,a,i,o){try{var u=t[i](o),s=u.value}catch(c){return void n(c)}u.done?e(s):Promise.resolve(s).then(r,a)}function c(t){return function(){var e=this,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(t){s(i,r,a,o,u,"next",t)}function u(t){s(i,r,a,o,u,"throw",t)}o(void 0)})}}var l={name:"mheader",props:{name:String,isNative:{type:Boolean,default:!0},isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},data:function(){return{navBarHeight:0,headStyle:{},titleHeight:44}},mounted:function(){this.isNative||(Object(u["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=c(o.a.mark(function t(){var e,n,r=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=sessionStorage.getItem("navHeight"),n=sessionStorage.getItem("titleHeight"),!e||!n){t.next=7;break}this.navBarHeight=e,this.headStyle={paddingTop:e+"px",height:n+"px",lineHeight:n+"px"},t.next=9;break;case 7:return t.next=9,Object(u["b"])({api:"getNavHeight"},function(t){var e=t.content,n={},a=e.dpi||2;if(e.navHeight){var i=e.navHeight/a;sessionStorage.setItem("navHeight",i),r.navBarHeight=i,n={paddingTop:i+"px"}}if(e.titleHeight){var o=e.titleHeight/a;sessionStorage.setItem("titleHeight",o),r.titleHeight=o,n.height=o+"px",n.lineHeight=o+"px"}r.headStyle=n});case 9:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}},beforeDestroy:function(){this.isNative||(Object(u["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},d=l,h=(n("38f0"),n("2877")),f=Object(h["a"])(d,r,a,!1,null,"6a74717c",null);e["a"]=f.exports},"76ff":function(t,e,n){},"9afb":function(t,e,n){"use strict";n.d(e,"F",function(){return u}),n.d(e,"T",function(){return c}),n.d(e,"k",function(){return s}),n.d(e,"Z",function(){return l}),n.d(e,"i",function(){return d}),n.d(e,"m",function(){return h}),n.d(e,"N",function(){return p}),n.d(e,"O",function(){return m}),n.d(e,"P",function(){return g}),n.d(e,"h",function(){return v}),n.d(e,"X",function(){return y}),n.d(e,"Y",function(){return b}),n.d(e,"M",function(){return w}),n.d(e,"A",function(){return D}),n.d(e,"c",function(){return S}),n.d(e,"q",function(){return x}),n.d(e,"p",function(){return C}),n.d(e,"e",function(){return T}),n.d(e,"g",function(){return k}),n.d(e,"Q",function(){return A}),n.d(e,"R",function(){return O}),n.d(e,"H",function(){return H}),n.d(e,"K",function(){return L}),n.d(e,"v",function(){return B}),n.d(e,"W",function(){return M}),n.d(e,"n",function(){return f}),n.d(e,"s",function(){return G}),n.d(e,"y",function(){return I}),n.d(e,"a",function(){return j}),n.d(e,"S",function(){return N}),n.d(e,"l",function(){return F}),n.d(e,"x",function(){return R}),n.d(e,"t",function(){return q}),n.d(e,"b",function(){return P}),n.d(e,"o",function(){return V}),n.d(e,"f",function(){return E}),n.d(e,"V",function(){return _}),n.d(e,"w",function(){return J}),n.d(e,"d",function(){return Y}),n.d(e,"I",function(){return z}),n.d(e,"z",function(){return W}),n.d(e,"ab",function(){return Z}),n.d(e,"bb",function(){return Q}),n.d(e,"j",function(){return K}),n.d(e,"E",function(){return X}),n.d(e,"C",function(){return $}),n.d(e,"B",function(){return tt}),n.d(e,"r",function(){return et}),n.d(e,"L",function(){return nt}),n.d(e,"G",function(){return rt}),n.d(e,"D",function(){return it}),n.d(e,"u",function(){return at}),n.d(e,"J",function(){return U}),n.d(e,"U",function(){return ot});var r=n("4328"),a=n.n(r),i=n("981f").default,o="/api-teacher",u=function(t){return i({url:o+"/snaker/task/queryMyCreatedList",method:"get",params:t})},s=function(t){return i({url:o+"/subject/findTeacherSubjets",method:"get",params:t})},c=function(t){return i({url:o+"/subject/findSubSubjects",method:"get",params:t})},l=function(t){return i({url:o+"/vipGroupCategory/queryAll",method:"get",params:t})},d=function(t){return i({url:o+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},h=function(t){return i({url:o+"/school/findVipSchoolByTeacher",method:"get",params:t})},f=function(t){return i({url:o+"/school/findVipSchoolByTeacher2",method:"get",params:t})},p=function(t){return i({url:o+"/school/add",method:"post",data:a.a.stringify(t)})},m=function(t){return i({url:o+"/school/del",method:"post",data:a.a.stringify(t)})},g=function(t){return i({url:o+"/school/update",method:"post",data:a.a.stringify(t)})},v=function(t){return i({url:o+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},y=function(t){return i({url:o+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},b=function(t){return i({url:o+"/teacherVipGroup/vipGroupApplyForDouble11",method:"post",data:t})},w=function(t){return i({url:o+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},D=function(t){return i({url:o+"/leaveCategory/queryPage",method:"post",data:t})},S=function(t){return i({url:o+"/teacherLeaveRecord/askForLeave",method:"post",data:a.a.stringify(t)})},x=function(t){return i({url:o+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},C=function(t){return i({url:o+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},T=function(t){return i({url:o+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:a.a.stringify(t)})},k=function(t){return i({url:o+"/teacherCourseSchedule/courseSwap",method:"post",data:a.a.stringify(t)})},A=function(t){return i({url:o+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},O=function(t){return i({url:o+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},H=function(t){return i({url:o+"/teacher/queryStudentApply",method:"get",params:t})},L=function(t){return i({url:o+"/teacher/querySubByMusicGroupId",method:"get",params:t})},B=function(t){return i({url:o+"/teacher/getRegisterOrPreList",method:"get",params:t})},M=function(t){return i({url:o+"/studentRegistration/updateSubject",method:"post",data:a.a.stringify(t)})},G=function(){return i({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},I=function(){return i({url:"/api-web/api/practiceSum",method:"get"})},j=function(t){return i({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},P=function(t){return i({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},N=function(t){return i({url:"/api-teacher/studyReport/info",method:"get",params:t})},R=function(t){return i({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},F=function(t){return i({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},q=function(t){return i({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},V=function(t){return i({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},E=function(t){return i({url:"/api-teacher/courseReview/add",method:"post",data:t})},_=function(t){return i({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:a.a.stringify(t)})},J=function(t){return i({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})},Y=function(t){return i({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:t})},z=function(t){return i({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacher",method:"get",params:t})},U=function(t){return i({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacherByOrganId",method:"get",params:t})},X=function(t){return i({url:"/api-teacher/teacherVipGroup/queryDouble11Students",method:"get",params:t})},W=function(t){return i({url:"/api-teacher/visit/queryPage",method:"get",params:t})},Z=function(t){return i({url:"/api-teacher/visit/add",method:"post",data:a.a.stringify(t)})},Q=function(t){return i({url:"/api-teacher/visit/getInfo",method:"get",params:t})},K=function(t){return i({url:"/api-teacher/employeePosition/findOrganPosition",method:"get",params:t})},$=function(t){return i({url:"/api-cms/news/query",method:"get",params:t})},tt=function(t){return i({url:"/api-cms/news/list",method:"get",params:t})},et=function(t){return i({url:"/api-teacher/classGroup/getCourseStudents",method:"get",params:t})},nt=function(t){return i({url:"/api-auth/user/queryUserById/"+t.userId,method:"get"})},rt=function(t){return i({url:"/api-teacher/teacherPracticeGroup/queryPracticeGroupSellPrice",method:"get",params:t})},at=function(t){return i({url:"/api-teacher/teacherPracticeGroup/getPracticeGroupCostCount",method:"get",params:t})},it=function(t){return i({url:o+"/teacherPracticeGroup/practiceGroupApply",method:"post",data:t})},ot=function(t){return i({url:o+"/tenantConfig/get",method:"get",params:t})}},"9eb3":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"leave"},[t.headerStatus?r("m-header"):t._e(),r("van-cell-group",{staticClass:"search"},[r("van-field",{attrs:{label:"开始时间",placeholder:"选择开始时间","input-align":"right",readonly:"","is-link":""},on:{click:function(e){t.startShow=!0}},model:{value:t.searchList.startText,callback:function(e){t.$set(t.searchList,"startText",e)},expression:"searchList.startText"}}),r("van-field",{attrs:{label:"结束时间","input-align":"right",placeholder:"选择结束时间",readonly:"","is-link":""},on:{click:function(e){t.endShow=!0}},model:{value:t.searchList.endText,callback:function(e){t.$set(t.searchList,"endText",e)},expression:"searchList.endText"}}),r("van-field",{attrs:{type:"textarea",placeholder:"请详细说明原因",rows:"4",autosize:""},model:{value:t.searchList.remark,callback:function(e){t.$set(t.searchList,"remark",e)},expression:"searchList.remark"}})],1),t.vipList.length>0&&t.vipListType?r("van-panel",{attrs:{title:"课时安排"}},[t._l(t.vipList,function(e,a){return["VIP"==e.type?r("div",{key:a,staticClass:"leaveCell"},[r("div",{staticClass:"leaveCell-l"},[t._v(t._s(e.name))]),r("div",{staticClass:"leaveCell-r"},[r("div",{staticClass:"left-wrap"},[r("p",{staticClass:"classTime"},[t._v("上课时间")]),r("p",[t._v(t._s(t._f("getFormatTime")(e.classDate,e.startClassTime)))]),r("div",{staticClass:"line"}),r("img",{staticClass:"icon",attrs:{src:n("bf37"),alt:""}})]),e.changeTime?r("div",{staticClass:"left-wrap"},[r("p",{staticClass:"classTime"},[t._v("已调整为")]),r("p",[t._v("\n "+t._s(e.changeTime)+"\n "),r("van-icon",{attrs:{name:"edit"},on:{click:function(n){return t.onUpdate(e)}}})],1)]):r("div",{staticClass:"left-wrap"},[r("van-button",{attrs:{round:"",type:"info",size:"small"},on:{click:function(n){return t.onAdd(e)}}},[t._v("调整")])],1)])]):t._e()]})],2):t._e(),r("div",{staticClass:"button-group"},[r("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:t.onSubmit}},[t._v("确认")])],1),r("van-popup",{attrs:{position:"bottom"},model:{value:t.startShow,callback:function(e){t.startShow=e},expression:"startShow"}},[r("van-datetime-picker",{attrs:{type:"datetime","item-height":40,title:"开始时间","min-date":t.startDate.minDate,"max-date":t.startDate.maxDate,formatter:t.formatter},on:{cancel:function(e){t.startShow=!1},confirm:t.onStartConfirm},model:{value:t.startDate.currentDate,callback:function(e){t.$set(t.startDate,"currentDate",e)},expression:"startDate.currentDate"}})],1),r("van-popup",{attrs:{position:"bottom"},model:{value:t.endShow,callback:function(e){t.endShow=e},expression:"endShow"}},[r("van-datetime-picker",{attrs:{type:"datetime","item-height":40,title:"结束时间","min-date":t.endDate.minDate,"max-date":t.endDate.maxDate,formatter:t.formatter},on:{cancel:function(e){t.endShow=!1},confirm:t.onEndConfirm},model:{value:t.endDate.currentDate,callback:function(e){t.$set(t.endDate,"currentDate",e)},expression:"endDate.currentDate"}})],1),r("van-action-sheet",{attrs:{actions:t.leaveCategoryList,"cancel-text":"取消"},on:{cancel:function(e){t.dealShow=!1},select:t.onDealSelect},model:{value:t.dealShow,callback:function(e){t.dealShow=e},expression:"dealShow"}}),r("van-popup",{attrs:{position:"bottom"},model:{value:t.changeShow,callback:function(e){t.changeShow=e},expression:"changeShow"}},[r("van-datetime-picker",{attrs:{type:"datetime","item-height":40,title:"结束时间","min-date":t.changeDate.minDate,"max-date":t.changeDate.maxDate,formatter:t.formatter},on:{cancel:function(e){t.changeShow=!1},confirm:t.onChangeConfirm},model:{value:t.changeDate.currentDate,callback:function(e){t.$set(t.changeDate,"currentDate",e)},expression:"changeDate.currentDate"}})],1)],1)},a=[],i=n("6e6e"),o=n("9afb"),u=n("ff51");function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var c={name:"leave",components:{MHeader:i["a"]},data:function(){return{headerStatus:!1,startShow:!1,startDate:{minDate:new Date,maxDate:new Date(2025,12,31),currentDate:new Date},endShow:!1,endDate:{minDate:new Date,maxDate:new Date(2025,12,31),currentDate:new Date},dealShow:!1,searchList:{startText:null,endText:null,dealText:null,remark:null},vipList:[],vipListType:!1,changeShow:!1,changeDate:{minDate:new Date,maxDate:new Date(2025,12,31),currentDate:new Date},leaveCategoryList:[],changeItem:null}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",t.Authorization),localStorage.setItem("userInfo",t.Authorization)),document.title="批量调整",this.__init()},methods:{__init:function(){var t=this;Object(o["A"])({rows:9999,page:1}).then(function(e){var n=e.data;200==n.code&&n.data.rows.forEach(function(e){t.leaveCategoryList.push({name:e.name,id:e.id})})})},getDateInfo:function(t){var e=t;"object"!==s(t)&&(e=t.replace(/-/gi,"/"));var n=new Date(e),r=n.getHours()>=10?n.getHours():"0"+n.getHours(),a=n.getMinutes()>=10?n.getMinutes():"0"+n.getMinutes();return r+":"+a+":00"},onSubmit:function(){var t=this,e=this.searchList;if(e.startText&&e.endText)if(e.remark){var n;this.leaveCategoryList.forEach(function(t){t.name==e.dealText&&(n=t.id)});var r=[],a=!1;this.vipList.forEach(function(e){e.changeAllTime||"VIP"!=e.type||(t.$toast("操作无效:您还有VIP未调整"),a=!0);var n={};if("VIP"==e.type){n=Object.assign({},e);var i="2019/12/18 "+t.getDateInfo(e.startClassTime),o="2019/12/18 "+t.getDateInfo(e.endClassTime),u=new Date(i),s=new Date(o),c=parseInt(Math.abs(u.getTime()-s.getTime())/1e3/60);n.classDate=t.getFormatDate(e.changeAllTime)+":00",n.startClassTime=t.getFormatDate(e.changeAllTime)+":00";var l=new Date(e.changeAllTime);l.setMinutes(l.getMinutes()+c),n.endClassTime=t.getFormatDate(l)+":00"}r.push({before:e,after:n})}),a||Object(o["c"])({coursesScheduleJson:JSON.stringify(r),startTime:e.startText,endTime:e.endText,leaveCategoryId:n,leaveCategoryName:e.dealText,remark:e.remark}).then(function(e){var n=e.data;200==n.code?(t.$toast("申请成功,请等待审核"),setTimeout(function(){Object(u["b"])().iPhone?window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"})):Object(u["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):t.$router.push("/business")},500)):t.$toast(n.msg)})}else this.$toast("请填写原因");else this.$toast("时间不能为空")},onAdd:function(t){this.changeShow=!0,this.changeItem=t},onUpdate:function(t){this.changeDate.currentDate=t.changeAllTime,this.changeShow=!0,this.changeItem=t},onChangeConfirm:function(t){var e=new Date(t),n=e.getMonth()+1>=10?e.getMonth()+1:"0"+(e.getMonth()+1),r=e.getDate()>=10?e.getDate():"0"+e.getDate(),a=e.getHours()>=10?e.getHours():"0"+e.getHours(),i=e.getMinutes()>=10?e.getMinutes():"0"+e.getMinutes();this.changeItem.changeTime=n+"-"+r+" "+a+":"+i,this.changeItem.changeAllTime=t,this.changeShow=!1},onStartConfirm:function(t){var e=this.searchList;e.startText=this.getFormatDate(t),this.startShow=!1,t>=this.endDate.currentDate?(e.endText=null,this.endDate.currentDate=new Date):e.startText&&e.endText&&this.queryVipCourseScheduleList()},onEndConfirm:function(t){var e=this.searchList;e.endText=this.getFormatDate(t),this.endShow=!1,t<=this.startDate.currentDate?(e.startText=null,this.startDate.currentDate=new Date):e.startText&&e.endText&&this.queryVipCourseScheduleList()},queryVipCourseScheduleList:function(){var t=this;Object(o["M"])({endTime:this.searchList.endText,startTime:this.searchList.startText}).then(function(e){var n=e.data;t.vipList=[],200==n.code&&n.data.length>0&&(t.vipList=n.data,n.data.forEach(function(e){"VIP"==e.type&&(t.vipListType=!0)}))})},onDealSelect:function(t){this.searchList.dealText=t.name,this.dealShow=!1},getFormatDate:function(t){var e=new Date(t),n=e.getMonth()+1>=10?e.getMonth()+1:"0"+(e.getMonth()+1),r=e.getDate()>=10?e.getDate():"0"+e.getDate(),a=e.getFullYear()+"-"+n+"-"+r,i=e.getHours()>=10?e.getHours():"0"+e.getHours(),o=e.getMinutes()>=10?e.getMinutes():"0"+e.getMinutes();return a+" "+i+":"+o},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"===t?"".concat(e,"日"):"hour"===t?"".concat(e,"时"):"minute"===t?"".concat(e,"分"):e}},filters:{getFormatTime:function(t,e){t=new Date(t.replace(/-/g,"/")),e=new Date(e.replace(/-/g,"/"));var n=Number(t.getMonth()+1)>=10?Number(t.getMonth()+1):"0"+Number(t.getMonth()+1),r=Number(t.getDate())>=10?t.getDate():"0"+t.getDate(),a=Number(e.getHours())>=10?e.getHours():"0"+e.getHours(),i=Number(e.getMinutes())>=10?e.getMinutes():"0"+e.getMinutes();return n+"-"+r+" "+a+":"+i}}},l=c,d=(n("052f"),n("2877")),h=Object(d["a"])(l,r,a,!1,null,"6b5a501e",null);e["default"]=h.exports},bf37:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAztJREFUSA3FV11IVEEUPmfupmvKmiWJpqVBPakFGkG5UlCQRiAURA+9RhAE4VsFGZhvEvQUPfYSQYH9uT0Ela5BP7649GRYZCmKJpqLtnrvdM64d9mdvXe97ioeuHfunDlzvjnzc+a7CB6kQ0rROfD6iGXKNonQQF0qQNLDgjBG7zGUMCgM7Ll59NSHDkRLtWV4YYY2qP7+1v9zdOGqBGgHKXdmsk20IU6S0+7dVQX3ftQcX0zotQ9XYKPv1VkL8C4BVml9vFURRwXIa2bz6adOHYSulFKi6Ou9Y0l4kjUoO6UBsw/2xT51nBQFGxj9oUdUntcNc6kj4mMz2HKBSlq1FUmJmEA71xuUYdgn+45jqiIRsVpTnt41SsDwwcvaRuDyyrevMDA34+pBIJyz11xFzLtXbSTXLu4NJ0pKoal4O9QXBSBUdwiaAiWuxozBWGyggPnIZLuR3sxMwfi/lVNTRFH3ZgKnDaewGLiDkoM6p67jzNwwZy7DsaGPnsEZizHRFw41mabVr7s/WBiAi2W7IF+k7D/dLFEvpmjbSsugkEqWmGXBpeEIPJz4nbCxPwxDBH2cBm1Fcvm8tgEq8wuSVWv6zqMBP9hX5wjMmCKee9OcziwvpenWqohJ55TNmDwvK8le83py6BOc2VEGeZg4cZqFe9UvDNjr3wrdv0bcjCoQ3/f+pSNe5GaxMXqc97Zz1hsdpfSp+1TCft13NW2s9soaGFlcgEXL1JtXrcekhBfTEzC5FHOwxXFeY77I04CHGoPACSEXiUT3wIHBsJOLMcHMwaklD3NfhW3GFifXNMnwxcd0xTRlu25xmQ7/fTqHfB5ZopSheqYmYJZKL8IJxCl5cF8h8Bly+rrdHxqnXJ1GbTjhc+61p5xzMqfH4YWoF2xnG6JGt4It5YKJGYXe7WQVpiuuNfIZ5uNRluf74V39YXUFOtl70TEWY6p5ZGIGxJGcOjqB81WYlRCGwqLOCpjZIBMzN2cM3kKRR6JzEJ79A3wVZiOMYTPPlHwYJ2bXs3G6Wh/iW11Wc+sN2y4FeNPIHrPAOBvsskeWa8mR6gyTfaZEnAyy0YTeFZgHsSm/MMnRc5JZ75+2/2pYbctD+rVVAAAAAElFTkSuQmCC"},ddf4:function(t,e,n){"use strict";n.d(e,"b",function(){return h}),n.d(e,"a",function(){return f});var r=n("ff51");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}var s=function(){},c={},l=Object(r["b"])();l.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===u(t.data)?t.data:JSON.parse(t.data):{},n=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(m){}if(!n){var r=Object.keys(c).filter(function(t){return 0===t.indexOf(e.api)}),a=!0,i=!1,o=void 0;try{for(var l,d=r[Symbol.iterator]();!(a=(l=d.next()).done);a=!0){var h=l.value,f=c[h]||s;f(e)}}catch(g){i=!0,o=g}finally{try{a||null==d.return||d.return()}finally{if(i)throw o}}return}var p=c[e.content.uuid||e.uuid||e.api+e.uuid]||s;p(e)}catch(m){console.error("通信消息解析错误",m)}});var d=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,h=function(t,e){if(l.isApp){var n=Object(r["g"])();c[n]=e||s,t.content=t.content?i({},t.content,{uuid:n}):{uuid:n},d.postMessage(JSON.stringify(t))}},f=function(t,e){if(l.isApp){var n=t+Object(r["g"])();c[n]=e||s}}}}]);
|