353dc21.js 5.7 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1021:function(e,t,o){"use strict";o.r(t);o(12),o(13),o(6),o(16),o(11),o(17);var n=o(4),menu=(o(14),o(90),o(92),o(717)),r=o(5);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}var d={data:function(){return{list:[]}},components:{Menu:menu.default},head:function(){return{title:"我的收藏-".concat(this.basicSet.seo.title),meta:[{name:"keywords",content:"我的收藏,".concat(this.basicSet.seo.keywords)},{name:"description",content:"".concat(this.basicSet.seo.description)}]}},computed:function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({},Object(r.b)(["basicSet"])),mounted:function(){this.getData()},methods:{getData:function(){var e=this;this.fun.$get("member.member-favorite.index",{},"正在获取").then((function(t){1==t.result?e.list=t.data:e.$message.error(t.msg)}))},delteteItem:function(e,i){var t=this,o={goods_id:e.goods.id};this.fun.$get("member.member-favorite.destroy",o,"处理中...").then((function(e){1==e.result?t.list.splice(i,1):t.$message.error(e.msg)}),(function(e){console.log(e)}))},toGoods:function(e){var t=e.goods_id;this.$baseURL?window.open(this.fun.getSiteRoot()+"/plugins/shop_server/goods?i="+this.fun.getKeyByI()+"&id="+t,"_blank"):window.open(this.fun.getSiteRoot()+"/plugins/shop_server/goods/"+t+"?i="+this.fun.getKeyByI(),"_blank")},toUrl:function(e,t){this.$router.push(this.fun.getUrl(e,t))}}},c=d,f=(o(927),o(1)),component=Object(f.a)(c,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"spread_index"},[o("div",{staticClass:"index_content m-auto flex"},[o("Menu"),e._v(" "),o("div",{staticClass:"right_info"},[o("div",{staticClass:"good-box"},[e._l(e.list,(function(t,n){return o("div",{key:t.id,staticClass:"good-item flex"},[o("img",{staticClass:"left-img",attrs:{src:t.goods.thumb,alt:""},on:{click:function(o){return e.toGoods(t)}}}),e._v(" "),o("div",{staticClass:"right-box"},[o("p",{staticClass:"title",on:{click:function(o){return e.toGoods(t)}}},[e._v(e._s(t.goods.title))]),e._v(" "),o("div",{staticClass:"bottom-box flex flex-a-c"},[o("p",{staticClass:"price"},[o("span",[e._v("¥")]),e._v(" "),t.vip_level_status&&1==t.vip_level_status.status?o("span",{staticClass:"product-price-span"},[e._v(e._s(t.vip_level_status.word))]):o("span",[e._v(e._s(t.goods.price))])]),e._v(" "),o("div",{staticClass:"delete",on:{click:function(o){return o.stopPropagation(),e.delteteItem(t,n)}}},[e._v("删除")])])])])})),e._v(" "),e.list.length<=0?o("div",{staticClass:"noTips"},[e._v("\n 暂无收藏\n ")]):e._e()],2)])],1)])}),[],!1,null,"61f6a8e9",null);t.default=component.exports},816:function(e,t,o){var content=o(928);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(8).default)("4e43f337",content,!0,{sourceMap:!1})},927:function(e,t,o){"use strict";o(816)},928:function(e,t,o){var n=o(7)(!1);n.push([e.i,".col_red[data-v-61f6a8e9]{color:#f11111}.col_green[data-v-61f6a8e9]{color:#44be95}.col_white[data-v-61f6a8e9]{color:#fff}.flex-col[data-v-61f6a8e9]{flex-direction:column}.flex-j-c[data-v-61f6a8e9]{justify-content:center}.flex-j-sb[data-v-61f6a8e9]{justify-content:space-between}.flex-j-ar[data-v-61f6a8e9]{justify-content:space-around}.flex-a-c[data-v-61f6a8e9]{align-items:center}.flex-a-e[data-v-61f6a8e9]{align-items:flex-end}.w[data-v-61f6a8e9]{width:1200px}.m-auto[data-v-61f6a8e9]{margin:0 auto}.height-one[data-v-61f6a8e9]{height:100%}.flex[data-v-61f6a8e9]{display:flex}.text-overflow[data-v-61f6a8e9]{-webkit-line-clamp:4}.text-overflow[data-v-61f6a8e9],.text-overflow-2[data-v-61f6a8e9]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2[data-v-61f6a8e9]{-webkit-line-clamp:2}.text-overflow-3[data-v-61f6a8e9]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide[data-v-61f6a8e9],.text-overflow-3[data-v-61f6a8e9]{overflow:hidden;text-overflow:ellipsis}.overflow-hide[data-v-61f6a8e9]{white-space:nowrap}.hiddenScroll[data-v-61f6a8e9]{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll[data-v-61f6a8e9]::-webkit-scrollbar{display:none}.finger-point[data-v-61f6a8e9]{cursor:pointer}.cursor-default[data-v-61f6a8e9]{cursor:default}.el-icon-circle-close[data-v-61f6a8e9]{color:#fff}.spread_index .index_content[data-v-61f6a8e9]{width:1200px;padding:32px 0}.spread_index .index_content .right_info[data-v-61f6a8e9]{margin-left:24px;width:940px}.good-box .good-item[data-v-61f6a8e9]{border:1px solid #eee;margin-bottom:15px;padding:15px}.good-box .good-item .left-img[data-v-61f6a8e9]{flex:0 0 90px;width:90px;height:90px;margin-right:20px;cursor:pointer}.good-box .good-item .title[data-v-61f6a8e9]{cursor:pointer}.good-box .good-item .right-box[data-v-61f6a8e9]{flex:1;display:flex;flex-direction:column;justify-content:space-between}.good-box .good-item .price[data-v-61f6a8e9]{color:#f11111;flex:1}.good-box .good-item .delete[data-v-61f6a8e9]{cursor:pointer;color:#f11111;padding:5px 28px;border-radius:5px;border:1px solid #f11111}.good-box .noTips[data-v-61f6a8e9]{width:100%;text-align:center;font-size:16px;margin:20px auto}",""]),e.exports=n}}]);