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.
shop-app/mobile/static/js/pages-goods-search.1b141e2f.js

1 line
8.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-search"],{1829:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAcCAMAAACnDzTfAAAAAXNSR0IArs4c6QAAAJBQTFRFAAAAv7+/v7+/v7+/zMzMysrKyMjIzs7Ox8fHxsbGyMjIzs7Oy8vLy8vLysrKzc3Ny8vLysrKzMzMzc3Nzs7Ozc3NzMzMzMzMzc3NzMzMzMzMzc3NzMzMzMzMy8vLzc3NzMzMy8vLzMzMzMzMzMzMzMzMzMzMzMzMzc3NzMzMzMzMzMzMzMzMy8vLzMzMzMzMD4D0ugAAAC90Uk5TAAQIDBQYHB8gJDg/QERIV1hcX2BjZ293f4OHj5efo6ezt7/Dx9PX39/j5+/z9/vLHcEbAAAA8ElEQVQoz42RzUrEMBRGT5s0GUaoBZeDuJXx/d/FpSK4UBlmptDRNk1c5KcmFfQuko+cHC65qQh118V0fA5Bhr3p3OiT6l6nnAnGR5/utYhMy3CnvvInNVoAYKqHaK7KyHfNdnM2+bFsPwe+5Bvcbj76nLXt8AI14FC+UVobXIiGCtjtFaD2O6DGED0JaKEAJTQgCu9nLd5M+Q7B/A/P/uLZxNaeTf2agsnUb1p5FVMcg1UFUzaNqBS9Fjx0xjSLZ1aeScwhiue5vzxJ/MCjvQCX0xmU92TyDgeA+WnVTxZjWbyRm+ucjYn1wzYXhx7gG7GuTKI2APzsAAAAAElFTkSuQmCC"},"567a":function(t,e,n){"use strict";n.r(e);var a=n("8ea5a"),i=n("fe81");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("a980");var r,c=n("f0c5"),s=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"f3c6a9aa",null,!1,a["a"],r);e["default"]=s.exports},6306:function(t,e,n){"use strict";var a=n("4ea4");n("c975"),n("a434"),n("ac1f"),n("841c"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("1014")),o="historySearch",r={components:{UiPageHeader:i.default},data:function(){return{historyList:[],searchValue:""}},onShow:function(){this.searchValue="",this.historyList=uni.getStorageSync(o)||[]},onHide:function(){},mounted:function(){console.log(this.$refs.search)},methods:{onSearch:function(){var t=this.searchValue;t&&(this.setHistory(t),this.$Router.push({path:"/goodsList",query:{search:t}}))},clearHistory:function(){this.updateHistoryStorage([])},setHistory:function(t){var e=this.historyList,n=e.indexOf(t);n>-1&&e.splice(n,1),e.unshift(t),11===e.length&&e.pop(),this.updateHistoryStorage(e)},updateHistoryStorage:function(t){this.historyList=t,uni.setStorageSync(o,t)},handleQuick:function(t){this.setHistory(t),this.$Router.push({path:"/goodsList",query:{search:t}})}}};e.default=r},"69fb":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uvInput",{attrs:{value:t.value,type:t.type,fixed:t.fixed,disabled:t.disabled,disabledColor:t.disabledColor,clearable:t.clearable,password:t.password,maxlength:t.maxlength,placeholder:t.placeholder,placeholderClass:t.placeholderClass,placeholderStyle:t.placeholderStyle,showWordLimit:t.showWordLimit,confirmType:t.confirmType,confirmHold:t.confirmHold,holdKeyboard:t.holdKeyboard,focus:t.focus,autoBlur:t.autoBlur,disableDefaultPadding:t.disableDefaultPadding,cursor:t.cursor,cursorSpacing:t.cursorSpacing,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd,adjustPosition:t.adjustPosition,inputAlign:t.inputAlign,fontSize:t.fontSize,color:t.color,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,suffixIconStyle:t.suffixIconStyle,prefixIconStyle:t.prefixIconStyle,border:t.border,readonly:t.readonly,shape:t.shape,customStyle:t.customStyle,formatter:t.formatter},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("focus")},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("blur")},keyboardheightchange:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("keyboardheightchange")},change:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.$emit("change",e)}.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.$emit("input",e)}.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.$emit("confirm",e)}.apply(void 0,arguments)},clear:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("clear")},click:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("click")}}},[t._t("prefix",null,{slot:"prefix"}),t._t("suffix",null,{slot:"suffix"})],2)},o=[]},"7c19":function(t,e,n){var a=n("24fb");e=a(!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/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-f3c6a9aa]{background:#fff}.search[data-v-f3c6a9aa]{height:%?88?%;flex:1;display:flex;justify-content:space-between;align-items:center}.search--input[data-v-f3c6a9aa]{display:block;margin-right:%?40?%;height:%?70?%;border:none;box-sizing:border-box;background:#f8f8f8}.search--input__placeholder[data-v-f3c6a9aa]{font-size:%?26?%;color:#666}.search--btn[data-v-f3c6a9aa]{font-size:%?26?%;color:#666}.history[data-v-f3c6a9aa]{padding:0 %?40?%}.history--head[data-v-f3c6a9aa]{font-size:%?26?%;color:#666;display:flex;justify-content:space-between;align-items:center;margin:%?40?% 0}.history--del[data-v-f3c6a9aa]{width:%?27?%;height:%?28?%}.history--list[data-v-f3c6a9aa]{display:flex;flex-wrap:wrap}.history--item[data-v-f3c6a9aa]{max-width:%?276?%;overflow:hidden;text-overflow:ellipsis;height:%?70?%;line-height:%?70?%;padding:0 %?20?%;font-size:%?26?%;color:#666;background:#f8f8f8;margin:%?10?% %?18?% %?10?% 0}body.?%PAGE?%[data-v-f3c6a9aa]{background:#fff}',""]),t.exports=e},"89d7":function(t,e,n){var a=n("7c19");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("63f32921",a,!0,{sourceMap:!1,shadowMode:!1})},"8ea5a":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={"u-Input":n("eb73").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("UiPageHeader",[a("v-uni-view",{staticClass:"search",attrs:{slot:"custom"},slot:"custom"},[a("u--input",{ref:"search",staticClass:"search--input",attrs:{focus:!0,placeholder:"请输入您想搜索的商品名称",prefixIcon:"search",clearable:!0,prefixIconStyle:"font-size:48rpx;color:$color-grey3",placeholderClass:"search--input__placeholder"},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),a("v-uni-text",{staticClass:"search--btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSearch.apply(void 0,arguments)}}},[t._v("搜索")])],1)],1),t.historyList.length?a("v-uni-view",{staticClass:"history"},[a("v-uni-view",{staticClass:"history--head"},[a("v-uni-text",[t._v("最近搜索")]),a("v-uni-image",{staticClass:"history--del",attrs:{src:n("1829")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearHistory.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"history--list"},t._l(t.historyList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"history--item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleQuick(e)}}},[t._v(t._s(e))])})),1)],1):t._e()],1)},o=[]},9214:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("1fb7")),o=a(n("acf3")),r={name:"u--input",mixins:[uni.$u.mpMixin,o.default,uni.$u.mixin],components:{uvInput:i.default}};e.default=r},a980:function(t,e,n){"use strict";var a=n("89d7"),i=n.n(a);i.a},cfce:function(t,e,n){"use strict";n.r(e);var a=n("9214"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},eb73:function(t,e,n){"use strict";n.r(e);var a=n("69fb"),i=n("cfce");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var r,c=n("f0c5"),s=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);e["default"]=s.exports},fe81:function(t,e,n){"use strict";n.r(e);var a=n("6306"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a}}]);