brandZone-brand-brand.a2f3daae.js 32 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["brandZone-brand-brand"],{"0195":function(t,e,n){var i=n("c86c");e=i(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-f55d4a30] .u-form-item--right__content__slot > uni-view,[data-v-f55d4a30] .u-form-item--right__content__slot > div,[data-v-f55d4a30] .u-form-item--right__content__slot > span,[data-v-f55d4a30] .u-form-item--right__content__slot > uni-text{width:100%}.toolsMore[data-v-f55d4a30]{padding:%?30?% 0;text-align:center;color:#c1c1c1;font-size:%?22?%}',""]),t.exports=e},"0959":function(t,e,n){"use strict";n.r(e);var i=n("ff50"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"18a8":function(t,e,n){"use strict";n.r(e);var i=n("c6b3"),a=n("be0b");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("5391");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"6f7670dc",null,!1,i["a"],void 0);e["default"]=s.exports},"19b0":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uIcon:n("0852").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-image",style:[t.wrapStyle,t.backgroundStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.isError?t._e():n("v-uni-image",{staticClass:"u-image__image",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)},attrs:{src:t.src,mode:t.mode,"lazy-load":t.lazyLoad,"show-menu-by-longpress":t.showMenuByLongpress},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.onErrorHandler.apply(void 0,arguments)},load:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadHandler.apply(void 0,arguments)}}}),t.showLoading&&t.loading?n("v-uni-view",{staticClass:"u-image__loading",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius),backgroundColor:this.bgColor}},[t.$slots.loading?t._t("loading"):n("u-icon",{attrs:{name:t.loadingIcon,width:t.width,height:t.height}})],2):t._e(),t.showError&&t.isError&&!t.loading?n("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)}},[t.$slots.error?t._t("error"):n("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})],2):t._e()],1)},o=[]},"1c62":function(t,e,n){"use strict";var i=n("a779"),a=n.n(i);a.a},"1c9f":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("b7c7")),o=i(n("9b1b")),r=i(n("2634")),s=i(n("2fdc"));n("4100"),n("fd3c"),n("aa9c"),n("e966");var d=i(n("2ba3")),c=(n("f2aa"),i(n("3dcd"))),l=i(n("a06d")),u={props:{brand_id:{type:String}},components:{Shenhe:d.default,toolsMore:c.default},computed:{getPrice:function(){return function(t){return t?t.split("."):["0","00"]}}},data:function(){return{list:[],cat_list:[],cat_id:void 0,pageNo:1,pageSize:10,isEnd:!1,goods_list:[],moreStatus:1,sort:0,sort_type:1,obj:{}}},created:function(){},mounted:function(){console.log("组件id",this.brand_id),this.getCatList()},methods:{filterItem:function(t,e){this.sort=t,this.sort_type=e,this.newGoods()},filterItemfan:function(t){this.sort=t,1==this.sort_type?this.sort_type=0:0==this.sort_type&&(this.sort_type=1),this.newGoods()},btnSure:function(){var t=this;l.default.userBrandSubscribe({id:this.brand_id}).then((function(e){e.code||(t.newGetCatList(),uni.showToast({title:e.msg,duration:2e3}))}))},newGetCatList:function(){var t=this;return(0,s.default)((0,r.default)().mark((function e(){return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:l.default.brandInfo({id:t.brand_id}).then((function(e){e.code||(t.obj=e.data.brand)}));case 1:case"end":return e.stop()}}),e)})))()},newGoods:function(){this.goods_list=[],this.pageNo=1,this.isEnd=!1,this.getGoodsList()},toAddcart:function(t){console.log("点击了",t),uni.$emit("diyAddGood1",t)},toGoods:function(t){uni.navigateTo({url:"/goods/goods/goods?id="+t})},clear:function(t){t!==this.cat_id&&(this.goods_list=[],this.pageNo=1,this.isEnd=!1,this.cat_id=t,this.getGoodsList())},getCatList:function(){var t=this;return(0,s.default)((0,r.default)().mark((function e(){return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:l.default.brandInfo({id:t.brand_id}).then((function(e){e.code||(console.log("我是分类",e),t.obj=e.data.brand,t.cat_list=e.data.cat_list||[],t.cat_list&&t.cat_list.length&&(t.cat_id=t.cat_list[0].id,t.getGoodsList()))}));case 1:case"end":return e.stop()}}),e)})))()},getGoodsList:function(){var t=this;return(0,s.default)((0,r.default)().mark((function e(){return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:l.default.goodsList({brand_id:t.brand_id,cat_id:t.cat_id,pageNo:t.pageNo,pageSize:t.pageSize,sort:t.sort,sort_type:t.sort_type}).then((function(e){if(uni.stopPullDownRefresh(),t.moreStatus=1,!e.code){var n=t.goods_list,i=e.data.list;console.log("数据",i),i.length&&(i=i.map((function(t){return(0,o.default)((0,o.default)({},t),{},{catNum:0})})),n.push.apply(n,(0,a.default)(i)),t.pageNo=t.pageNo+1),n.length>=parseInt(e.data.row_count,10)&&(t.isEnd=!0,t.moreStatus=3,console.log("走到了底部了"))}}));case 1:case"end":return e.stop()}}),e)})))()},scrolltolower:function(){this.isEnd||this.getGoodsList()}}};e.default=u},"261c":function(t,e,n){"use strict";n.r(e);var i=n("b60c"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"265a":function(t,e,n){var i=n("c86c");e=i(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-f3bda46a] .u-form-item--right__content__slot > uni-view,[data-v-f3bda46a] .u-form-item--right__content__slot > div,[data-v-f3bda46a] .u-form-item--right__content__slot > span,[data-v-f3bda46a] .u-form-item--right__content__slot > uni-text{width:100%}.all[data-v-f3bda46a]{width:%?750?%;background:#f2f2f2;min-height:100vh}.bg[data-v-f3bda46a]{background-position:50%;background-size:cover;background-repeat:no-repeat;height:%?430?%}.search-nav[data-v-f3bda46a]{width:100%;font-family:PingFang SC;position:fixed;left:0;top:0;z-index:201}.search-nav .nav-head[data-v-f3bda46a]{display:flex;align-items:center}.search-nav .nav-head .back-icon[data-v-f3bda46a]{width:%?90?%;display:flex;justify-content:center;align-items:center}.search-nav .nav-head .back-icon uni-image[data-v-f3bda46a]{width:%?36?%;height:%?36?%;display:block}.search-nav .nav-head .search-input[data-v-f3bda46a]{flex:1;overflow:hidden;height:100%}.search-nav .nav-head .search-input uni-input[data-v-f3bda46a]{width:100%;height:100%;background:#f2f2f2;font-size:%?28?%;font-weight:400;padding:0 %?20?%;box-sizing:border-box}.search-nav[data-v-f3bda46a]::after{content:"";width:100%;height:100%;background-color:#fff}.cat[data-v-f3bda46a]{width:%?90?%;height:%?90?%;background:linear-gradient(90deg,#f22407,#f84d17);box-shadow:%?0?% %?6?% %?12?% %?2?% rgba(0,0,0,.16);border-radius:%?120?% %?120?% %?120?% %?120?%;display:flex;align-items:center;justify-content:center;position:fixed;bottom:%?96?%;right:%?48?%}.cat .num[data-v-f3bda46a]{position:absolute;top:%?-8?%;right:%?-8?%;width:%?36?%;height:%?36?%;background:#f62f1f;border:%?2?% solid #fff;border-radius:%?120?%;color:#fff;font-size:%?20?%;display:flex;align-items:center;justify-content:center}',""]),t.exports=e},"3dcd":function(t,e,n){"use strict";n.r(e);var i=n("afd1"),a=n("d44d");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("1c62");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"f55d4a30",null,!1,i["a"],void 0);e["default"]=s.exports},4179:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var i={props:{status:{type:Number,default:1}},data:function(){return{}},computed:{getMoreStatus:function(){var t;switch(this.status){case 1:t="loadmore";break;case 2:t="loading";break;case 3:t="nomore";break}return t}}};e.default=i},"525e":function(t,e,n){var i=n("7220");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("1bef9900",i,!0,{sourceMap:!1,shadowMode:!1})},5277:function(t,e,n){var i=n("c86c");e=i(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-6f7670dc] .u-form-item--right__content__slot > uni-view,[data-v-6f7670dc] .u-form-item--right__content__slot > div,[data-v-6f7670dc] .u-form-item--right__content__slot > span,[data-v-6f7670dc] .u-form-item--right__content__slot > uni-text{width:100%}.content[data-v-6f7670dc]{padding:%?24?%}.content .felx[data-v-6f7670dc]{display:flex;align-items:center}.content .felx .right[data-v-6f7670dc]{margin-left:%?24?%}.content .felx .right .name[data-v-6f7670dc]{font-weight:600;font-size:%?40?%;color:#fff}.content .felx .right .status[data-v-6f7670dc]{font-weight:400;font-size:%?24?%;color:#fff;margin-top:%?10?%}.content .felx .right .status .ml20[data-v-6f7670dc]{margin-left:%?20?%}.content .address[data-v-6f7670dc]{font-weight:400;font-size:%?24?%;color:#fff;margin-top:%?24?%}.title[data-v-6f7670dc]{margin:%?-240?% auto %?0?%}.page[data-v-6f7670dc]{display:flex;height:75vh;overflow:hidden}.pageLeft[data-v-6f7670dc]{width:%?168?%;height:100%;background:#f2f2f2;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.pageLeft .item[data-v-6f7670dc]{position:relative;display:flex;align-items:center;justify-content:center;height:%?94?%;text-align:center;font-size:%?24?%;color:#1d1d1d}.pageLeft .item.active[data-v-6f7670dc]{color:#f0250e;font-weight:700;background:#fff}.pageLeft .item.active .line[data-v-6f7670dc]{position:absolute;left:0;top:%?24?%;bottom:%?24?%;width:%?8?%;background:#f0250e;border-radius:%?0?% %?4?% %?4?% %?0?%}.pageRight[data-v-6f7670dc]{flex:1;overflow:hidden;height:100%;background:#fff;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.scroll[data-v-6f7670dc]{height:100%;overflow-y:auto}.list[data-v-6f7670dc]{padding:0 %?24?% %?24?%}.list .item[data-v-6f7670dc]{position:relative;display:flex;padding:%?24?% 0;background:#fff;border-radius:%?20?%}.list .item[data-v-6f7670dc]:after{content:"";position:absolute;left:0;bottom:0;left:%?192?%;right:0;height:1px;background:#f2f2f2}.list .img[data-v-6f7670dc]{position:relative;margin-right:%?20?%;width:%?172?%;height:%?172?%}.list .img uni-image[data-v-6f7670dc]{display:block;width:100%;height:100%;border-radius:%?16?%}.list .flex[data-v-6f7670dc]{display:flex;align-items:center;justify-content:space-between}.list .con[data-v-6f7670dc]{flex:1;overflow:hidden;font-size:%?24?%;color:#8c8c8c}.list .name[data-v-6f7670dc]{overflow:hidden;flex:1;font-size:%?30?%;font-weight:700;color:#262626;text-overflow:ellipsis;white-space:nowrap}.list .des[data-v-6f7670dc]{padding:%?6?% 0 %?6?%;font-size:%?24?%}.list .miao[data-v-6f7670dc]{width:%?96?%;height:%?28?%;background:#fff;border-radius:%?6?% %?6?% %?6?% %?6?%;border:%?2?% solid #ff5560;font-weight:400;font-size:%?20?%;color:#f32b0a;line-height:%?25?%;text-align:center}.list .conFd[data-v-6f7670dc]{display:flex;justify-content:space-between;align-items:center}.list .conFd .let[data-v-6f7670dc]{flex:1;overflow:hidden;display:flex;flex-direction:column;padding-top:%?10?%}.list .conFd .let .flex[data-v-6f7670dc]{display:flex;align-items:center;justify-content:start}.list .conFd .let .price[data-v-6f7670dc]{display:flex;align-items:flex-end;margin-right:%?10?%;color:#f0250e;font-size:%?24?%}.list .conFd .let .price[data-v-6f7670dc]:before{content:"¥"}.list .conFd .let .price .s1[data-v-6f7670dc]{font-size:%?36?%;line-height:1.1;font-weight:700}.list .conFd .rig[data-v-6f7670dc]{padding:%?6?% %?18?%;border-radius:32px;font-size:%?24?%;color:#fff;background:linear-gradient(90deg,#f22407,#f84d17)}.oldPrice[data-v-6f7670dc]{position:relative}.oldPrice[data-v-6f7670dc]:after{content:"";position:absolute;left:0;top:50%;width:100%;height:1px;background:#888}.wd[data-v-6f7670dc]{flex-grow:1;display:flex;justify-content:flex-end;margin-right:%?10?%}.wd .iconBg[data-v-6f7670dc]{width:%?42?%;height:%?42?%;background:#f0250e;border-radius:%?16?%;display:flex;align-items:center;justify-content:center;position:relative}.wd .iconBg .num[data-v-6f7670dc]{position:absolute;top:%?-8?%;right:%?-8?%;width:%?24?%;height:%?24?%;background:#f87f27;border-radius:%?120?%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:%?18?%}.wd .nextGo[data-v-6f7670dc]{background:#f0250e;display:flex;align-items:center;justify-content:center;width:%?122?%;border-radius:%?16?%;height:%?42?%;color:#fff;font-size:%?22?%}.iconsd[data-v-6f7670dc]{width:%?108?%;height:%?50?%;background:linear-gradient(270deg,#f22407,#f84d17);border-radius:%?12?%;display:flex;align-items:center;justify-content:center;margin-left:%?200?%}.iconsd .iconf[data-v-6f7670dc]{color:#fff;font-weight:600;font-size:%?24?%}.iconsd .name[data-v-6f7670dc]{font-weight:600;font-size:%?24?%;color:#fff}.iconsd1[data-v-6f7670dc]{width:%?108?%;height:%?50?%;background:#cb7243;border-radius:%?12?%;display:flex;align-items:center;justify-content:center;margin-left:%?200?%}.iconsd1 .name[data-v-6f7670dc]{font-weight:600;font-size:%?24?%;color:#fff}.flexText[data-v-6f7670dc]{display:flex;align-items:center;justify-content:space-around}.flexText .name[data-v-6f7670dc]{padding-top:%?24?%;font-weight:400;font-size:%?26?%;color:#262626}.flexText .flex[data-v-6f7670dc]{display:flex;align-items:center}.active1[data-v-6f7670dc]{color:#f0250e!important}.ml10[data-v-6f7670dc]{margin-left:%?10?%}',""]),t.exports=e},"52f4":function(t,e,n){"use strict";n.r(e);var i=n("5355"),a=n("261c");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("e25c");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"f3bda46a",null,!1,i["a"],void 0);e["default"]=s.exports},5355:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uIcon:n("0852").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"all"},[n("v-uni-view",{staticClass:"bg",style:{backgroundImage:"url("+t.obj.brand_bg+")"}},[n("v-uni-view",{staticClass:"search-nav",style:{paddingTop:t.statusBarHeight+"px"}},[n("v-uni-view",{staticClass:"nav-head",style:{height:"80rpx"}},[n("v-uni-view",{staticClass:"back-icon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:t.asyncImgs.images.left_arrow_icon,mode:""}})],1)],1)],1),n("v-uni-view",{style:{paddingTop:t.statusBarHeight+"px",paddingBottom:"80rpx"}})],1),n("templateTwo",{ref:"child",attrs:{brand_id:t.brand_id}}),n("v-uni-view",{staticClass:"cat",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goCat.apply(void 0,arguments)}}},[n("u-icon",{attrs:{name:"shopping-cart",size:"50rpx",color:"#fff"}}),n("v-uni-view",{staticClass:"num"},[t._v(t._s(t.cartNum<100?t.cartNum:"99+"))])],1),n("goodsAddCart",{attrs:{good:t.good},on:{over:function(e){arguments[0]=e=t.$handleEvent(e),t.handleOver.apply(void 0,arguments)}}})],1)},o=[]},5391:function(t,e,n){"use strict";var i=n("ed03"),a=n.n(i);a.a},7220:function(t,e,n){var i=n("c86c");e=i(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-722e0642] .u-form-item--right__content__slot > uni-view,[data-v-722e0642] .u-form-item--right__content__slot > div,[data-v-722e0642] .u-form-item--right__content__slot > span,[data-v-722e0642] .u-form-item--right__content__slot > uni-text{width:100%}.u-image[data-v-722e0642]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-722e0642]{width:100%;height:100%}.u-image__loading[data-v-722e0642], .u-image__error[data-v-722e0642]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#f3f4f6;color:#909399;font-size:%?46?%}',""]),t.exports=e},a06d:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("cc29")),o={getBrandCatList:function(t,e){return a.default.GET("/goods-brand/get-brand-cat-list",t,e)},getList:function(t,e){return a.default.GET("/goods-brand/get-list",t,e)},userBrandSubscribe:function(t,e){return a.default.POST("/goods-brand/user-brand-subscribe",t,e)},brandInfo:function(t,e){return a.default.GET("/goods-brand/brand-info",t,e)},goodsList:function(t,e){return a.default.GET("/default/goods-list",t,e)},purchaseCatList:function(t,e){return a.default.GET("/goods/goods-purchase-cat-list",t,e)},purchaseGoodsList:function(t,e){return a.default.GET("/goods/goods-purchase-list",t,e)}};e.default=o},a4b3:function(t,e,n){"use strict";n.r(e);var i=n("19b0"),a=n("0959");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("e33f");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"722e0642",null,!1,i["a"],void 0);e["default"]=s.exports},a779:function(t,e,n){var i=n("0195");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("3d3bab13",i,!0,{sourceMap:!1,shadowMode:!1})},afd1:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uLoadmore:n("c9bb").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"toolsMore",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("more")}}},[n("u-loadmore",{attrs:{status:t.getMoreStatus,icon:!0}})],1)},o=[]},b60c:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d4b5");var a=i(n("2634")),o=i(n("2fdc")),r=i(n("18a8")),s=i(n("9d19")),d=i(n("a06d")),c={components:{templateTwo:r.default,goodsAddCart:s.default},data:function(){return{noMore:!1,page:1,limit:20,newList:[],template:0,mch_id:0,obj:{},longitude:"",latitude:"",one_store_switch_store:!1,dis:"",cat_List:[],good:{},brand_id:null}},onLoad:function(t){var e=this;return(0,o.default)((0,a.default)().mark((function n(){return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.brand_id=t.id,e.newsGetCatList(),uni.$on("diyAddGood1",e.toAddcart);case 3:case"end":return n.stop()}}),n)})))()},onReachBottom:function(){this.getList(!0)},computed:{cartNum:function(){return this.$store.getters.cartNum}},methods:{newsGetCatList:function(){var t=this;return(0,o.default)((0,a.default)().mark((function e(){return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:d.default.brandInfo({id:t.brand_id}).then((function(e){e.code||(t.obj=e.data.brand)}));case 1:case"end":return e.stop()}}),e)})))()},handleOver:function(t){console.log("value",t),t&&this.getCat()},toAddcart:function(t){var e=this;this.good=JSON.parse(JSON.stringify(t)),setTimeout((function(){e.good={}}),1)},getCat:function(){var t=this;this.$allrequest.goodscart.getCartList().then((function(e){t.$refs.child.newGoods(),e.data.mch_list[0]&&(t.cat_List=e.data.mch_list[0].list)}))},goBack:function(){uni.navigateBack()},goCat:function(){this.$utils.toUrl("/pages/shoppingcart/shoppingcart","reLaunch")}}};e.default=c},be0b:function(t,e,n){"use strict";n.r(e);var i=n("1c9f"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},c225:function(t,e,n){var i=n("265a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("6d2de427",i,!0,{sourceMap:!1,shadowMode:!1})},c6b3:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uImage:n("a4b3").default,uIcon:n("0852").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return 0==t.shenheStatus?n("v-uni-view",{staticClass:"title"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"felx"},[n("u-image",{attrs:{width:"100rpx",height:"100rpx",src:t.obj.brand_logo,"border-radius":"10rpx"}}),n("v-uni-view",{staticClass:"right"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(t.obj.brand_name))]),n("v-uni-view",{staticClass:"status"},[n("v-uni-text",[t._v(t._s(t.obj.goods_num)+"个素材")]),n("v-uni-text",{staticStyle:{"padding-left":"20rpx"}},[t._v(t._s(t.obj.subscribe_num)+"人订阅")])],1)],1),0==t.obj.is_subscribe?n("v-uni-view",{staticClass:"iconsd",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.btnSure()}}},[n("v-uni-view",{staticClass:"iconf"},[t._v("+")]),n("v-uni-view",{staticClass:"name"},[t._v("订阅")])],1):n("v-uni-view",{staticClass:"iconsd1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.btnSure()}}},[n("v-uni-view",{staticClass:"name"},[t._v("已订阅")])],1)],1),n("v-uni-view",{staticClass:"address"},[t._v(t._s(t.obj.brand_desc||"暂无简介"))])],1),n("v-uni-view",{staticClass:"page"},[n("v-uni-view",{staticClass:"pageLeft"},[n("v-uni-scroll-view",{staticClass:"scroll",attrs:{"scroll-y":!0}},t._l(t.cat_list,(function(e,i){return n("v-uni-view",{key:e.id,class:["item",e.id===t.cat_id?"active":""],on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.clear(e.id)}}},[n("v-uni-view",{staticClass:"line"}),t._v(t._s(e.name))],1)})),1)],1),n("v-uni-view",{staticClass:"pageRight"},[n("v-uni-view",{staticClass:"flexText"},[n("v-uni-view",{staticClass:"name",class:{active1:0==t.sort},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.filterItem(0,1)}}},[t._v("综合")]),n("v-uni-view",{staticClass:"name flex"},[n("v-uni-view",{class:{active1:3==t.sort},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.filterItem(3,1)}}},[t._v("销量")]),n("v-uni-view",{staticClass:"ml10",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.filterItemfan(3)}}},[n("v-uni-view",{staticStyle:{display:"flex","align-items":"flex-end"}},[n("u-icon",{attrs:{name:"arrow-up-fill",color:3==t.sort&&1==t.sort_type?"#F0250E":"#262626",size:"15"}})],1),n("v-uni-view",{staticStyle:{display:"flex","align-items":"flex-start"}},[n("u-icon",{attrs:{name:"arrow-down-fill",color:3==t.sort&&0==t.sort_type?"#F0250E":"#262626",size:"15"}})],1)],1)],1),n("v-uni-view",{staticClass:"name flex"},[n("v-uni-view",{class:{active1:2==t.sort},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.filterItem(2,1)}}},[t._v("价格")]),n("v-uni-view",{staticClass:"ml10",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.filterItemfan(2)}}},[n("v-uni-view",{staticStyle:{display:"flex","align-items":"flex-end"}},[n("u-icon",{attrs:{name:"arrow-up-fill",color:2==t.sort&&1==t.sort_type?"#F0250E":"#262626",size:"15"}})],1),n("v-uni-view",{staticStyle:{display:"flex","align-items":"flex-start"}},[n("u-icon",{attrs:{name:"arrow-down-fill",color:2==t.sort&&0==t.sort_type?"#F0250E":"#262626",size:"15"}})],1)],1)],1)],1),n("v-uni-scroll-view",{staticClass:"scroll",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"list"},t._l(t.goods_list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toGoods(e.id)}}},[n("v-uni-view",{staticClass:"img"},[n("v-uni-image",{attrs:{mode:"aspectFill",src:e.pic_url,"lazy-load":!0}})],1),n("v-uni-view",{staticClass:"con"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.name))]),n("v-uni-view",{staticClass:"des"},[t._v(t._s(e.desc&&e.desc.length?e.desc.join(" · "):""))]),n("v-uni-view",{staticStyle:{"font-weight":"400","font-size":"24rpx",color:"#9B9B9B"}},[t._v("已售 "+t._s(e.sales))]),n("v-uni-view",{staticClass:"conFd"},[n("v-uni-view",{staticClass:"let"},[n("v-uni-view",{staticClass:"flex"},[n("v-uni-view",{staticClass:"price"},[n("v-uni-view",{staticClass:"s1"},[t._v(t._s(t.getPrice(e.price)[0]))]),n("v-uni-view",[t._v("."+t._s(t.getPrice(e.price)[1]))])],1),n("v-uni-view",{staticClass:"oldPrice"},[t._v("¥"+t._s(e.original_price))]),n("v-uni-view",{staticClass:"wd"},[1!=e.product_type?n("v-uni-view",{staticClass:"iconBg",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.toAddcart(e)}}},[n("u-icon",{attrs:{name:"plus",color:"#FFF"}}),0!=e.cart_num?n("v-uni-view",{staticClass:"num"},[t._v(t._s(e.cart_num))]):t._e()],1):n("v-uni-view",{staticClass:"nextGo"},[t._v("立即预订")])],1)],1)],1)],1)],1)],1)})),1),n("toolsMore",{attrs:{status:t.moreStatus}})],1)],1)],1)],1):1==t.shenheStatus?n("Shenhe"):t._e()},o=[]},d44d:function(t,e,n){"use strict";n.r(e);var i=n("4179"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},e25c:function(t,e,n){"use strict";var i=n("c225"),a=n.n(i);a.a},e33f:function(t,e,n){"use strict";var i=n("525e"),a=n.n(i);a.a},ed03:function(t,e,n){var i=n("5277");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("2c4cd10d",i,!0,{sourceMap:!1,shadowMode:!1})},f2aa:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.goodsCateList=function(t,e){return a.default.GET("/worker/worker-goods-cate-list",t,e)},e.goodsInfo=function(t,e){return a.default.GET("/worker/worker-goods-info",t,e)},e.goodsList=function(t,e){return a.default.GET("/worker/worker-goods-list",t,e)},e.orderCancel=function(t,e){return a.default.GET("/worker-order/worker-order-cancel",t,e)},e.orderCancelReason=function(t,e){return a.default.GET("/worker-order/worker-order-cancel-reason",t,e)},e.orderGoodsInfo=function(t,e){return a.default.GET("/worker-order/get-order-goods-info",t,e)},e.orderInfo=function(t,e){return a.default.GET("/worker-order/worker-order-info",t,e)},e.orderList=function(t,e){return a.default.GET("/worker-order/worker-order-list",t,e)},e.orderProgress=function(t,e){return a.default.GET("/worker-order/worker-order-progress",t,e)},e.workerIndex=function(t,e){return a.default.GET("/worker/worker-index",t,e)},e.workerInfo=function(t,e){return a.default.GET("/worker/worker-info",t,e)},e.workerList=function(t,e){return a.default.GET("/worker/worker-list",t,e)};var a=i(n("cc29"))},ff50:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var i={name:"u-image",props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"auto"},shape:{type:String,default:"square"},borderRadius:{type:[String,Number],default:0},lazyLoad:{type:Boolean,default:!0},showMenuByLongpress:{type:Boolean,default:!0},loadingIcon:{type:String,default:"photo"},errorIcon:{type:String,default:"error-circle"},showLoading:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},fade:{type:Boolean,default:!0},webp:{type:Boolean,default:!1},duration:{type:[String,Number],default:500},bgColor:{type:String,default:"#f3f4f6"}},data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{}}},watch:{src:{immediate:!0,handler:function(t){t?(this.isError=!1,this.loading=!0):(this.isError=!0,this.loading=!1)}}},computed:{wrapStyle:function(){var t={};return t.width=this.$u.addUnit(this.width),t.height=this.$u.addUnit(this.height),t.borderRadius="circle"==this.shape?"50%":this.$u.addUnit(this.borderRadius),t.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(t.opacity=this.opacity,t.transition="opacity ".concat(Number(this.durationTime)/1e3,"s ease-in-out")),t}},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(t){this.loading=!1,this.isError=!0,this.$emit("error",t)},onLoadHandler:function(){var t=this;if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((function(){t.durationTime=t.duration,t.opacity=1,setTimeout((function(){t.removeBgColor()}),t.durationTime)}),50)},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};e.default=i}}]);