(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/survey/survey"],{"0e1b":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.isShowA?e.__map(e.infoListA.slice((e.currpage-1)*e.eachpage,e.currpage*e.eachpage),(function(t,n){var i=e.__get_orig(t),r=e.__map(t.qalist,(function(t,n){var i=e.__get_orig(t),r=e.__map(t.data,(function(t,n){var i=e.__get_orig(t),r=e.dasC.indexOf(t.val);return{$orig:i,g0:r}}));return{$orig:i,l0:r}}));return{$orig:i,l1:r}})):null);e._isMounted||(e.e0=function(t,n){var i=arguments[arguments.length-1].currentTarget.dataset,r=i.eventParams||i["event-params"];n=r.it;return e.Changeradio(n)}),e.$mp.data=Object.assign({},{$root:{l2:n}})},a=[]},"2ffc":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("26cb");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={computed:a(a({},(0,i.mapState)(["user","appTheme"])),{},{info:function(){return this.user}}),onLoad:function(){e.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme})},onShow:function(){var e=this;e.handleTypeInfo()},methods:{handleTypeInfo:function(){var e=this;e.$model.getbodyinfo({familyid:e.user.familyid}).then((function(t){0==t.code?(e.listA=t.data,e.isShowA=!1,console.log("计算成功,去查看结果吧！")):e.handleListx(1)}))},handleListx:function(e){var t=this;t.isShowA=!0,t.currpage=1,t.dasA=[],t.dasC=[],t.listA="",t.tmidlistA=[],t.infoListA=[],t.$model.getbodylist({isrestart:e,sex:t.user.sex,familyid:t.user.familyid}).then((function(e){console.log(123,e),0==e.code&&(t.pagesum=Math.ceil(e.data.length/t.eachpage),t.infoListA=e.data)}))},Changeradio:function(e){var t=this;if(-1==t.tmidlistA.indexOf(e.id))console.log(0),t.tmidlistA.push(e.id),t.dasC.push(e.val),t.dasA.push(e);else for(var n=0;n<t.tmidlistA.length;n++)e.id==t.tmidlistA[n]&&(console.log(1),-1==t.dasC.indexOf(e.val)&&(t.tmidlistA.push(e.id),t.dasC.push(e.val),t.dasA.push(e),console.log(2)),t.tmidlistA.splice(n,1),t.dasC.splice(n,1),t.dasA.splice(n,1))},handlesub:function(){var t=this,n={},i=[];t.dasA.forEach((function(e,t){if(n[e.valId])for(var r=0;r<i.length;r++)i[r].id==e.valId&&i[r].list.push({id:e.id,score:e.value});else{var a={id:"",list:[]};a.id=e.valId,a.list.push({id:e.id,score:e.value}),i.push(a),n[e.valId]=e}})),console.log("去计算",i),t.$model.getbodyresultinfo({appid:e.getStorageSync("appid"),familyid:t.user.familyid,data:i}).then((function(e){console.log("res",e),t.tmidlistA=[],t.dasA=[],t.dasC=[],0==e.code?(t.listA=e.data,t.isShowA=!1,t.currpage=1,console.log("计算成功,去查看结果吧！")):t.$tools.msg(e.message)}))},pre:function(){this.currpage--},next:function(){var e=this;e.currpage++}},data:function(){return{isShowA:!0,dasA:[],dasC:[],listA:[],infoListA:[],tmidlistA:[],pagesum:null,currpage:1,eachpage:2}}};t.default=s}).call(this,n("543d")["default"])},5348:function(e,t,n){"use strict";n.r(t);var i=n("2ffc"),r=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=r.a},8994:function(e,t,n){"use strict";(function(e){n("e568");i(n("66fd"));var t=i(n("e5fd"));function i(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},b262:function(e,t,n){"use strict";var i=n("f657"),r=n.n(i);r.a},e5fd:function(e,t,n){"use strict";n.r(t);var i=n("0e1b"),r=n("5348");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("b262");var o,s=n("f0c5"),u=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"736bae89",null,!1,i["a"],o);t["default"]=u.exports},f657:function(e,t,n){}},[["8994","common/runtime","common/vendor"]]]);