You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
11 KiB
1 line
11 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_search-index"],{"008a":function(t,e,n){"use strict";var o=n("23b2"),i=n.n(o);i.a},"23b2":function(t,e,n){var o=n("e6a1");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("80c50e68",o,!0,{sourceMap:!1,shadowMode:!1})},4073:function(t,e,n){"use strict";n.r(e);var o=n("c83d"),i=n("bc60");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("008a"),n("fcac");var c=n("f0c5"),s=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"f6d26274",null,!1,o["a"],void 0);e["default"]=s.exports},"505c":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d3b7"),n("159b"),n("3c65");var o=n("d2c9"),i={data:function(){return{hostProduct:[],searchValue:"",focus:!0,hotSearchList:[],page:1,loading:!1,loadend:!1,loadTitle:"加载更多",isScroll:!0,historyList:[],tempStorage:[],historyBox:!1,hotSearchBox:!1,isAuto:!1,isShowAuth:!1}},onLoad:function(){},onShow:function(){try{this.historyList=[],this.tempStorage=[];var t=uni.getStorageSync("historyPlant");t.length>0?this.historyList=t:this.historyList=[],this.tempStorage=this.historyList}catch(e){}this.getRoutineHotSearch()},methods:{remove:function(){var t=this;uni.showModal({title:"提示",content:"确认删除全部历史搜索记录?",success:function(e){if(e.confirm){t.tempStorage=[];try{uni.setStorageSync("historyPlant",t.tempStorage),t.historyList=[]}catch(n){}}else e.cancel}})},getRoutineHotSearch:function(){var t=this;(0,o.hotSearchLst)().then((function(e){t.$set(t,"hotSearchList",e.data)}))},setHotSearchValue:function(t,e){var n=this;this.focus=!1,e?this.$set(this,"searchValue",t.keyword):this.$set(this,"searchValue",t),this.$nextTick((function(){n.focus=!0})),this.searchBut()},setValue:function(t){this.$set(this,"searchValue",t.detail.value)},searchBut:function(){var t=this,e=!1;this.tempStorage.forEach((function(n,o){n==t.searchValue&&(e=!0)})),!e&&this.searchValue&&this.tempStorage.unshift(this.searchValue);try{uni.setStorageSync("historyPlant",this.tempStorage)}catch(n){}uni.navigateTo({url:"/pages/plantGrass/plant_search_list/index?searchValue="+this.searchValue})},searchCancle:function(){uni.navigateBack()}}};e.default=i},5979:function(t,e,n){var o=n("e60a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("27d1030a",o,!0,{sourceMap:!1,shadowMode:!1})},bc60:function(t,e,n){"use strict";n.r(e);var o=n("505c"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},c83d:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"searchGood"},[n("v-uni-view",{staticClass:"search acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[n("v-uni-text",{staticClass:"iconfont icon-sousuo2"}),n("v-uni-input",{attrs:{type:"text",value:t.searchValue,focus:t.focus,placeholder:"请输入关键字","placeholder-class":"placeholder","confirm-type":"search"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.setValue.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.searchBut()}}})],1),n("v-uni-view",{staticClass:"bnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.searchCancle.apply(void 0,arguments)}}},[t._v("取消")])],1),n("v-uni-view",{staticClass:"title"},[t._v("历史记录"),n("v-uni-text",{staticClass:"iconfont icon-shanchu",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.remove.apply(void 0,arguments)}}})],1),t.historyList.length>0?n("v-uni-view",{staticClass:"list acea-row",style:{height:t.historyBox?"auto":"150rpx"}},[t._l(t.historyList,(function(e,o){return[n("v-uni-view",{key:o+"_0",staticClass:"item line1",on:{click:function(
|