1 line
2.5 KiB
JavaScript
1 line
2.5 KiB
JavaScript
|
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/search/search"],{1654:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("0c59"),r={data:function(){return{BASE_IMG_URL:a.BASE_IMG_URL,value:"",searchHistory:[]}},onShow:function(){e.getStorageSync("searchword")&&(this.searchHistory=e.getStorageSync("searchword"))},methods:{changeValue:function(e){this.value=e},onSearch:function(t){this.value=t;var n=e.getStorageSync("searchword");if(n){if(-1!=n.indexOf(this.value)){var a=n.indexOf(this.value);n.splice(a,1)}n.length>=10?(n.shift(),n.push(this.value)):n.push(this.value)}else n=[],n.push(this.value);e.setStorageSync("searchword",n),e.navigateTo({url:"/pagesA/crm/search/searchList?type=0&word="+this.value})},clearHistory:function(){this.searchHistory=[],e.removeStorageSync("searchword")},onCancel:function(){e.navigateBack({delta:1})},searchType:function(t){e.navigateTo({url:"/pagesA/crm/search/searchList?type="+t+"&word="+this.value})},historySearch:function(t){this.value=t,e.navigateTo({url:"/pagesA/crm/search/searchList?type=0&word="+this.value})}}};t.default=r}).call(this,n("543d")["default"])},"5ba8":function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("8886");a(n("66fd"));var r=a(n("cad9"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"6c6b":function(e,t,n){"use strict";n.r(t);var a=n("1654"),r=n.n(a);for(var c in a)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(c);t["default"]=r.a},7095:function(e,t,n){},7609:function(e,t,n){"use strict";var a=n("7095"),r=n.n(a);r.a},"97f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a}));var a={uSearch:function(){return n.e("uview-ui/components/u-search/u-search").then(n.bind(null,"d3fc"))},uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,"38b8"))}},r=function(){var e=this.$createElement,t=(this._self._c,this.searchHistory.length);this.$mp.data=Object.assign({},{$root:{g0:t}})},c=[]},cad9:function(e,t,n){"use strict";n.r(t);var a=n("97f7"),r=n("6c6b");for(var c in r)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(c);n("7609");var u=n("f0c5"),i=Object(u["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=i.exports}},[["5ba8","common/runtime","common/vendor"]]]);
|