CRMEB/crmeb/public/static/js/pages-users-user_goods_collection-index.dcf869d8.js
2023-02-14 21:14:49 +08:00

1 line
22 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_goods_collection-index"],{"0045":function(t,e,i){"use strict";i.r(e);var o=i("3664"),n=i("db6b");for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("2359");var c,r=i("f0c5"),s=Object(r["a"])(n["default"],o["b"],o["c"],!1,null,"33eb9fb0",null,!1,o["a"],c);e["default"]=s.exports},"01be":function(t,e,i){"use strict";var o=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("26cb"),a=o(i("9ad2")),c=i("168b"),r={name:"Home",props:{},mixins:[a.default],data:function(){return{top:"545",imgHost:c.HTTP_REQUEST_URL}},computed:(0,n.mapGetters)(["homeActive"]),methods:{setTouchMove:function(t){var e=this;t.touches[0].clientY<545&&t.touches[0].clientY>66&&(e.top=t.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};e.default=r},"05d1":function(t,e,i){"use strict";var o;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return o}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.colorStyle},[i("v-uni-view",{staticStyle:{"touch-action":"none"}},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?i("v-uni-view",{staticClass:"homeCon bg-color",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/index/index"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/order_addcart/order_addcart"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/user/index"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image",attrs:{src:!0===t.homeActive?t.imgHost+"/statics/images/close.gif":t.imgHost+"/statics/images/open.gif"}})],1)],1)],1)],1)],1)},a=[]},"0665":function(t,e,i){"use strict";i.r(e);var o=i("35f6"),n=i.n(o);for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},2359:function(t,e,i){"use strict";var o=i("edbd"),n=i.n(o);n.a},"318e":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".pictrueBox[data-v-5c721f6d]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-5c721f6d]{position:fixed;color:#fff;text-align:center;z-index:999;right:%?15?%;display:flex}.home .homeCon[data-v-5c721f6d]{border-radius:%?50?%;opacity:0;height:0;color:var(--view-theme);width:0}.home .homeCon.on[data-v-5c721f6d]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)!important;opacity:.8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.home .homeCon .iconfont[data-v-5c721f6d]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-5c721f6d]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme)}.home .pictrue .image[data-v-5c721f6d]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),t.exports=e},"35f6":function(t,e,i){"use strict";var o=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("26cb"),a=i("a43a"),c=o(i("9ad2")),r={computed:(0,n.mapGetters)(["uid"]),props:{hostProduct:{type:Array,default:function(){return[]}}},mixins:[c.default],data:function(){return{}},methods:{goDetail:function(t){(0,a.goShopDetail)(t,this.uid).then((function(e){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})}))}}};e.default=r},3664:function(t,e,i){"use strict";var o;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return o}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.colorStyle},[t.collectProductList.length?i("v-uni-view",{staticClass:"collectionGoods"},[i("v-uni-view",{staticClass:"title-admin"},[i("v-uni-view",[t._v(t._s(t.$t("当前共"))),i("v-uni-text",{staticClass:"text"},[t._v(t._s(t.count))]),t._v(t._s(t.$t("件商品")))],1),i("v-uni-view",{staticClass:"admin",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showRadio.apply(void 0,arguments)}}},[t._v(t._s(t.checkbox_show?t.$t("取消"):t.$t("管理")))])],1),i("v-uni-checkbox-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.checkboxChange.apply(void 0,arguments)}}},[t._l(t.collectProductList,(function(e,o){return i("v-uni-view",{key:o,staticClass:"item acea-row"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-checkbox",{directives:[{name:"show",rawName:"v-show",value:t.checkbox_show,expression:"checkbox_show"}],attrs:{value:e.pid.toString(),checked:e.checked}}),i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.image}})],1)],1),i("v-uni-view",{staticClass:"text acea-row row-column-between",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.jump(e)}}},[i("v-uni-view",{staticClass:"name line2"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"money font-color"},[t._v(t._s(t.$t("¥"))+t._s(e.price))])],1)],1)],1)})),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)],1):!t.collectProductList.length&&t.page>1?i("v-uni-view",{staticClass:"noCommodity"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:t.imgHost+"/statics/images/noCollection.png"}})],1),i("recommend",{attrs:{hostProduct:t.hostProduct}})],1):t._e(),t.checkbox_show&&t.collectProductList.length?i("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[i("v-uni-view",[i("v-uni-checkbox-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.checkboxAllChange.apply(void 0,arguments)}}},[i("v-uni-checkbox",{attrs:{value:"all",checked:!!t.isAllSelect}}),i("v-uni-text",{staticClass:"checkAll"},[t._v(t._s(t.$t("全选"))+"("+t._s(t.ids.length)+")")])],1)],1),i("v-uni-view",{staticClass:"button acea-row row-middle"},[i("v-uni-button",{staticClass:"bnt",attrs:{formType:"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.subDel.apply(void 0,arguments)}}},[t._v(t._s(t.$t("取关")))])],1)],1):t._e(),i("home")],1)},a=[]},"6bbe":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return o}));var o={easyLoadimage:i("e3c3").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"recommend",style:t.colorStyle},[i("v-uni-view",{staticClass:"title acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"iconfont icon-zhuangshixian"}),i("v-uni-text",{staticClass:"name"},[t._v(t._s(t.$t("热门推荐")))]),i("v-uni-text",{staticClass:"iconfont icon-zhuangshixian lefticon"})],1),i("v-uni-view",{staticClass:"recommendList acea-row row-between-wrapper"},t._l(t.hostProduct,(function(e,o){return i("v-uni-view",{key:o,staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetail(e)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("easy-loadimage",{attrs:{mode:"widthFix","image-src":e.image}}),e.activity&&"1"===e.activity.type?i("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("秒杀")))]):t._e(),e.activity&&"2"===e.activity.type?i("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("砍价")))]):t._e(),e.activity&&"3"===e.activity.type?i("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("拼团")))]):t._e()],1),i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"money font-color"},[t._v(t._s(t.$t("¥"))),i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.price))])],1)],1)})),1)],1)},a=[]},"768b":function(t,e,i){"use strict";var o=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getProductDetail=a,e.getProductCode=c,e.collectAdd=r,e.collectDel=s,e.postCartAdd=l,e.getCategoryList=u,e.getProductslist=d,e.getProductHot=f,e.collectAll=v,e.getGroomList=h,e.getCollectUserList=g,e.getReplyList=m,e.getReplyConfig=p,e.getSearchKeyword=b,e.storeListApi=_,e.storeDiscountsList=w,e.postCartNum=y,e.create=x,e.getAgentAgreement=C,e.registerVerify=P,e.getCodeApi=L,e.getGoodsDetails=k,e.getAttr=A,e.getHomeProducts=$,e.getPresellProductDetail=S,e.getVisitList=T,e.deleteVisitList=z;var n=o(i("844e"));function a(t){return n.default.get("product/detail/"+t,{},{noAuth:!0})}function c(t){return n.default.get("product/code/"+t,{})}function r(t,e){return n.default.post("collect/add",{id:t,product:void 0===e?"product":e})}function s(t,e){return n.default.post("collect/del",{id:t,category:void 0===e?"product":e})}function l(t){return n.default.post("cart/add",t)}function u(){return n.default.get("category",{},{noAuth:!0})}function d(t){return n.default.get("products",t,{noAuth:!0})}function f(t,e){return n.default.get("product/hot",{page:void 0===t?1:t,limit:void 0===e?4:e},{noAuth:!0})}function v(t,e){return n.default.post("collect/all",{id:t,category:void 0===e?"product":e})}function h(t,e){return n.default.get("groom/list/"+t,e,{noAuth:!0})}function g(t){return n.default.get("collect/user",t)}function m(t,e){return n.default.get("reply/list/"+t,e)}function p(t){return n.default.get("reply/config/"+t)}function b(){return n.default.get("search/keyword",{},{noAuth:!0})}function _(t){return n.default.get("store_list",t)}function w(t){return n.default.get("store_discounts/list/"+t,{},{noAuth:!0})}function y(t){return n.default.post("v2/set_cart_num",t)}function x(t){return n.default.post("agent/apply/".concat(t.id),t)}function C(t){return n.default.get("agent/get_agent_agreement",{},{noAuth:!0})}function P(t){return n.default.post("register/verify",t,{noAuth:!0})}function L(){return n.default.get("verify_code",{},{noAuth:!0})}function k(){return n.default.get("agent/apply/info",{},{noAuth:!0})}function A(t,e){return n.default.get("v2/get_attr/"+t+"/"+e)}function $(t){return n.default.get("home/products",t,{noAuth:!0})}function S(t){return n.default.get("advance/detail/"+t)}function T(t){return n.default.get("user/visit_list",t)}function z(t){return n.default.delete("user/visit",t)}},"796c":function(t,e,i){var o=i("24fb");e=o(!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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.collectionGoods[data-v-33eb9fb0]{background-color:#fff;border-top:%?1?% solid #eee}.collectionGoods .item[data-v-33eb9fb0]{margin-left:%?30?%;border-bottom:%?1?% solid #eee;height:%?180?%;display:flex;align-items:center;flex-wrap:nowrap}.left[data-v-33eb9fb0]{display:flex;align-items:center;margin-right:%?20?%}.collectionGoods .item .pictrue[data-v-33eb9fb0]{width:%?130?%;height:%?130?%;margin-left:%?20?%}.collectionGoods .item .pictrue uni-image[data-v-33eb9fb0]{width:100%;height:100%;border-radius:%?6?%}.collectionGoods .item .text[data-v-33eb9fb0]{height:%?130?%;font-size:%?28?%;color:#282828}.collectionGoods .item .text .name[data-v-33eb9fb0]{width:max-contnet}.collectionGoods .item .text .money[data-v-33eb9fb0]{font-size:%?26?%}.collectionGoods .item .text .delete[data-v-33eb9fb0]{font-size:%?26?%;color:#282828;width:%?144?%;height:%?46?%;border:1px solid #bbb;border-radius:%?4?%;text-align:center;line-height:%?46?%}.noCommodity[data-v-33eb9fb0]{background-color:#fff;padding-top:%?1?%;border-top:0}.title-admin[data-v-33eb9fb0]{display:flex;justify-content:space-between;align-items:center;padding:%?20?%;border-bottom:1px solid #f2f2f2}.title-admin .text[data-v-33eb9fb0]{color:var(--view-theme)}.title-admin .admin[data-v-33eb9fb0]{color:var(--view-theme)}.footer[data-v-33eb9fb0]{z-index:999;width:100%;height:%?96?%;background-color:#fafafa;position:fixed;padding:0 %?30?%;box-sizing:border-box;border-top:%?1?% solid #eee;bottom:0}.footer .checkAll[data-v-33eb9fb0]{font-size:%?28?%;color:#282828;margin-left:%?16?%}.footer .money[data-v-33eb9fb0]{font-size:%?30?%}.footer .placeOrder[data-v-33eb9fb0]{color:#fff;font-size:%?30?%;width:%?226?%;height:%?70?%;border-radius:%?50?%;text-align:center;line-height:%?70?%;margin-left:%?22?%}.footer .button .bnt[data-v-33eb9fb0]{font-size:%?28?%;color:#999;border-radius:%?50?%;border:1px solid #999;width:%?160?%;height:%?60?%;text-align:center;line-height:%?60?%}.footer .button uni-form ~ uni-form[data-v-33eb9fb0]{margin-left:%?17?%}',""]),t.exports=e},8834:function(t,e,i){"use strict";var o=i("d5f3"),n=i.n(o);n.a},"8d34":function(t,e,i){"use strict";var o=i("b21c"),n=i.n(o);n.a},a25b:function(t,e,i){"use strict";i.r(e);var o=i("05d1"),n=i("b5b4");for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("8834");var c,r=i("f0c5"),s=Object(r["a"])(n["default"],o["b"],o["c"],!1,null,"5c721f6d",null,!1,o["a"],c);e["default"]=s.exports},a43a:function(t,e,i){"use strict";i("99af"),i("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.goShopDetail=n,e.goPage=a;var o=getApp();function n(t,e){return new Promise((function(i){t.activity&&"1"===t.activity.type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.activity.id,"&time=").concat(t.activity.time,"&status=1")}):t.activity&&"2"===t.activity.type?uni.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(t.activity.id,"&bargain=").concat(e)}):t.activity&&"3"===t.activity.type?uni.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(t.activity.id)}):i(t)}))}function a(){return new Promise((function(t){if(0!=o.globalData.isIframe)return!1;t(!0)}))}},b21c:function(t,e,i){var o=i("bd6b");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("4f06").default;n("5e1b83c3",o,!0,{sourceMap:!1,shadowMode:!1})},b5b4:function(t,e,i){"use strict";i.r(e);var o=i("01be"),n=i.n(o);for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},bd6b:function(t,e,i){var o=i("24fb");e=o(!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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.recommend[data-v-487f9802]{background-color:#fff}.recommend .title[data-v-487f9802]{height:%?135?%;font-size:%?28?%;color:#282828}.recommend .title .name[data-v-487f9802]{margin:0 %?28?%}.recommend .title .iconfont[data-v-487f9802]{font-size:%?170?%;color:#454545}.recommend .title .iconfont.lefticon[data-v-487f9802]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.recommend .recommendList[data-v-487f9802]{padding:0 %?30?%}.recommend .recommendList .item[data-v-487f9802]{width:%?335?%;margin-bottom:%?30?%;border-radius:%?20?% %?20?% 0 0;box-shadow:%?0?% %?3?% %?10?% %?2?% rgba(0,0,0,.03)}.recommend .recommendList .item .pictrue[data-v-487f9802]{position:relative;width:100%;height:%?335?%}.recommend .recommendList .item .pictrue[data-v-487f9802] ,\n.recommend .recommendList .item .pictrue[data-v-487f9802] uni-image,\n.recommend .recommendList .item .pictrue[data-v-487f9802] .easy-loadimage,\n.recommend .recommendList .item .pictrue[data-v-487f9802] uni-image{width:100%;height:%?335?%;border-radius:%?20?%}.recommend .recommendList .item .name[data-v-487f9802]{font-size:%?28?%;color:#282828;margin-top:%?20?%;padding:0 %?10?%}.recommend .recommendList .item .money[data-v-487f9802]{font-size:%?20?%;margin-top:%?8?%;padding:0 %?10?% %?10?% %?10?%}.recommend .recommendList .item .money .num[data-v-487f9802]{font-size:%?28?%}',""]),t.exports=e},d5f3:function(t,e,i){var o=i("318e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("4f06").default;n("9d8385de",o,!0,{sourceMap:!1,shadowMode:!1})},db6b:function(t,e,i){"use strict";i.r(e);var o=i("fd0c"),n=i.n(o);for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},edbd:function(t,e,i){var o=i("796c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("4f06").default;n("14a56490",o,!0,{sourceMap:!1,shadowMode:!1})},ef32:function(t,e,i){"use strict";i.r(e);var o=i("6bbe"),n=i("0665");for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("8d34");var c,r=i("f0c5"),s=Object(r["a"])(n["default"],o["b"],o["c"],!1,null,"487f9802",null,!1,o["a"],c);e["default"]=s.exports},fd0c:function(t,e,i){"use strict";var o=i("4ea4");i("99af"),i("d81d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,a=o(i("ade3")),c=i("768b"),r=i("26cb"),s=i("a368"),l=o(i("ef32")),u=o(i("a25b")),d=o(i("9ad2")),f=i("168b"),v=(n={components:{recommend:l.default,home:u.default},mixins:[d.default],data:function(){return{imgHost:f.HTTP_REQUEST_URL,ids:[],hostProduct:[],checkbox_show:!1,loadTitle:this.$t("加载更多"),loading:!1,loadend:!1,collectProductList:[],count:0,limit:8,page:1,isAuto:!1,isShowAuth:!1,hotScroll:!1,hotPage:1,hotLimit:10,isAllSelect:!1}},computed:(0,r.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin?(this.loadend=!1,this.page=1,this.collectProductList=[],this.getUserCollectProduct()):(0,s.toLogin)()},onShow:function(){this.loadend=!1,this.page=1,this.$set(this,"collectProductList",[]),this.getUserCollectProduct()},onReachBottom:function(){this.getUserCollectProduct()},methods:{showRadio:function(){this.checkbox_show=!this.checkbox_show},checkboxChange:function(t){t.detail.value.length<this.ids.length?this.$set(this,"isAllSelect",!1):t.detail.value.length===this.collectProductList.length&&this.$set(this,"isAllSelect",!0),this.$set(this,"ids",t.detail.value)},subDel:function(){var t=this,e=this;if(!this.ids.length)return e.$util.Tips({title:e.$t("请选择商品")});(0,c.collectDel)(e.ids).then((function(i){e.loadend=!1,e.$util.Tips({title:i.msg}),e.page=1,e.collectProductList=[],t.getUserCollectProduct(),t.ids.length=""}))},checkboxAllChange:function(t){var e=t.detail.value;e.length>0?this.setAllSelectValue(1):this.setAllSelectValue(0)},setAllSelectValue:function(t){var e=this,i=[],o=e.collectProductList;if(o.length>0){var n=o.map((function(o){return t?(o.checked=!0,i.push(o.pid),e.isAllSelect=!0):(o.checked=!1,e.isAllSelect=!1),o}));e.$set(e,"collectProductList",n),e.$set(e,"ids",i)}},jump:function(t){uni.navigateTo({url:"/pages/goods_details/index?id="+t.pid})},onLoadFun:function(){this.loadend=!1,this.page=1,this.$set(this,"collectProductList",[]),this.getUserCollectProduct()},authColse:function(t){this.isShowAuth=t},getUserCollectProduct:function(){var t=this,e=this;this.loading||this.loadend||(e.loading=!0,e.loadTitle="",(0,c.getCollectUserList)({page:e.page,limit:e.limit}).then((function(i){t.count=i.data.count;var o=i.data.list;o.map((function(t){t.checked=!1}));var n=o.length<e.limit;e.collectProductList=e.$util.SplitArray(o,e.collectProductList),e.$set(e,"collectProductList",e.collectProductList),e.loadend=n,e.loadTitle=n?e.$t("我也是有底线的"):e.$t("加载更多"),e.collectProductList.length||1!=e.page||t.get_host_product(),e.page=e.page+1,e.loading=!1})).catch((function(t){e.loading=!1,e.loadTitle=e.$t("加载更多")})))},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)}))}}},(0,a.default)(n,"onReachBottom",(function(){this.getUserCollectProduct()})),(0,a.default)(n,"onPageScroll",(function(t){uni.$emit("scroll")})),n);e.default=v}}]);