3 lines
17 KiB
JavaScript
3 lines
17 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4909c5b8"],{"1b61":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAANCAYAAACZ3F9/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NkM4Nzc5MDMyMjgyMTFFN0JCRDFBNkYyOTQwQTkyRUEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NkM4Nzc5MDQyMjgyMTFFN0JCRDFBNkYyOTQwQTkyRUEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2Qzg3NzkwMTIyODIxMUU3QkJEMUE2RjI5NDBBOTJFQSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2Qzg3NzkwMjIyODIxMUU3QkJEMUE2RjI5NDBBOTJFQSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PmSE+HYAAAENSURBVHjajNIxSMJBFMfxs7IIScQ9m9wMA3MJycE1EASFhjZxE6S5sTGIBIc/BEW06dAQCLY4JU0NRQTOBeJQiC1B6PfiHTwk7P/gw3+4+/3v3t0FPM8zUgHkUUYaEbzhDmd4MaoW5LuGG5yijSxi2McIPdR0cElWukYQmxir8QEecIWOjJ27FUvYQnEmpOtJVj9B1AUPUMeXmV9d+UHBBVO4N/6qJ+38Bq0fn0E7b9EFn7HtM2h313dBe6JVLP8TSmIHTRe0R/2BC7mev2odLRzj3aj+7IuJS/P21MIS2MAhHuWnu1jVL2eIDC5xhE9M8Iqc3HFC2rlFSG/tGw2xYgelhYmasyc9VqYCDAAgLzWBjWiGsgAAAABJRU5ErkJggg=="},"1da1":function(t,e,o){"use strict";o.d(e,"a",(function(){return i}));o("d3b7");function r(t,e,o,r,i,n,a){try{var s=t[n](a),c=s.value}catch(d){return void o(d)}s.done?e(c):Promise.resolve(c).then(r,i)}function i(t){return function(){var e=this,o=arguments;return new Promise((function(i,n){var a=t.apply(e,o);function s(t){r(a,i,n,s,c,"next",t)}function c(t){r(a,i,n,s,c,"throw",t)}s(void 0)}))}}},"253a":function(t,e,o){t.exports=o.p+"static/app/img/img_default.a608a24a.png"},"2b6a":function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"search",transition:"fadeInLeft"}},[o("div",{staticClass:"uou",class:{mout:t.amout},style:{width:3==this.fun.getPhoneEnv()?"375px":"100%"},attrs:{id:"soso"}},[o("div",{staticClass:"search"},[o("div",{attrs:{slot:"prepend"},on:{click:t.goback},slot:"prepend"},[o("i",{staticClass:"iconfont icon-back"})]),o("div",{staticClass:"searchBox"},[o("form",{attrs:{action:"#"},on:{submit:function(t){t.preventDefault()}}},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.inputs,expression:"inputs"}],attrs:{type:"search",placeholder:"搜索当前品牌商品标题"},domProps:{value:t.inputs},on:{keypress:t.enterSearch,input:function(e){e.target.composing||(t.inputs=e.target.value)}}})]),o("div",{staticClass:"img-icon",on:{click:t.search}},[o("div",{staticClass:"img-icon-btn"})])]),o("div",{staticStyle:{position:"absolute",right:"1rem",top:"1rem"}},[o("i",{directives:[{name:"show",rawName:"v-show",value:t.view,expression:"view"}],staticClass:"fa fa-th-large",on:{click:function(e){return t.$store.commit("views")}}}),o("i",{directives:[{name:"show",rawName:"v-show",value:!t.view,expression:"!view"}],staticClass:"fa fa-th-list",on:{click:function(e){return t.$store.commit("views")}}})])]),o("c-sort",{attrs:{goods:t.datas,text:"搜索结果"},on:{sortIn:t.sortOut}})],1),o("div",{staticStyle:{height:"2.5rem",display:"block"}}),t.hidden?o("div",{ref:"wrapper",staticClass:"page-loadmore-wrapper",style:{height:t.wrapperHeight+"px"}},[o("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[o("c-goodsList",{staticClass:"osll",attrs:{goods:t.datas,goods_template:t.goods_template,text:"搜索结果",loading:t.loading}})],1)],1):t._e()])},i=[],n=o("5530"),a=(o("ac1f"),o("841c"),o("99af"),o("5880")),s=o("98e3"),c=o("6499"),d=o("ac0d"),l=1,h={mixins:[d["a"]],data:function(){return{hidden:!0,title:"搜索",inputs:"",amout:!1,loading:!1,allLoaded:!0,topStatus:"",bottomStatus:"",wrapperHeight:0,datas:[],goods_template:"",page:1,isLoadMore:!0,total_page:0,isLoading:!1}},computed:Object(n["a"])(Object(n["a"])({},Object(a["mapState"])(["message","blurst","view"])),{},{zoneId:function(){return""==this.$store.state.zoneId&&this.$store.commit("setZoneId",window.localStorage.getItem("zoneId")),this.$store.state.zoneId}}),methods:Object(n["a"])(Object(n["a"])({},Object(a["mapMutations"])(["views"])),{},{enterSearch:function(t){13===t.keyCode&&(t.preventDefault(),this.search())},sortOut:function(t){0!=this.datas.length&&(l=1,this.datas=[],this.order_field=t.order_field,this.order_by=t.order_by,this.gotoSearch(l))},handleTopChange:function(t){this.topStatus=t},loadTop:function(){l=1,this.datas=[],this.gotoSearch(l)},loadBottom:function(){},slider:function(){var t=this;window.onscroll=function(){var e=document.documentElement.scrollTop||document.body.scrollTop;t.amout=!(e<80)}},goback:function(){this.hidden=!1,localStorage.setItem("isset",1),this.$router.go(-1)},search:function(){l=1,this.datas=[],this.gotoSearch(l)},gotoSearch:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.wrapperHeight=window.scrollTo(0,0),this.loading=!1,this.allLoaded=!1,this.page=1;var o={keywords:this.inputs,page:e,brand_id:this.$route.params.id,as_id:this.zoneId,order_field:this.order_field,order_by:this.order_by};$http.get("goods.goods.get-goods-brand-list",o).then((function(e){if(1==e.result){if(t.isLoadMore=!0,t.total_page=e.data.goods.last_page,t.total_page||(t.total_page=0),t.loading=!1,t.allLoaded=!1,e.data.goods.data.length<=0)return t.loading=!0,void(t.allLoaded=!0);if(e.data.goods.current_page>e.data.goods.last_page)return t.loading=!0,void(t.allLoaded=!0);if(t.datas=[],t.datas=e.data.goods.data,t.goods_template=e.data.goods.goods_template,e.data.goods.data.length<20)return t.loading=!0,void(t.allLoaded=!0);t.isLoading=!1}else t.isLoading=!1}))},getMoreData:function(){this.isLoadMore=!1;var t=this;if(t.page>=t.total_page)return t.allLoaded=!1,void(t.loading=!0);t.page+=1;var e={keywords:t.inputs,page:t.page,brand_id:t.$route.params.id,as_id:t.zoneId,order_field:t.order_field,order_by:t.order_by},o="goods.goods.get-goods-brand-list";$http.get(o,e).then((function(e){if(t.isLoadMore=!0,1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var o=e.data.goods.data;t.datas=t.datas.concat(o)})).catch((function(t){}))}}),activated:function(){this.hidden=!0,this.isset=localStorage.getItem("isset"),this.isset&&1!==this.$route.params.fromHome?this.wrapperHeight=window.scrollTo(0,0):1!==this.$route.params.fromHome?this.wrapperHeight=document.documentElement.clientHeight-this.$refs.wrapper.getBoundingClientRect().top:(this.wrapperHeight=window.scrollTo(0,0),l=1,this.datas=[],this.inputs="",this.gotoSearch(l))},created:function(){1!==this.$route.params.fromHome&&(this.hidden=!0,this.datas=[],this.inputs="",this.gotoSearch(1))},components:{cGoodsList:s["a"],cSort:c["a"]}},u=h,f=(o("f7ec"),o("2877")),p=Object(f["a"])(u,r,i,!1,null,"91120cf0",null);e["default"]=p.exports},"709b":function(t,e,o){var r=o("24fb"),i=o("1de5"),n=o("1b61");e=r(!1);var a=i(n);e.push([t.i,"#search .osll[data-v-91120cf0]{min-height:100vh;margin-top:3rem;-webkit-box-sizing:border-box;box-sizing:border-box}#search .page-loadmore-wrapper2[data-v-91120cf0]{height:100vh;overflow:hidden}#search .uou[data-v-91120cf0]{width:100%;position:fixed;z-index:99;top:0;transition:.2s;-webkit-transition:.2s;background:#fff}#search .mout[data-v-91120cf0]{top:-2.25rem}.search[data-v-91120cf0]{overflow:hidden;background:#fff;border-bottom:.0625rem solid #f5f5f5;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-left:1rem}.search .mint-button.mint-button--default[data-v-91120cf0]{float:left;width:10%;border:none;padding-top:.4rem;-webkit-box-shadow:none;box-shadow:none}.search .searchBox[data-v-91120cf0]{position:relative;font-size:14px;display:inline-table;float:left;width:80%;margin-left:2%;height:2.8125rem}.search .searchBox input[data-v-91120cf0]{vertical-align:middle;border:none;background:#f2f2f2 none;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;padding:.1875rem .625rem;height:1.875rem;line-height:1.875rem;margin-top:.5rem;color:#8c8c8c;font-size:14px;width:17.75rem;border-radius:.9375rem;z-index:10}.search .searchBox .img-icon[data-v-91120cf0]{border:none;color:#a9a9a9;display:table-cell;position:relative;border-radius:0;height:1.875rem;top:.0625rem;opacity:1;left:-2.25rem}.search .searchBox .img-icon .img-icon-btn[data-v-91120cf0]{position:absolute;z-index:12;width:1rem;height:1rem;top:50%;left:50%;margin-left:-.5rem;margin-top:-.5rem;background:url("+a+") no-repeat 50%;background-size:80% 80%}",""]),t.exports=e},"80aa":function(t,e,o){var r=o("709b");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=o("499e").default;i("622eab9d",r,!0,{sourceMap:!1,shadowMode:!1})},8798:function(t,e,o){t.exports=o.p+"static/app/img/no-more-product.f4632785.png"},ac0d:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var r=document.documentElement,i=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return r&&r.scrollTop?t=r.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&r.clientHeight?Math.min(i.clientHeight,r.clientHeight):Math.max(i.clientHeight,r.clientHeight),t},getScrollHeight:function(){return Math.max(i.scrollHeight,r.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},c7eb:function(t,e,o){"use strict";o.d(e,"a",(function(){return i}));o("a4d3"),o("e01a"),o("d3b7"),o("d28b"),o("3ca3"),o("ddb0"),o("b636"),o("944a"),o("0c47"),o("23dc"),o("d9e2"),o("3410"),o("159b"),o("b0c0"),o("131a"),o("fb6a");var r=o("53ca");function i(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
i=function(){return t};var t={},e=Object.prototype,o=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function d(t,e,o){return Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(A){d=function(t,e,o){return t[e]=o}}function l(t,e,o,r){var i=e&&e.prototype instanceof f?e:f,n=Object.create(i.prototype),a=new E(r||[]);return n._invoke=function(t,e,o){var r="suspendedStart";return function(i,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw n;return M()}for(o.method=i,o.arg=n;;){var a=o.delegate;if(a){var s=L(a,o);if(s){if(s===u)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===r)throw r="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r="executing";var c=h(t,e,o);if("normal"===c.type){if(r=o.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r="completed",o.method="throw",o.arg=c.arg)}}}(t,o,a),n}function h(t,e,o){try{return{type:"normal",arg:t.call(e,o)}}catch(A){return{type:"throw",arg:A}}}t.wrap=l;var u={};function f(){}function p(){}function g(){}var m={};d(m,a,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(I([])));b&&b!==e&&o.call(b,a)&&(m=b);var w=g.prototype=f.prototype=Object.create(m);function y(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(n,a,s,c){var d=h(t[n],t,a);if("throw"!==d.type){var l=d.arg,u=l.value;return u&&"object"==Object(r["a"])(u)&&o.call(u,"__await")?e.resolve(u.__await).then((function(t){i("next",t,s,c)}),(function(t){i("throw",t,s,c)})):e.resolve(u).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,c)}))}c(d.arg)}var n;this._invoke=function(t,o){function r(){return new e((function(e,r){i(t,o,e,r)}))}return n=n?n.then(r,r):r()}}function L(t,e){var o=t.iterator[e.method];if(void 0===o){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=h(o,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function I(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:M}}function M(){return{value:void 0,done:!0}}return p.prototype=g,d(w,"constructor",g),d(g,"constructor",p),p.displayName=d(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,d(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},y(x.prototype),d(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,o,r,i,n){void 0===n&&(n=Promise);var a=new x(l(e,o,r,i),n);return t.isGeneratorFunction(o)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(w),d(w,c,"Generator"),d(w,a,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var o in t)e.push(o);return e.reverse(),function o(){for(;e.length;){var r=e.pop();if(r in t)return o.value=r,o.done=!1,o}return o.done=!0,o}},t.values=I,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(o,r){return a.type="throw",a.arg=t,e.next=o,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=o.call(n,"catchLoc"),c=o.call(n,"finallyLoc");if(s&&c){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc===t){var r=o.completion;if("throw"===r.type){var i=r.arg;S(o)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,o){return this.delegate={iterator:I(t),resultName:e,nextLoc:o},"next"===this.method&&(this.arg=void 0),u}},t}},dec5:function(t,e,o){t.exports=o.p+"static/app/img/jd-sprites.fb1e8d8b.png"},f7ec:function(t,e,o){"use strict";o("80aa")}}]); |