require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/pages/figure/figure"],{538:function(e,t,n){"use strict";(function(e,t){var i=n(4);n(26);i(n(25));var r=i(n(539));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},539:function(e,t,n){"use strict";n.r(t);var i=n(540),r=n(542);for(var s in r)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(s);n(544);var a,u=n(34),o=Object(u["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],a);o.options.__file="pages_tool/pages/figure/figure.vue",t["default"]=o.exports},540:function(e,t,n){"use strict";n.r(t);var i=n(541);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},541:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return s})),n.d(t,"components",(function(){return i}));var r=function(){var e=this,t=e.$createElement;e._self._c},s=!1,a=[];r._withStripped=!0},542:function(e,t,n){"use strict";n.r(t);var i=n(543),r=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=r.a},543:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{height:"",weight:"",show:!1,res:{img:"",msg:"",ideal:"",bmi:""}}},onShareAppMessage:function(){},methods:{heightFun:function(e){this.height=e.detail.value},weightFun:function(e){this.weight=e.detail.value},getdata:function(t){e.showLoading({title:"计算中"});var n=this.height,i=this.weight;if(""==n||""==i)return e.showToast({title:"请输入身高体重",icon:"none",duration:2e3}),!1;if(isNaN(n)||isNaN(i))e.showToast({title:"请正确输入！",icon:"none",duration:2e3});else{var r=.9*(n-100),s=i/(n/100*(n/100));s<18.5?(this.show=!0,this.res={img:"/static/images/bq4.png",msg:"你的体重太轻,要多吃点哟!",ideal:r,bmi:s}):s>=18.5&&s<25?(this.show=!0,this.res={img:"/static/images/bq1.png",msg:"亲,你的体重正常,要继续保持哟",ideal:r,bmi:s}):s>=25&&s<30?(this.show=!0,this.res={img:"/static/images/bq3.png",msg:"亲,您的体重过重,要减肥了!",ideal:r,bmi:s}):(this.show=!0,this.res={img:"/static/images/bq2.png",msg:"亲,你确实要减肥了!",ideal:r,bmi:s}),e.hideLoading()}}}};t.default=n}).call(this,n(2)["default"])},544:function(e,t,n){"use strict";n.r(t);var i=n(545),r=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=r.a},545:function(e,t,n){}},[[538,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages_tool/pages/figure/figure.js.map