webpackJsonp([35],{"7h+J":function(r,t){},MviL:function(r,t,q){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=q("Au9i"),l=q("UgCr"),e={data:function(){return{collectionList:[],orderListParams:{page:1,per_page:10}}},created:function(){this.orderCollection()},methods:{rightBottom:function(r){var t=this;return[{content:"删除",style:{background:"red",color:"#fff"},handler:function(){return Object(i.MessageBox)({title:"确认删除",message:"是否要删除此商品？",showCancelButton:!0}).then(function(q){"confirm"===q&&t.getCancelCollection(r)})}}]},goBack:function(){this.$router.go(-1)},orderCollection:function(){var r=this,t=this.orderListParams;Object(l.h)(t.page,t.per_page).then(function(t){t&&(r.collectionList=t.products)},function(r){})},goOrderDetail:function(r){this.$router.push({name:"product",query:{id:r}})},getCancelCollection:function(r){var t=this;Object(l.k)(r).then(function(r){r&&(t.CancelCollection=r,t.orderCollection())})},goVisit:function(){this.$router.push("/home")}}},o={render:function(){var r=this,t=r.$createElement,i=r._self._c||t;return i("div",{staticClass:"container"},[i("mt-header",{staticClass:"header",attrs:{title:"我的收藏"}},[i("header-item",{attrs:{slot:"left",isBack:!0},on:{onclick:function(t){r.goBack()}},slot:"left"})],1),r._v(" "),i("div",{staticClass:"body"},[r._l(r.collectionList,function(t,l){return i("mt-cell-swipe",{key:t.id,attrs:{right:r.rightBottom(t.id)}},[i("div",{staticClass:"ui-collection-body",on:{click:function(q){r.goOrderDetail(t.id,t.shop)}}},[i("div",{staticClass:"ui-image-wrapper"},[t.photos<=0?i("img",{staticClass:"collection-img",attrs:{src:q("aVgn")}}):r._e(),r._v(" "),t.photos&&t.photos.length>0?i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.photos[0].thumb,expression:"item.photos[0].thumb"}],staticClass:"collection-img",attrs:{src:t.photos[0].thumb,"data-src":"../../../assets/image/change-icon/default_image_02@2x.png"}}):r._e(),r._v(" "),0==t.good_stock?i("span",{staticClass:"wrapper-red"},[r._v("无货")]):r._e(),r._v(" "),t.good_stock>0&&t.good_stock<=10?i("span",[r._v("仅剩"+r._s(t.good_stock)+"件")]):r._e()]),r._v(" "),i("div",{staticClass:"flex-right"},[i("h3",{staticClass:"title",staticStyle:{"-webkit-box-orient":"vertical"}},[r._v("\n\t\t\t\t\t\t"+r._s(t.name)+"\n\t\t\t\t\t")]),r._v(" "),i("p",{staticClass:"sub-title",staticStyle:{"-webkit-box-orient":"vertical"}},[r._v("\n\t\t\t\t\t\t"+r._s(t.desc)+"\n\t\t\t\t\t")]),r._v(" "),i("div",{staticClass:"price"},[i("span",[r._v("￥"+r._s(t.current_price))])])])])])}),r._v(" "),r.collectionList&&r.collectionList.length<=0?i("div",{staticClass:"order-air"},[i("img",{attrs:{src:q("w03Z")}}),r._v(" "),i("p",[r._v("暂无商品")]),r._v(" "),i("button",{staticClass:"button",on:{click:function(t){r.goVisit()}}},[i("label",[r._v("随便逛逛")])])]):r._e()],2)],1)},staticRenderFns:[]};var a=q("VU/8")(e,o,!1,function(r){q("n78b"),q("7h+J")},"data-v-3b7b694e",null);t.default=a.exports},n78b:function(r,t){},w03Z:function(r,t){r.exports="data:image/png;base64,[encoded data, 5172 characters]"}});
//# sourceMappingURL=35.d98338dbead896d1f0e0.js.map