1 line
3.0 KiB
JavaScript
1 line
3.0 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesub/search/search"],{"280f":function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("ec76");r(n("3240"));var o=r(n("fbfc"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},3085:function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("7ca3")),c=n("8f59");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var a={components:{zySearch:function(){n.e("components/zy-search/zy-search").then(function(){return resolve(n("8683"))}.bind(null,n)).catch(n.oe)}},data:function(){return{themeClass:"circle",speechEngine:"baidu",search_his_list:[],hot_list:[],store_id:0,suggest_text:""}},computed:(0,c.mapState)(["Config","StateCode","notice","plantformInfo","shopInfo","userInfo","hasLogin"]),onLoad:function(e){t.setNavigationBarTitle({title:this.__("搜索")});var n=this;console.log("store_id===",e.store_id),this.store_id=e.store_id?e.store_id:0,n.$.request({url:this.Config.URL.search_hot_info,success:function(t,e,r,o){n.setData({hot_list:t.search_hot_words,search_his_list:t.search_history_words,suggest_text:t.suggest_search_words.default_search_words})}})},methods:i(i({},(0,c.mapMutations)(["login","logout","getPlantformInfo","forceUserInfo","getUserInfo"])),{},{getSearchText:function(t){this.$.isNull(t)?this.$.confirm("请输入您要搜索的关键词!"):this.$.golevelToTabBar(this,"../../"+this.route,"/pages/product/list?pname=".concat(t,"&store_id=").concat(this.store_id))}})};e.default=a}).call(this,n("df3c")["default"])},"56c7":function(t,e,n){t.exports={theme_bg:"#f30213"}},b11f:function(t,e,n){"use strict";var r=n("56c7"),o=n.n(r);o.a},cb46:function(t,e,n){"use strict";n.r(e);var r=n("3085"),o=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e["default"]=o.a},e748:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return r}));var r={zySearch:function(){return n.e("components/zy-search/zy-search").then(n.bind(null,"8683"))}},o=function(){var t=this.$createElement;this._self._c},c=[]},fbfc:function(t,e,n){"use strict";n.r(e);var r=n("e748"),o=n("cb46");for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n("b11f");var s=n("828b"),i=Object(s["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=i.exports}},[["280f","common/runtime","common/vendor"]]]); |