search.js 2.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageB/search"],{4984:function(e,t,n){"use strict";var o=n("9921"),r=n.n(o);r.a},"4e73":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("f93b");o(n("66fd"));var r=o(n("5faa"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"5faa":function(e,t,n){"use strict";n.r(t);var o=n("bb17"),r=n("6878");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("4984");var c,u=n("f0c5"),i=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,"1ef384d5",null,!1,o["a"],c);t["default"]=i.exports},6878:function(e,t,n){"use strict";n.r(t);var o=n("b0a2"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},9921:function(e,t,n){},b0a2:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n("66fd");var o={data:function(){return{keyword:"",blurshow:!1,language:"zh-CN",goods:[],record:[]}},computed:{i18n:function(){return this.$t("index")}},onLoad:function(){this.getgoods()},onShow:function(){this.record=e.getStorageSync("record")?e.getStorageSync("record").reverse():[],""!=e.getStorageSync("language")&&(this.language=e.getStorageSync("language"))},methods:{changeitem:function(t){var n=this.getOpenerEventChannel();n.emit("searchinfo",t),e.navigateBack()},getgoods:function(){var t=this;e.$u.http.get("/api/express-goods-info",{params:{name:this.keyword}}).then((function(e){t.goods=e})).catch((function(){}))},clear:function(){e.navigateBack()},enter:function(){console.log(this.record),this.record.push(this.keyword),e.setStorageSync("record",this.record),this.getgoods()},search:function(){},focus:function(){this.blurshow=!0},select:function(e){this.keyword=e,this.blurshow=!0,this.getgoods()}}};t.default=o}).call(this,n("543d")["default"])},bb17:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var o={uSearch:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-search/u-search")]).then(n.bind(null,"f212"))}},r=function(){var e=this,t=e.$createElement;e._self._c},a=[]}},[["4e73","common/runtime","common/vendor"]]]);