| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-heartRhythms-heartRhythms"],{"15fb":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{age:-1,heartRate:-1,result:""}},onLoad:function(){this.heartRate=0,this.age=0,void 0!=getApp().globalData.heartRate&&(this.heartRate=getApp().globalData.heartRate),void 0!=getApp().globalData.age&&(this.age=getApp().globalData.age)},methods:{onBack:function(t,e){uni.navigateBack({delta:1})},onHelp:function(t,e){uni.navigateTo({url:"/pages/heartRhythms/help",animationType:"slide-in-left",animationDuration:2e3,success:function(t){},fail:function(){},complete:function(){}})},onClickHelp:function(t,e){uni.navigateTo({url:"/pages/heartRhythms/staticHeartRateHelp",animationType:"slide-in-left",animationDuration:2e3,success:function(t){},fail:function(){},complete:function(){}})},onClick:function(t,e){if(-1!=this.heartRate&&-1!=this.age){getApp().globalData.heartRate=this.heartRate,getApp().globalData.age=this.age;var a=220-this.age-.55*this.heartRate+this.heartRate,n=220-this.age-.75*this.heartRate+this.heartRate;this.result="你的最低有氧心率: "+Math.round(a)+"\n最高有氧心率: "+Math.round(n),getApp().globalData.lowestHeartRate=this.lowestHeartRate,getApp().globalData.highestHeartRate=this.highestHeartRate}else switch(t){case 0:alert("请输入体重");break;case 1:alert("请输入身高");break;case 2:alert("请输入年龄");break;default:break}}}};e.default=n},5257:function(t,e,a){var n=a("dad8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("4cc22b1c",n,!0,{sourceMap:!1,shadowMode:!1})},"67ff":function(t,e,a){"use strict";a.r(e);var n=a("15fb"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},7092:function(t,e,a){"use strict";var n=a("5257"),i=a.n(n);i.a},"7e88":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{staticClass:"navigation-bar"},[t._v("有氧运动心率")]),a("v-uni-view",{staticClass:"back",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onBack(0,e)}}},[a("v-uni-image",{staticStyle:{width:"100%"},attrs:{src:"/static/backArrow.png",mode:"aspectFit"}})],1),a("v-uni-view",{staticClass:"content"},[a("v-uni-text",{staticClass:"result-area"},[t._v(t._s(t.result))]),a("v-uni-button",{staticClass:"help",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onHelp(0,e)}}},[t._v("宁哥笔记")]),a("v-uni-view",{staticClass:"input-area"},[a("v-uni-view",{staticClass:"age"},[a("v-uni-view",{staticClass:"input-title"},[t._v("年龄 :")]),a("v-uni-input",{staticClass:"input",attrs:{type:"number",placeholder:"请输入年龄"},model:{value:t.age,callback:function(e){t.age=e},expression:"age"}})],1),a("v-uni-view",{staticClass:"static-heart-rate"},[a("v-uni-view",{staticClass:"input-block"},[a("v-uni-view",{staticClass:"input-title"},[t._v("静态心率 :")]),a("v-uni-input",{staticClass:"input",attrs:{type:"number",placeholder:"请输入静态心率"},model:{value:t.heartRate,callback:function(e){t.heartRate=e},expression:"heartRate"}}),a("v-uni-button",{staticClass:"heart-rate-help",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickHelp(0,e)}}},[t._v("?")])],1)],1)],1),a("v-uni-button",{staticClass:"confirm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick(0,e)}}},[t._v("确定")])],1)],1)},r=[]},dad8:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.container[data-v-20dee9d2]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100vh}.navigation-bar[data-v-20dee9d2]{display:flex;align-items:center;justify-content:center;width:100%;height:10%;font-weight:700;color:#fff;background-color:#73a4a4}.back[data-v-20dee9d2]{position:absolute;display:flex;align-items:center;justify-content:center;width:2%;height:2%;top:3%;left:1%}.content[data-v-20dee9d2]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.result-area[data-v-20dee9d2]{display:flex;align-items:center;justify-content:center;width:60%;height:30%;margin:1%;border-radius:%?25?%;background-color:#73a4a4}.help[data-v-20dee9d2]{color:azure;background-color:#000}.input-area[data-v-20dee9d2]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:60%;height:60%;margin:1%}.input-area .static-heart-rate[data-v-20dee9d2]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;height:100%;margin:1%;border-radius:%?25?%;background-color:#73a4a4}.input-area .static-heart-rate .input-block[data-v-20dee9d2]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:40%}.input-area .age[data-v-20dee9d2]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;height:100%;margin:3%;border-radius:%?25?%;background-color:#73a4a4}.input-area .input-title[data-v-20dee9d2]{margin-right:1%}.input-area .input[data-v-20dee9d2]{display:flex;justify-content:center;align-items:center;background:#f4f4f4;border-radius:%?4?%;height:%?70?%;font-size:%?28?%;line-height:%?70?%;font-family:PingFang SC;font-weight:500;color:#848484;text-align:center;margin:1%}.confirm[data-v-20dee9d2]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:10%;height:10%;margin:1%}',""]),t.exports=e},dcec:function(t,e,a){"use strict";a.r(e);var n=a("7e88"),i=a("67ff");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("7092");var s,c=a("f0c5"),o=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"20dee9d2",null,!1,n["a"],s);e["default"]=o.exports}}]);
|