(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/survey/survey"],{"2e64":function(e,t,n){"use strict";var i=n("b851"),a=n.n(i);a.a},"391f":function(e,t,n){"use strict";n.r(t);var i=n("d59f"),a=n("ea02");for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("2e64");var o,s=n("f0c5"),u=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"e08ff49c",null,!1,i["a"],o);t["default"]=u.exports},"7c6a":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("26cb");function a(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 r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(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:r(r({},(0,i.mapState)(["user"])),{},{info:function(){return this.user}}),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 a=0;a<i.length;a++)i[a].id==e.valId&&i[a].list.push({id:e.id,score:e.value});else{var r={id:"",list:[]};r.id=e.valId,r.list.push({id:e.id,score:e.value}),i.push(r),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"])},b17e:function(e,t,n){"use strict";(function(e){n("0d2f");i(n("66fd"));var t=i(n("391f"));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"])},b851:function(e,t,n){},d59f:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var a=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),a=e.__map(t.qalist,(function(t,n){var i=e.__get_orig(t),a=e.__map(t.data,(function(t,n){var i=e.__get_orig(t),a=e.dasC.indexOf(t.val);return{$orig:i,g0:a}}));return{$orig:i,l0:a}}));return{$orig:i,l1:a}})):null);e._isMounted||(e.e0=function(t,n){var i=arguments[arguments.length-1].currentTarget.dataset,a=i.eventParams||i["event-params"];n=a.it;return e.Changeradio(n)}),e.$mp.data=Object.assign({},{$root:{l2:n}})},r=[]},ea02:function(e,t,n){"use strict";n.r(t);var i=n("7c6a"),a=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a}},[["b17e","common/runtime","common/vendor"]]]);