启程易购后端代码
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.
qicheng_shop_backend/public/static/js/pages-plantGrass-plant_sear...

1 line
11 KiB

8 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_search-index"],{"216c":function(t,e,n){"use strict";var o=n("2252"),i=n.n(o);i.a},2252:function(t,e,n){var o=n("d4da");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("23d02c98",o,!0,{sourceMap:!1,shadowMode:!1})},"302d":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("3fd7"),i={data:function(){return{hostProduct:[],searchValue:"",focus:!0,hotSearchList:[],page:1,loading:!1,loadend:!1,loadTitle:"加载更多",isScroll:!0,historyList:[],tempStorage:[],historyBox:!1,hotSearchBox:!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},"3fd7":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.boughtLstApi=function(t){return i.default.get("community/pay_product/lst",t)},e.browseLstApi=function(t){return i.default.get("community/hist_product/lst",t)},e.collectLstApi=function(t){return i.default.get("community/rela_product/lst",t)},e.createPlantApi=function(t){return i.default.post("community/create",t)},e.deletePlantApi=function(t){return i.default.post("community/delete/".concat(t))},e.focusArticleLst=function(t){return i.default.get("community/focuslst",t,{noAuth:!0})},e.followAuthorApi=function(t,e){return i.default.post("community/fans/".concat(t),e)},e.getTopicList=function(){return i.default.get("community/category/lst",{},{noAuth:!0})},e.getVideoCode=function(t,e){return i.default.get("community/qrcode/".concat(t),e,{noAuth:!0})},e.graphicLstApi=function(t){return i.default.get("community/lst",t,{noAuth:!0})},e.graphicProApi=function(t){return i.default.get("product/spu/get/".concat(t),{},{noAuth:!0})},e.graphicStartApi=function(t,e){return i.default.post("community/start/".concat(t),e)},e.hotSearchLst=function(){return i.default.get("common/commuunity/hot_keyword",{},{noAuth:!0})},e.myFansLst=function(t){return i.default.get("community/fans/lst",t)},e.myFocusLst=function(t){return i.default.get("community/focus/lst",t)},e.myVideoList=function(t,e){return i.default.get("community/user/community_video/".concat(t),e,{noAuth:!0})},e.orderAssociatePlantApi=function(t){return i.default.get("community/order/".concat(t),{},{noAuth:!0})},e.plantDetailApi=function(t){return i.default.get("community/show/".concat(t),{},{noAuth:!0})},e.replyCreateApi=function(t,e){return i.default.post("community/reply/create/".concat(t),e)},e.replyLstApi=function(t,e){return i.default.get("community/".concat(t,"/reply"),e,{noAuth:!0})},e.starArticleLst=function(t){return i.default.get("community/start/lst",t)},e.starCommentApi=function(t,e){return i.default.post("community/reply/start/".concat(t),e)},e.updatePlantApi=function(t,e)