(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pageA-pages-common-corporate_welfare-corporate_welfare"],{"0b28":function(t,e,n){"use strict";n.r(e);var i=n("54e8"),a=n("9a84");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("5619");var r,u=n("f0c5"),o=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"7e6ff7a2",null,!1,i["a"],r);e["default"]=o.exports},"0e86":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.footer-fixed-placeholder[data-v-7e6ff7a2]{height:60px}.footer-fixed[data-v-7e6ff7a2]{position:fixed;left:0;right:0;bottom:0;z-index:100;background-color:#fff}',""]),t.exports=e},"275b":function(t,e,n){var i=n("0e86");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("500b313d",i,!0,{sourceMap:!1,shadowMode:!1})},"54e8":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view")},s=[]},5619:function(t,e,n){"use strict";var i=n("275b"),a=n.n(i);a.a},"9a84":function(t,e,n){"use strict";n.r(e);var i=n("e989"),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},a532:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={footerButton:n("0b28").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"bottom-safe-area"},[n("v-uni-view",{staticClass:"p-5"},[n("v-uni-view",{staticClass:"text-auxiliary pb-3"},[n("v-uni-view",{staticClass:"uni-h3"},[t._v("福利")]),n("v-uni-view",{staticClass:"small"},[t._v("企业福利")])],1),t._l(t.jobs_welfare,(function(e,i){return n("v-uni-view",{key:i,staticClass:"uni-flex py-2 text-auxiliary border-bottom flex-center",attrs:{"hover-class":"bg-hover"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toggleWelfare(e)}}},[n("v-uni-view",{staticClass:"uni-flex-item uni-h5",class:{"text-grey":t.disabled&&!t.selectedId.includes(e)}},[t._v(t._s(e.title))]),t.selectedId.includes(e)?n("v-uni-text",{staticClass:"text-primary uni-icon uni-icon-checkbox-filled"}):t._e()],1)}))],2),n("footer-button",{attrs:{disabled:!t.submitStatus},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selected()}}})],1)},s=[]},d443:function(t,e,n){"use strict";n.r(e);var i=n("ec3f"),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},e989:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"FooterButton",props:{disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{type:String,default:"primary"},text:{type:String,default:"保存"}},methods:{onClick:function(){this.$emit("click")}}};e.default=i},ec3f:function(t,e,n){"use strict";var i=n("4ea4");n("c975"),n("a434"),n("ac1f"),n("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("d55e")),s={data:function(){return{jobs_welfare:[],selectedId:[],disabled:!1,submitStatus:!1,startWatch:!1}},onLoad:function(t){var e=this;this.eventName=t.eventName,this.initHtml((function(){if(t.id)for(var n=t.id.split(","),i=0;i<n.length;i++)e.selectedId.push(e.jobs_welfare[n[i]])})),this.startWatch=!0},watch:{selectedId:function(t,e){t.length>=6?this.disabled=!0:this.disabled=!1,this.startWatch&&(this.submitStatus=!0,this.setHeaderButtonActive(0,{color:"#FF6B00"}))}},onNavigationBarButtonTap:function(t){switch(t.name){case"save":this.selected();break}},methods:{initHtml:function(t){var e=this;a.default.getStatusAliasCate("company/corporate_welfare",(function(n){e.jobs_welfare=n,t()}))},toggleWelfare:function(t){var e=this.selectedId.indexOf(t);e>-1?this.selectedId.splice(e,1):this.disabled||this.selectedId.push(t)},setHeaderButtonActive:function(t,e){this.XYBase.setTitleNViewButtonStyle(t+1,e)},selected:function(){for(var t={id:[],data:this.selectedId},e=0;e<this.selectedId.length;e++)t.id.push(this.selectedId[e].value);uni.$emit(this.eventName,t),uni.navigateBack()}}};e.default=s},f2cc:function(t,e,n){"use strict";n.r(e);var i=n("a532"),a=n("d443");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r,u=n("f0c5"),o=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"7e018545",null,!1,i["a"],r);e["default"]=o.exports}}]);