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.
hezhiying/unpackage/dist/build/h5/static/js/pages-search-search.ebaadec...

1 line
7.4 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-search-search"],{"0245":function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("a434"),i("3c65"),i("e9c4");var r={data:function(){return{SearchRecordArr:[],keyword:"",searchList:["手镯","项链","吊坠","耳环","钻石","翡翠","沉香","天然水晶"]}},onLoad:function(){uni.getStorageSync("SearchRecordArr")&&(this.SearchRecordArr=JSON.parse(uni.getStorageSync("SearchRecordArr")))},methods:{onBack:function(){uni.navigateBack()},onSearch:function(){if(this.keyword){for(var e=0;e<this.SearchRecordArr.length;e++)this.SearchRecordArr[e]==this.keyword&&this.SearchRecordArr.splice(e,1);this.SearchRecordArr.unshift(this.keyword),uni.setStorageSync("SearchRecordArr",JSON.stringify(this.SearchRecordArr)),uni.navigateTo({url:"/pages/SearchGoodsList/SearchGoodsList?keyword="+encodeURIComponent(this.keyword)})}else uni.showToast({title:"请输入搜索内容",icon:"none"})},onRecord:function(e){uni.navigateTo({url:"/pages/SearchGoodsList/SearchGoodsList?keyword="+e})}}};t.default=r},1872:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"search-head"},[i("v-uni-view",{staticClass:"back",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onBack.apply(void 0,arguments)}}},[i("v-uni-text")],1),i("v-uni-view",{staticClass:"search"},[i("v-uni-text",{staticClass:"iconfont icon-fadajing"}),i("v-uni-input",{attrs:{type:"text",placeholder:"请输入关键字搜索"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),i("v-uni-view",{staticClass:"btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSearch.apply(void 0,arguments)}}},[i("v-uni-text",[e._v("搜索")])],1)],1),i("v-uni-view",{staticClass:"search-record"},[i("v-uni-view",{staticClass:"search-title"},[i("v-uni-view",{staticClass:"title"},[e._v("搜索历史")]),i("v-uni-view",{staticClass:"iconfont icon-laji"})],1),i("v-uni-view",{staticClass:"record-list"},e._l(e.SearchRecordArr,(function(t,r){return i("v-uni-view",{key:r,staticClass:"list",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.onRecord(t)}}},[i("v-uni-text",[e._v(e._s(t))])],1)})),1)],1),i("v-uni-view",{staticClass:"search-found"},[i("v-uni-view",{staticClass:"search-title"},[i("v-uni-view",{staticClass:"title"},[e._v("搜索发现")])],1),i("v-uni-view",{staticClass:"found-list"},e._l(e.searchList,(function(t,r){return i("v-uni-view",{key:r,staticClass:"list",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.onRecord(t)}}},[i("v-uni-view",{staticClass:"searchItem"},[i("v-uni-view",{staticClass:"num"},[e._v(e._s(r+1))]),i("v-uni-text",[e._v(e._s(t))])],1)],1)})),1)],1)],1)},a=[]},"409b":function(e,t,i){"use strict";i.r(t);var r=i("0245"),a=i.n(r);for(var c in r)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(c);t["default"]=a.a},"4cb6":function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 主要颜色 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* <EFBFBD>