KindergartenAppletUI/unpackage/dist/build/mp-weixin/pages/grade/grade.js
2023-07-21 17:04:30 +08:00

1 line
2.3 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/grade/grade"],{"018d":function(t,e,n){"use strict";n.r(e);var o=n("3e9c"),u=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=u.a},"2c0f":function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uToast:function(){return n.e("node-modules/uview-ui/components/u-toast/u-toast").then(n.bind(null,"9420"))}},u=function(){var t=this.$createElement;this._self._c},a=[]},"3e9c":function(t,e,n){"use strict";(function(t,o){var u=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("87f1"),i=u(n("aeba")),r={data:function(){return{StudentScore:[]}},onShow:function(){var e=this,n=t.getStorageSync("phone");n?(0,a.getInfoByPhone)(n).then((function(t){if(200==t.code){var n={studentIdList:[]};t.data.studentInfoList.forEach((function(t){n.studentIdList.push(t.studentId)})),(0,a.getStudentScore)(n).then((function(t){e.StudentScore=t.data}))}})):t.navigateTo({url:"/pages/index/index"})},methods:{lookbook:function(e){if(0==e.existFlag)this.$refs.uToast.show({title:"暂无报告",type:"error",duration:1e3});else{t.showLoading({title:"获取报告中"});var n=this;o.downloadFile({url:i.default+e.downloadAddress,success:function(e){var n=e.tempFilePath;o.openDocument({filePath:n,showMenu:!0,success:function(e){t.hideLoading()},fail:function(e){t.hideLoading()}})},fail:function(e){t.hideLoading(),n.$refs.uToast.show({message:"请求报告失败",type:"error"})}})}}}};e.default=r}).call(this,n("543d")["default"],n("bc2e")["default"])},"441b":function(t,e,n){},7363:function(t,e,n){"use strict";var o=n("441b"),u=n.n(o);u.a},"76a0":function(t,e,n){"use strict";n.r(e);var o=n("2c0f"),u=n("018d");for(var a in u)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(a);n("7363");var i=n("f0c5"),r=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=r.exports},b4d2:function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("5532");o(n("66fd"));var u=o(n("76a0"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(u.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["b4d2","common/runtime","common/vendor"]]]);