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 lines
7.4 KiB
1 lines
7.4 KiB
(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/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.page[data-v-c21c7b00]{position:absolute;width:100%;height:100%;background:#fff;overflow-x:hidden;overflow-y:auto}\r\n/* 搜索 */.search-head[data-v-c21c7b00]{position:fixed;left:0;top:0;display:flex;align-items:center;width:100%;height:%?100?%;z-index:10;background-color:#fff;border-bottom:%?2?% solid #f6f6f6}.search-head .back[data-v-c21c7b00]{display:flex;justify-content:center;align-items:center;width:10%;height:100%}.search-head .back uni-text[data-v-c21c7b00]{width:%?20?%;height:%?20?%;border-left:%?2?% solid #555;border-bottom:%?2?% solid #555;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.search-head .search[data-v-c21c7b00]{display:flex;align-items:center;width:76%;height:%?60?%;background-color:#f6f6f6;border-radius:%?60?%;padding:0 4%}.search-head .search uni-text[data-v-c21c7b00]{font-size:%?34?%;color:silver}.search-head .search uni-input[data-v-c21c7b00]{width:90%;height:100%;font-size:%?26?%;color:#212121;margin-left:%?10?%}.search-head .btn[data-v-c21c7b00]{display:flex;align-items:center;justify-content:center;width:10%;height:100%}.search-head .btn uni-text[data-v-c21c7b00]{font-size:%?28?%;color:#555}\r\n/* 搜索记录 */.search-record[data-v-c21c7b00]{padding:0 4%;margin-top:%?100?%;background-color:#fff;border-bottom:%?2?% solid #f6f6f6}.search-record .search-title[data-v-c21c7b00]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?80?%}.search-record .search-title .title[data-v-c21c7b00]{font-size:%?28?%;color:#212121}.search-record .search-title .iconfont[data-v-c21c7b00]{font-size:%?38?%}.search-record .record-list[data-v-c21c7b00]{display:flex;flex-wrap:wrap;width:100%}.search-record .record-list .list[data-v-c21c7b00]{padding:%?10?% %?20?%;margin-right:%?20?%;margin-bottom:%?20?%;background-color:#f6f6f6;border-radius:%?60?%}.search-record .record-list .list uni-text[data-v-c21c7b00]{color:#555;font-size:%?24?%}.search-found[data-v-c21c7b00]{padding:0 4%;background-color:#fff}.search-found .search-title[data-v-c21c7b00]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?80?%}.search-found .search-title .title[data-v-c21c7b00]{font-size:%?28?%;color:#212121}.search-found .search-title .iconfont[data-v-c21c7b00]{font-size:%?38?%}.search-found .found-list[data-v-c21c7b00]{display:flex;justify-content:space-between;flex-wrap:wrap}.search-found .found-list .list[data-v-c21c7b00]{display:flex;align-items:center;width:48%;height:%?80?%}.search-found .found-list .list uni-text[data-v-c21c7b00]{color:#555;font-size:%?26?%}.search-found .found-list .list .searchItem .num[data-v-c21c7b00]{background:#236030;color:#f5f5f5;display:inline-block;border-radius:2px;height:14px;width:14px;margin-right:4px;line-height:14px;text-align:center}',""]),e.exports=t},"4cc1":function(e,t,i){"use strict";var r=i("5d03"),a=i.n(r);a.a},"5d03":function(e,t,i){var r=i("4cb6");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("4f06").default;a("8e4c37e6",r,!0,{sourceMap:!1,shadowMode:!1})},ce23:function(e,t,i){"use strict";i.r(t);var r=i("1872"),a=i("409b");for(var c in a)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(c);i("4cc1");var n=i("f0c5"),s=Object(n["a"])(a["default"],r["b"],r["c"],!1,null,"c21c7b00",null,!1,r["a"],void 0);t["default"]=s.exports}}]); |