shop-php/public/static/js/pages-plantGrass-plant_search-index.82ab3147.js

1 line
12 KiB
JavaScript
Raw Normal View History

2023-12-21 18:38:16 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_search-index"],{"1eb0":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 a=n("52dc"),o={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,a.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,a){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=o},"52dc":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.boughtLstApi=function(t){return o.default.get("community/pay_product/lst",t)},e.browseLstApi=function(t){return o.default.get("community/hist_product/lst",t)},e.collectLstApi=function(t){return o.default.get("community/rela_product/lst",t)},e.createPlantApi=function(t){return o.default.post("community/create",t)},e.deletePlantApi=function(t){return o.default.post("community/delete/".concat(t))},e.deoList=function(t){return o.default.get("community/show/".concat(t),{noAuth:!0})},e.focusArticleLst=function(t){return o.default.get("community/focuslst",t,{noAuth:!0})},e.followAuthorApi=function(t,e){return o.default.post("community/fans/".concat(t),e)},e.getTopicList=function(){return o.default.get("community/category/lst",{},{noAuth:!0})},e.getVideoCode=function(t,e){return o.default.get("community/qrcode/".concat(t),e,{noAuth:!0})},e.graphicLstApi=function(t){return o.default.get("community/lst",t,{noAuth:!0})},e.graphicProApi=function(t){return o.default.get("product/spu/get/".concat(t),{noAuth:!0})},e.graphicStartApi=function(t,e){return o.default.post("community/start/".concat(t),e)},e.hotSearchLst=function(){return o.default.get("common/commuunity/hot_keyword",{},{noAuth:!0})},e.myFansLst=function(t){return o.default.get("community/fans/lst",t)},e.myFocusLst=function(t){return o.default.get("community/focus/lst",t)},e.myVideoList=function(t,e){return o.default.get("community/user/community_video/".concat(t),e,{noAuth:!0})},e.orderAssociatePlantApi=function(t){return o.default.get("community/order/".concat(t),{},{noAuth:!0})},e.plantDetailApi=function(t){return o.default.get("community/show/".concat(t),{},{noAuth:!0})},e.replyCreateApi=function(t,e){return o.default.post("community/reply/create/".concat(t),e)},e.replyLstApi=function(t,e){return o.default.get("community/".concat(t,"/reply"),e,{noAuth:!0})},e.starArticleLst=function(t){return o.default.get("community/start/lst",t)},e.starCommentApi=function(t,e){return o.default.post("community/reply/start/".concat(t),e)},e.updatePlantApi=function(t,e){return o.default.post("community/update/".concat(t),e)},e.userArticleLst=function(t,e){return o.default.get("community/user/community/".concat(t),e)},e.userInfoApi=fu