12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40ee8d8d"],{"10bb":function(t,s,a){},"159f":function(t,s,a){"use strict";var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"header-top-select",on:{click:function(s){s.stopPropagation(),t.showAllCategory=!t.showAllCategory}}},[s("span",{staticClass:"header-top-select-label"},[t._v("全部分类")]),s("img",{staticClass:"header-top-select-img",attrs:{src:a("82ec")}}),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showAllCategory,expression:"showAllCategory"}]},[s("div",{staticClass:"all-categories-window"},[s("all-products-nav-list")],1)])])},n=[],i=a("bfdd"),o={name:"header-top-select",components:{AllProductsNavList:i["a"]},data:function(){return{showAllCategory:!1}},mounted:function(){var t=this;document.body.addEventListener("click",(function(){return t.showAllCategory=!1}))},methods:{}},r=o,c=(a("6aa4"),a("2877")),l=Object(c["a"])(r,e,n,!1,null,"2834332b",null);s["a"]=l.exports},"2e3f":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAANBJREFUOE9jZKASYKSSOQyjBhEOydEwojCMQkNDme/fv98PMkZRUbFw9erVf3EZiTOwHRwceD5//rycgYHBB6p5Cy8vb+SBAwe+YDMMq0GWlpbSv3//3vL//38DZE2MjIwXWFlZfY4fP/4U3TAMg0xNTQ3+/fu3hYGBQRqHN54yMTH5nD59+gKKJcgcMzMzn79//4K8w0MgeL8wMzNHnjp1CmQhGMBdZGxsnMvIyNj///9/ZsJxxMDAyMj49////4Vnz56djGIQMZrxqaFaFgEAIMw7E21c1FsAAAAASUVORK5CYII="},3318:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA3RJREFUWEfV10+IlWUUBvDfmXF0NMvG7I+ZGS4qigoyArOFxdzJsVQsXBQKlhUFERKBRItGiIg2LkqKUjTNlYtCU3HubSFCB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SnPTBYuwgDAAAAAElFTkSuQmCC"},"485e":function(t,s,a){},"55dd":function(t,s,a){"use strict";var e=a("5ca1"),n=a("d8e8"),i=a("4bf8"),o=a("79e5"),r=[].sort,c=[1,2,3];e(e.P+e.F*(o((function(){c.sort(void 0)}))||!o((function(){c.sort(null)}))||!a("2f21")(r)),"Array",{sort:function(t){return void 0===t?r.call(i(this)):r.call(i(this),n(t))}})},"679a":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAM1JREFUOE9jZKASYKSSOQxwg4yNjXMZGRn7////z0yM4YyMjH////9fePbs2ckg9SguMjMz8/n79+9yBgYGHgKGfWFmZo48derUFpg6DK+Zmpoa/Pv3D6RAGodhT5mYmHxOnz59AVkeaxhZWlpK//79e8v///8NUBQzMl5gZWX1OX78+FN0S3AGtoODA8/nz59B3vSBatrCy8sbeeDAgS/YXIo31kJDQ5nv37/fD9KoqKhYuHr16r+4wo760U9MlONTM+oiwiE4GkaEwwgAmfE7E4MNjRcAAAAASUVORK5CYII="},"6aa4":function(t,s,a){"use strict";a("485e")},"75fc":function(t,s,a){"use strict";a.d(s,"a",(function(){return u}));var e=a("a745"),n=a.n(e),i=a("db2a");function o(t){if(n()(t))return Object(i["a"])(t)}var r=a("3953"),c=a("e630");function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t){return o(t)||Object(r["a"])(t)||Object(c["a"])(t)||l()}},"82ec":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAyNJREFUaEPtWEmL1EAU/l6WgREHRBHcERERFT2kkkwuY7vMQUREBVHx5vITPAmiR3+Cy00UD6IgCIo67Vy6k1QdFERQEXFFD6IoI0w6eVLSLTLoJD3dPW1j1zWV977lvarkEXp8UY/jR59Atx3sO9B3oEUF/p8SYmbyPO9olmVHAKwHMLdF8aa+/g3AY8MwLkZRdIGIuEj8Qg44jrMYwCUAW4sEbcOe+wAOK6Xe58XKJaCVF0Lc1eCJ6A2AE8xcLhI8L/nvz7VIRFQCcJaZlwG4L6XcnudELgHXdY9lWXZOg7dte1OlUvnUDLBm9wZBMD9JkoeahGEYx+M4Pj9djFwCjuNUAfhEdEhKeaVZQDPZL4Q4yMyXAYRKqeFWCXytN+ySdpfN34DVe+4dgG9KqaFWCfw8DZRSuW7NRO1pSBTKmwvKcZxCgdoJXscqmrdPoN3KN+J13IFSqTR3YmJiSRRFT1sh4fv+xsHBwVflcvnzlHuhUOnOuISEEKcAnARwQEp5bSYk6sflJSI6I6U8PasEgiBYmiTJODMvB7BfKXWjGRKu6+5l5qsAXpimORKG4YdZJVA/KVYAeABgqWEY++I4vlmEhOM4OwFcJ6LXtm2PVCqVt1Pf63gPNBIODw+vTJJEk1hERHuklLemIyGEGGXmm0T00bKskWq1+vJP+2eNgE4uhFilnWDmhaZp7o6i6PafQLmuuznLMk3wy8DAgFb++T9zkQVBsHpycrJMRAsA7JJS6i/YX8vzvCBN0zsAJmzbLlWr1SfTOTWrDjSAeJ63Jk1TTWIeM+9USo3pZ77vO7Va7R4RpaZpbgnD8FFer3SFQL2x1xJRmZmHDMPYYRjG5zRNx5jZtCxrWxiGKg981z8lfN9fV6vVtPpzAHwHMGhZ1mgYhvrTvNDqmgMNdEKIDcz8k4R2Io7j8ULI65u6TkDj0JddlmVzwjB81gz4rpdQs2C7fg+0A3DXbuJOgO+X0O+qOo7T8z/1vT1W6fnBVs+PFusnQu8OdxsN3dPj9U6d9e2ImzuVaEeSTsboE+ikukVi9x0oolIn9/Qd6KS6RWL/AKoA8UCTs3wEAAAAAElFTkSuQmCC"},"91f9":function(t,s,a){"use strict";a.r(s);a("55dd");var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"wrap"},[s("div",{staticClass:"header-sub"},[s("div",{staticClass:"header-sub-middle"},[s("div",{staticClass:"header-top"},[s("img",{staticClass:"logo-img",attrs:{src:a("cf05")},on:{click:function(s){return t.$router.push("/")}}}),s("header-top-select"),t._m(0)],1),s("div",{staticClass:"header-bottom"},[s("ul",{staticClass:"header-tab-list"},[s("li",{staticClass:"active",on:{click:function(s){return t.$router.push("/secondary-page")}}},[t._v("钥盛自营")]),s("li",{on:{click:function(s){return t.$router.push("/entry-page")}}},[t._v("入驻钥盛")])])])])]),s("div",{staticClass:"middle-container"},[s("div",{staticClass:"tab-wrap",staticStyle:{"margin-top":"50px"}},[s("ul",{staticClass:"tab-list"},[s("li",{class:{active:1===t.params.sort},on:{click:function(s){return t.checkSort(1)}}},[t._v("\n\t\t\t\t\t\t综合\n\t\t\t\t\t")]),s("li",{class:{active:2===t.params.sort},on:{click:function(s){return t.checkSort(2)}}},[t._v("\n\t\t\t\t\t\t销量\n\t\t\t\t\t")]),s("li",{class:{active:3===t.params.sort},on:{click:function(s){return t.checkSort(3)}}},[t._v("\n\t\t\t\t\t\t好评\n\t\t\t\t\t")])]),s("div",{staticClass:"price-box"},[t._m(1),s("div",{staticClass:"input-box"},[s("span",{staticClass:"input-box-symbol"},[t._v("¥")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.params.min,expression:"params.min"}],staticClass:"input-box-input",attrs:{type:"text"},domProps:{value:t.params.min},on:{blur:function(s){return t.priceInputBlur(s,"min")},input:function(s){s.target.composing||t.$set(t.params,"min",s.target.value)}}})]),s("span",{staticClass:"line"}),s("div",{staticClass:"input-box"},[s("span",{staticClass:"input-box-symbol"},[t._v("¥")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.params.max,expression:"params.max"}],staticClass:"input-box-input",attrs:{type:"text"},domProps:{value:t.params.max},on:{blur:function(s){return t.priceInputBlur(s,"max")},input:function(s){s.target.composing||t.$set(t.params,"max",s.target.value)}}})])])]),s("div",{staticClass:"more-recommendations-module"},[s("ul",{staticClass:"more-recommendations-list"},t._l(t.list,(function(e,n){return s("li",{key:n,on:{click:function(s){return t.$router.push("/product-details?goods_id=".concat(e.goods_id,"&sku_id=").concat(e.sku_id))}}},[s("img",{staticClass:"recommendations-img",attrs:{src:t.BASE_URL+e.goods_image}}),s("div",{staticClass:"recommendations-item-bottom"},[s("div",{staticClass:"recommendations-name-row"},[s("img",{staticClass:"recommendations-tag",attrs:{src:a("e8cc")}}),s("span",[t._v(t._s(e.goods_name))])]),s("div",{staticClass:"recommendations-between"},[s("span",{staticClass:"font-1"},[t._v("¥"+t._s(e.price))]),s("span",{staticClass:"font-3"},[t._v("¥"+t._s(e.market_price))])]),s("div",{staticClass:"recommendations-between"},[s("span",{staticClass:"font-2"},[t._v("月销"+t._s(e.sale_num)+"笔")]),s("span",{staticClass:"font-2"},[t._v("库存"+t._s(e.goods_stock)+"件")])]),s("div",{staticClass:"recommendations-store-row"},[s("img",{staticClass:"store-icon",attrs:{src:a("3318")}}),t._v("\n 品牌:"+t._s(e.brand_name)+"\n ")])])])})),0)])])])},n=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"search-bar"},[s("input",{staticClass:"search-input",attrs:{type:"",placeholder:"滋养补品",name:"",id:"",value:""}}),s("button",{staticClass:"search-btn",attrs:{type:"button"}},[s("img",{attrs:{src:a("fd67")}})])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"price-font-box"},[t._v("\n\t\t\t\t\t\t价格\n\t\t\t\t\t\t"),s("p",{staticClass:"screen-box"},[s("img",{staticClass:"screen-top",attrs:{src:a("2e3f")}}),s("img",{staticClass:"screen-bottom",attrs:{src:a("679a")}})])])}],i=a("75fc"),o=a("325c"),r=a("f523"),c=a("a49b"),l=a("159f"),u={components:{HeaderTopSelect:l["a"]},data:function(){return{BASE_URL:c["a"],params:{page:1,sort:1,min:"",max:""},list:[],loading:!1,noMore:!1}},mounted:function(){var t=this;this.getList(),Object(o["b"])((function(){return t.getList()}))},methods:{priceInputBlur:function(t,s){var a=t.target.value;a.length>0&&!isNaN(a)&&(this.params[s]=parseFloat(a)),this.loading||(this.params.page=1,this.noMore=!1,this.getList())},checkSort:function(t){this.loading||(this.params.sort=t,this.params.page=1,this.noMore=!1,this.getList())},getList:function(){var t=this;this.noMore||this.loading||(this.loading=!0,r["g"].self_support(this.params).then((function(s){var a=s.data,e=a.list;t.list=1===t.params.page?e:[].concat(Object(i["a"])(t.list),Object(i["a"])(e)),0===e.length?t.noMore=!0:t.params.page+=1})).catch((function(){t.loading=!0,t.noMore=!0})).finally((function(){return t.loading=!1})))}}},A=u,m=(a("ee00"),a("2877")),d=Object(m["a"])(A,e,n,!1,null,"a666fb2a",null);s["default"]=d.exports},ee00:function(t,s,a){"use strict";a("10bb")}}]);
- //# sourceMappingURL=chunk-40ee8d8d.486e414b.js.map
|