1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle_b-pages-community_search-community_search"],{"0e31":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uSearch:i("7882").default,mescrollUni:i("de4f").default,uWaterfall:i("28fc").default,communityList:i("79f9").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"goods-search flex-col"},[i("v-uni-view",{staticClass:"header-wrap"},[i("v-uni-view",{staticClass:"search"},[i("u-search",{attrs:{focus:t.showHistory,"bg-color":"#F4F4F4"},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)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.showHistory,expression:"showHistory"}],staticClass:"search-content bg-white"},[i("v-uni-scroll-view",{staticStyle:{height:"100%"},attrs:{"scroll-y":!0}},[t.hotList.length?i("v-uni-view",{staticClass:"search-words"},[i("v-uni-view",{staticClass:"title"},[t._v("热门搜索")]),i("v-uni-view",{staticClass:"words flex flex-wrap"},[t._l(t.hotList,(function(e,n){return[i("v-uni-navigator",{key:n+"_0",attrs:{"hover-class":"none",url:"/bundle_b/pages/community_topic/community_topic?id="+e.id+"&name="+e.name}},[i("v-uni-view",{staticClass:"item br60 m-r-20 m-b-20 lighter sm line-1"},[t._v(t._s(e.name))])],1)]}))],2)],1):t._e(),t.historyList.length?i("v-uni-view",{staticClass:"search-words"},[i("v-uni-view",{staticClass:"title flex row-between"},[i("v-uni-view",[t._v("历史搜索")]),i("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),i("v-uni-view",{staticClass:"words flex flex-wrap"},t._l(t.historyList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item br60 m-r-20 m-b-20 lighter sm line-1",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onChangeKeyword(e)}}},[t._v(t._s(e))])})),1)],1):t._e()],1)],1),i("v-uni-view",{staticClass:"content"},[i("mescroll-uni",{ref:"mescrollRef",attrs:{up:t.upOption,down:{auto:!1},fixed:!1},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)}}},[t.goodsList.length?i("v-uni-view",{staticClass:"goods-list"},[i("u-waterfall",{ref:"uWaterfall",attrs:{"add-time":20},scopedSlots:t._u([{key:"left",fn:function(t){var e=t.leftList;return[i("v-uni-view",{staticStyle:{padding:"0 9rpx 0 30rpx"}},[i("community-list",{attrs:{width:"336rpx",type:"waterfall",list:e}})],1)]}},{key:"right",fn:function(t){var e=t.rightList;return[i("v-uni-view",{staticStyle:{padding:"0 30rpx 0 9rpx"}},[i("community-list",{attrs:{width:"336rpx",type:"waterfall",list:e}})],1)]}}],null,!1,3463676658),model:{value:t.goodsList,callback:function(e){t.goodsList=e},expression:"goodsList"}})],1):t._e()],1)],1)],1)},a=[]},"1f2b4":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-search",style:{margin:t.margin,backgroundColor:t.wrapBgColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"u-content",style:{backgroundColor:t.bgColor,borderRadius:"round"==t.shape?"100rpx":"10rpx",border:t.borderStyle,height:t.height+"rpx"}},[i("v-uni-view",{staticClass:"u-icon-wrap"},[i("u-icon",{staticClass:"u-clear-icon",attrs:{size:30,name:t.searchIcon,color:t.searchIconColor?t.searchIconColor:t.color}})],1),i("v-uni-input",{staticClass:"u-input",style:[{
|