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

1 line
3.2 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/Viewprescription/Viewprescription"],{"384c":function(t,e,n){"use strict";var o=n("f19e"),i=n.n(o);i.a},3861:function(t,e,n){"use strict";n.r(e);var o=n("66e4"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"5aed":function(t,e,n){"use strict";n.r(e);var o=n("6ebb"),i=n("3861");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("384c");var u=n("f0c5"),s=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=s.exports},"66e4":function(t,e,n){"use strict";(function(t,o){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("87f1"),u=i(n("aeba")),s={data:function(){return{motionPrescriptionVideoInfoVOList:[],batchCode:"",studentId:"",list:[],getchildlist:[],bgColor:"#37A97B"}},onLoad:function(e){var n=this;this.batchCode=e.batchCode,this.studentId=e.studentId,(0,r.getMotionPrescription)(e.studentId,e.batchCode).then((function(t){n.list=t.data,n.list.forEach((function(t){t.motionPrescriptionVideoInfoVOList.forEach((function(t){t.count=0,t.prescriptionVideoUrl=u.default+t.prescriptionVideoUrl}))}))}));var o=t.getStorageSync("phone");(0,r.getInfoByPhone)(o).then((function(o){if(200==o.code){var i={studentIdList:[]};o.data.studentInfoList.forEach((function(t){i.studentIdList.push(t.studentId)}));var u=JSON.stringify(o.data);t.setStorageSync("this.DATAList",u),(0,r.getChildrenResultScore)(i).then((function(t){t.data.forEach((function(t){t.batchCode==e.batchCode&&t.studentId==e.studentId&&n.getchildlist.push(t)}))})),n.infolist()}}))},methods:{infolist:function(){var e=t.getStorageSync("this.DATAList");(0,r.prescriptionLogging)(e).then((function(t){}))},look:function(e){if(0==e.count){e.count++;var n=JSON.parse(t.getStorageSync("this.DATAList"));n["prescriptionVideoId"]=e.motionPrescriptionVideoId,(0,r.prescriptionVideoLogging)(n).then((function(t){}))}},showToast:function(){this.$refs.uToast.show({title:"暂无报告",type:"error",duration:1e3})},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:u.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({title:"请求报告失败",type:"error"})}})}}}};e.default=s}).call(this,n("543d")["default"],n("bc2e")["default"])},"6ebb":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),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"))}},i=function(){var t=this.$createElement;this._self._c},r=[]},e18b:function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("5532");o(n("66fd"));var i=o(n("5aed"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},f19e:function(t,e,n){}},[["e18b","common/runtime","common/vendor"]]]);