(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/Viewprescription/Viewprescription"],{121:function(t,n,e){"use strict";(function(t,n){var o=e(4);e(26);o(e(25));var i=o(e(122));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e(1)["default"],e(2)["createPage"])},122:function(t,n,e){"use strict";e.r(n);var o=e(123),i=e(125);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e(127);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/Viewprescription/Viewprescription.vue",n["default"]=u.exports},123:function(t,n,e){"use strict";e.r(n);var o=e(124);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"]}))},124: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;t._self._c},r=!1,s=[];i._withStripped=!0},125:function(t,n,e){"use strict";e.r(n);var o=e(126),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},126: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:[],batchCode:"",studentId:"",list:[],getchildlist:[],bgColor:"#37A97B"}},onLoad:function(n){var e=this;this.batchCode=n.batchCode,this.studentId=n.studentId,(0,r.getMotionPrescription)(n.studentId,n.batchCode).then((function(t){e.list=t.data,e.list.forEach((function(t){t.motionPrescriptionVideoInfoVOList.forEach((function(t){t.count=0,t.prescriptionVideoUrl=s.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 s=JSON.stringify(o.data);t.setStorageSync("this.DATAList",s),(0,r.getChildrenResultScore)(i).then((function(t){t.data.forEach((function(t){t.batchCode==n.batchCode&&t.studentId==n.studentId&&e.getchildlist.push(t)}))})),e.infolist()}}))},methods:{infolist:function(){var n=t.getStorageSync("this.DATAList");(0,r.prescriptionLogging)(n).then((function(t){}))},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){}))}},showToast:function(){this.$refs.uToast.show({title:"暂无报告",type:"error",duration:1e3})},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"})}})}}}};n.default=c}).call(this,e(2)["default"],e(1)["default"])},127:function(t,n,e){"use strict";e.r(n);var o=e(128),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},128:function(t,n,e){}},[[121,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Viewprescription/Viewprescription.js.map