pages-columnGoods-goods_coupon_list-index.e7b6411e.js 31 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-columnGoods-goods_coupon_list-index"],{"0f66":function(t,e,i){"use strict";i.r(e);var a=i("6a66"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},2489:function(t,e,i){"use strict";i.r(e);var a=i("9517"),n=i("fc01");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("538e");var o=i("828b"),r=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"4ee84db4",null,!1,a["a"],void 0);e["default"]=r.exports},"538e":function(t,e,i){"use strict";var a=i("8a5b"),n=i.n(a);n.a},5897:function(t,e,i){var a=i("7216");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("8b6a9852",a,!0,{sourceMap:!1,shadowMode:!1})},"5e81":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[i("v-uni-view",{staticClass:"productList"},[i("v-uni-view",{staticClass:"search acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"back",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.set_where(1)}}},[i("v-uni-view",{staticClass:"iconfont icon-ic_leftarrow"})],1),i("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[i("v-uni-text",{staticClass:"iconfont icon-ic_search"}),i("v-uni-input",{attrs:{placeholder:"输入商品名称搜索","placeholder-class":"placeholder","confirm-type":"search",name:"search",value:t.where.keyword},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.searchSubmit.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"nav-wrapper"},[i("v-uni-view",{staticClass:"nav acea-row row-middle"},[i("v-uni-view",{staticClass:"item",class:{"t-color":t.downKey>0&&0==t.firstKey},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.downStatus=!t.downStatus}}},[t._v(t._s(t.downMenu[t.downKey].title)),(t.downStatus,i("v-uni-text",{staticClass:"iconfont icon-ic_downarrow"}))],1),i("v-uni-view",{staticClass:"item",class:{"t-color":3==t.firstKey},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.set_where(3)}}},[t._v("销量")]),i("v-uni-view",{staticClass:"item",class:{"t-color":2==t.firstKey},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.set_where(2)}}},[t._v("价格"),1==t.price?i("v-uni-image",{attrs:{src:t.domain+"/static/diy/up"+t.keyColor+".png"}}):2==t.price?i("v-uni-image",{attrs:{src:t.domain+"/static/diy/down"+t.keyColor+".png"}}):i("v-uni-image",{attrs:{src:t.domain+"/static/images/horn.png"}})],1),i("v-uni-view",{staticClass:"item",class:{"t-color":4==t.firstKey},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindRight.apply(void 0,arguments)}}},[t._v("筛选"),i("v-uni-text",{staticClass:"iconfont icon-ic_sort"})],1)],1)],1),[i("v-uni-view",{staticClass:"container"},[t.productList.length>0?i("v-uni-view",{staticClass:"coupon_count acea-row"},[i("v-uni-text",{staticClass:"text"},[t._v("以下商品适用于")]),i("v-uni-text",{staticClass:"coupon_used",style:{"background-image":"url("+t.domain+"/static/diy/coupon"+t.keyColor+".png)"}},[t._v("满"+t._s(t.couponData.use_min_price)+"减"+t._s(t.couponData.coupon_price))])],1):t._e(),i("v-uni-view",{staticClass:"list acea-row row-between-wrapper on"},t._l(t.productList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.godDetail(e)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.image}})],1),i("v-uni-view",{staticClass:"text on acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"name line1"},[i("v-uni-text",{staticClass:"text_name line2"},[t._v(t._s(e.store_name))])],1),i("v-uni-view",{staticClass:"item_bot"},[i("v-uni-view",{staticClass:"acea-row"},[i("v-uni-view",{staticClass:"money t-color"},[i("priceFormat",{attrs:{price:e.price,weight:!0,intSize:"40",floatSize:"26",labelSize:"26"}})],1),e.show_svip_info.show_svip_price&&e.svip_price?i("v-uni-view",{staticClass:"acea-row row-middle svip-count"},[i("v-uni-text",{staticClass:"vip-money regular"},[t._v("¥"+t._s(e.svip_price))]),i("v-uni-view",{staticClass:"vipImg"},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/svip.png"}})],1)],1):t._e()],1),i("v-uni-view",{staticClass:"item_tags acea-row"},[e.merchant.type_name&&0==e.product_type?i("v-uni-text",{staticClass:"font-bg-red"},[t._v(t._s(e.merchant.type_name))]):e.merchant.is_trader&&0==e.product_type?i("v-uni-text",{staticClass:"font-bg-red"},[t._v("自营")]):t._e(),0!=e.product_type?i("v-uni-text",{class:"font_bg-red type"+e.product_type},[t._v(t._s(1==e.product_type?"秒杀":2==e.product_type?"预售":3==e.product_type?"助力":4==e.product_type?"拼团":""))]):t._e(),e.issetCoupon?i("v-uni-text",{staticClass:"tags_item ticket"},[t._v("领券")]):t._e(),1==e.delivery_free?i("v-uni-text",{staticClass:"tags_item delivery"},[t._v("包邮")]):t._e()],1),i("v-uni-view",{staticClass:"score"},[t._v(t._s(e.rate)+"评分 "+t._s(e.reply_count)+"条评论")]),e.merchant?i("v-uni-view",{staticClass:"company",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goShop(e.mer_id)}}},[i("v-uni-text",{staticClass:"line1"},[t._v(t._s(e.merchant.mer_name))]),i("v-uni-view",{staticClass:"flex"},[t._v("进店"),i("v-uni-text",{staticClass:"iconfont icon-ic_rightarrow"})],1)],1):t._e(),3!=e.product_type?i("v-uni-view",{staticClass:"add-cart acea-row row-middle row-center",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.selecAttr(e)}}},[i("v-uni-text",{staticClass:"iconfont icon-ic_ShoppingCart1"})],1):t._e()],1)],1)],1)})),1)],1),0==t.productList.length&&t.where.page>1?i("v-uni-view",{staticClass:"noCommodity"},[i("v-uni-view",{staticClass:"pictrue",staticStyle:{margin:"60rpx auto"}},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/no_thing.png"}}),i("v-uni-view",[t._v("暂无商品,去看点什么吧")])],1),1==t.recommend_switch?i("recommend",{attrs:{hostProduct:t.hostProduct,isLogin:t.isLogin}}):t._e()],1):t._e()],t.rightBox&&t.brandStataus&&t.parmasStatus?i("rightSlider",{attrs:{price_on:t.where.price_on,price_off:t.where.price_off,status:t.rightBox&&t.brandStataus&&t.parmasStatus,brandList:t.brandList,storeTypeArr:t.storeTypeArr,parmasList:t.parmasList},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e()],2),t.downStatus?i("v-uni-view",{staticClass:"down-wrapper"},[i("v-uni-view",{staticClass:"bg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.downStatus=!1}}}),i("v-uni-view",{staticClass:"down-box"},t._l(t.downMenu,(function(e,a){return i("v-uni-view",{key:e.key,staticClass:"down-item",class:{on:a==t.downKey},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindDown(e,a)}}},[t._v(t._s(e.title)),a==t.downKey?i("v-uni-text",{staticClass:"iconfont icon-ic_complete"}):t._e()],1)})),1)],1):t._e(),i("productWindow",{attrs:{attr:t.attr,isShow:!0,iSplus:1,destri:0,isList:!0,id:"product-window",payLimit:t.pay_limit,maxCount:t.max_count,minCount:t.min_count,svipPrice:t.svipPrice,image:t.storeInfo.image},on:{myevent:function(e){arguments[0]=e=t.$handleEvent(e),t.onMyEvent.apply(void 0,arguments)},ChangeAttr:function(e){arguments[0]=e=t.$handleEvent(e),t.ChangeAttr.apply(void 0,arguments)},ChangeCartNum:function(e){arguments[0]=e=t.$handleEvent(e),t.ChangeCartNum.apply(void 0,arguments)},attrVal:function(e){arguments[0]=e=t.$handleEvent(e),t.attrVal.apply(void 0,arguments)},goCat:function(e){arguments[0]=e=t.$handleEvent(e),t.goCat.apply(void 0,arguments)},iptCartNum:function(e){arguments[0]=e=t.$handleEvent(e),t.iptCartNum.apply(void 0,arguments)}}})],1)},n=[]},"6a66":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("fd3c"),i("bf0f"),i("2797"),i("aa9c"),i("c223"),i("dc69");var n=a(i("39d8")),s=a(i("2634")),o=a(i("9b1b")),r=a(i("2fdc")),c=i("7e00"),u=a(i("d3e2")),d=a(i("2489")),l=a(i("0389")),p=i("d727"),h=i("8f59"),v=i("96e0"),f=i("aa10"),w=i("e44d"),m=a(i("1240")),_=i("4a82"),g=a(i("5b60")),y=(getApp(),(0,n.default)({computed:(0,v.configMap)({hide_mer_status:1,recommend_switch:0},(0,h.mapGetters)(["uid","isLogin","scrollTop","viewColor","keyColor"])),components:{recommend:u.default,rightSlider:d.default,WaterfallsFlow:l.default,productWindow:g.default},watch:{},data:function(){return{domain:f.HTTP_REQUEST_URL,productList:[],couponData:{},list:[],where:{coupon_id:"",cate_id:"",order:"",price_on:"",price_off:"",brand_id:"",keyword:"",page:1,limit:30},price:0,stock:0,nows:!1,loadend:!1,loading:!1,loadTitle:"加载更多",title:"",hostProduct:[],hotPage:1,hotLimit:10,hotScroll:!1,rightBox:!1,brandStataus:!1,parmasStatus:!1,brandList:[],parmasList:[],storeTypeArr:[],downKey:0,downStatus:!1,downMenu:[{title:"综合排序",key:1},{title:"评分",key:2},{title:"新品",key:3}],firstKey:0,tabIndex:1,storeList:[],sotreParam:{keyword:"",page:1,limit:30,order:""},storeKey:0,storeScroll:!0,max_count:0,min_count:0,pay_limit:1,svipData:{},svipPrice:!1,attr:{cartAttr:!1,productAttr:[],productSelect:{}},storeInfo:{},cart_num:1,isOpen:!1,selectedArr:[],productValue:[],attrValue:"",uniqueValue:""}},onPageScroll:function(){uni.$emit("scroll")},onLoad:function(t){this.$set(this.where,"cate_id",t.id||""),this.$set(this.where,"coupon_id",t.coupon_id||""),this.title=t.title||"",this.$set(this.where,"keyword",t.searchValue||""),this.get_product_list(!0),this.get_host_product()},onReady:function(){},mounted:function(){this.get_product_list(!0)},methods:{goShop:function(t){1!=this.hide_mer_status&&uni.navigateTo({url:"/pages/store/home/index?id=".concat(t)})},bindRight:function(){this.price=0,this.firstKey=4,this.brandList.length||this.getBrandlist(),this.storeTypeArr.length||this.getStoreType(),this.parmasList.length||this.getParmasList(),this.rightBox=!0},getStoreType:function(){var t=this;return(0,r.default)((0,s.default)().mark((function e(){var i;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],(0,c.getStoreTypeApi)().then((function(e){i=e.data.map((function(t){return(0,o.default)((0,o.default)({},t),{},{check:!1})})),t.storeTypeArr=i})).catch((function(e){t.$util.Tips({title:e})}));case 2:case"end":return e.stop()}}),e)})))()},getParmasList:function(){var t=this;return(0,r.default)((0,s.default)().mark((function e(){var i;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],(0,c.getParmasList)({cate_pid:t.where.cate_pid,keyword:t.where.keyword}).then((function(e){t.parmasStatus=!0,i=e.data.map((function(t){return(0,o.default)((0,o.default)({},t),{},{check:!1,showValue:!1,parmasValue:[]})})),t.parmasList=i})).catch((function(e){t.$util.Tips({title:e})}));case 2:case"end":return e.stop()}}),e)})))()},getBrandlist:function(){var t=this,e=[];(0,c.getBrandlist)({cate_id:this.where.cate_id,keyword:this.where.keyword}).then((function(i){t.brandStataus=!0,e=i.data.list.map((function(t){return(0,o.default)((0,o.default)({},t),{},{check:!1})})),t.brandList=e}))},godDetail:function(t){var e=this;(0,_.goShopDetail)(t,this.uid).then((function(i){e.isLogin?(0,p.initiateAssistApi)(t.activity_id).then((function(t){var e=t.data.product_assist_set_id;uni.navigateTo({url:"/pages/activity/assist_detail/index?id="+e})})).catch((function(t){uni.showToast({title:t,icon:"none"})})):(0,w.toLogin)()}))},confirm:function(t){var e=[];0==t.brandList.length?this.where.brand_id="":(t.brandList.forEach((function(t){e.push(t.brand_id)})),this.where.brand_id=e),this.rightBox=t.status,this.where.price_on=t.price_on,this.where.price_off=t.price_off,this.loadend=!1,this.$set(this.where,"page",1),this.get_product_list(!0)},close:function(){this.rightBox=!1},bindDown:function(t,e){this.firstKey=0,0==e?this.where.order="":1==e?this.where.order="rate":2==e&&(this.where.order="is_new"),this.downKey=e,this.downStatus=!1,this.loadend=!1,this.$set(this.where,"page",1),this.get_product_list(!0)},searchSubmit:function(t){this.$set(this.where,"keyword",t.detail.value),this.loadend=!1,this.$set(this.where,"page",1),this.get_product_list(!0)},get_host_product:function(){var t=this;t.hotScroll||(0,c.getProductHot)(t.hotPage,t.hotLimit).then((function(e){t.hotPage++,t.hotScroll=e.data.length<t.hotLimit,t.hostProduct=t.hostProduct.concat(e.data.list)}))},set_where:function(t){switch(t){case 1:uni.setStorageSync("storeIndex",this.where.cate_id),uni.navigateBack();break;case 2:this.firstKey=t,0==this.price?(this.price=1,this.where.order="price_asc"):1==this.price?(this.price=2,this.where.order="price_desc"):2==this.price&&(this.price=0,this.where.order=""),this.$set(this.where,"page",1),this.get_product_list(!0);break;case 3:this.price=0,this.loadend=!1,this.$set(this.where,"order","sales"),this.$set(this.where,"page",1),this.get_product_list(!0),this.firstKey=t;break}this.loadend=!1,this.$set(this.where,"page",1),this.get_product_list(!0)},get_product_list:function(t){var e=this,i=this;i.loadend||i.loading||(!0===t&&i.$set(i,"productList",[]),i.loading=!0,i.loadTitle="",(0,c.getCouponProductlist)(i.where).then((function(t){e.couponData=t.data.coupon;var a=t.data.list,n=i.$util.SplitArray(a,i.productList),s=a.length<i.where.limit;i.loadend=s,i.loading=!1,i.loadTitle=s?"已全部加载":"加载更多",i.$set(i,"productList",n),i.$set(i.where,"page",i.where.page+1)})).catch((function(t){i.loading=!1,i.loadTitle="加载更多"})))},selecAttr:function(t){var e=this,i=t.product?t.product.type:t.type;0==t.product_type&&0!=i||t.product_type>0||t.mer_form_id?e.godDetail(t):(e.storeInfo=t,m.default.getProductSpecs(t.spu_id,(function(i){e.$set(e,"attr",i.attr),e.$set(e.attr.productSelect,"store_name",t.store_name),e.$set(e,"productValue",i.productValue),e.$set(e,"attrValue",i.attrValue),e.$set(e,"svipPrice",t.show_svip_info&&t.show_svip_info.show_svip_price||!1),e.$set(e.attr,"cartAttr",!0),e.$set(e,"isOpen",!0)})))},onMyEvent:function(){this.$set(this.attr,"cartAttr",!1),this.$set(this,"isOpen",!1)},attrVal:function(t){this.$set(this.attr.productAttr[t.indexw],"index",this.attr.productAttr[t.indexw].attr_values[t.indexn])},iptCartNum:function(t){this.$set(this.attr.productSelect,"cart_num",t)},ChangeAttr:function(t){var e=this.productValue[t];this.attr.productSelect=(0,o.default)((0,o.default)({},this.attr.productSelect),e),(!e||e.stock<=0)&&(this.$set(this.attr.productSelect,"stock",0),this.$set(this.attr.productSelect,"unique",""),this.$set(this.attr.productSelect,"cart_num",0))},ChangeCartNum:function(t){var e=this.productValue[this.attrValue];m.default.ChangeCartNum(e,this.attr,t,(function(t){this.$set(this.attr.productSelect,"cart_num",t)}))},goCat:function(){var t=this,e=t.productValue[this.attrValue];if(t.attrValue?t.attr.cartAttr=!t.isOpen:t.isOpen?t.attr.cartAttr=!0:t.attr.cartAttr=!t.attr.cartAttr,!0===t.attr.cartAttr&&!1===t.isOpen)return t.isOpen=!0;if(t.isOpen=t.attr.cartAttr=!0,t.attr.productAttr.length&&!0===t.isOpen&&0==e.stock)return t.$util.Tips({title:"产品库存不足,请选择其它"});if(0==t.attr.productSelect.cart_num)return t.$util.Tips({title:"购买个数不能为0!"});var i={is_new:0,product_id:t.storeInfo.product_id,cart_num:t.attr.productSelect.cart_num,product_attr_unique:void 0!==t.attr.productSelect?t.attr.productSelect.unique:"",product_type:t.storeInfo.product_type};m.default.addCart(i,(function(){t.isOpen=t.attr.cartAttr=!1}))}},onPullDownRefresh:function(){},onReachBottom:function(){this.productList.length>0?this.get_product_list(""):this.get_host_product()}},"onPullDownRefresh",(function(){var t=this;setTimeout((function(){var e=t.productList.reverse();t.productList=e,uni.stopPullDownRefresh()}),500)})));e.default=y},7216:function(t,e,i){var a=i("c86c");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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.productList .search[data-v-6fe855ea]{width:100%;height:%?86?%;padding:0 %?20?%;box-sizing:border-box;position:fixed;left:0;top:0;z-index:9;background-color:var(--view-theme)}.productList .search .back[data-v-6fe855ea]{display:flex;align-items:center;width:%?40?%;height:%?60?%}.productList .search .back .iconfont[data-v-6fe855ea]{color:#fff;font-size:%?36?%}.font-bg-red[data-v-6fe855ea]{background-color:var(--view-theme)}.font-bg-red.type2[data-v-6fe855ea]{background-color:#fd6523}.productList .search .input[data-v-6fe855ea]{width:%?650?%;height:%?60?%;background-color:#fff;border-radius:%?50?%;padding:0 %?20?%;box-sizing:border-box}.productList .search .input uni-input[data-v-6fe855ea]{flex:1;height:100%;font-size:%?26?%;margin-left:%?10?%}.productList .search .input .placeholder[data-v-6fe855ea]{color:#ccc}.productList .search .input .iconfont[data-v-6fe855ea]{font-size:%?32?%;color:#999}.productList .nav-wrapper[data-v-6fe855ea]{z-index:9;position:fixed;left:0;top:0;width:100%;margin-top:%?86?%;background-color:var(--view-theme)}.productList .nav-wrapper .tab-bar[data-v-6fe855ea]{display:flex;align-items:center}.productList .nav-wrapper .tab-bar .tab-item[data-v-6fe855ea]{position:relative;flex:1;display:flex;justify-content:center;align-items:center;padding:%?8?% 0 %?20?%;color:#fff;font-size:%?28?%;font-weight:700}.productList .nav-wrapper .tab-bar .tab-item[data-v-6fe855ea]::after{content:" ";position:absolute;left:50%;bottom:%?18?%;width:%?30?%;height:%?3?%;background:transparent;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.productList .nav-wrapper .tab-bar .tab-item.on[data-v-6fe855ea]::after{background:#fff}.productList .nav[data-v-6fe855ea]{height:%?86?%;color:#454545;font-size:%?28?%;background-color:#fff;display:flex;justify-content:space-between;padding:0 %?28?%}.productList .nav .item[data-v-6fe855ea]{display:flex;align-items:center;justify-content:center;flex:1}.productList .nav .item.t-color[data-v-6fe855ea]{font-weight:700}.productList .nav .item uni-image[data-v-6fe855ea]{width:%?15?%;height:%?19?%;margin-left:%?10?%}.productList .list[data-v-6fe855ea]{padding:0 %?20?%}.productList .list.on[data-v-6fe855ea]{background-color:#fff;border-top:1px solid #f6f6f6}.item_tags[data-v-6fe855ea]{margin-top:%?8?%}.item_tags .tags_item[data-v-6fe855ea]{display:inline-block;font-size:%?20?%;text-align:center;border-radius:%?5?%;padding:0 %?4?%;line-height:%?28?%;margin-right:%?8?%}.item_tags .tags_item.ticket[data-v-6fe855ea]{color:var(--view-theme);border:%?1?% solid var(--view-theme)}.item_tags .tags_item.delivery[data-v-6fe855ea]{color:#ff9000;border:%?1?% solid #ff9000}.container[data-v-6fe855ea]{margin-top:%?168?%}.coupon_count[data-v-6fe855ea]{background:#fff6f6;padding:%?15?% %?30?% %?12?%;color:var(--view-theme);font-size:%?26?%;line-height:%?36?%}.coupon_count .text[data-v-6fe855ea]{padding:%?4?% 0}.coupon_used[data-v-6fe855ea]{display:flex;align-items:center;justify-content:center;max-width:%?300?%;padding:%?3?% %?16?%;margin-left:%?10?%;background-size:100% 100%;font-size:%?24?%;font-weight:400;color:var(--view-priceColor)}.svip-count[data-v-6fe855ea]{position:relative;top:%?4?%}.vip-money[data-v-6fe855ea]{color:#282828;font-size:%?22?%;margin-left:%?6?%;font-weight:700}.vipImg[data-v-6fe855ea]{width:%?65?%;height:%?28?%;margin-left:%?4?%}.vipImg uni-image[data-v-6fe855ea]{width:100%;height:100%;display:block}.noCommodity[data-v-6fe855ea]{padding-bottom:%?30?%}.icon-ic_downarrow[data-v-6fe855ea]{margin-top:%?6?%;font-size:%?24?%}.icon-ic_sort[data-v-6fe855ea]{font-size:%?30?%;margin-left:%?10?%}.down-wrapper .bg[data-v-6fe855ea]{z-index:8;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.down-wrapper .down-box[data-v-6fe855ea]{z-index:8;position:fixed;left:0;top:%?170?%;width:100%;padding:0 %?40?% %?28?% %?74?%;background-color:#f8f8f8;border-radius:0 0 %?24?% %?24?%}.down-wrapper .down-box .down-item[data-v-6fe855ea]{margin-top:%?28?%;font-size:%?24?%;color:#454545}.down-wrapper .down-box .down-item.on[data-v-6fe855ea]{color:var(--view-theme)}.down-wrapper .down-box .down-item .iconfont[data-v-6fe855ea]{float:right}.productList .list .item[data-v-6fe855ea]{width:100%;display:flex;padding-top:%?20?%;margin-bottom:%?40?%;position:relative}.productList .list .item .pictrue[data-v-6fe855ea]{width:%?240?%;height:%?240?%}.productList .list .item .pictrue uni-image[data-v-6fe855ea]{width:%?240?%;height:%?240?%;border-radius:%?16?%}.productList .list .item .text[data-v-6fe855ea]{font-size:%?28?%;width:%?460?%;padding:0 0 0 %?22?%;justify-content:space-between}.productList .list .item .text .name[data-v-6fe855ea], .productList .list .item .text .item_bot[data-v-6fe855ea]{width:100%}.productList .list .item .text .money[data-v-6fe855ea]{color:var(--view-priceColor)}.productList .list .item .text .score[data-v-6fe855ea]{margin-top:%?10?%;color:#737373;font-size:%?20?%}.productList .list .item .text .company[data-v-6fe855ea]{display:flex;align-items:center;color:#737373;font-size:%?20?%}.productList .list .item .text .company .name[data-v-6fe855ea]{display:inline-block;width:%?200?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.productList .list .item .text .company .flex[data-v-6fe855ea]{display:flex;align-items:center;margin-left:%?10?%;color:#282828}.productList .list .item .text .company .flex .iconfont[data-v-6fe855ea]{font-size:%?16?%;margin-top:%?4?%}',""]),t.exports=e},"80b0":function(t,e,i){var a=i("c86c");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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.store_type[data-v-4ee84db4]{position:relative;padding:0 %?26?%}.store_type .title[data-v-4ee84db4]{padding:%?40?% 0 %?20?%;font-size:%?26?%;font-weight:500;color:#282828}',""]),t.exports=e},"8a5b":function(t,e,i){var a=i("80b0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("5978de52",a,!0,{sourceMap:!1,shadowMode:!1})},9517:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"right-wrapper",style:t.viewColor,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.moveStop.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"control-wrapper animated",class:t.showBox?"slideInRight":""},[i("v-uni-view",{staticClass:"wrapper-count"},[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"title"},[t._v("价格区间")]),i("v-uni-view",{staticClass:"input-wrapper"},[i("v-uni-input",{attrs:{placeholder:"最低价",type:"number"},model:{value:t.min,callback:function(e){t.min=e},expression:"min"}}),i("v-uni-view",{staticClass:"line"}),i("v-uni-input",{attrs:{placeholder:"最高价",type:"number"},model:{value:t.max,callback:function(e){t.max=e},expression:"max"}})],1)],1),i("v-uni-view",{staticClass:"store_type content-border"},[i("v-uni-view",{staticClass:"title"},[t._v("商户类别")]),i("v-uni-view",{staticClass:"brand-wrapper"},[i("v-uni-view",{staticClass:"wrapper"},t._l(t.storeCateList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item line1",class:e.check?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindChenckType(e,a)}}},[t._v(t._s(e.name))])})),1)],1)],1),i("v-uni-view",{staticClass:"content-box"},[i("v-uni-view",{staticClass:"content-title"},[i("v-uni-view",{staticClass:"title"},[t._v("品牌")]),t.list.length>3?i("v-uni-view",[i("v-uni-view",{staticClass:"btns",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.isShowBrand=!t.isShowBrand}}},[t._v(t._s(t.isShowBrand?"收起":"展开")),i("v-uni-text",{staticClass:"iconfont",class:t.isShowBrand?"icon-ic_uparrow":"icon-ic_downarrow"})],1)],1):t._e()],1),i("v-uni-view",{staticClass:"brand-wrapper"},[i("v-uni-scroll-view",{style:{"max-height":t.isShowBrand?"90%":"100rpx"},attrs:{"scroll-y":t.isShowBrand}},[i("v-uni-view",{staticClass:"wrapper"},t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item line1",class:e.check?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindChenck(e,"brand")}}},[t._v(t._s(e.brand_name))])})),1)],1)],1)],1),i("v-uni-view",{staticClass:"content-box"},[i("v-uni-view",{staticClass:"content-title"},[i("v-uni-view",{staticClass:"title"},[t._v("店铺类型")]),t.storeTypeList.length>3?i("v-uni-view",[i("v-uni-view",{staticClass:"btns",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.isShowType=!t.isShowType}}},[t._v(t._s(t.isShowType?"收起":"展开")),i("v-uni-text",{staticClass:"iconfont",class:t.isShowType?"icon-ic_uparrow":"icon-ic_downarrow"})],1)],1):t._e()],1),i("v-uni-view",{staticClass:"brand-wrapper"},[i("v-uni-scroll-view",{style:{"max-height":t.isShowType?"90%":"100rpx"},attrs:{"scroll-y":t.isShowType}},[i("v-uni-view",{staticClass:"wrapper"},t._l(t.storeTypeList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item line1",class:e.check?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindChenck(e)}}},[t._v(t._s(e.type_name))])})),1)],1)],1)],1),i("v-uni-view",{staticClass:"content-border"},[i("v-uni-scroll-view",{staticStyle:{"max-height":"400rpx"},attrs:{"scroll-y":"true"}},t._l(t.productParmasList,(function(e,a){return i("v-uni-view",{staticClass:"content-box"},[i("v-uni-view",{staticClass:"content-title"},[i("v-uni-view",{staticClass:"title"},[t._v(t._s(e.name))]),i("v-uni-view",[i("v-uni-view",{staticClass:"btns",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.getParmasValue(e)}}},[t._v(t._s(e.showValue?"收起":"展开")),i("v-uni-text",{staticClass:"iconfont",class:e.showValue?"icon-ic_uparrow":"icon-ic_downarrow"})],1)],1)],1),e.parmasValue.length>0&&e.showValue?i("v-uni-view",{staticClass:"brand-wrapper"},[i("v-uni-scroll-view",{style:{"max-height":e.showValue?"90%":"100rpx"},attrs:{"scroll-y":t.isShowParmas}},[i("v-uni-view",{staticClass:"wrapper"},t._l(e.parmasValue,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item line1",class:e.check?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindChenck(e)}}},[t._v(t._s(e.value))])})),1)],1)],1):t._e()],1)})),1)],1)],1),i("v-uni-view",{staticClass:"foot-btn"},[i("v-uni-view",{staticClass:"btn-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.reset.apply(void 0,arguments)}}},[t._v("重置")]),i("v-uni-view",{staticClass:"btn-item confirm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[t._v("确定")])],1)],1),i("v-uni-view",{staticClass:"right-bg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1)},n=[]},b6fb:function(t,e,i){"use strict";i.r(e);var a=i("5e81"),n=i("0f66");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("c13d");var o=i("828b"),r=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"6fe855ea",null,!1,a["a"],void 0);e["default"]=r.exports},c13d:function(t,e,i){"use strict";var a=i("5897"),n=i.n(a);n.a},f70c:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("bf0f"),i("2797"),i("8f71"),i("aa9c");var a=i("8f59"),n=i("7e00"),s={props:{brandList:{type:Array},storeTypeArr:{type:Array},parmasList:{type:Array},status:{type:Boolean,default:!1},isCate:{type:Boolean,default:!1},price_on:{type:String,default:""},price_off:{type:String,default:""},activeIndex:{type:Number,default:0}},computed:(0,a.mapGetters)(["viewColor"]),data:function(){return{min:"",max:"",is_trader:"",isShow:!1,isShowBrand:!1,isShowType:!1,isShowParmas:!1,list:[],storeTypeList:[],productParmasList:[],storeCateList:[{name:"全部",value:"",check:!0},{name:"自营",value:"trader",check:!1},{name:"非自营",value:"trader",check:!1}],activeList:[],showBox:!1,index:this.activeIndex}},mounted:function(){this.list=this.brandList,this.storeTypeList=this.storeTypeArr,this.productParmasList=this.parmasList,this.showBox=this.status,this.min=this.price_on,this.max=this.price_off,this.bindChenckType({},this.activeIndex)},methods:{bindChenck:function(t,e){t.check=!t.check},bindChenckType:function(t,e){this.storeCateList=[{name:"全部",value:"",check:!1},{name:"自营",value:"trader",check:!1},{name:"非自营",value:"trader",check:!1}],this.storeCateList[e]["check"]=!0,this.is_trader=this.storeCateList[0]["check"]?"":this.storeCateList[1]["check"]?1:0,this.index=e},getParmasValue:function(t){t.showValue=!t.showValue,(0,n.getParmasValue)(t.parameter_id).then((function(e){e.data.forEach((function(t,e){t.check=!1})),t.parmasValue.length>0||(t.parmasValue=e.data)}))},arrFilter:function(t){var e;return e=t.filter((function(t){return 1==t.check})),e},reset:function(){this.list.forEach((function(t,e){t.check=!1})),this.storeTypeList.forEach((function(t,e){t.check=!1})),this.productParmasList.forEach((function(t,e){t.parmasValue.forEach((function(t,e){t.check=!1}))})),this.storeCateList=[{name:"全部",value:"",check:!0},{name:"自营",value:"trader",check:!1},{name:"非自营",value:"trader",check:!1}],this.min=this.max=""},confirm:function(){var t=[];this.productParmasList.forEach((function(e,i){e.parmasValue.forEach((function(e,i){e.check&&t.push(e.parameter_value_id)}))}));var e={brandList:this.arrFilter(this.list),typeList:this.arrFilter(this.storeTypeList),parmasList:t,price_on:this.min,price_off:this.max,status:!1,is_trader:this.is_trader};this.showBox=!1,this.$emit("confirm",e,this.index)},close:function(){this.showBox=!1,this.$emit("close")},moveStop:function(){}}};e.default=s},fc01:function(t,e,i){"use strict";i.r(e);var a=i("f70c"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a}}]);