1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CourseDetail"],{1211:function(e,t,r){},3354:function(e,t,r){},4127:function(e,t,r){"use strict";var n=r("d2334"),a=r("b313"),o=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=a["default"],f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},h=function e(t,r,a,o,i,c,u,d,h,m,y,v,g){var b=t;if("function"===typeof u?b=u(r,b):b instanceof Date?b=m(b):"comma"===a&&s(b)&&(b=n.maybeMap(b,(function(e){return e instanceof Date?m(e):e})).join(",")),null===b){if(o)return c&&!v?c(r,f.encoder,g,"key"):r;b=""}if(p(b)||n.isBuffer(b)){if(c){var w=v?r:c(r,f.encoder,g,"key");return[y(w)+"="+y(c(b,f.encoder,g,"value"))]}return[y(r)+"="+y(String(b))]}var C,S=[];if("undefined"===typeof b)return S;if(s(u))C=u;else{var O=Object.keys(b);C=d?O.sort(d):O}for(var j=0;j<C.length;++j){var k=C[j],x=b[k];if(!i||null!==x){var _=s(b)?"function"===typeof a?a(r,k):r:r+(h?"."+k:"["+k+"]");l(S,e(x,_,a,o,i,c,u,d,h,m,y,v,g))}}return S},m=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a["default"];if("undefined"!==typeof e.format){if(!o.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=a.formatters[r],i=f.filter;return("function"===typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var r,n,a=e,o=m(t);"function"===typeof o.filter?(n=o.filter,a=n("",a)):s(o.filter)&&(n=o.filter,r=n);var c,u=[];if("object"!==typeof a||null===a)return"";c=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=i[c];r||(r=Object.keys(a)),o.sort&&r.sort(o.sort);for(var f=0;f<r.length;++f){var p=r[f];o.skipNulls&&null===a[p]||l(u,h(a[p],p,d,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset))}var y=u.join(o.delimiter),v=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),y.length>0?v+y:""}},4328:function(e,t,r){"use strict";var n=r("4127"),a=r("9e6a"),o=r("b313");e.exports={formats:o,parse:a,stringify:n}},5115:function(e,t,r){"use strict";var n=r("3354"),a=r.n(n);a.a},"6e6e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[e.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:e.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[e._t("default",[e._v(e._s(e.name?e.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[e._t("right")],2)])])},a=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var e=this.backUrl;"function"==typeof e.callBack?e.callBack():e.path?this.$router.push({path:e.path,query:e.params}):history.go(-1)}}},i=o,s=(r("5115"),r("2877")),c=Object(s["a"])(i,n,a,!1,null,"61d0e2e4",null);t["a"]=c.exports},7121:function(e,t,r){e.exports=r.p+"img/icon_student.2f375f47.png"},9624:function(e,t,r){"use strict";var n=r("1211"),a=r.n(n);a.a},"9e6a":function(e,t,r){"use strict";var n=r("d2334"),a=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",d=function(e,t){var r,d={},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,h=f.split(t.delimiter,p),m=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&(h[r]===u?y="utf-8":h[r]===l&&(y="iso-8859-1"),m=r,r=h.length);for(r=0;r<h.length;++r)if(r!==m){var v,g,b=h[r],w=b.indexOf("]="),C=-1===w?b.indexOf("="):w+1;-1===C?(v=t.decoder(b,i.decoder,y,"key"),g=t.strictNullHandling?null:""):(v=t.decoder(b.slice(0,C),i.decoder,y,"key"),g=n.maybeMap(c(b.slice(C+1),t),(function(e){return t.decoder(e,i.decoder,y,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===y&&(g=s(g)),b.indexOf("[]=")>-1&&(g=o(g)?[g]:g),a.call(d,v)?d[v]=n.combine(d[v],g):d[v]=g}return d},f=function(e,t,r,n){for(var a=n?t:c(t,r),o=e.length-1;o>=0;--o){var i,s=e[o];if("[]"===s&&r.parseArrays)i=[].concat(a);else{i=r.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[],i[u]=a):i[l]=a:i={0:a}}a=i}return a},p=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=r.depth>0&&i.exec(o),l=c?o.slice(0,c.index):o,u=[];if(l){if(!r.plainObjects&&a.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}var d=0;while(r.depth>0&&null!==(c=s.exec(o))&&d<r.depth){if(d+=1,!r.plainObjects&&a.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),f(u,t,r,n)}},h=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?i.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=h(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var a="string"===typeof e?d(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],l=p(c,a[c],r,"string"===typeof e);o=n.merge(o,l,r)}return n.compact(o)}},b313:function(e,t,r){"use strict";var n=String.prototype.replace,a=/%20/g,o=r("d2334"),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}}},i)},b562:function(e,t,r){"use strict";r.d(t,"s",(function(){return s})),r.d(t,"m",(function(){return c})),r.d(t,"n",(function(){return l})),r.d(t,"r",(function(){return u})),r.d(t,"e",(function(){return f})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return h})),r.d(t,"o",(function(){return m})),r.d(t,"j",(function(){return y})),r.d(t,"g",(function(){return C})),r.d(t,"h",(function(){return S})),r.d(t,"p",(function(){return v})),r.d(t,"q",(function(){return g})),r.d(t,"l",(function(){return O})),r.d(t,"d",(function(){return b})),r.d(t,"i",(function(){return w})),r.d(t,"f",(function(){return j})),r.d(t,"a",(function(){return k})),r.d(t,"k",(function(){return d}));var n=r("4328"),a=r.n(n),o=r("981f").default,i="/api-teacher",s=function(e){return o({url:"/api-auth/usernameLogin",method:"post",data:a.a.stringify(e)})},c=function(e){return o({url:"/api-student/code/sendSms",method:"post",data:a.a.stringify(e)})},l=function(e){return o({url:"/api-auth/smsLogin",method:"post",data:a.a.stringify(e)})},u=function(e){return o({url:"/api-auth/user/setPassword",method:"post",data:a.a.stringify(e)})},d=function(e){return o({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:e})},f=function(e){return o({url:"/api-student/courseGroup/getGroupDetail",method:"get",params:e})},p=function(e){return o({url:"/api-student/courseGroup/buyCourseGroup",method:"post",data:a.a.stringify(e)})},h=function(e){return o({url:i+"/courseGroup/createCourseGroup",method:"post",data:e})},m=function(e){return o({url:i+"/sysTenantAccount/get",method:"get",params:e})},y=function(e){return o({url:i+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})},v=function(e){return o({url:i+"/teacherCourseSchedule/teacherCourseMinutes",method:"get",params:e})},g=function(e){return o({url:i+"/tenantEntryActivities/queryPage",method:"get",params:e})},b=function(e){return o({url:i+"/tenantPaymentOrder/createOrder",method:"post",data:a.a.stringify(e)})},w=function(e){return o({url:i+"/teacherOrder/queryByOrderNo",method:"get",params:e})},C=function(e){return o({url:"/api-cms/helpCenterCatalog/list",method:"get",params:e})},S=function(e){return o({url:"/api-cms/helpCenterContent/list",method:"get",params:e})},O=function(e){return o({url:"/api-auth/queryUserInfo",method:"get",params:e})},j=function(e){return o({url:i+"/courseReview/getStuAndTeaReview",method:"get",params:e})},k=function(e){return o({url:i+"/courseReview/batchAdd",method:"post",data:e})}},d2334:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,a=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)"undefined"!==typeof r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},c=function e(t,r,o){if(!r)return t;if("object"!==typeof r){if(a(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var i=t;return a(t)&&!a(r)&&(i=s(t,o)),a(t)&&a(r)?(r.forEach((function(r,a){if(n.call(t,a)){var i=t[a];i&&"object"===typeof i&&r&&"object"===typeof r?t[a]=e(i,r,o):t.push(r)}else t[a]=r})),t):Object.keys(r).reduce((function(t,a){var i=r[a];return n.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t}),i)},l=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},u=function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(a){return n}},d=function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"===typeof e?n=Symbol.prototype.toString.call(e):"string"!==typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",i=0;i<n.length;++i){var s=n.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?a+=n.charAt(i):s<128?a+=o[s]:s<2048?a+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?a+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(i)),a+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return a},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var l=s[c],u=o[l];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:l}),r.push(u))}return i(t),e},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},h=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},m=function(e,t){return[].concat(e,t)},y=function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)};e.exports={arrayToObject:s,assign:l,combine:m,compact:f,decode:u,encode:d,isBuffer:h,isRegExp:p,maybeMap:y,merge:c}},e373:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"courseEvaluation"},[e.headerStatus?n("MHeader"):e._e(),n("van-cell-group",[n("van-cell",{attrs:{title:"课程班名称",value:e.teacherClassHeadInfo.classGroupName}})],1),n("van-cell-group",[n("van-cell",{attrs:{title:"课程时间",value:e.teacherClassHeadInfo.classTime}})],1),n("van-cell-group",[n("van-cell",{attrs:{title:"乐器",value:e.teacherClassHeadInfo.subjectNames}})],1),n("van-cell-group",[n("van-cell",{attrs:{title:"班级学员",value:e.teacherClassHeadInfo.studentNames}})],1),n("van-cell-group",[n("van-field",{staticClass:"textarea",attrs:{maxlength:"255",autosize:"",label:"教学内容",type:"textarea",readonly:e.teachingMaterialStatus,placeholder:"请输入1-255字"},model:{value:e.teachingMaterial,callback:function(t){e.teachingMaterial=t},expression:"teachingMaterial"}})],1),e.courseScheduleComplaints.length>0?n("div",[n("div",{staticClass:"title"},[e._v("学员评价")]),e._l(e.courseScheduleComplaints,(function(t,a){return n("div",{key:a,staticClass:"evaluation-item"},[n("div",{staticClass:"header"},[t.avatar?n("img",{attrs:{src:t.avatar,alt:""}}):n("img",{attrs:{src:r("7121"),alt:""}}),e._v("\n "+e._s(t.username)+"\n ")]),n("div",{staticClass:"rate"},[e._v("评价"),n("van-rate",{attrs:{readonly:"",size:20},model:{value:t.score,callback:function(r){e.$set(t,"score",r)},expression:"item.score"}})],1),n("div",{staticClass:"content"},[e._v("\n "+e._s(t.reason)+"\n ")])])}))],2):e._e(),n("div",{staticClass:"title",class:[e.courseScheduleComplaints.length>0?"teacher":""]},[e._v("老师评价")]),e.courseScheduleReviewList.length>0?n("div",e._l(e.courseScheduleReviewList,(function(t,a){return n("van-panel",{key:a},[n("div",{staticClass:"van-hairline--bottom",staticStyle:{display:"flex"},attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"header"},[t.studentAvatar?n("img",{attrs:{src:t.studentAvatar,alt:""}}):n("img",{attrs:{src:r("7121"),alt:""}}),e._v(e._s(t.studentName)+"\n ")])]),n("div",{staticClass:"content",attrs:{slot:"default"},slot:"default"},[e._v(e._s(t.memo))])])})),1):n("div",[n("van-cell",{attrs:{center:"",title:"是否对所有学生评价"}},[n("van-switch",{attrs:{slot:"right-icon"},slot:"right-icon",model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})],1),e.checked?n("van-panel",{staticClass:"evaluation-panel",attrs:{title:"评论给所有学生"}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("van-field",{attrs:{rows:"3",maxlength:"255",autosize:"",type:"textarea",placeholder:"请输入1-255字"},model:{value:e.contentall,callback:function(t){e.contentall=t},expression:"contentall"}})],1)]):n("div",e._l(e.students,(function(t,a){return n("van-panel",{key:a,staticClass:"evaluation-panel"},[n("div",{staticClass:"van-hairline--bottom",staticStyle:{display:"flex","padding-left":".16rem"},attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"header"},[t.avatar?n("img",{attrs:{src:t.avatar,alt:""}}):n("img",{attrs:{src:r("7121"),alt:""}}),e._v("\n "+e._s(t.username)+"\n ")])]),n("div",{attrs:{slot:"default"},slot:"default"},[n("van-field",{attrs:{rows:"3",autosize:"",type:"textarea",placeholder:"请输入1-255字"},model:{value:t.content,callback:function(r){e.$set(t,"content",r)},expression:"item.content"}})],1)])})),1)],1),e.courseScheduleReviewList.length<=0?n("div",{staticClass:"button-group"},[n("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:e.onSubmit}},[e._v("确认")])],1):e._e()],1)},a=[],o=r("6e6e"),i=r("b562"),s=r("ff51"),c={name:"courseEvaluation",components:{MHeader:o["a"]},data:function(){var e=this.$route.query;return{headerStatus:!1,checked:!0,courseId:e.courseId,teachingMaterial:null,teachingMaterialStatus:!1,teacherClassHeadInfo:{},courseScheduleReview:[],courseScheduleComplaints:[],courseScheduleReviewList:[],review4StudentIds:{},students:[],contentall:null}},mounted:function(){var e=this.$route.query;e.Authorization&&(localStorage.setItem("Authorization",decodeURI(e.Authorization)),localStorage.setItem("userInfo",decodeURI(e.Authorization))),Object(s["b"])().android||Object(s["b"])().iPhone?document.title="课程评价":this.headerStatus=!0,this.__init()},methods:{__init:function(){var e=this;this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),Object(i["f"])({courseId:this.courseId}).then((function(t){var r=t.data;if(e.$toast.clear(),200==r.code){var n=r.data;n&&(e.teachingMaterial=n.teachingMaterial,e.teachingMaterialStatus=!!n.teachingMaterial,e.teacherClassHeadInfo=n.teacherClassHeadInfo?n.teacherClassHeadInfo:{},e.teacherClassHeadInfo.classDate&&(e.teacherClassHeadInfo.classTime=e.teacherClassHeadInfo.classDate+" "+e.teacherClassHeadInfo.startClassTime+"-"+e.teacherClassHeadInfo.endClassTime),e.courseScheduleReview=n.courseScheduleReview?n.courseScheduleReview:[],e.courseScheduleComplaints=n.courseScheduleComplaints?n.courseScheduleComplaints:[],e.courseScheduleReviewList=n.courseScheduleReviewList?n.courseScheduleReviewList:[],e.review4StudentIds=n.review4StudentIds?n.review4StudentIds:{},e.students=n.students?n.students:[],n.students.forEach((function(e){e.content=null})))}else e.$toast(r.msg)}))},onSubmit:function(){var e=this,t=this.students,r=[];if(this.teachingMaterial)if(this.contentall||!this.checked){var n=!1;t.forEach((function(t){e.checked||t.content?r.push({memo:e.checked?e.contentall:t.content,courseScheduleId:e.courseId,studentId:t.id,teachingMaterial:e.teachingMaterial}):n=!0})),n?this.$toast("请输入学生评价"):(this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),Object(i["a"])(r).then((function(t){e.$toast.clear();var r=t.data;200==r.code?(e.$toast("评价成功"),setTimeout((function(){e.onSubmitStatus=!0,Object(s["b"])().iPhone?window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"})):Object(s["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):e.$router.push("/business")}),500)):e.$toast(r.msg)})))}else this.$toast("请输入学生评价");else this.$toast("请输入教学内容")}},destroyed:function(){this.$toast.clear()}},l=c,u=(r("9624"),r("2877")),d=Object(u["a"])(l,n,a,!1,null,"97e6aa2a",null);t["default"]=d.exports}}]);
|