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

2 lines
4.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/prescription/prescription"],{81:function(t,n,e){"use strict";(function(t,n){var o=e(4);e(26);o(e(25));var i=o(e(82));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e(1)["default"],e(2)["createPage"])},82:function(t,n,e){"use strict";e.r(n);var o=e(83),i=e(85);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e(87);var s,c=e(32),u=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);u.options.__file="pages/prescription/prescription.vue",n["default"]=u.exports},83:function(t,n,e){"use strict";e.r(n);var o=e(84);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},84:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return s})),e.d(n,"recyclableRender",(function(){return r})),e.d(n,"components",(function(){return o}));try{o={uToast:function(){return e.e("node-modules/uview-ui/components/u-toast/u-toast").then(e.bind(null,129))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.phone&&0!=t.StudentScore?t.StudentScore.length:null);t.$mp.data=Object.assign({},{$root:{g0:e}})},r=!1,s=[];i._withStripped=!0},85:function(t,n,e){"use strict";e.r(n);var o=e(86),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},86:function(t,n,e){"use strict";(function(t,o){var i=e(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e(76),s=i(e(78)),c={data:function(){return{motionPrescriptionVideoInfoVOList:[],list:[],show:!1,StudentScore:[],studentInfoList:[],studentIditem:[],getchildlist:[],batchCode:"",phone:"",studentList:[]}},onShow:function(){var n=this;this.phone=t.getStorageSync("phone"),this.phone?(0,r.getInfoByPhone)(this.phone).then((function(e){if(200==e.code){var o={studentIdList:[]};e.data.studentInfoList.forEach((function(t){o.studentIdList.push(t.studentId)}));var i=JSON.stringify(e.data);t.setStorageSync("this.DATAList",i),(0,r.getChildrenResultScore)(o).then((function(t){n.StudentScore=t.data,1==n.StudentScore.length&&((0,r.getMotionPrescription)(t.data[0].studentId,t.data[0].batchCode).then((function(t){n.studentInfoList=t.data,n.studentInfoList.forEach((function(t){t.motionPrescriptionVideoInfoVOList.forEach((function(t){t.count=0,t.prescriptionVideoUrl=s.default+t.prescriptionVideoUrl}))}))})),n.infolist())}))}})):t.navigateTo({url:"/pages/index/index"})},methods:{look:function(n){if(0==n.count){n.count++;var e=JSON.parse(t.getStorageSync("this.DATAList"));e["prescriptionVideoId"]=n.motionPrescriptionVideoId,(0,r.prescriptionVideoLogging)(e).then((function(t){}))}},lookbook:function(n){if(0==n.existFlag)this.$refs.uToast.show({title:"暂无报告",type:"error",duration:1e3});else{t.showLoading({title:"获取报告中"});var e=this;o.downloadFile({url:s.default+n.downloadAddress,success:function(n){var e=n.tempFilePath;o.openDocument({filePath:e,showMenu:!0,success:function(n){t.hideLoading()},fail:function(n){t.hideLoading()}})},fail:function(n){t.hideLoading(),e.$refs.uToast.show({title:"请求报告失败",type:"error"})}})}},infolist:function(){var n=t.getStorageSync("this.DATAList");(0,r.prescriptionLogging)(n).then((function(t){}))},lookbooklist:function(n){var e=this;(0,r.getMotionPrescription)(n.studentId,n.batchCode).then((function(o){e.studentInfoList=o.data,t.navigateTo({url:"/pages/Viewprescription/Viewprescription?studentId=".concat(n.studentId,"&batchCode=").concat(n.batchCode)})}))}}};n.default=c}).call(this,e(2)["default"],e(1)["default"])},87:function(t,n,e){"use strict";e.r(n);var o=e(88),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},88:function(t,n,e){}},[[81,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/prescription/prescription.js.map