1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_search-index"],{2163:function(t,e,n){var o=n("b98d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("967d").default;i("3cd36b1b",o,!0,{sourceMap:!1,shadowMode:!1})},"2c98":function(t,e,n){"use strict";n.r(e);var o=n("ab5a"),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},"47a0":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(n){arguments[0]=n=t.$handleEvent(n),t.setHotSearchValue(e,0)}}},[t._v(t._s(e))])]}))],2):t._e(),n("v-uni-view",[t.historyList.length>9&&!t.historyBox?n("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.historyBox=!0}}},[t._v("展开全部"),n("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1):t._e(),t.historyList.length>9&&t.historyBox?n("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.historyBox=!1}}},[t._v("收起"),n("v-uni-text",{staticClass:"iconfont icon-xiangshang"})],1):t._e()],1),0==t.historyList.length?n("v-uni-view",{staticStyle:{"text-align":"center",color:"#999"}},[t._v("暂无搜索历史~")]):t._e(),n("v-uni-view",{staticClass:"title"},[t._v("热门搜索")]),n("v-uni-view",{staticClass:"list acea-row",style:{height:t.hotSearchBox?"auto":"150rpx"}},[t._l(t.hotSearchList,(function(e,o){return[n("v-uni-view",{key:o+"_0",staticClass:"item line1",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.setHotSearchValue(e,1)}}},[t._v(t._s(e.keyword))])]}))],2),n("v-uni-view",[t.hotSearchList.length>8&&!t.hotSearchBox?n("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hotSearchBox=!0}}},[t._v("展开全部"),n("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1):t._e(),t.hotSearchList.length>8&&t.hotSearchBox?n("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hotSearchBox=!1}}},[t._v("收起"),n("v-uni-text",{staticClass:"iconfont icon-xiangshang"})],1):t._e()],1)],1)],1)},i=[]},5346:function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.searchGood .search[data-v-3f524e8f]{padding-left:%?30?%;margin-top:%?20?%}.searchGood .search .input[data-v-3f524e8f]{width:%?598?%;background-color:#f7f7f7;border-radius:%?33?%;padding:0 %?35?%;box-sizing:border-box;height:%?66?%}.searchGood .search .input uni-input[data-v-3f524e8f]{width:%?472?%;font-size:%?28?%}.searchGood .search .input .placeholder[data-v-3f524e8f]{color:#bbb}.searchGood .search .input .iconfont[data-v-3f524e8f]{color:#000;font-size:%?35?%}.searchGood .search .bnt[data-v-3f524e8f]{width:%?120?%;text-align:center;height:%?66?%;line-height:%?66?%;font-size:%?30?%;color:#282828}.searchGood .title[data-v-3f524e8f]{position:relative;font-size:%?28?%;color:#282828;margin:%?50?% %?30?% %?25?% %?30?%}.searchGood .title .icon-shanchu[data-v-3f524e8f]{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#999}.searchGood .list[data-v-3f524e8f]{padding:0 %?10?%;overflow:hidden}.searchGood .list .item[data-v-3f524e8f]{font-size:%?26?%;color:#666;padding:0 %?21?%;height:%?60?%;background:#f2f2f2;border-radius:%?22?%;line-height:%?60?%;margin:0 0 %?20?% %?20?%;max-width:%?150?%}.searchGood .line[data-v-3f524e8f]{border-bottom:%?1?% solid #eee;margin:%?20?% %?30?% 0 %?30?%}.more-btn[data-v-3f524e8f]{display:flex;align-items:center;justify-content:center;margin:0 0 %?20?% %?20?%;height:%?60?%;font-size:%?24?%;color:#999}.more-btn .iconfont[data-v-3f524e8f]{font-size:%?22?%;margin-left:%?10?%}',""]),t.exports=e},"69b5":function(t,e,n){"use strict";var o=n("2163"),i=n.n(o);i.a},"7c40":function(t,e,n){"use strict";var o=n("d806"),i=n.n(o);i.a},ab5a:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("bf0f"),n("2797"),n("3efd");var o=n("edc0b"),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},b98d:function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,"uni-page-body[data-v-3f524e8f]{background-color:#fff}body.?%PAGE?%[data-v-3f524e8f]{background-color:#fff}",""]),t.exports=e},d806:function(t,e,n){var o=n("5346");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("967d").default;i("c45401ee",o,!0,{sourceMap:!1,shadowMode:!1})},eb0f:function(t,e,n){"use strict";n.r(e);var o=n("47a0"),i=n("2c98");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("69b5"),n("7c40");var c=n("828b"),s=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"3f524e8f",null,!1,o["a"],void 0);e["default"]=s.exports},edc0b:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").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){return i.default.post("community/update/".concat(t),e)},e.userArticleLst=function(t,e){return i.default.get("community/user/community/".concat(t),e)},e.userInfoApi=function(t){return i.default.get("community/user/info/".concat(t))},e.videoList=function(t){return i.default.get("community/video_lst",t,{noAuth:!0})};var i=o(n("fea3"))}}]); |