You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
crmeb_php/public/static/js/pages-users-user_goods_coll...

1 lines
34 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_goods_collection-index"],{"111c":function(t,e,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalNoticeApi=function(t){return a.default.post("store/product/increase_take",t)},e.bagExplain=function(){return a.default.get("store/product/bag/explain")},e.bagRecommend=function(){return a.default.get("product/spu/bag/recommend")},e.collectAdd=function(t){return a.default.post("user/relation/create",t)},e.collectAll=function(t){return a.default.post("user/relation/batch/create",t)},e.collectDel=function(t){return a.default.post("user/relation/delete",t)},e.copyPasswordApi=function(t){return a.default.get("product/spu/copy",t,{noAuth:!0})},e.copyPasswordSearch=function(t){return a.default.get("command/copy",t,{noAuth:!0})},e.create=function(t){return a.default.post("intention/create",t)},e.discountsCartAdd=function(t){return a.default.post("user/cart/batchCreate",t)},e.express=function(t){return a.default.post("ordero/express/"+t,{noAuth:!0})},e.followStore=function(t){return a.default.post("user/relation/create",{type:10,type_id:t})},e.getApplicationRecordList=function(t){return a.default.get("intention/lst",t)},e.getBrandlist=function(t){return a.default.get("store/product/brand/lst",t,{noAuth:!0})},e.getBroadcastListApi=function(t){return a.default.get("broadcast/lst",t,{noAuth:!0})},e.getCaptcha=function(){return a.default.get("captcha")},e.getCategoryList=function(){return a.default.get("store/product/category/lst",{},{noAuth:!0})},e.getCollectUserList=function(t){return a.default.get("user/relation/product/lst",t)},e.getCouponProductlist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,n.default)({},t),t.brand_id=t.brand_id.toString());return a.default.get("product/spu/coupon_product",t,{noAuth:!0})},e.getDiscountsLst=function(t){return a.default.get("discounts/lst",t,{noAuth:!0})},e.getGeocoder=function(t){return a.default.get("lbs/geocoder?location=".concat(t.lat,",").concat(t.long),{},{noAuth:!0})},e.getGoodsDetails=function(t){return a.default.get("intention/detail/"+t,{})},e.getGroomList=function(t,e){return a.default.get("product/spu/hot/"+t,e,{noAuth:!0})},e.getHotBanner=function(t){return a.default.get("common/hot_banner/"+t,{},{noAuth:!0})},e.getLiveList=function(t){return a.default.get("broadcast/hot",t,{noAuth:!0})},e.getMerProductHot=function(t,e){return a.default.get("product/spu/recommend",{page:void 0===e.page?1:e.page,limit:void 0===e.limit?10:e.limit,mer_id:t||""},{noAuth:!0})},e.getMerchantLst=function(t){return a.default.get("user/relation/merchant/lst",t,{noAuth:!0})},e.getPresellProductDetail=function(t){return a.default.get("store/product/presell/detail/"+t,{},{noAuth:!0})},e.getPreviewProDetail=function(t){return a.default.get("store/product/preview",t,{noAuth:!0})},e.getProductCode=function(t,e){return a.default.get("store/product/qrcode/"+t,e)},e.getProductDetail=function(t){return a.default.get("store/product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return a.default.get("product/spu/recommend",{page:void 0===t?1:t,limit:void 0===e?10:e},{noAuth:!0})},e.getProductslist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,n.default)({},t),t.brand_id=t.brand_id.toString());return a.default.get("product/spu/lst",t,{noAuth:!0})},e.getReplyConfig=function(t){return a.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return a.default.get("store/product/reply/lst/"+t,e,{noAuth:!0})},e.getSearchKeyword=function(){return a.default.get("common/hot_keyword",{},{noAuth:!0})},e.getSeckillProductDetail=function(t){return a.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getStoreCategory=function(t,e){return a.default.get("store/merchant/category/lst/"+t,e,{noAuth:!0})},e.getStoreCoupon=function(t){return a.default.get("coupon/store/"+t,{noAuth:!0})},e.getStoreDetail=function(t,e){return a.default.get("store/merchant/detail/"+t,e,{noAuth:!0})},e.getStoreGoods=function(t,e){return a.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.getStoreTypeApi=function(){return a.default.get("intention/type",{},{noAuth:!0})},e.merClassifly=function(){return a.default.get("intention/cate",{},{noAuth:!0})},e.merchantProduct=function(t,e){e.brand_id&&Array.isArray(e.brand_id)&&(e=(0,n.default)({},e),e.brand_id=e.brand_id.toString());return a.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.merchantQrcode=function(t,e){return a.default.get("store/merchant/qrcode/"+t,e,{noAuth:!0})},e.postCartAdd=function(t){return a.default.post("user/cart/create",t)},e.priceRuleApi=function(t){return a.default.get("store/product/price_rule/".concat(t),{},{noAuth:!0})},e.productBag=function(t){return a.default.get("product/spu/bag",t,{noAuth:!0})},e.storeCategory=function(t){return a.default.get("store/product/category",t,{noAuth:!0})},e.storeCertificate=function(t){return a.default.post("store/certificate/".concat(t.merId),t)},e.storeListApi=function(t){return a.default.get("store_list",t,{noAuth:!0})},e.storeMerchantList=function(t){return a.default.get("store/merchant/lst",t,{noAuth:!0})},e.storeServiceList=function(t,e){return a.default.get("product/spu/local/".concat(t),e,{noAuth:!0})},e.unfollowStore=function(t){return a.default.post("user/relation/delete",{type:10,type_id:t})},e.updateGoodsRecord=function(t,e){return a.default.post("intention/update/"+t,e)},e.userCollectDel=function(t){return a.default.post("user/relation/batch/delete",t)},e.verify=function(t){return a.default.post("auth/verify",t)},o("d401"),o("d3b7"),o("25f0"),o("99af");var n=i(o("5530")),a=i(o("b5ef"))},"1c6c":function(t,e,o){"use strict";var i=o("d630"),n=o.n(i);n.a},"3b3e":function(t,e,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return n.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(){return n.default.get("store/product/assist/count",{},{noAuth:!0})},e.getActivitycategory=function(t){return n.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t){return n.default.get("store/product/assist/detail/"+t)},e.getAssistList=function(t){return n.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return n.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return n.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return n.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return n.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return n.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return n.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return n.default.post("combination/poster",t)},e.getCombinationUser=function(t){return n.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return n.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return n.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return n.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return n.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return n.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return n.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return n.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return n.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return n.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return n.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return n.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return n.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return n.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return n.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return n.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return n.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return n.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var n=i(o("b5ef"))},4718:function(t,e,o){var i=o("24fb");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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.navTabBox[data-v-0b4818a3]{height:%?166?%;position:fixed;top:0;left:0;width:100%;z-index:10}.longTab[data-v-0b4818a3]{background:#fff;display:flex;text-align:center}.tab-item[data-v-0b4818a3]{width:50%;display:inline-block;line-height:%?90?%;color:#666;font-size:%?30?%}.tab-item uni-text[data-v-0b4818a3]{position:relative;display:inline-block}.tab-item.on[data-v-0b4818a3]{color:var(--view-theme);font-weight:700}.tab-item.on uni-text[data-v-0b4818a3]:after{content:"";display:inline-block;width:90%;height:%?3?%;background-color:var(--view-theme);position:absolute;left:5%;bottom:0}.list_header[data-v-0b4818a3]{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-0b4818a3]{color:var(--view-theme)}.list_header .text[data-v-0b4818a3]{color:var(--view-theme)}.collectionGoods[data-v-0b4818a3]{background-color:#fff;margin-top:%?166?%}.font_bg-red[data-v-0b4818a3]{background-color:var(--view-theme);border:1px solid var(--view-theme)}.font_bg-red.type2[data-v-0b4818a3]{background-color:#fd6523;border:1px solid #fd6523}.collectionGoods .item[data-v-0b4818a3]{margin-left:%?30?%;padding:%?25?% %?30?% %?30?% 0;border-bottom:1px solid #eee}.collectionGoods .item .checkbox[data-v-0b4818a3]{margin-right:%?30?%}.collectionGoods .item .checkbox .iconfont[data-v-0b4818a3]{font-size:%?38?%;color:#999}.collectionGoods .item .checkbox .iconfont.icon-xuanzhong1[data-v-0b4818a3]{color:var(--view-theme)}.collectionGoods .item .pictrue[data-v-0b4818a3]{width:%?160?%;height:%?160?%;position:relative}.collectionGoods .item .pictrue .off[data-v-0b4818a3]{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-0b4818a3] .collectionGoods .item .pictrue uni-image,[data-v-0b4818a3] .collectionGoods .item .easy-loadimage,\n.collectionGoods .item uni-image[data-v-0b4818a3]{width:100%;height:100%;border-radius:%?10?%}.collectionGoods .item .text[data-v-0b4818a3]{width:%?500?%;height:%?160?%;font-size:%?28?%;color:#282828}.collectionGoods .item .text.edit[data-v-0b4818a3]{width:%?430?%}.collectionGoods .item .text .name[data-v-0b4818a3]{width:100%;display:flex;align-items:center;font-size:%?28?%}.collectionGoods .item .text .name.saleOff[data-v-0b4818a3]{color:#ccc}.collectionGoods .item .name_text[data-v-0b4818a3]{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-0b4818a3]{font-size:%?30?%;font-weight:700;color:var(--view-priceColor)}.collectionGoods .item .text .money uni-text[data-v-0b4818a3]{font-size:%?20?%}.collectionGoods .item .text .money.saleOff[data-v-0b4818a3]{color:#ccc}.collectionGoods .item .text .delete[data-v-0b4818a3]{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-0b4818a3]{padding-top:%?1?%;border-top:0;min-height:90vh;margin-top:%?90?%}.noCommodity .pictrue[data-v-0b4818a3]{text-align:center;padding:0;margin:%?78?% auto %?26?% auto}.collection-count .footer[data-v-0b4818a3]{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-0b4818a3]{justify-content:center}.area-edit .area-item[data-v-0b4818a3]{width:50%;text-align:center;position:relative;align-items:center;color:#333}.area-edit .area-item .text[data-v-0b4818a3]{position:relative;top:-1px}.area-edit .area-item .iconfont[data-v-0b4818a3]{color:#333}.area-edit .area-item[data-v-0b4818a3]: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-0b4818a3]{font-size:%?28?%;color:#282828;margin-left:%?16?%}.allcheckbox .iconfont[data-v-0b4818a3]{margin-right:11px;font-size:%?40?%;color:#ccc}.allcheckbox .icon-xuanzhong1[data-v-0b4818a3]{color:var(--view-theme)}.collection-count .footer .button .bnt[data-v-0b4818a3]{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-0b4818a3]{padding:%?20?%;margin-top:%?90?%}.user_store_attention .item[data-v-0b4818a3]{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-0b4818a3]{position:relative;display:flex;padding:%?30?% %?10?%;align-items:center}.user_store_attention .store_header uni-image[data-v-0b4818a3]{width:%?88?%;height:%?88?%;border-radius:50%}.user_store_attention .store_header .info[data-v-0b4818a3]{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-0b4818a3]{width:%?410?%;font-weight:700}.user_store_attention .store_header .info .des[data-v-0b4818a3]{color:#666;font-size:%?22?%}.user_store_attention .store_header .info .btn[data-v-0b4818a3]{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-0b4818a3]{display:flex;padding-bottom:%?30?%}.user_store_attention .store_recommend .list[data-v-0b4818a3]{width:%?210?%;margin-right:%?20?%}.user_store_attention .store_recommend .list .picture[data-v-0b4818a3], .user_store_attention .store_recommend .list[data-v-0b4818a3] uni-image, .user_store_attention .store_recommend .list[data-v-0b4818a3] .easy-loadimage, .user_store_attention .store_recommend .list uni-image[data-v-0b4818a3]{width:%?210?%;height:%?210?%;border-radius:%?10?%;position:relative}.user_store_attention .store_recommend .list .border-picture[data-v-0b4818a3]{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-0b4818a3]:last-child{margin-right:0}.user_store_attention .store_recommend .list .price[data-v-0b4818a3]{text-align:center;color:var(--view-priceColor);font-size:%?24?%;margin-top:%?10?%;font-weight:700}',""]),t.exports=e},"493d":function(t,e,o){"use strict";o.r(e);var i=o("e933"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},"68e7":function(t,e,o){"use strict";o.r(e);var i=o("6a65"),n=o("cb25");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("aa82");var r=o("f0c5"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"0b4818a3",null,!1,i["a"],void 0);e["default"]=s.exports},"6a65":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return i}));var i={easyLoadimage:o("ae65").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"collection-count",style:t.viewColor},[i("v-uni-view",{staticClass:"navTabBox"},[i("v-uni-view",{staticClass:"longTab"},t._l(t.tabList,(function(e,o){return i("v-uni-view",{key:o,staticClass:"tab-item",class:{on:o==t.tabIndex-1},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindTab(o)}}},[i("v-uni-text",[t._v(t._s(e.title))])],1)})),1),t.collectProductList.length&&1==t.tabIndex?i("v-uni-view",{staticClass:"list_header acea-row"},[i("v-uni-view",{staticClass:"total"},[t._v("共"),i("v-uni-text",[t._v(t._s(t.total))]),t._v("件商品")],1),i("v-uni-view",{staticClass:"text",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.handleEdit.apply(void 0,arguments)}}},[t._v(t._s(t.isEdit?"完成":"编辑"))])],1):t._e()],1),1==t.tabIndex?[t.collectProductList.length?i("v-uni-view",{staticClass:"collectionGoods"},[t._l(t.collectProductList,(function(e,o){return e.spu?i("v-uni-view",{key:o,staticClass:"item acea-row row-between-wrapper",on:{click:function(o){o.stopPropagation(),arguments[0]=o=t.$handleEvent(o),t.goDetail(e.spu)}}},[i("v-uni-view",{staticClass:"left acea-row row-between-wrapper"},[t.isEdit?i("v-uni-view",{staticClass:"checkbox",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.collectCheck(e,o)}}},[e.check?i("v-uni-text",{staticClass:"iconfont icon-xuanzhong1"}):i("v-uni-text",{staticClass:"iconfont icon-weixuanzhong"})],1):t._e(),i("v-uni-view",{staticClass:"pictrue"},[i("easy-loadimage",{attrs:{mode:"widthFix","image-src":e.spu.image}}),1!==e.spu.status?i("v-uni-view",{staticClass:"off"},[t._v("已下架")]):t._e()],1)],1),i("v-uni-view",{staticClass:"text acea-row row-column-between",class:t.isEdit?"edit":""},[i("v-uni-view",{staticClass:"name",class:{saleOff:1!=e.spu.status}},[0!=e.spu.product_type?i("v-uni-text",{class:"font_bg-red type"+e.spu.product_type},[t._v(t._s(1==e.spu.product_type?"秒杀":2==e.spu.product_type?"预售":3==e.spu.product_type?"助力":4==e.spu.product_type?"拼团":""))]):t._e(),i("v-uni-text",{staticClass:"name_text"},[t._v(t._s(e.spu.store_name))])],1),i("v-uni-view",{staticClass:"acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"money",class:{saleOff:1!=e.spu.status}},[i("v-uni-text",[t._v("¥")]),t._v(t._s(e.spu.price))],1)],1)],1)],1):t._e()})),i("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1)],2):t._e(),t.isEdit&&t.collectProductList.length>0?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("9832")}}),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)},a=[]},9832:function(t,e,o){t.exports=o.p+"static/img/noCart.67573212.png"},a296:function(t,e,o){var i=o("24fb");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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.Popup[data-v-ac292046]{flex:1;align-items:center;justify-content:center;width:%?500?%;background-color:#fff;position:fixed;top:%?500?%;left:%?125?%;z-index:1000}.Popup .logo-auth[data-v-ac292046]{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-ac292046]{height:%?42?%;margin-top:%?-54?%}.Popup .title[data-v-ac292046]{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-ac292046]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%;display:flex;align-items:center;justify-content:center}.Popup .bottom .item[data-v-ac292046]{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-ac292046]{font-size:%?24?%;color:#666}.Popup .bottom .item.on[data-v-ac292046]{width:%?500?%}.flex[data-v-ac292046]{display:flex;flex-direction:row}.Popup .bottom .item.grant[data-v-ac292046]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-ac292046]{font-size:%?28?%;color:#fff}.mask[data-v-ac292046]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}',""]),t.exports=e},aa82:function(t,e,o){"use strict";var i=o("c4df"),n=o.n(i);n.a},bd9e:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.goShopDetail=function(t,e){return new Promise((function(e){1===t.product_type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.product_id,"&time=").concat(t.stop_time)}):2===t.product_type?uni.navigateTo({url:"/pages/activity/presell_details/index?id=".concat(t.activity_id)}):0===t.product_type||10===t.product_type?uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.product_id)}):4===t.product_type?uni.navigateTo({url:"/pages/activity/combination_details/index?id=".concat(t.activity_id)}):40===t.product_type?uni.navigateTo({url:"/pages/activity/combination_status/index?id=".concat(t.activity_id)}):e(t)}))},o("d3b7"),o("99af")},c15c:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[t.isShowAuth&&t.code?o("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),t.isShowAuth&&t.code?o("v-uni-view",{staticClass:"Popup",style:"top:"+t.top+"px;"},[o("v-uni-view",{staticClass:"logo-auth"},[o("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),t.isWeixin?o("v-uni-text",{staticClass:"title"},[t._v("授权提醒")]):o("v-uni-text",{staticClass:"title"},[t._v(t._s(t.title))]),t.isWeixin?o("v-uni-text",{staticClass:"tip"},[t._v("请授权头像等信息,以便为您提供更好的服务!")]):o("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.info))]),o("v-uni-view",{staticClass:"bottom flex"},[o("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),o("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?o("v-uni-text",{staticClass:"text"},[t._v("去授权")]):o("v-uni-text",{staticClass:"text"},[t._v("去登录")])],1)],1)],1):t._e()],1)},n=[]},c1ef: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("111c"),a=o("bd9e"),r=o("3b3e"),s=o("26cb"),c=o("4f1b"),u=o("8342"),l=i(o("ae65")),d=i(o("f272")),f={components:{easyLoadimage:l.default,authorize:d.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,a.goShopDetail)(t,this.uid).then((function(o){e.isLogin?(0,r.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.length<t.limit;o.forEach((function(e,o){e.check||t.$set(e,"check",!1)})),t.collectProductList=t.$util.SplitArray(o,t.collectProductList),t.$set(t,"collectProductList",t.collectProductList),t.loadend=i,t.loadTitle=i?"我也是有底线的":"加载更多",t.page=t.page+1,t.loading=!1})).catch((function(e){t.loading=!1,t.loadTitle="加载更多"})))},subCollect:function(){var t=this;(0,n.userCollectDel)({type:1,type_id:t.getSelectGoods()}).then((function(e){return t.$util.Tips({title:"取消收藏成功",icon:"success"},(function(){t.reloadData()}))})).catch((function(e){return t.$util.Tips({title:e})}))},reloadData:function(){var t=this;this.checkedArr.forEach((function(e,o){t.collectProductList=t.collectProductList.filter((function(t){return t!=e}))})),this.total-=this.checkedArr.length},collectCheck:function(t){t.check=!t.check,this.cartAllCheck("goodsCheck")},checkboxAllChange:function(){this.isAllSelect=!this.isAllSelect,this.cartAllCheck("allCheck")},cartAllCheck:function(t){var e=this,o=[];this.collectProductList.forEach((function(i,n){"goodsCheck"==t||(i.check=e.isAllSelect),i.check&&o.push(i)})),this.checkedArr=o,this.isAllSelect=o.length==this.collectProductList.length},getSelectGoods:function(){var t=[];return this.collectProductList.forEach((function(e,o){e.check&&t.push(e.type_id)})),t}},onReachBottom:function(){1==this.tabIndex?this.get_user_collect_product():this.getList()},onPageScroll:function(t){uni.$emit("scroll")}};e.default=f},c4df:function(t,e,o){var i=o("4718");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("6941d335",i,!0,{sourceMap:!1,shadowMode:!1})},cb25:function(t,e,o){"use strict";o.r(e);var i=o("c1ef"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},d630:function(t,e,o){var i=o("a296");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("8f383f98",i,!0,{sourceMap:!1,shadowMode:!1})},e933: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")),a=i(o("ff56")),r=o("31bd"),s=o("5cac"),c=o("26cb"),u=i(o("dae1")),l=o("4f1b"),d=(i(o("8b6a")),o("713c")),f=getApp(),p={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,c.mapGetters)(["isLogin","userInfo","viewColor"])),(0,l.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,d.toLogin)(!0)},getUserProfile:function(){var t=this,e=this;u.default.getUserProfile().then((function(o){var i=o.userInfo;i.code=t.code,i.spread=f.globalData.spid,i.spread_code=f.globalData.code,(0,r.commonAuth)({auth:{type:"routine",auth:i}}).then((function(o){if(200!=o.data.status)return uni.setStorageSync("auth_token",o.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var i=o.data.result.expires_time-a.default.time();e.$store.commit("UPDATE_USERINFO",o.data.result.user),e.$store.commit("LOGIN",{token:o.data.result.token,time:i}),e.$store.commit("SETUID",o.data.result.user.uid),a.default.set(s.EXPIRES_TIME,o.data.result.expires_time,i),a.default.set(s.USER_INFO,o.data.result.user,i),t.$emit("onLoadFun",o.data.result.user),o.data.result.user.isNew&&t.mp_is_new&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1)}}};e.default=p},f272:function(t,e,o){"use strict";o.r(e);var i=o("c15c"),n=o("493d");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("1c6c");var r=o("f0c5"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"ac292046",null,!1,i["a"],void 0);e["default"]=s.exports}}]);