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"],{"5b15":function(e,t,a){"use strict";var i=a("d956"),r=a.n(i);r.a},"6e4e":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"search-head"},[a("v-uni-view",{staticClass:"back",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onBack.apply(void 0,arguments)}}},[a("v-uni-text")],1),a("v-uni-view",{staticClass:"search"},[a("v-uni-text",{staticClass:"iconfont icon-fadajing"}),a("v-uni-input",{attrs:{type:"text",placeholder:"请输入关键字搜索"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),a("v-uni-view",{staticClass:"btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSearch.apply(void 0,arguments)}}},[a("v-uni-text",[e._v("搜索")])],1)],1),a("v-uni-view",{staticClass:"search-record"},[a("v-uni-view",{staticClass:"search-title"},[a("v-uni-view",{staticClass:"title"},[e._v("搜索历史")]),a("v-uni-view",{staticClass:"iconfont icon-laji"})],1),a("v-uni-view",{staticClass:"record-list"},e._l(e.SearchRecordArr,(function(t,i){return a("v-uni-view",{key:i,staticClass:"list",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.onRecord(t)}}},[a("v-uni-text",[e._v(e._s(t))])],1)})),1)],1),a("v-uni-view",{staticClass:"search-found"},[a("v-uni-view",{staticClass:"search-title"},[a("v-uni-view",{staticClass:"title"},[e._v("搜索发现")])],1),a("v-uni-view",{staticClass:"found-list"},e._l(e.searchList,(function(t,i){return a("v-uni-view",{key:i,staticClass:"list",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.onRecord(t)}}},[a("v-uni-view",{staticClass:"searchItem"},[a("v-uni-view",{staticClass:"num"},[e._v(e._s(i+1))]),a("v-uni-text",[e._v(e._s(t))])],1)],1)})),1)],1)],1)},r=[]},7393:function(e,t,a){var i=a("24fb");t=i(!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},8257:function(e,t,a){"use strict";a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("a434"),a("3c65"),a("e9c4");var i={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=i},d956:function(e,t,a){var i=a("7393");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("4f06").default;r("3222b959",i,!0,{sourceMap:!1,shadowMode:!1})},ecf9:function(e,t,a){"use strict";a.r(t);var i=a("6e4e"),r=a("fac5");for(var c in r)["default"].indexOf(c)<0&&function(e){a.d(t,e,(function(){return r[e]}))}(c);a("5b15");var n=a("f0c5"),s=Object(n["a"])(r["default"],i["b"],i["c"],!1,null,"c21c7b00",null,!1,i["a"],void 0);t["default"]=s.exports},fac5:function(e,t,a){"use strict";a.r(t);var i=a("8257"),r=a.n(i);for(var c in i)["default"].indexOf(c)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(c);t["default"]=r.a}}]); |