(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/prescription/prescription"],{"18f1":function(t,n,e){"use strict";e.r(n);var o=e("fb28"),i=e.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a},c0d2:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return o}));var o={uToast:function(){return e.e("node-modules/uview-ui/components/u-toast/u-toast").then(e.bind(null,"9420"))}},i=function(){var t=this.$createElement,n=(this._self._c,this.phone&&0!=this.StudentScore?this.StudentScore.length:null);this.$mp.data=Object.assign({},{$root:{g0:n}})},s=[]},c702:function(t,n,e){},e2a7:function(t,n,e){"use strict";e.r(n);var o=e("c0d2"),i=e("18f1");for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e("f64e");var a=e("f0c5"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=r.exports},f64e:function(t,n,e){"use strict";var o=e("c702"),i=e.n(o);i.a},f6f6:function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("5532");o(e("66fd"));var i=o(e("e2a7"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},fb28:function(t,n,e){"use strict";(function(t,o){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=e("87f1"),a=i(e("aeba")),r={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,s.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,s.getChildrenResultScore)(o).then((function(t){n.StudentScore=t.data,1==n.StudentScore.length&&((0,s.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=a.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,s.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:a.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,s.prescriptionLogging)(n).then((function(t){}))},lookbooklist:function(n){var e=this;(0,s.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=r}).call(this,e("543d")["default"],e("bc2e")["default"])}},[["f6f6","common/runtime","common/vendor"]]]);