| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[19,4,7],{518:function(t,e,r){"use strict";var n=r(3),o=r(35),c=r(14),l=r(9),path=r(315),d=r(6),f=r(113),h=r(15),_=r(203),v=r(63),m=r(112),y=r(314),w=r(5),x=r(92).f,C=r(57).f,k=r(26).f,O=r(316),E=r(313).trim,S="Number",L=l[S],I=path[S],P=L.prototype,j=l.TypeError,A=d("".slice),N=d("".charCodeAt),$=function(t){var e=y(t,"number");return"bigint"==typeof e?e:T(e)},T=function(t){var e,r,n,o,c,l,d,code,f=y(t,"number");if(m(f))throw j("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=E(f),43===(e=N(f,0))||45===e){if(88===(r=N(f,2))||120===r)return NaN}else if(48===e){switch(N(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(l=(c=A(f,2)).length,d=0;d<l;d++)if((code=N(c,d))<48||code>o)return NaN;return parseInt(c,n)}return+f},G=f(S,!L(" 0o1")||!L("0b1")||L("+0x1")),R=function(t){return v(P,t)&&w((function(){O(t)}))},D=function(t){var e=arguments.length<1?0:L($(t));return R(this)?_(Object(e),this,D):e};D.prototype=P,G&&!o&&(P.constructor=D),n({global:!0,constructor:!0,wrap:!0,forced:G},{Number:D});var z=function(t,source){for(var e,r=c?x(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0;r.length>n;n++)h(source,e=r[n])&&!h(t,e)&&k(t,e,C(source,e))};o&&I&&z(path[S],I),(G||o)&&z(path[S],L)},519:function(t,e,r){},522:function(t,e,r){"use strict";r(519)},523:function(t,e,r){"use strict";r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return l}));var n=r(1);function o(t){return Object(n.a)({url:"/api/goodscollect/iscollect",data:t,forceLogin:!0})}function c(t){return Object(n.a)({url:"/api/goodscollect/add",data:t,forceLogin:!0})}function l(t){return Object(n.a)({url:"/api/goodscollect/delete",data:t,forceLogin:!0})}},529:function(t,e,r){"use strict";r.r(e);r(25),r(24),r(23),r(8),r(29),r(17),r(30);var n=r(4),o=(r(518),r(12)),c=r(204);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var d={name:"goods_recommend",props:{page:{type:[Number,String],default:1},pageSize:{type:[Number,String],default:5}},data:function(){return{loading:!0,list:[]}},created:function(){this.getGoodsRecommend()},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(o.b)(["defaultGoodsImage"])),methods:{getGoodsRecommend:function(){var t=this;Object(c.e)({page:this.page,page_size:this.pageSize}).then((function(e){0==e.code&&(t.list=e.data.list),t.loading=!1})).catch((function(e){t.loading=!1}))},imageError:function(t){this.list[t].sku_image=this.defaultGoodsImage}}},f=d,h=(r(522),r(7)),component=Object(h.a)(f,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"goods-recommend"},[e("h4",[t._v("商品精选")]),t._v(" "),t.list.length?e("ul",t._l(t.list,(function(r,n){return e("li",{key:n,on:{click:function(e){return t.$util.pushToTab({path:"/sku/"+r.sku_id})}}},[e("div",{staticClass:"img-wrap"},[e("img",{attrs:{src:t.$img(r.sku_image,{size:"mid"})},on:{error:function(e){return t.imageError(n)}}})]),t._v(" "),e("div",{staticClass:"price"},[t._v("¥"+t._s(r.discount_price))]),t._v(" "),e("p",{staticClass:"sku-name"},[t._v(t._s(r.goods_name))]),t._v(" "),e("div",{staticClass:"info-wrap"})])})),0):t._e()])}),[],!1,null,"a68a46cc",null);e.default=component.exports},530:function(t,e,r){t.exports=r.p+"img/goods_empty.288af96.png"},535:function(t,e,r){},550:function(t,e,r){"use strict";r(535)},570:function(t,e,r){"use strict";var n=r(3),o=r(6),c=r(48),l=r(43),d=r(58),f=r(327),h=r(18),_=r(5),v=r(326),m=r(212),y=r(655),w=r(656),x=r(115),C=r(657),k=[],O=o(k.sort),E=o(k.push),S=_((function(){k.sort(void 0)})),L=_((function(){k.sort(null)})),I=m("sort"),P=!_((function(){if(x)return x<70;if(!(y&&y>3)){if(w)return!0;if(C)return C<603;var code,t,e,r,n="";for(code=65;code<76;code++){switch(t=String.fromCharCode(code),code){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(r=0;r<47;r++)k.push({k:t+r,v:e})}for(k.sort((function(a,b){return b.v-a.v})),r=0;r<k.length;r++)t=k[r].k.charAt(0),n.charAt(n.length-1)!==t&&(n+=t);return"DGBEFHACIJK"!==n}}));n({target:"Array",proto:!0,forced:S||!L||!I||!P},{sort:function(t){void 0!==t&&c(t);var e=l(this);if(P)return void 0===t?O(e):O(e,t);var r,n,o=[],_=d(e);for(n=0;n<_;n++)n in e&&E(o,e[n]);for(v(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:h(e)>h(r)?1:-1}}(t)),r=d(o),n=0;n<r;)e[n]=o[n++];for(;n<_;)f(e,n++);return e}})},571:function(t,e,r){},632:function(t,e,r){"use strict";r.r(e);r(23),r(8),r(93),r(56),r(317);function n(t,e){void 0===e&&(e={});for(var r=function(t){for(var e=[],i=0;i<t.length;){var r=t[i];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)e.push({type:"CHAR",index:i,value:t[i++]});else{var n=1,pattern="";if("?"===t[c=i+1])throw new TypeError('Pattern cannot start with "?" at '+c);for(;c<t.length;)if("\\"!==t[c]){if(")"===t[c]){if(0==--n){c++;break}}else if("("===t[c]&&(n++,"?"!==t[c+1]))throw new TypeError("Capturing groups are not allowed at "+c);pattern+=t[c++]}else pattern+=t[c++]+t[c++];if(n)throw new TypeError("Unbalanced pattern at "+i);if(!pattern)throw new TypeError("Missing pattern at "+i);e.push({type:"PATTERN",index:i,value:pattern}),i=c}else{for(var o="",c=i+1;c<t.length;){var code=t.charCodeAt(c);if(!(code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122||95===code))break;o+=t[c++]}if(!o)throw new TypeError("Missing parameter name at "+i);e.push({type:"NAME",index:i,value:o}),i=c}else e.push({type:"CLOSE",index:i,value:t[i++]});else e.push({type:"OPEN",index:i,value:t[i++]});else e.push({type:"ESCAPED_CHAR",index:i++,value:t[i++]});else e.push({type:"MODIFIER",index:i,value:t[i++]})}return e.push({type:"END",index:i,value:""}),e}(t),n=e.prefixes,o=void 0===n?"./":n,l="[^"+c(e.delimiter||"/#?")+"]+?",d=[],f=0,i=0,path="",h=function(t){if(i<r.length&&r[i].type===t)return r[i++].value},_=function(t){var e=h(t);if(void 0!==e)return e;var n=r[i],o=n.type,c=n.index;throw new TypeError("Unexpected "+o+" at "+c+", expected "+t)},v=function(){for(var t,e="";t=h("CHAR")||h("ESCAPED_CHAR");)e+=t;return e};i<r.length;){var m=h("CHAR"),y=h("NAME"),pattern=h("PATTERN");if(y||pattern){var w=m||"";-1===o.indexOf(w)&&(path+=w,w=""),path&&(d.push(path),path=""),d.push({name:y||f++,prefix:w,suffix:"",pattern:pattern||l,modifier:h("MODIFIER")||""})}else{var x=m||h("ESCAPED_CHAR");if(x)path+=x;else if(path&&(d.push(path),path=""),h("OPEN")){w=v();var C=h("NAME")||"",k=h("PATTERN")||"",O=v();_("CLOSE"),d.push({name:C||(k?f++:""),pattern:C&&!k?l:k,prefix:w,suffix:O,modifier:h("MODIFIER")||""})}else _("END")}}return d}function o(t,e){return function(t,e){void 0===e&&(e={});var r=l(e),n=e.encode,o=void 0===n?function(t){return t}:n,c=e.validate,d=void 0===c||c,f=t.map((function(t){if("object"==typeof t)return new RegExp("^(?:"+t.pattern+")$",r)}));return function(data){for(var path="",i=0;i<t.length;i++){var e=t[i];if("string"!=typeof e){var r=data?data[e.name]:void 0,n="?"===e.modifier||"*"===e.modifier,c="*"===e.modifier||"+"===e.modifier;if(Array.isArray(r)){if(!c)throw new TypeError('Expected "'+e.name+'" to not repeat, but got an array');if(0===r.length){if(n)continue;throw new TypeError('Expected "'+e.name+'" to not be empty')}for(var l=0;l<r.length;l++){var h=o(r[l],e);if(d&&!f[i].test(h))throw new TypeError('Expected all "'+e.name+'" to match "'+e.pattern+'", but got "'+h+'"');path+=e.prefix+h+e.suffix}}else if("string"!=typeof r&&"number"!=typeof r){if(!n){var _=c?"an array":"a string";throw new TypeError('Expected "'+e.name+'" to be '+_)}}else{h=o(String(r),e);if(d&&!f[i].test(h))throw new TypeError('Expected "'+e.name+'" to match "'+e.pattern+'", but got "'+h+'"');path+=e.prefix+h+e.suffix}}else path+=e}return path}}(n(t,e),e)}function c(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(t){return t&&t.sensitive?"":"i"}var d={props:{hasExtItem:!1},data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.matched.filter((function(t){return t.meta&&t.meta.title})),e=t[0];this.isHome(e)||(t=[{path:"/index",meta:{title:"首页"}}].concat(t)),this.levelList=t.filter((function(t){return t.meta&&t.meta.title&&!1!==t.meta.breadcrumb}))},isHome:function(t){var e=t&&t.name;return!!e&&e.trim().toLocaleLowerCase()==="index".toLocaleLowerCase()},pathCompile:function(path){var t=this.$route.params;return o(path)(t)},handleLink:function(t){var e=t.redirect,path=t.path;e?this.$router.push(e):this.$router.push(this.pathCompile(path))}}},f=(r(550),r(7)),component=Object(f.a)(d,(function(){var t=this,e=t._self._c;return e("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[e("transition-group",{attrs:{name:"breadcrumb"}},[t._l(t.levelList,(function(r,n){return e("el-breadcrumb-item",{key:r.path},[0==n?e("span",[e("i",{staticClass:"el-icon-s-home"})]):t._e(),t._v(" "),"noRedirect"===r.redirect||n==t.levelList.length-1?e("span",{staticClass:"no-redirect"},[t._v(t._s(r.meta.title))]):e("a",{on:{click:function(e){return e.preventDefault(),t.handleLink(r)}}},[t._v(t._s(r.meta.title))])])})),t._v(" "),t.hasExtItem?e("el-breadcrumb-item",{key:"ext_item"},[t._t("ext_item")],2):t._e()],2)],1)}),[],!1,null,"66cc7143",null);e.default=component.exports},655:function(t,e,r){var n=r(95).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},656:function(t,e,r){var n=r(95);t.exports=/MSIE|Trident/.test(n)},657:function(t,e,r){var n=r(95).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},658:function(t,e,r){"use strict";r(571)},741:function(t,e,r){"use strict";r.r(e);r(570);var n=r(632),o=r(529),c=(r(25),r(24),r(23),r(29),r(30),r(20)),l=r(4),d=(r(94),r(93),r(8),r(17),r(207),r(74),r(518),r(204)),f=r(12),h=r(151),_=r(523);function v(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function m(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(e){Object(l.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var y={data:function(){return{cargoList:[],shopList:[],brandList:[],attributeList:[],brandInitialList:[],currentInitial:"",choosedBrand:"",hasChoosedAttrs:!1,total:0,keyword:"",catewords:"",currentPage:1,pageSize:25,is_free_shipping:0,is_own:"",filters:{site_id:0,category_id:0,category_level:0,brand_id:0,min_price:"",max_price:"",order:"",sort:"desc",coupon:0},loading:!0,whetherCollection:0,first_index:0,two_index:0,first_child_list:[],first_index_active:0,testingNumberState:!1}},created:function(){this.keyword=this.$route.query.keyword||"",this.$route.query.keyword&&(window.document.title="".concat(this.$route.query.keyword," - ").concat(this.siteInfo.site_name)),this.filters.category_id=this.$route.query.category_id||"",this.filters.category_level=this.$route.query.level||"",this.filters.brand_id=this.$route.query.brand_id||"",this.filters.coupon=this.$route.query.coupon||0,this.getGoodsList(),this.$route.query.category_id&&this.categorySearch()},computed:m({},Object(f.b)(["defaultGoodsImage","siteInfo"])),methods:{categorySearch:function(){var t=this;Object(h.b)({category_id:this.filters.category_id}).then((function(e){0==e.code&&e.data&&(t.catewords=e.data.category_full_name,t.first_index=e.data.category_id_1,t.two_index=e.data.category_id_2,t.first_child_list=e.data.child_list,t.first_index_active=t.filters.category_id,window.document.title="".concat(e.data.category_name," - ").concat(t.siteInfo.site_name))})).catch((function(t){}))},setFiindex:function(t){this.first_index_active=t.category_id,window.document.title="".concat(t.category_name," - ").concat(this.siteInfo.site_name)},setSiindex:function(){this.first_index_active=0},addToCart:function(t){var e=this;this.$store.dispatch("cart/add_to_cart",t).then((function(t){t.data>0&&e.$message({message:"加入购物车成功",type:"success"})})).catch((function(t){return t}))},isCollect:function(t){var e=this;return Object(c.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(_.c)({goods_id:t.goods_id}).then((function(r){e.whetherCollection=r.data,0==e.whetherCollection?t.isCollection=!1:t.isCollection=!0})).catch((function(t){return t}));case 2:case"end":return r.stop()}}),r)})))()},editCollection:function(t){var e=this;return Object(c.a)(regeneratorRuntime.mark((function r(){var n,o,c,l,d,f;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.isCollect(t);case 2:if(n=t.goods_id,o=t.sku_id,c=t.site_id,l=t.sku_name,d=t.sku_price,f=t.sku_image,0!=e.whetherCollection){r.next=8;break}return r.next=6,Object(_.a)({goods_id:n,sku_id:o,site_id:c,sku_name:l,sku_price:d,sku_image:f}).then((function(r){e.$message({message:"收藏成功",type:"success"}),t.isCollection=!0})).catch((function(t){return t}));case 6:r.next=10;break;case 8:return r.next=10,Object(_.b)({goods_id:n}).then((function(r){r.data>0&&(e.$message({message:"取消收藏成功",type:"success"}),t.isCollection=!1)})).catch((function(t){return t}));case 10:case"end":return r.stop()}}),r)})))()},getGoodsList:function(){var t=this,e=[];this.attributeList&&this.attributeList.forEach((function(t){t.child&&t.child.forEach((function(r){r.selected&&e.push({attr_id:t.attr_id,attr_value_id:r.attr_value_id})}))}));var r=m({page:this.currentPage,page_size:this.pageSize,site_id:this.filters.siteId,keyword:this.keyword,attr:e.length>0?JSON.stringify(e):""},this.filters);Object(d.h)(r||{}).then((function(e){var r=e.data,n=r.count,o=(r.page_count,r.list);t.total=n,t.cargoList=o,t.loading=!1})).catch((function(e){t.loading=!1}))},onChooseBrand:function(t){this.choosedBrand=t,this.filters.brand_id=t.id,this.getGoodsList()},setMuiltChoose:function(t){this.$set(t,"isMuiltSelect",!t.isMuiltSelect),this.getGoodsList()},setAttrSelected:function(t,e){var r=this;t.child&&t.child.forEach((function(t){r.$set(t,"selected",!1)})),this.$set(e,"selected",!0),this.$set(t,"selectedValue",e.attr_value_name),this.getGoodsList()},setAttrSelectedMuilt:function(t,e){this.$set(e,"selected",!e.selected);var r=[];e.selected?(""==(r=(t.selectedValue||"").split(","))[0]&&r.pop(0),-1==r.indexOf(e.attr_value_name)&&r.push(e.attr_value_name)):(""==(r=(t.selectedValue||"").split(","))[0]&&r.pop(0),-1!==r.indexOf(e.attr_value_name)&&r.splice(r.indexOf(e.attr_value_name),1));this.$set(t,"selectedValue",r.toString()),this.getGoodsList()},colseBrand:function(){this.choosedBrand="",this.filters.brand_id="",this.getGoodsList()},colseAttr:function(t){t.selectedValue="",t.child.forEach((function(t){t.selected=!1})),t.isMuiltSelect=!1,this.getGoodsList()},handlePageSizeChange:function(t){this.pageSize=t,this.getGoodsList()},handleCurrentPageChange:function(t){this.currentPage=t,this.getGoodsList()},handlePriceRange:function(){if(Number(this.filters.min_price)>Number(this.filters.max_price)){var t=[this.filters.max_price,this.filters.min_price];this.filters.min_price=t[0],this.filters.max_price=t[1]}this.getGoodsList()},handleChangeInitial:function(t){this.currentInitial=t},changeSort:function(t){this.filters.order===t?this.$set(this.filters,"sort","desc"===this.filters.sort?"asc":"desc"):(this.$set(this.filters,"order",t),this.$set(this.filters,"sort","desc")),this.getGoodsList()}},watch:{is_free_shipping:function(t){this.filters.is_free_shipping=t?1:"",this.getGoodsList()},is_own:function(t){this.filters.is_own=t?1:"",this.getGoodsList()},$route:function(t){this.currentPage=1,t.query.keyword&&(window.document.title="".concat(t.query.keyword," - ").concat(this.siteInfo.site_name)),t.query.level?(this.filters.category_level=t.query.level,this.filters.category_id=t.query.category_id,this.getGoodsList(),this.categorySearch()):(this.first_index=0,this.two_index=0,this.first_index_active=0,window.document.title="".concat(this.siteInfo.site_name)),null==t.query.category_id&&(this.catewords="",this.keyword=t.query.keyword,this.filters.category_id=t.query.category_id||"",this.filters.category_level=t.query.level||"",this.filters.brand_id=t.query.brand_id||"",this.getGoodsList())}}},w={name:"list",components:{BreadCrumbs:n.default,GoodsRecommend:o.default},data:function(){return{}},mixins:[y],created:function(){},computed:{salesArrowDirection:function(){return"sale_num"===this.filters.order&&"desc"===this.filters.sort?"arrow-down":"arrow-up"},priceArrowDirection:function(){return"discount_price"===this.filters.order&&"desc"===this.filters.sort?"arrow-down":"arrow-up"}},methods:{showPrice:function(data){var t=data.discount_price;return data.member_price&&parseFloat(data.member_price)<parseFloat(t)&&(t=data.member_price),t}}},x=(r(658),r(7)),component=Object(x.a)(w,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods-container"},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"goods-list"},[t.keyword?e("div",{staticClass:"goods-nav"},[e("router-link",{attrs:{to:"/"}},[t._v("首页")]),t._v(" "),e("span",[t._v("/")]),t._v(" "),e("span",{staticClass:"keyword"},[t._v(t._s(t.keyword))])],1):!t.keyword&&t.catewords?e("div",{staticClass:"goods-nav"},[e("router-link",{attrs:{to:"/"}},[t._v("首页")]),t._v(" "),e("span",[t._v("/")]),t._v(" "),e("router-link",{attrs:{to:{path:"/goods/list",query:{category_id:t.first_index,level:1}}}},[t._v(t._s(t.catewords.split("/")[0]))]),t._v(" "),2!=t.filters.category_level&&3!=t.filters.category_level||!t.catewords.split("/")[1]?t._e():e("span",[t._v("/")]),t._v(" "),2!=t.filters.category_level&&3!=t.filters.category_level||!t.catewords.split("/")[1]?t._e():e("span",{staticClass:"keyword"},[t._v(t._s(t.catewords.split("/")[1]))])],1):t._e(),t._v(" "),e("div",{staticClass:"goods-screen-wrap"},[!t.keyword&&t.first_child_list?e("div",{staticClass:"goods-screen-item classify-info"},[e("span",{staticClass:"screen-item-name"},[t._v("分类:")]),t._v(" "),e("ul",{staticClass:"screen-item-content"},[e("li",{class:{active:0==t.first_index_active},on:{click:function(e){return t.setSiindex()}}},[e("router-link",{attrs:{to:{path:"/goods/list",query:{category_id:t.two_index,level:2}}}},[t._v("全部")])],1),t._v(" "),t._l(t.first_child_list,(function(r){return t.filters.category_id?e("li",{class:{active:r.category_id==t.first_index_active},on:{click:function(e){return t.setFiindex(r)}}},[e("router-link",{attrs:{to:{path:"/goods/list",query:{category_id:r.category_id,level:r.level}}}},[t._v(t._s(r.category_name))])],1):t._e()}))],2)]):t._e(),t._v(" "),e("div",{staticClass:"goods-screen-item other-screen-info"},[e("span",{staticClass:"screen-item-name"},[t._v("筛选:")]),t._v(" "),e("div",{staticClass:"screen-item-content"},[e("div",{staticClass:"item",on:{click:function(e){return t.changeSort("")}}},[e("div",{staticClass:"item-name"},[t._v("综合")])]),t._v(" "),e("div",{class:["item","search-arrow",t.salesArrowDirection],on:{click:function(e){return t.changeSort("sale_num")}}},[t._v("销量")]),t._v(" "),e("div",{class:["item","search-arrow",t.priceArrowDirection],on:{click:function(e){return t.changeSort("discount_price")}}},[t._v("价格")]),t._v(" "),e("div",{staticClass:"item-other"},[e("el-checkbox",{attrs:{label:"包邮"},model:{value:t.is_free_shipping,callback:function(e){t.is_free_shipping=e},expression:"is_free_shipping"}})],1),t._v(" "),e("div",{staticClass:"input-wrap"},[e("div",{staticClass:"price_range"},[e("el-input",{attrs:{placeholder:"最低价格"},model:{value:t.filters.min_price,callback:function(e){t.$set(t.filters,"min_price",e)},expression:"filters.min_price"}}),t._v(" "),e("span",[t._v("—")]),t._v(" "),e("el-input",{attrs:{placeholder:"最高价格"},model:{value:t.filters.max_price,callback:function(e){t.$set(t.filters,"max_price",e)},expression:"filters.max_price"}})],1),t._v(" "),e("el-button",{attrs:{plain:"",size:"mini"},on:{click:t.handlePriceRange}},[t._v("确定")])],1)])])]),t._v(" "),[t.brandList.length||t.attributeList.length?e("div",{staticClass:"category"}):t._e()],t._v(" "),e("div",{staticClass:"list-wrap"},[e("div",{staticClass:"list-right"},[t.cargoList.length?e("div",{staticClass:"cargo-list"},[e("div",{staticClass:"goods-info"},t._l(t.cargoList,(function(r,n){return e("div",{key:r.goods_id,staticClass:"item",on:{click:function(e){return t.$router.push({path:"/sku/"+r.sku_id})}}},[e("img",{staticClass:"img-wrap",attrs:{src:t.$img(r.goods_image,{size:"mid"})},on:{error:function(e){r.goods_image=t.defaultGoodsImage}}}),t._v(" "),e("div",{staticClass:"price-wrap"},[e("div",{staticClass:"price"},[e("span",[t._v("¥")]),t._v(" "),e("span",[t._v(t._s(t.showPrice(r)))]),t._v(" "),e("div",{staticClass:"price-icon-wrap"},[r.member_price&&r.member_price==t.showPrice(r)?e("img",{attrs:{src:t.$img("public/uniapp/index/VIP.png")}}):1==r.promotion_type?e("img",{attrs:{src:t.$img("public/uniapp/index/discount.png")}}):t._e()])]),t._v(" "),parseInt(r.market_price)?e("div",{staticClass:"market-price"},[t._v("¥"+t._s(r.market_price))]):t._e()]),t._v(" "),e("div",{staticClass:"goods-name"},[t._v(t._s(r.goods_name))]),t._v(" "),e("div",{staticClass:"other-info"},[e("span",{staticClass:"sale-num"},[t._v(t._s(r.sale_num||0)+"人付款")]),t._v(" "),e("div",{staticClass:"saling"},[1==r.is_free_shipping?e("div",{staticClass:"free-shipping"},[t._v("包邮")]):t._e(),t._v(" "),1==r.promotion_type?e("div",{staticClass:"free-shipping"},[t._v("限时折扣")]):t._e()])])])})),0),t._v(" "),e("div",{staticClass:"pager"},[e("el-pagination",{attrs:{background:"","pager-count":5,total:t.total,"prev-text":"上一页","next-text":"下一页","current-page":t.currentPage,"page-size":t.pageSize,"hide-on-single-page":""},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handlePageSizeChange,"current-change":t.handleCurrentPageChange}})],1)]):t.loading?t._e():e("div",{staticClass:"empty"},[e("img",{attrs:{src:r(530)}}),t._v(" "),e("span",[t._v("没有找到您想要的商品。换个条件试试吧")])])])])],2)])}),[],!1,null,null,null);e.default=component.exports}}]);
|