(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pageA-pages-common-setting-personalized_push"],{7700:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){return n}));var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"bottom-safe-area"},[i("v-uni-view",{staticClass:"bg"},[i("v-uni-view",{staticClass:"bg-white mb-1 px-3",attrs:{"hover-class":"bg-hover"}},[i("v-uni-view",{staticClass:"uni-flex flex-center py-1"},[i("v-uni-view",{staticClass:"uni-flex-item py-1 text-auxiliary uni-h5"},[e._v("投递结果")]),i("v-uni-view",[i("v-uni-switch",{staticStyle:{transform:"scale(0.7)"},attrs:{checked:!!e.notice.delivery,color:"#FF6B00"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeNoticeDelivery.apply(void 0,arguments)}}})],1)],1)],1),i("v-uni-view",{staticClass:"bg-white mb-1 px-3",attrs:{"hover-class":"bg-hover"}},[i("v-uni-view",{staticClass:"uni-flex flex-center py-1"},[i("v-uni-view",{staticClass:"uni-flex-item py-1 text-auxiliary uni-h5"},[e._v("为你动态推荐可能喜欢的职位")]),i("v-uni-view",[i("v-uni-switch",{staticStyle:{transform:"scale(0.7)"},attrs:{checked:!!e.notice.recommend_like_jobs,color:"#FF6B00"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeNoticeRecommend_like_jobs.apply(void 0,arguments)}}})],1)],1)],1),i("v-uni-view",{staticClass:"bg-white px-3",attrs:{"hover-class":"bg-hover"}},[i("v-uni-view",{staticClass:"uni-flex flex-center py-1"},[i("v-uni-view",{staticClass:"uni-flex-item py-1 text-auxiliary uni-h5"},[e._v("发现页新文章推送")]),i("v-uni-view",[i("v-uni-switch",{staticStyle:{transform:"scale(0.7)"},attrs:{checked:!!e.notice.new_article,color:"#FF6B00"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeNoticeNew_article.apply(void 0,arguments)}}})],1)],1)],1)],1)],1)},a=[]},"7f3a":function(e,t,i){"use strict";i("baa5"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{userInfo:null,saveTimeEr:null,notice:{new_notice:1,disturb_mode:1,start_time:"23:00",end_time:"07:00",delivery:1,recommend_like_jobs:1,new_article:1}}},onLoad:function(){if(this.XYBase.IsLogin(),this.userInfo=getApp().globalData.userInfo,uni.$on("refreshUser",this.refreshUser),this.userInfo&&this.userInfo.notice){this.notice=this.userInfo.notice;var e=this.userInfo.notice.start_time,t=this.userInfo.notice.end_time;this.notice.start_time=e.substring(0,e.lastIndexOf(":")),this.notice.end_time=t.substring(0,t.lastIndexOf(":"))}},onUnload:function(){this.saveTimeEr&&this.submit(),uni.$off("refreshUser",this.refreshUser)},methods:{refreshUser:function(){if(this.userInfo=getApp().globalData.userInfo,this.userInfo&&this.userInfo.notice){this.notice=this.userInfo.notice;var e=this.userInfo.notice.start_time,t=this.userInfo.notice.end_time;this.notice.start_time=e.substring(0,e.lastIndexOf(":")),this.notice.end_time=t.substring(0,t.lastIndexOf(":"))}},changeNoticeDelivery:function(e){var t=this;this.notice.delivery=e.detail.value?1:0,this.saveTimeEr&&clearTimeout(this.saveTimeEr),this.saveTimeEr=setTimeout((function(){t.submit()}),500)},changeNoticeRecommend_like_jobs:function(e){var t=this;this.notice.recommend_like_jobs=e.detail.value?1:0,this.saveTimeEr&&clearTimeout(this.saveTimeEr),this.saveTimeEr=setTimeout((function(){t.submit()}),500)},changeNoticeNew_article:function(e){var t=this;this.notice.new_article=e.detail.value?1:0,this.saveTimeEr&&clearTimeout(this.saveTimeEr),this.saveTimeEr=setTimeout((function(){t.submit()}),500)},submit:function(){var e=this;this.saveTimeEr&&clearTimeout(this.saveTimeEr),this.XYBase.post({url:"user/editNotice",data:this.notice},(function(t){if(t&&0===t.code)return uni.$emit("updateUser");e.refreshUser()}))}}};t.default=n},baa5:function(e,t,i){var n=i("23e7"),s=i("e58c");n({target:"Array",proto:!0,forced:s!==[].lastIndexOf},{lastIndexOf:s})},c8c3:function(e,t,i){"use strict";i.r(t);var n=i("7f3a"),s=i.n(n);for(var a in n)"default"!==a&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=s.a},ef8f:function(e,t,i){"use strict";i.r(t);var n=i("7700"),s=i("c8c3");for(var a in s)"default"!==a&&function(e){i.d(t,e,(function(){return s[e]}))}(a);var r,o=i("f0c5"),c=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"a0467256",null,!1,n["a"],r);t["default"]=c.exports}}]);