pages-search-search.c09fa2cd.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-search-search"],{"22a0":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={uSearch:n("c23b").default,searchList:n("e93d").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"goods-search flex-col"},[n("v-uni-view",{staticClass:"header-wrap"},[n("v-uni-view",{staticClass:"search"},[n("u-search",{attrs:{focus:t.showHistory,"bg-color":"#F4F4F4",height:60,"action-style":t.actionStyle},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.showHistory=!0},search:function(e){arguments[0]=e=t.$handleEvent(e),t.onSearch.apply(void 0,arguments)},custom:function(e){arguments[0]=e=t.$handleEvent(e),t.onSearch.apply(void 0,arguments)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.showHistory,expression:"showHistory"}],staticClass:"search-content bg-white"},[n("v-uni-scroll-view",{staticStyle:{height:"100%"},attrs:{"scroll-y":!0}},[n("v-uni-view",{staticClass:"search-words"},[n("v-uni-view",{staticClass:"title flex row-between"},[n("v-uni-view",[t._v("历史搜索")]),n("v-uni-view",{staticClass:"xs muted m-r-20",staticStyle:{padding:"10rpx 20rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearSearchFun.apply(void 0,arguments)}}},[t._v("清空")])],1),n("v-uni-view",{staticClass:"words flex flex-wrap"},t._l(t.historyList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item m-r-20 m-b-20 line-1",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.onChangeKeyword(e)}}},[t._v(t._s(e))])})),1)],1),n("v-uni-view",{staticClass:"search-words"},[n("v-uni-view",{staticClass:"title"},[t._v("热门搜索")]),n("v-uni-view",{staticClass:"words flex flex-wrap"},t._l(t.appConfig.hot_search,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item m-r-20 m-b-20 line-1",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.onChangeKeyword(e)}}},[t._v(t._s(e))])})),1)],1)],1)],1),n("v-uni-view",{staticClass:"content"},[n("search-list",{attrs:{keyword:t.keyword}})],1)],1)},s=[]},"2c5e":function(t,e,n){"use strict";n.r(e);var i=n("22a0"),a=n("9c14");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("70dc");var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"daa615f0",null,!1,i["a"],void 0);e["default"]=r.exports},"3cdb":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */.content[data-v-4e84a20e]{padding:%?16?%}.u-search[data-v-4e84a20e]{padding:0}.talents-item[data-v-4e84a20e]{background:#fff;box-shadow:%?0?% %?8?% %?16?% %?2?% rgba(0,0,0,.03);border-radius:%?12?% %?12?% %?12?% %?12?%;padding:%?24?% %?16?%;font-size:%?28?%}',""]),t.exports=e},"474c":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af");var a=i(n("b9b8")),s=i(n("2a97")),o=n("7100"),r={mixins:[a.default,s.default],data:function(){return{statusBarHeight:0,talentsList:[],downOption:{auto:!1},upOption:{auto:!0,noMoreSize:4,empty:{icon:"/static/images/order_null.png",tip:"暂无数据~",fixed:!0,top:"100rpx"}},showLoading:!1,searchKeyword:this.keyword}},props:{keyword:{type:String}},created:function(){var t=this;uni.$on("refreshTalentsSearchList",(function(e){t.searchKeyword=e.keyword,t.refresh()})),uni.getSystemInfo({success:function(e){t.statusBarHeight=e.statusBarHeight}})},destroyed:function(){uni.$off("refreshTalentsSearchList")},computed:{positionTop:function(){return this.statusBarHeight+70}},methods:{refresh:function(){this.mescroll.resetUpScroll()},makePhoneCall:function(t){t&&uni.makePhoneCall({phoneNumber:t})},upCallback:function(t){var e=this,n=t.num,i=t.size;(0,o.getTalentsList)({page_size:i,page_no:n,keyword:this.searchKeyword}).then((function(n){var i=n.data,a=n._meta,s=i,o=s.length,r=a.pageCount>a.currentPage;1==t.num&&(e.talentsList=[]),e.talentsList=e.talentsList.concat(s),e.mescroll.endSuccess(o,r)}))}}};e.default=r},"55ee":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */uni-page-body[data-v-daa615f0]{height:100%;padding:0}.goods-search[data-v-daa615f0]{height:100%;position:relative}.goods-search .header-wrap[data-v-daa615f0]{position:relative;z-index:999}.goods-search .header-wrap .search[data-v-daa615f0]{background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.03);position:relative;z-index:1;padding:0 %?30?% %?20?%}.goods-search .search-content[data-v-daa615f0]{position:absolute;width:100%;height:100%;padding-top:%?100?%;z-index:100}.goods-search .search-content .search-words[data-v-daa615f0]{padding-left:%?24?%;padding-bottom:%?20?%}.goods-search .search-content .search-words .title[data-v-daa615f0]{padding:%?26?% 0;font-size:%?32?%;font-weight:500}.goods-search .search-content .search-words .words .item[data-v-daa615f0]{line-height:%?66?%;height:%?66?%;padding:0 %?24?%;background:#f7f8fa;border-radius:%?8?% %?8?% %?8?% %?8?%;font-size:%?24?%;color:#666}.goods-search .content[data-v-daa615f0]{flex:1;min-height:0}.goods-search .content .goods-list[data-v-daa615f0]{overflow:hidden}',""]),t.exports=e},"70dc":function(t,e,n){"use strict";var i=n("efb2"),a=n.n(i);a.a},"87b5":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("5530")),s=n("7100"),o=n("26cb"),r=n("a5d1"),c={data:function(){return{keyword:"",page:1,showHistory:!1,historyList:[]}},watch:{keyword:function(t,e){t||this.id||(this.showHistory=!0)},showHistory:function(t){t&&this.getSearchpageFun()}},onLoad:function(t){this.onSearch=(0,r.trottle)(this.onSearch,500,this),this.init(t)},computed:(0,a.default)((0,a.default)({},(0,o.mapGetters)(["sysInfo","appConfig"])),{},{actionStyle:function(){return{background:"#DD4250","border-radius":"100rpx","font-size":"24rpx",width:"100rpx",height:"60rpx","line-height":"60rpx",color:"#ffffff",flex:"none"}}}),methods:{downCallback:function(){this.onRefresh()},onChange:function(t){this.keyword=t.value},clearSearchFun:function(){var t=this;(0,s.clearSearch)().then((function(e){1==e.code&&t.getSearchpageFun()}))},init:function(t){var e=this,n=this.$Route.query,i=n.id,a=n.name,s=n.type;this.type=s,i?(uni.setNavigationBarTitle({title:a}),this.id=i,this.$nextTick((function(){e.onRefresh()}))):(uni.setNavigationBarTitle({title:"人才搜索"}),this.showHistory=!0)},getSearchpageFun:function(){var t=this;(0,s.getHistorySearch)().then((function(e){1==e.code&&(t.historyList=e.data)}))},onClear:function(){this.id&&this.onRefresh()},onSearch:function(){var t=this;this.showHistory=!1,this.$nextTick((function(){t.onRefresh()}))},onRefresh:function(){uni.$emit("refreshTalentsSearchList",{keyword:this.keyword})},onChangeKeyword:function(t){this.keyword=t,this.showHistory=!1,this.onRefresh()}}};e.default=c},9193: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={mescrollUni:n("72bb").default,uTag:n("4244").default,uIcon:n("c52d").default,loadingView:n("6ae6").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mescroll-uni",{ref:"mescrollRef",staticStyle:{left:"100px"},attrs:{top:t.positionTop,left:"",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:"content"},t._l(t.talentsList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"talents-item m-t-16"},[n("router-link",{attrs:{to:{path:"/pages/talents/detail",query:{id:e.id}}}},[n("v-uni-view",{staticClass:"flex row-between"},[n("v-uni-view",{staticClass:"flex flex-1"},[n("v-uni-text",{staticStyle:{width:"12rpx",height:"12rpx",background:"#DD4250","border-radius":"50%","margin-right":"20rpx"}}),n("v-uni-view",{staticClass:"bold"},[t._v(t._s(e.title))]),n("v-uni-view",{},[n("u-tag",{attrs:{text:e.module,type:"error",size:"mini",shape:"circleRight"}})],1)],1),e.position?n("v-uni-view",{staticClass:"flex-none p-l-10 p-r-20 primary"},[t._v(t._s(e.position))]):t._e()],1),n("v-uni-view",{staticStyle:{"font-size":"24rpx"}},[n("v-uni-view",{staticClass:"flex row-between m-t-16"},[e.chain?n("v-uni-view",{staticClass:"line-2 flex-1"},[t._v("产业链:"+t._s(e.chain))]):t._e(),n("v-uni-view",{staticClass:"flex",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.makePhoneCall(e.tel)}}},[n("u-icon",{attrs:{name:"phone-fill",color:"#DD4250",size:"28"}}),n("v-uni-view",{staticClass:"m-l-20"},[t._v(t._s(e.tel))])],1)],1),e.company?n("v-uni-view",{staticClass:"m-t-16"},[t._v("单位:"+t._s(e.company))]):t._e(),"base"==e.module?n("v-uni-view",{staticClass:"m-t-16"},[t._v("负责人:"+t._s(e.principal))]):t._e(),"pedigreeCompany"==e.module?n("v-uni-view",{staticClass:"m-t-16"},[t._v("法人:"+t._s(e.principal))]):t._e(),"firm"==e.module?n("v-uni-view",{staticClass:"m-t-16"},[t._v("秘书长:"+t._s(e.principal))]):t._e(),n("v-uni-view",{staticClass:"m-t-16 line-2"},["talent"==e.module?n("v-uni-text",[t._v("研究领域:")]):"base"==e.module?n("v-uni-text",[t._v("基地特色:")]):"university"==e.module||"association"==e.module?n("v-uni-text",[t._v("研究方向:")]):"fund"==e.module?n("v-uni-text",[t._v("投资产业领域:")]):"pedigreeCompany"==e.module?n("v-uni-text",[t._v("主要产品:")]):"pedigree"==e.module?n("v-uni-text",[t._v("个人简介:")]):n("v-uni-text",[t._v("简介:")]),n("v-uni-text",[t._v(t._s(e.description))])],1),n("v-uni-view",{staticClass:"flex m-t-16 p-t-16",staticStyle:{"border-top":"2rpx solid #DEDEDE"}},[n("u-icon",{attrs:{name:"map-fill",color:"#DD4250",size:"28"}}),n("v-uni-view",{staticClass:"m-l-10"},[t._v(t._s(e.city)+t._s(e.address))])],1)],1)],1)],1)})),1),t.showLoading?n("loading-view",{attrs:{"background-color":"transparent",size:50}}):t._e()],1)},s=[]},"9c14":function(t,e,n){"use strict";n.r(e);var i=n("87b5"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},aac4:function(t,e,n){"use strict";var i=n("d7a2"),a=n.n(i);a.a},d7a2:function(t,e,n){var i=n("3cdb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("07b20e9c",i,!0,{sourceMap:!1,shadowMode:!1})},e363:function(t,e,n){"use strict";n.r(e);var i=n("474c"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},e93d:function(t,e,n){"use strict";n.r(e);var i=n("9193"),a=n("e363");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("aac4");var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"4e84a20e",null,!1,i["a"],void 0);e["default"]=r.exports},efb2:function(t,e,n){var i=n("55ee");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("6d6a8bca",i,!0,{sourceMap:!1,shadowMode:!1})}}]);