1 line
3.1 KiB
JavaScript
1 line
3.1 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/demand/search/index"],{"141c":function(t,e,n){"use strict";n.r(e);var r=n("f3c4"),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},"5f83":function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("aa6c");r(n("3240"));var o=r(n("d587"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},6505:function(t,e,n){},"7acc":function(t,e,n){"use strict";var r=n("6505"),o=n.n(r);o.a},d412:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.recordList&&this.recordList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},d587:function(t,e,n){"use strict";n.r(e);var r=n("d412"),o=n("141c");for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n("7acc");var a=n("828b"),i=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=i.exports},f3c4: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 a(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}var i={data:function(){return{loadEnd:!1,titleBarHeight:0,recordList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,c.mapState)({themeColor:function(t){return t.app.themeColor}})),onReady:function(){this.loadEnd=!0},onShow:function(){this.recordList=t.getStorageSync("demandHistory")},mounted:function(){var e=t.getSystemInfoSync().statusBarHeight,n=t.getMenuButtonBoundingClientRect();this.titleBarHeight=e+2*(n.top-e)+n.height},methods:{toBack:function(){1==getCurrentPages().length?this.$util.toPage({mode:3,path:"/pages/demand/index"}):t.navigateBack()},clearRecords:function(){var e=this;t.showModal({title:"提示",content:"是否删除全部历史记录?",confirmText:"删除",confirmColor:this.themeColor,success:function(n){n.confirm&&(t.removeStorageSync("demandHistory"),e.recordList=[])}})},confirmSearch:function(t){this.doSearch(t.detail.value)},doSearch:function(e){if(e){var n=t.getStorageSync("demandHistory")||[];n.includes(e)||(n.push(e),t.setStorageSync("demandHistory",n)),this.$util.toPage({mode:1,path:"/pages/demand/search/result?keyword=".concat(encodeURIComponent(e))})}else t.showToast({title:"请输入要搜索的内容",icon:"none"})}}};e.default=i}).call(this,n("df3c")["default"])}},[["5f83","common/runtime","common/vendor"]]]); |