12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_index/testResult"],{260:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(261));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},261:function(e,n,t){"use strict";t.r(n);var r=t(262),o=t(264);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t(266);var i,u=t(34),s=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],i);s.options.__file="pages_index/testResult.vue",n["default"]=s.exports},262:function(e,n,t){"use strict";t.r(n);var r=t(263);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},263:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return r}));try{r={uSwiper:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-swiper/u-swiper")]).then(t.bind(null,497))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement,t=(e._self._c,null!=e.report?JSON.parse(e.report.patientJson):null),r=null!=e.report&&null!=t.avatar?JSON.parse(e.report.patientJson):null,o=null!=e.report?JSON.parse(e.report.patientJson):null,a=null!=e.report?JSON.parse(e.report.patientJson):null,i=null!=e.report?e.__map(JSON.parse(e.report.conditioningPlanJson),(function(n,t){var r=e.__get_orig(n),o=JSON.parse(e.report.conditioningPlanJson).length;return{$orig:r,g4:o}})):null,u=null!=e.report?e.advImgs.length:null;e.$mp.data=Object.assign({},{$root:{g0:t,g1:r,g2:o,g3:a,l0:i,g5:u}})},a=!1,i=[];o._withStripped=!0},264:function(e,n,t){"use strict";t.r(n);var r=t(265),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},265:function(e,n,t){"use strict";(function(e,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(162),a=t(215),i={data:function(){return{advImgs:[],advs:[],reportId:null,statusBarHeight:e.getStorageSync("menuInfo").statusBarHeight,report:null}},computed:{imgPath:function(){return this.$store.state.imgpath}},onLoad:function(e){this.reportId=e.reportId,this.getTestReport()},onShow:function(){this.getAdvList()},methods:{shareImg:function(){var e={reportId:this.reportId};(0,a.getTestReportImg)(e).then((function(e){200==e.code&&(console.log(e),r.downloadFile({url:e.img,success:function(e){console.log(e),r.showShareImageMenu({path:e.tempFilePath})},fail:function(e){console.log(e)}}))}),(function(e){}))},handleAdvClick:function(n){var t=this.advs[n];console.log(t.advUrl),1==t.showType?(e.setStorageSync("url",t.advUrl),e.navigateTo({url:"h5"})):2==t.showType?e.navigateTo({url:t.advUrl}):3==t.showType&&(e.setStorageSync("content",t.content),e.navigateTo({url:"content"}))},getAdvList:function(){var n=this,t={advType:3};(0,o.getAdvList)(t).then((function(t){200==t.code?(n.advImgs=[],n.advs=t.data,n.advs.forEach((function(e){null!=e.imageUrl&&""!=e.imageUrl&&n.advImgs.push(e.imageUrl)})),console.log(n.advImgs)):e.showToast({icon:"none",title:"请求失败"})}))},getTestReport:function(){var e=this,n={reportId:this.reportId};(0,a.getTestReport)(n).then((function(n){200==n.code&&(e.report=n.report)}),(function(e){}))},goBack:function(){e.navigateBack()}}};n.default=i}).call(this,t(2)["default"],t(1)["default"])},266:function(e,n,t){"use strict";t.r(n);var r=t(267),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},267:function(e,n,t){}},[[260,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_index/testResult.js.map
|