require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/goods_search/index"],{"0138":function(e,t,n){},"2e9d":function(e,t,n){"use strict";var o=n("0138"),a=n.n(o);a.a},"65df":function(e,t,n){"use strict";n.r(t);var o=n("7b6e"),a=n("8be7");for(var c in a)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(c);n("2e9d");var i=n("828b"),s=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"f6ec3612",null,!1,o["a"],void 0);t["default"]=s.exports},"7b6e":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var o=function(){var e=this.$createElement;this._self._c},a=[]},"7d81":function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("1d3c");o(n("3240"));var a=o(n("65df"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"837e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("de22"),a=getApp(),c={components:{recommend:function(){Promise.all([n.e("common/vendor"),n.e("components/base/recommend")]).then(function(){return resolve(n("0d8d"))}.bind(null,n)).catch(n.oe)},searchBox:function(){n.e("components/searchBox").then(function(){return resolve(n("9706"))}.bind(null,n)).catch(n.oe)}},data:function(){return{hostProduct:[],searchValue:"",focus:!0,bastList:[],hotSearchList:[],first:0,limit:8,page:1,loading:!1,loadend:!1,loadTitle:"加载更多",hotPage:1,isScroll:!0,theme:a.globalData.theme,searchTop:""}},onPageScroll:function(t){e.$emit("scroll")},onShow:function(){this.getRoutineHotSearch()},onLoad:function(t){this.searchTop=e.getMenuButtonBoundingClientRect().top,t.searchVal&&(this.searchValue=t.searchVal)},methods:{getRoutineHotSearch:function(){var e=this;(0,o.getSearchKeyword)().then((function(t){e.$set(e,"hotSearchList",t.data)}))},setHotSearchValue:function(t){this.$set(this,"searchValue",t),this.page=1,this.loadend=!1,this.$set(this,"bastList",[]),e.navigateTo({url:"/pages/goods/goods_list/index?searchValue=".concat(this.searchValue)})},setValue:function(e){this.$set(this,"searchValue",e.detail.value)},searchBut:function(t){var n="";if(this.focus=!1,t.detail.value&&(n=t.detail.value),!(this.searchValue.length>0||n))return this.$util.Tips({title:"请输入要搜索的商品",icon:"none",duration:1e3,mask:!0});e.navigateTo({url:"/pages/goods/goods_list/index?searchValue=".concat(n||this.searchValue)})}},onReachBottom:function(){this.$refs.recommend.get_host_product()}};t.default=c}).call(this,n("df3c")["default"])},"8be7":function(e,t,n){"use strict";n.r(t);var o=n("837e"),a=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=a.a}},[["7d81","common/runtime","common/vendor"]]]);