(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_goods_collection-index"],{"104c":function(t,e,o){"use strict";o.r(e);var i=o("64fb"),n=o("5bfe");for(var r in n)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(r);o("495d");var a=o("f0c5"),s=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,"2e785e93",null,!1,i["a"],void 0);e["default"]=s.exports},"136f":function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.Popup[data-v-2e785e93]{flex:1;align-items:center;justify-content:center;width:%?500?%;background-color:#fff;position:fixed;top:%?500?%;left:%?125?%;z-index:1000;border-radius:8px;overflow:hidden}.Popup .logo-auth[data-v-2e785e93]{z-index:-1;position:absolute;left:50%;top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?150?%;height:%?150?%;display:flex;align-items:center;justify-content:center;border:%?8?% solid #fff;border-radius:50%;background:#fff}.Popup .image[data-v-2e785e93]{height:%?42?%;margin-top:%?-54?%}.Popup .title[data-v-2e785e93]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%;align-items:center;justify-content:center;width:%?500?%;display:flex}.Popup .tip[data-v-2e785e93]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%;display:flex;align-items:center;justify-content:center}.Popup .bottom .item[data-v-2e785e93]{width:%?250?%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;margin-top:%?54?%;font-size:%?24?%;color:#666}.Popup .bottom .item .text[data-v-2e785e93]{font-size:%?24?%;color:#666}.Popup .bottom .item.on[data-v-2e785e93]{width:%?500?%}.flex[data-v-2e785e93]{display:flex;flex-direction:row}.Popup .bottom .item.grant[data-v-2e785e93]{font-weight:700;background-color:#e93323;\r\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-2e785e93]{font-size:%?28?%;color:#fff}.mask[data-v-2e785e93]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}',""]),t.exports=e},"1dce":function(t,e,o){"use strict";o.r(e);var i=o("43be"),n=o.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"33ae":function(t,e,o){"use strict";var i=o("35f5"),n=o.n(i);n.a},"35f5":function(t,e,o){var i=o("dca5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("50daebb6",i,!0,{sourceMap:!1,shadowMode:!1})},"43be":function(t,e,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("a434"),o("99af"),o("d3b7"),o("159b"),o("4de4"),o("14d9");var n=o("a126"),r=o("bb20"),a=o("95ca"),s=o("26cb"),c=o("5315"),u=o("3093"),d=i(o("3516")),l=i(o("104c")),f={components:{easyLoadimage:d.default,authorize:l.default},data:function(){return{hostProduct:[],loadTitle:"加载更多",loading:!1,loadend:!1,collectProductList:[],checkedArr:[],limit:10,page:1,isAuto:!1,isShowAuth:!1,hotScroll:!1,hotPage:1,hotLimit:10,domain:u.HTTP_REQUEST_URL,storeList:[],isScroll:!0,storePage:1,storeLimit:10,total:0,isEdit:!1,isAllSelect:!1,tabIndex:1,tabList:[{title:"商品"},{title:"店铺"}]}},computed:(0,c.configMap)({recommend_switch:0,hide_mer_status:0},(0,s.mapGetters)(["isLogin","viewColor","keyColor"])),onLoad:function(t){this.tabIndex=t.tab||1,this.isLogin?(this.get_user_collect_product(),this.getList()):(this.isAuto=!0,this.isShowAuth=!0)},methods:{onLoadFun:function(){this.isShowAuth=!1,this.get_user_collect_product(),this.getList()},authColse:function(t){this.isShowAuth=t},handleEdit:function(){this.isEdit=!this.isEdit},goStore:function(t){1!=this.hide_mer_status&&uni.navigateTo({url:"/pages/store/home/index?id=".concat(t.merchant.mer_id)})},goDetail:function(t){var e=this;(0,r.goShopDetail)(t,this.uid).then((function(o){e.isLogin?(0,a.initiateAssistApi)(t.activity_id).then((function(t){var e=t.data.product_assist_set_id;uni.hideLoading(),uni.navigateTo({url:"/pages/activity/assist_detail/index?id="+e})})).catch((function(t){uni.showToast({title:t,icon:"none"})})):(e.isAuto=!0,e.isShowAuth=!0)}))},bindTab:function(t){this.tabIndex=t+1},bindDetele:function(t,e){var o=this;(0,n.userCollectDel)({type:10,type_id:[t.type_id]}).then((function(t){uni.showToast({title:"已取消",icon:"none"}),o.storeList.splice(e,1)}))},getList:function(){var t=this;this.isScroll&&(0,n.getMerchantLst)({page:this.storePage,limit:this.storeLimit}).then((function(e){t.isScroll=e.data.list.length>=t.limit,t.storeList=t.storeList.concat(e.data.list),t.storePage+=1}))},get_user_collect_product:function(){var t=this;t.loading||t.loadend||(t.loading=!0,t.loadTitle="",(0,n.getCollectUserList)({page:t.page,limit:t.limit}).then((function(e){t.total=e.data.count;var o=e.data.list,i=o.length0?i("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[i("v-uni-view",[i("v-uni-view",{staticClass:"allcheckbox",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.checkboxAllChange.apply(void 0,arguments)}}},[t.isAllSelect?i("v-uni-text",{staticClass:"iconfont icon-xuanzhong1"}):i("v-uni-text",{staticClass:"iconfont icon-weixuanzhong"}),t._v("全选")],1)],1),i("v-uni-view",{staticClass:"acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"button acea-row row-middle",staticStyle:{"margin-right":"20rpx"}},[i("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.subCollect.apply(void 0,arguments)}}},[i("v-uni-button",{staticClass:"bnt collect_btn",attrs:{formType:"submit"}},[t._v("取消收藏")])],1)],1)],1)],1):t._e()]:[t.storeList.length>0?i("v-uni-view",{staticClass:"user_store_attention",style:t.viewColor},t._l(t.storeList,(function(e,o){return i("v-uni-view",{key:o,staticClass:"item",style:{"background-image":"url("+t.domain+"/static/diy/store_bg"+t.keyColor+".png)"}},[e.merchant?i("v-uni-view",{staticClass:"store_header",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.goStore(e)}}},[i("v-uni-image",{attrs:{src:e.merchant.mer_avatar,mode:""}}),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"line1"},[i("v-uni-text",{staticClass:"name line1"},[t._v(t._s(e.merchant.mer_name))]),e.merchant.type_name?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v(t._s(e.merchant.type_name))]):e.merchant.is_trader?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v("自营")]):t._e()],1),i("v-uni-view",{staticClass:"btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.bindDetele(e,o)}}},[t._v("取消关注")])],1)],1):t._e(),e.merchant&&e.merchant.showProduct.length>0?i("v-uni-view",{staticClass:"store_recommend"},[t._l(e.merchant.showProduct,(function(e,o){return o<3?[i("v-uni-navigator",{key:o+"_0",staticClass:"list",attrs:{url:"/pages/goods_details/index?id="+e.product_id,"hover-class":"none"}},[i("v-uni-view",{staticClass:"picture"},[i("easy-loadimage",{attrs:{mode:"widthFix","image-src":e.image}}),e.border_pic?i("v-uni-view",{staticClass:"border-picture",style:{backgroundImage:"url("+e.border_pic+")"}}):t._e()],1),i("v-uni-view",{staticClass:"price line1"},[t._v("¥ "+t._s(e.price))])],1)]:t._e()}))],2):t._e()],1)})),1):t._e()],!t.collectProductList.length&&1==t.tabIndex||!t.storeList.length&&2==t.tabIndex?i("v-uni-view",{staticClass:"noCommodity"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:o("c4f0")}}),i("v-uni-view",[t._v(t._s(1==t.tabIndex?"暂无商品":"暂无店铺")+",去添加点什么吧")])],1)],1):t._e(),i("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],2)},r=[]},dca5:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.navTabBox[data-v-bdbd32ee]{height:%?166?%;position:fixed;top:0;left:0;width:100%;z-index:10}.longTab[data-v-bdbd32ee]{background:#fff;display:flex;text-align:center}.tab-item[data-v-bdbd32ee]{width:50%;display:inline-block;line-height:%?90?%;color:#666;font-size:%?30?%}.tab-item uni-text[data-v-bdbd32ee]{position:relative;display:inline-block}.tab-item.on[data-v-bdbd32ee]{color:var(--view-theme);font-weight:700}.tab-item.on uni-text[data-v-bdbd32ee]:after{content:"";display:inline-block;width:90%;height:%?3?%;background-color:var(--view-theme);position:absolute;left:5%;bottom:0}.list_header[data-v-bdbd32ee]{justify-content:space-between;padding:0 %?30?%;height:%?76?%;line-height:%?76?%;color:#666;font-size:%?26?%;background:#f5f5f5}.list_header .total uni-text[data-v-bdbd32ee]{color:var(--view-theme)}.list_header .text[data-v-bdbd32ee]{color:var(--view-theme)}.collectionGoods[data-v-bdbd32ee]{background-color:#fff;margin-top:%?166?%}.font_bg-red[data-v-bdbd32ee]{background-color:var(--view-theme);border:1px solid var(--view-theme)}.font_bg-red.type2[data-v-bdbd32ee]{background-color:#fd6523;border:1px solid #fd6523}.collectionGoods .item[data-v-bdbd32ee]{margin-left:%?30?%;padding:%?25?% %?30?% %?30?% 0;border-bottom:1px solid #eee}.collectionGoods .item .checkbox[data-v-bdbd32ee]{margin-right:%?30?%}.collectionGoods .item .checkbox .iconfont[data-v-bdbd32ee]{font-size:%?38?%;color:#999}.collectionGoods .item .checkbox .iconfont.icon-xuanzhong1[data-v-bdbd32ee]{color:var(--view-theme)}.collectionGoods .item .pictrue[data-v-bdbd32ee]{width:%?160?%;height:%?160?%;position:relative}.collectionGoods .item .pictrue .off[data-v-bdbd32ee]{width:%?80?%;height:%?80?%;background:rgba(0,0,0,.5);color:#fff;font-size:%?20?%;display:flex;align-items:center;justify-content:center;border-radius:100%;position:absolute;top:%?40?%;left:%?40?%}[data-v-bdbd32ee] .collectionGoods .item .pictrue uni-image,[data-v-bdbd32ee] .collectionGoods .item .easy-loadimage,\r\n.collectionGoods .item uni-image[data-v-bdbd32ee]{width:100%;height:100%;border-radius:%?10?%}.collectionGoods .item .text[data-v-bdbd32ee]{width:%?500?%;height:%?160?%;font-size:%?28?%;color:#282828}.collectionGoods .item .text.edit[data-v-bdbd32ee]{width:%?430?%}.collectionGoods .item .text .name[data-v-bdbd32ee]{width:100%;display:flex;align-items:center;font-size:%?28?%}.collectionGoods .item .text .name.saleOff[data-v-bdbd32ee]{color:#ccc}.collectionGoods .item .name_text[data-v-bdbd32ee]{display:inline-block;max-width:%?480?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:%?28?%}.collectionGoods .item .text .money[data-v-bdbd32ee]{font-size:%?30?%;font-weight:700;color:var(--view-priceColor)}.collectionGoods .item .text .money uni-text[data-v-bdbd32ee]{font-size:%?20?%}.collectionGoods .item .text .money.saleOff[data-v-bdbd32ee]{color:#ccc}.collectionGoods .item .text .delete[data-v-bdbd32ee]{display:flex;align-items:center;justify-content:center;font-size:%?26?%;color:#282828;width:%?144?%;height:%?46?%;border:1px solid #bbb;border-radius:%?24?%;text-align:center}.noCommodity[data-v-bdbd32ee]{padding-top:%?1?%;border-top:0;min-height:90vh;margin-top:%?90?%}.noCommodity .pictrue[data-v-bdbd32ee]{text-align:center;padding:0;margin:%?78?% auto %?26?% auto}.collection-count .footer[data-v-bdbd32ee]{z-index:99;width:100%;height:%?100?%;height:calc(100rpx+ constant(safe-area-inset-bottom));height:calc(%?100?% + env(safe-area-inset-bottom));background-color:#fff;position:fixed;padding:0 %?20?%;box-sizing:border-box;border-top:1px solid #eee;bottom:var(--window-bottom)}.area-edit[data-v-bdbd32ee]{justify-content:center}.area-edit .area-item[data-v-bdbd32ee]{width:50%;text-align:center;position:relative;align-items:center;color:#333}.area-edit .area-item .text[data-v-bdbd32ee]{position:relative;top:-1px}.area-edit .area-item .iconfont[data-v-bdbd32ee]{color:#333}.area-edit .area-item[data-v-bdbd32ee]:nth-child(1)::after{content:"";display:inline-block;width:%?2?%;height:%?42?%;background:#ccc;position:absolute;top:0;right:0}.collection-count .footer .checkAll[data-v-bdbd32ee]{font-size:%?28?%;color:#282828;margin-left:%?16?%}.allcheckbox .iconfont[data-v-bdbd32ee]{margin-right:11px;font-size:%?40?%;color:#ccc}.allcheckbox .icon-xuanzhong1[data-v-bdbd32ee]{color:var(--view-theme)}.collection-count .footer .button .bnt[data-v-bdbd32ee]{font-size:%?28?%;border-radius:%?50?%;width:%?160?%;height:%?60?%;text-align:center;line-height:%?60?%;color:var(--view-theme);border:%?2?% solid var(--view-theme)}.user_store_attention[data-v-bdbd32ee]{padding:%?20?%;margin-top:%?90?%}.user_store_attention .item[data-v-bdbd32ee]{background-color:#fff;background-size:100%;background-repeat:no-repeat;border-radius:%?16?%;padding:0 %?20?%;margin-bottom:%?20?%}.user_store_attention .store_header[data-v-bdbd32ee]{position:relative;display:flex;padding:%?30?% %?10?%;align-items:center}.user_store_attention .store_header uni-image[data-v-bdbd32ee]{width:%?88?%;height:%?88?%;border-radius:50%}.user_store_attention .store_header .info[data-v-bdbd32ee]{flex:1;display:flex;flex-direction:column;justify-content:space-between;margin-left:%?20?%;position:relative}.user_store_attention .store_header .info .name[data-v-bdbd32ee]{width:%?410?%;font-weight:700}.user_store_attention .store_header .info .des[data-v-bdbd32ee]{color:#666;font-size:%?22?%}.user_store_attention .store_header .info .btn[data-v-bdbd32ee]{display:flex;align-items:center;justify-content:center;position:absolute;right:0;top:50%;width:%?150?%;height:%?50?%;-webkit-transform:translateY(-50%);transform:translateY(-50%);border:1px solid #bbb;border-radius:%?25?%;font-size:%?26?%}.user_store_attention .store_recommend[data-v-bdbd32ee]{display:flex;padding-bottom:%?30?%}.user_store_attention .store_recommend .list[data-v-bdbd32ee]{width:%?210?%;margin-right:%?20?%}.user_store_attention .store_recommend .list .picture[data-v-bdbd32ee], .user_store_attention .store_recommend .list[data-v-bdbd32ee] uni-image, .user_store_attention .store_recommend .list[data-v-bdbd32ee] .easy-loadimage, .user_store_attention .store_recommend .list uni-image[data-v-bdbd32ee]{width:%?210?%;height:%?210?%;border-radius:%?10?%;position:relative}.user_store_attention .store_recommend .list .border-picture[data-v-bdbd32ee]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:%?16?% %?16?% 0 0;background:50%/cover no-repeat}.user_store_attention .store_recommend .list[data-v-bdbd32ee]:last-child{margin-right:0}.user_store_attention .store_recommend .list .price[data-v-bdbd32ee]{text-align:center;color:var(--view-priceColor);font-size:%?24?%;margin-top:%?10?%;font-weight:700}',""]),t.exports=e},e40c:function(t,e,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(o("5530")),r=(i(o("a040")),o("cc48"),o("8a31"),o("26cb")),a=(i(o("8afb")),o("5315")),s=(i(o("1ba1")),o("5eb1")),c=(getApp(),{name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1}},computed:(0,n.default)((0,n.default)({},(0,r.mapGetters)(["isLogin","userInfo","viewColor"])),(0,a.configMap)(["routine_logo"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,s.toLogin)(!0)},getUserProfile:function(){(0,s.toLogin)(!0),uni.navigateTo({url:"/pages/users/login/login_copy"})},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1),this.isGoIndex?uni.switchTab({url:"/pages/index/index"}):this.$emit("authColse",!1)}}});e.default=c}}]);