1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-favorites"],{"04e6":function(t,a,e){"use strict";var i=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.orderData=o,a.getUserInfo=d,a.spreadBanner=r,a.getAddressList=l,a.addressEdit=s,a.addressDel=c,a.setAddressDefault=u,a.getCartList=f,a.getCartNum=v,a.cartDel=m,a.getcollectList=p,a.delcollect=h,a.spread=g,a.stylelist=w,a.auth=b,a.subscribe=y,a.enDetails=_,a.my_reply=x,a.to_my_reply=k;var n=i(e("4c3b"));function o(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function r(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})}function c(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function u(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function v(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function m(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})}function p(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})}function h(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function g(t){return(0,n.default)({url:"/api/spread/people",method:"POST",data:t})}function w(t){return(0,n.default)({url:"/api/enterprise/stylelist",method:"GET",data:t})}function b(t){return(0,n.default)({url:"/api/user/auth",method:"POST",data:t})}function y(t){return(0,n.default)({url:"/api/user/subscribe",method:"GET",data:t})}function _(t){return(0,n.default)({url:"/api/enterprise/details",method:"GET",data:t})}function x(t){return(0,n.default)({url:"/api/article/my_reply",method:"GET",data:t})}function k(t){return(0,n.default)({url:"/api/article/to_my_reply",method:"GET",data:t})}},"41ac":function(t,a,e){"use strict";var i=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=e("04e6"),o=i(e("dfd3")),d=i(e("599d")),r={components:{uniLoadMore:o.default,empty:d.default},data:function(){return{tabCurrentIndex:0,favoriteList:"",delshow:!0}},onLoad:function(){this.loadData()},methods:{loadData:function(){var t=this;(0,n.getcollectList)({page:"1",limit:"10"}).then((function(a){t.favoriteList=a.data,console.log(t.favoriteList)})).catch((function(t){console.log(t)}))},toproduct:function(t){var a=t;uni.navigateTo({url:"/pages/product/product?id=".concat(a)})},del:function(t){var a=this;uni.showModal({title:"提示",content:"是否取消收藏该商品",success:function(e){e.confirm&&(0,n.delcollect)({id:t,category:"product"}).then((function(t){uni.showToast({title:"已取消收藏",duration:1500}),a.loadData()})).catch((function(t){console.log(t)}))}})}}};a.default=r},"6a11":function(t,a,e){var i=e("74b9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("c7b491b8",i,!0,{sourceMap:!1,shadowMode:!1})},"74b9":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".uni-load-more[data-v-c8f01f2e]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-c8f01f2e]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-c8f01f2e]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>.load[data-v-c8f01f2e]{position:absolute}.uni-load-more__img>.load .item[data-v-c8f01f2e]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-c8f01f2e 1.56s ease infinite;animation:load-data-v-c8f01f2e 1.56s ease infinite}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(4){top:11px;left:0}.load1[data-v-c8f01f2e],\n.load2[data-v-c8f01f2e],\n.load3[data-v-c8f01f2e]{height:24px;width:24px}.load2[data-v-c8f01f2e]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-c8f01f2e]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-c8f01f2e{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=a},"80ec":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-17cac99e]{height:100%}.container[data-v-17cac99e]{height:100%;background-color:#f8f8f8;padding:%?15?% %?0?%;font-size:%?28?%}.favorites[data-v-17cac99e]{width:90%;background-color:#fff;border-radius:%?15?%;margin:%?15?% auto;padding:%?25?% %?25?%;margin-bottom:%?25?%}.favorites_img[data-v-17cac99e]{width:80px!important;height:80px}.favorites_img uni-image[data-v-17cac99e]{width:100%;height:100%}.favorites_list[data-v-17cac99e]{width:70%;padding-left:%?20?%}.icon_del[data-v-17cac99e]{color:#606266;z-index:9999;font-weight:700}.favorites_name[data-v-17cac99e]{height:%?80?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertial;-webkit-line-clamp:2}.favorites_peice[data-v-17cac99e]{margin-top:%?25?%;color:#db1935;font-weight:700}',""]),t.exports=a},"828a":function(t,a,e){var i=e("80ec");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("43a9f0df",i,!0,{sourceMap:!1,shadowMode:!1})},"8af6":function(t,a,e){"use strict";e.r(a);var i=e("93dc"),n=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},"90a2":function(t,a,e){"use strict";var i=e("6a11"),n=e.n(i);n.a},"93dc":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};a.default=i},b4d3:function(t,a,e){"use strict";e.r(a);var i=e("41ac"),n=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},c229:function(t,a,e){"use strict";e.r(a);var i=e("cdbc"),n=e("b4d3");for(var o in n)"default"!==o&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("edbd");var d,r=e("f0c5"),l=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"17cac99e",null,!1,i["a"],d);a["default"]=l.exports},cdbc:function(t,a,e){"use strict";var i;e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return i}));var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"container"},[t.favoriteList.length<1?e("empty"):t._e(),t._l(t.favoriteList,(function(a){return e("v-uni-view",{staticClass:"favorites flex",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toproduct(a.pid)}}},[e("v-uni-view",{staticClass:"favorites_img"},[e("v-uni-image",{attrs:{src:a.image}})],1),e("v-uni-view",{staticClass:"favorites_list"},[e("v-uni-view",{staticClass:"favorites_name"},[t._v(t._s(a.store_name))]),e("v-uni-view",{staticClass:"favorites_peice flex"},[e("v-uni-view",[e("v-uni-text",[t._v("¥"+t._s(a.price))])],1),e("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.delshow,expression:"delshow"}],staticClass:"icon_del",on:{click:function(e){e.preventDefault(),e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.del(a.pid)}}},[e("v-uni-text",{staticClass:"iconfont icondelete"}),e("v-uni-text",[t._v("取消")])],1)],1)],1)],1)}))],2)},o=[]},dfd3:function(t,a,e){"use strict";e.r(a);var i=e("ede1"),n=e("8af6");for(var o in n)"default"!==o&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("90a2");var d,r=e("f0c5"),l=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"c8f01f2e",null,!1,i["a"],d);a["default"]=l.exports},edbd:function(t,a,e){"use strict";var i=e("828a"),n=e.n(i);n.a},ede1:function(t,a,e){"use strict";var i;e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return i}));var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"uni-load-more"},[e("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[e("v-uni-view",{staticClass:"load1 load"},[e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),e("v-uni-view",{staticClass:"load2 load"},[e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),e("v-uni-view",{staticClass:"load3 load"},[e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}})],1)],1),e("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},o=[]}}]);
|