index.js 3.7 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/expertDiagnosis/index"],{681:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(682));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},682:function(e,n,t){"use strict";t.r(n);var r=t(683),o=t(685);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t(687);var i,c=t(32),u=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],i);u.options.__file="pages/expertDiagnosis/index.vue",n["default"]=u.exports},683:function(e,n,t){"use strict";t.r(n);var r=t(684);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"]}))},684: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={uniNavBar:function(){return t.e("components/uni-nav-bar/uni-nav-bar").then(t.bind(null,1236))}}}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 o=function(){var e=this,n=e.$createElement;e._self._c},a=!1,i=[];o._withStripped=!0},685:function(e,n,t){"use strict";t.r(n);var r=t(686),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},686:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(41)),a=r(t(43)),i={data:function(){return{cooperation_academy:[],cooperation_unit:[],cooperation_specialist:[],jurisdiction:!1}},methods:{getCooperation:function(e){var n=this;return(0,a.default)(o.default.mark((function t(){var r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$myRequest({url:"/api/api_gateway?method=pest.pests.pests_expert",data:{code:e}});case 2:r=t.sent,console.log(r),1==e?n.cooperation_unit=r.data:2==e?n.cooperation_academy=r.data:3==e&&(n.cooperation_specialist=r.data);case 5:case"end":return t.stop()}}),t)})))()},clickLeft:function(){e.switchTab({url:"../index/index"})},worm:function(){e.navigateTo({url:"./wormcase?name=虫情百科"})},virus:function(){e.navigateTo({url:"./wormcase?name=病毒百科"})},exchange:function(){this.jurisdiction?e.navigateTo({url:"./exchangeShare"}):e.showToast({title:"您暂无权限进行此操作,如有需要,请联系管理员",icon:"none"})}},onLoad:function(){var n=this;this.getCooperation(1),this.getCooperation(2),this.getCooperation(3),e.getStorage({key:"jurisdiction",success:function(e){console.log(JSON.parse(e.data));var t=JSON.parse(e.data).filter((function(e){return 124==e.pur_id}));console.log(t),n.jurisdiction=t[0].children.some((function(e){return 143==e.pur_id}))}})},onBackPress:function(e){return"navigateBack"!==e.from&&(this.clickLeft(),!0)}};n.default=i}).call(this,t(2)["default"])},687:function(e,n,t){"use strict";t.r(n);var r=t(688),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},688:function(e,n,t){}},[[681,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/expertDiagnosis/index.js.map