1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-policy-search"],{"0364":function(t,e,n){"use strict";n.r(e);var a=n("251e"),i=n("c91e");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("919f");var r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"1a1fad94",null,!1,a["a"],void 0);e["default"]=c.exports},"1f78":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */uni-page-body[data-v-2ba78176]{padding:0}.top-image[data-v-2ba78176]{width:100%}.index-header[data-v-2ba78176]{background-color:#e8b175;color:#fff}.index-header .header-text[data-v-2ba78176]{min-height:%?100?%;text-align:justify}.index-header .header-border[data-v-2ba78176]{border-top:1px dashed #fff}.item[data-v-2ba78176]{background:#fff;box-shadow:0 %?8?% %?16?% %?2?% rgba(0,0,0,.03);border-radius:%?12?%;opacity:1;padding:%?24?% %?34?%;margin-bottom:%?16?%}.tag-item[data-v-2ba78176]{margin:%?8?%;padding:%?8?% %?28?%;background:#f7f8fa;border-radius:%?8?% %?8?% %?8?% %?8?%;opacity:1}.tat-active[data-v-2ba78176]{color:#fff;background:#feeff5;color:#dd4250;border:%?2?% solid #dd4250}.class-list[data-v-2ba78176]{background-color:#fff;color:#dd4250}.class-list .class-list-item[data-v-2ba78176]{padding:%?30?%}.class-list .class-list-item .item-img[data-v-2ba78176]{width:%?50?%;height:%?50?%;border-radius:%?8?%}.class-list .class-list-item .item-img uni-image[data-v-2ba78176]{width:100%}.count[data-v-2ba78176]{border-bottom:1px solid #f1f2f6}.confrim-btn[data-v-2ba78176]{position:fixed;bottom:%?100?%}.confrim-btn .btn[data-v-2ba78176]{padding:0 %?80?%;height:%?84?%;line-height:%?84?%;background-color:#dd4250;box-shadow:%?0?% %?6?% %?12?% %?2?% rgba(243,113,113,.39);border-radius:%?18?% %?18?% %?18?% %?18?%}.confrim-btn .reset[data-v-2ba78176]{background-color:#f2f2f2;color:#858585}',""]),t.exports=e},2105:function(t,e,n){var a=n("1f78");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("ee87d978",a,!0,{sourceMap:!1,shadowMode:!1})},"251e":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uIcon:n("13a3").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-search",style:{margin:t.margin},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"u-content",style:{backgroundColor:t.bgColor,borderRadius:"round"==t.shape?"100rpx":"10rpx",border:t.borderStyle,height:t.height+"rpx"}},[n("v-uni-view",{staticClass:"u-icon-wrap"},[n("u-icon",{staticClass:"u-clear-icon",attrs:{size:30,name:t.searchIcon,color:t.searchIconColor?t.searchIconColor:t.color}})],1),n("v-uni-input",{staticClass:"u-input",style:[{textAlign:t.inputAlign,color:t.color,backgroundColor:t.bgColor},t.inputStyle],attrs:{"confirm-type":"search",value:t.value,disabled:t.disabled,focus:t.focus,maxlength:t.maxlength,"placeholder-class":"u-placeholder-class",placeholder:t.placeholder,"placeholder-style":"color: "+t.placeholderColor,type:"text"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.blur.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.search.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputChange.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.getFocus.apply(void 0,arguments)}}}),t.keyword&&t.clearabled&&t.focused?n("v-uni-view",{staticClass:"u-close-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clear.apply(void 0,arguments)}}},[n("u-icon",{staticClass:"u-clear-icon",attrs:{name:"close-circle-fill",size:"34",color:"#c0c4cc"}})],1):t._e()],1),n("v-uni-view",{staticClass:"u-action",class:[t.showActionBtn||t.show?"u-action-active":""],style:[t.actionStyle],on:{click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.custom.apply(void 0,arguments)}}},[t._v(t._s(t.actionText))])],1)},o=[]},"594e":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormatChat=e.timeFormat=void 0,n("a9e3"),n("d401"),n("d3b7"),n("25f0"),n("ac1f"),n("4d63"),n("c607"),n("2c3e"),n("5319"),n("4d90");var a=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date)),10==t.toString().length&&(t*=1e3);var n,a=new Date(t),i={"y+":a.getFullYear().toString(),"m+":(a.getMonth()+1).toString(),"d+":a.getDate().toString(),"h+":a.getHours().toString(),"M+":a.getMinutes().toString(),"s+":a.getSeconds().toString()};for(var o in i)n=new RegExp("("+o+")").exec(e),n&&(e=e.replace(n[1],1==n[1].length?i[o]:i[o].padStart(n[1].length,"0")));return e};e.timeFormat=i;e.timeFormatChat=function(t){10==t.toString().length&&(t*=1e3);var e=new Date(t),n=i(t,"yyyy年mm月dd日 hh:MM");return c(e)?n=i(t,"hh:MM"):s(e)?n=a[e.getDay()]+i(t," hh:MM"):o(e)&&(n=i(t,"mm月dd日 hh:MM")),n};var o=function(t){var e=new Date;return t.getYear()==e.getYear()},r=function(t){var e=new Date;return o(t)&&t.getMonth()==e.getMonth()},c=function(t){var e=new Date;return r(t)&&t.getDate()==e.getDate()},s=function(t){var e=new Date;return!!r(t)&&(e.getDay()-t.getDay()>0&&e.getDate()-t.getDate()<7||void 0)}},"6db7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uSearch:n("0364").default,uIcon:n("13a3").default,uPopup:n("c992").default,mescrollUni:n("d95d").default,loadingView:n("4278").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",[n("v-uni-image",{staticClass:"top-image",attrs:{src:t.appConfig.mobile_top_bg,id:"top-image",mode:"widthFix"},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.topImageLoad.apply(void 0,arguments)}}})],1),n("router-link",{staticStyle:{position:"absolute",width:"100%",padding:"0 98rpx",height:"70rpx"},style:{top:t.searchTop+"rpx"},attrs:{to:"/pages/search/search"}},[n("u-search",{attrs:{"wrap-bg-color":"transparent","bg-color":"#ffffff",disabled:!1,height:62,shape:"square","show-action":!1}})],1),n("v-uni-view",{staticClass:"flex row-right bg-white p-l-30 p-r-30 p-b-20 p-t-20",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.show=!0}}},[n("u-icon",{attrs:{name:"list-dot",size:"28"}}),n("v-uni-view",{staticClass:"m-l-10"},[t._v("筛选")])],1),n("u-popup",{attrs:{mode:"right",width:"80%",closeable:!0},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[n("v-uni-view",{staticClass:"p-20"},[t._l(t.categoryList,(function(e,a){return n("v-uni-view",[n("v-uni-view",[t._v(t._s(e.description))]),n("v-uni-view",{staticClass:"flex flex-wrap"},[n("v-uni-view",{staticClass:"tag-item",class:{"tat-active":null==e.activeIndex},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTag(null,a)}}},[t._v("全部")]),t._l(e.data,(function(i,o){return n("v-uni-view",{key:o,staticClass:"tag-item",class:{"tat-active":e.activeIndex==o},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTag(o,a)}}},[t._v(t._s(i.name))])}))],2)],1)})),n("v-uni-view",{staticClass:"confrim-btn flex w-full row-center"},[n("v-uni-button",{staticClass:"btn reset lg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.resetForm.apply(void 0,arguments)}}},[t._v("重置")]),n("v-uni-button",{staticClass:"white btn lg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.refresh.apply(void 0,arguments)}}},[t._v("确定")])],1)],2)],1),n("v-uni-view",{attrs:{id:"main"}},[n("mescroll-uni",{ref:"mescrollRef",staticStyle:{left:"100px"},attrs:{top:t.top,down:t.downOption,up:t.upOption},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"p-24"},t._l(t.policyList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goDetail(e)}}},[n("v-uni-view",{staticClass:"font-size-28"},[t._v(t._s(e.title))]),n("v-uni-view",{staticClass:"u-border-bottom m-t-20"}),n("v-uni-view",{staticClass:"flex row-between p-t-20"},[n("v-uni-view",{staticClass:"flex primary"},[n("u-icon",{attrs:{name:"star-fill",size:"28"}}),n("v-uni-view",{staticClass:"m-l-10"},[t._v(t._s(e.author))])],1),n("v-uni-view",[t._v(t._s(t.timeFormat(e.created_at)))])],1)],1)})),1),t.showLoading?n("loading-view",{attrs:{"background-color":"transparent",size:50}}):t._e()],1)],1)],1)},o=[]},"7f0a":function(t,e,n){"use strict";n.r(e);var a=n("6db7"),i=n("ea71");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("c9c5");var r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"2ba78176",null,!1,a["a"],void 0);e["default"]=c.exports},"919f":function(t,e,n){"use strict";var a=n("93e5"),i=n.n(a);i.a},"93e5":function(t,e,n){var a=n("9d95");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("c6c55110",a,!0,{sourceMap:!1,shadowMode:!1})},"9d95":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-search[data-v-1a1fad94]{display:flex;flex-direction:row;align-items:center;flex:1}.u-content[data-v-1a1fad94]{display:flex;flex-direction:row;align-items:center;padding:0 %?18?%;flex:1}.u-clear-icon[data-v-1a1fad94]{display:flex;flex-direction:row;align-items:center}.u-input[data-v-1a1fad94]{flex:1;font-size:%?28?%;line-height:1;margin:0 %?10?%;color:#909399}.u-close-wrap[data-v-1a1fad94]{width:%?40?%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:50%}.u-placeholder-class[data-v-1a1fad94]{color:#909399}.u-action[data-v-1a1fad94]{font-size:%?28?%;color:#303133;width:0;overflow:hidden;transition:all .3s;white-space:nowrap;text-align:center}.u-action-active[data-v-1a1fad94]{width:%?80?%;margin-left:%?10?%}',""]),t.exports=e},c91e:function(t,e,n){"use strict";n.r(e);var a=n("f6c7"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},c9c5:function(t,e,n){"use strict";var a=n("2105"),i=n.n(a);i.a},ea71:function(t,e,n){"use strict";n.r(e);var a=n("ed0f"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},ed0f:function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5530")),o=a(n("c7eb")),r=a(n("1da1"));n("ac1f"),n("e9c4"),n("d81d"),n("d3b7"),n("159b"),n("99af");var c=a(n("1993")),s=a(n("8275")),l=n("26cb"),u=n("5bcc"),d=n("d208"),f=n("594e"),p=(getApp(),{mixins:[c.default,s.default],data:function(){return{statusBarHeight:0,keyword:"",top:0,searchTop:0,show:!1,activeIndex:0,categoryList:[],policyList:[],downOption:{auto:!1},upOption:{auto:!0,noMoreSize:4,empty:{icon:"/static/images/order_null.png",tip:"暂无数据~",fixed:!0,top:"100rpx"}},showLoading:!1}},created:function(){var t=this;uni.getSystemInfo({success:function(e){t.statusBarHeight=e.statusBarHeight}})},updated:function(){var t=this;this.$nextTick((function(){setTimeout((function(){uni.createSelectorQuery().in(t).select("#main").boundingClientRect((function(e){console.log("得到布局位置信息"+JSON.stringify(e)),t.top=(0,d.pxToRpx)(e.top)})).exec()}),30)}))},onLoad:function(){this.getCategoryFun()},onHide:function(){},onPullDownRefresh:function(){},methods:{refresh:function(){this.show=!1,this.mescroll.resetUpScroll()},getCategoryFun:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var n,a,i;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.policyCategory)({});case 2:n=e.sent,a=n.status,i=n.data,1==a&&(t.categoryList=i,console.log(t.categoryList));case 6:case"end":return e.stop()}}),e)})))()},changeTag:function(t,e){this.categoryList[e].activeIndex=t,this.$forceUpdate()},resetForm:function(){this.categoryList=this.categoryList.map((function(t,e){return t.activeIndex=null,t}))},topImageLoad:function(t){var e=this;setTimeout((function(){uni.createSelectorQuery().in(e).select("#top-image").boundingClientRect((function(t){console.log("得到布局位置信息"+JSON.stringify(t)),e.searchTop=(0,d.pxToRpx)(t.height)-100})).exec()}),30)},searchTalents:function(){var t=this.keyword;t?uni.navigateTo({url:"/pages/talents/talents?keyword="+this.keyword}):this.$toast({title:"请输入关键字"})},upCallback:function(t){var e=this,n=(t.num,t.size,{});this.categoryList.forEach((function(t,e){t.activeIndex&&(n[t.name]=t.data[t.activeIndex].value)})),(0,u.policyList)(n).then((function(n){var a=n.data,i=n._meta,o=a,r=o.length,c=i.pageCount>i.currentPage;1==t.num&&(e.policyList=[]),e.policyList=e.policyList.concat(o),e.mescroll.endSuccess(r,c)}))},timeFormat:function(t){return(0,f.timeFormat)(t)},goDetail:function(t){uni.navigateTo({url:"/pages/policy/detail?id="+t.id+"&title="+t.title})}},computed:(0,i.default)((0,i.default)({},(0,l.mapGetters)(["appConfig"])),{},{positionTop:function(){return this.top}})});e.default=p},f6c7:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var a={name:"u-search",props:{shape:{type:String,default:"round"},bgColor:{type:String,default:"#f2f2f2"},placeholder:{type:String,default:"请输入关键字"},clearabled:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},showAction:{type:Boolean,default:!0},actionStyle:{type:Object,default:function(){return{}}},actionText:{type:String,default:"搜索"},inputAlign:{type:String,default:"left"},disabled:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},borderColor:{type:String,default:"none"},value:{type:String,default:""},height:{type:[Number,String],default:64},inputStyle:{type:Object,default:function(){return{}}},maxlength:{type:[Number,String],default:"-1"},searchIconColor:{type:String,default:""},color:{type:String,default:"#606266"},placeholderColor:{type:String,default:"#909399"},margin:{type:String,default:"0"},searchIcon:{type:String,default:"search"}},data:function(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword:function(t){this.$emit("input",t),this.$emit("change",t)},value:{immediate:!0,handler:function(t){this.keyword=t}}},computed:{showActionBtn:function(){return!(this.animation||!this.showAction)},borderStyle:function(){return this.borderColor?"1px solid ".concat(this.borderColor):"none"}},methods:{inputChange:function(t){this.keyword=t.detail.value},clear:function(){var t=this;this.keyword="",this.$nextTick((function(){t.$emit("clear")}))},search:function(t){this.$emit("search",t.detail.value);try{uni.hideKeyboard()}catch(t){}},custom:function(){this.$emit("custom",this.keyword);try{uni.hideKeyboard()}catch(t){}},getFocus:function(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur:function(){var t=this;setTimeout((function(){t.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler:function(){this.disabled&&this.$emit("click")}}};e.default=a}}]);
|