1 line
3.0 KiB
JavaScript
1 line
3.0 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/compk/pkdetail"],{"22e9":function(t,e,n){"use strict";n.r(e);var o=n("2b29"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},2802:function(t,e,n){"use strict";n.r(e);var o=n("e271"),i=n("22e9");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("a75e");var f=n("f0c5"),a=Object(f["a"])(i["default"],o["b"],o["c"],!1,null,"273b3efd",null,!1,o["a"],void 0);e["default"]=a.exports},"2b29":function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("9523")),r=n("26cb");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var a={onLoad:function(e){t.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme}),console.log("options",e),e.info&&(this.infoID=JSON.parse(e.info),this.handleSharepic(this.infoID))},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)(["user","appTheme"])),methods:{handleSharepic:function(t){var e=this,n=this;n.$model.getresultdiff({familyid:t.familyid,firstId:t.firstId,secondId:t.secondId}).then((function(t){console.log("res",t),0==t.code?n.handleInfoList(t.data):e.$tools.msg(t.message)}))},handleInfoList:function(t){this.memInfo=t;for(var e=this.weightInfo.infoList(t.firstresult),n=this.memInfo.secondresult,o=0;o<e.length;o++){e[o].svalue=n[e[o].key];var i=e[o].svalue-e[o].fvalue;e[o].vs=i<0?"-1":i>0?"1":"0",e[o].num=Math.abs(i).toFixed(2),n[e[o].level]&&(e[o].sevaluation=n[e[o].level]),console.log("listStr[i].title",e[o].title)}this.listStr=e,console.log("listStr[i]",this.memInfo,e)}},data:function(){return{infoID:{},memInfo:{},listStr:[]}}};e.default=a}).call(this,n("543d")["default"])},6910:function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("6808");o(n("66fd"));var i=o(n("2802"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},a75e:function(t,e,n){"use strict";var o=n("cb48"),i=n.n(o);i.a},cb48:function(t,e,n){},e271:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=(this._self._c,Math.abs(this.memInfo.weightdiff)),n=Number(this.memInfo.weightdiff),o=Math.abs(this.memInfo.fat_wdiff),i=Number(this.memInfo.fat_wdiff);this.$mp.data=Object.assign({},{$root:{g0:e,m0:n,g1:o,m1:i}})},i=[]}},[["6910","common/runtime","common/vendor"]]]); |