1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3558385a"],{"00a5":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".ell[data-v-eaa84522]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.covert-flex[data-v-eaa84522]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.covert-flex[data-v-eaa84522],.goods-item[data-v-eaa84522]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.goods-item[data-v-eaa84522]{background-color:#fff;padding:12px;border-radius:8px 8px 8px 8px;margin:0 0 10px 0}.goods-item .orderHead[data-v-eaa84522]{font-size:14px;font-weight:400;padding:0 0 10px 0}.goods-item .orderHead h3[data-v-eaa84522]{color:#00001c;font-weight:400}.goods-item .orderHead p[data-v-eaa84522]{color:var(--themeBaseColor)}.goods-item .order-sum[data-v-eaa84522]{padding:17px 0 0 0;font-size:13px;font-weight:400;color:#00001c}.goods-item .order-sum .price[data-v-eaa84522]{font-weight:500}.goods-item .img[data-v-eaa84522]{min-width:90px;height:90px}.goods-item .min-img[data-v-eaa84522]{min-width:80px;height:80px}.goods-item .wrap[data-v-eaa84522]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 0 0 10px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.goods-item .wrap h3[data-v-eaa84522]{word-break:break-all;word-wrap:break-word;text-align:left;font-weight:500;color:#00001c}.goods-item .wrap .sum[data-v-eaa84522]{min-width:20%;font-size:13px;font-weight:400;color:#00001c;text-align:right}.goods-item .order-flex[data-v-eaa84522]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.goods-item .order-address[data-v-eaa84522]{text-align:left;font-size:13px;font-weight:400;color:#6e6e79;padding:15px 0 0 0}.goods-item .order-address .member-info[data-v-eaa84522]{padding:0 0 8px 0}.goods-item .address-btn[data-v-eaa84522]{padding:12px 0 0 0;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.goods-item .address-btn .btn[data-v-eaa84522]{font-size:13px;line-height:13px;font-weight:400;color:#fff;color:var(--themeBaseColor);padding:9px 14px;border-radius:25px 25px 25px 25px;border:1px solid var(--themeBaseColor);-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:10px}.goods-item .classify[data-v-eaa84522]{padding:10px 0 0 0;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.goods-item .classify .price[data-v-eaa84522]{color:#f15353;font-weight:500;font-size:16px}.goods-item .classify .price span[data-v-eaa84522]{font-size:12px}.goods-item .classify .select[data-v-eaa84522]{background:#f15353;border-radius:50%;padding:5px 6px}.goods-item .classify .select .icon-gouwuche2[data-v-eaa84522]{color:#fff;font-size:13px}",""]),e.exports=t},"3a80":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"present-page"},[i("van-sticky",[i("c-title",{attrs:{hide:!1,text:"转赠明细"}}),i("van-tabs",{attrs:{"line-width":"15","title-inactive-color":"#00001C",color:"var(--themeBaseColor)","title-active-color":"var(--themeBaseColor)"},on:{click:e.presentTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.presentArr,(function(e,t){return i("block",{key:t},[i("van-tab",{attrs:{title:e.name}})],1)})),1)],1),e.presentArr[e.active]&&e.presentArr[e.active].goodsList.length>0?i("div",{staticClass:"present-list"},e._l(e.presentArr[e.active].goodsList,(function(t,a){return i("block",{key:a},[i("goods-item",{attrs:{item:t,goodIndex:a,className:"present"},scopedSlots:e._u([{key:"member",fn:function(){return[i("div",{staticClass:"flex present"},[i("h4",[e._v(e._s(t.created_at))]),i("h5",[e._v(e._s(1==e.active?"转赠会员":"受赠会员")+"ID:"+e._s(t.member_id))])])]},proxy:!0},{key:"amount",fn:function(){return[i("div",{staticClass:"sum"},[e._v("x"+e._s(t.total))])]},proxy:!0}],null,!0)})],1)})),1):i("van-empty",{attrs:{description:"暂无数据"}}),i("div",{staticClass:"mb54"})],1)},o=[],s=i("2909"),r=(i("99af"),i("d3b7"),i("159b"),i("ee38")),n=i("ac0d"),c={name:"",components:{goodsItem:r["a"]},mixins:[n["a"]],data:function(){return{active:0,isLoadMore:!0,presentArr:[{name:"转赠藏品",status:0,goodsList:[],page:1,total_page:0},{name:"受赠藏品",status:1,goodsList:[],page:1,total_page:0}],presentList:[]}},computed:{},watch:{},methods:{presentTab:function(){this.presentArr[this.active].page>=2&&(this.presentArr[this.active].goodsList=[]),0===this.presentArr[this.active].goodsList.length&&(this.isLoadMore=!1,this.presentArr[this.active].page=1,this.recordList())},recordList:function(){var e=this,t={has_transfer:this.active,page:this.presentArr[this.active].page};$http.get("plugin.collection-center.frontend.controllers.record.transfer-record",t,"加载中..").then((function(t){if(1==t.result){var i=t.data,a=i.record_list.data;e.isLoadMore=!0,e.presentArr[e.active].total_page=i.record_list.last_page,e.presentArr[e.active].total_page||(e.presentArr[e.active].page=0),e.presentArr[e.active].goodsList=a}else e.presentArr[e.active].page=e.presentArr[e.active].page-1,e.isLoadMore=!1,e.$dialog.alert({message:t.msg})}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.presentArr[this.active].page>=this.presentArr[this.active].total_page)){this.presentArr[this.active].page=this.presentArr[this.active].page+1;var t={has_transfer:this.active,page:this.presentArr[this.active].page};$http.post("plugin.collection-center.frontend.controllers.record.transfer-record",t,"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var i=t.data,a=i.record_list.data;e.presentArr[e.active].goodsList=[].concat(Object(s["a"])(e.presentArr[e.active].goodsList),Object(s["a"])(a))}else e.presentArr[e.active].page=e.presentArr[e.active].page-1,e.isLoadMore=!1}),(function(e){}))}}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){this.page=1,this.presentArr.forEach((function(e,t){e["goodsList"]=[]})),this.recordList()}},d=c,l=d,p=(i("3b0d"),i("2877")),f=Object(p["a"])(l,a,o,!1,null,"0c11c9fd",null);t["default"]=f.exports},"3b0d":function(e,t,i){"use strict";i("c2d5")},8377:function(e,t,i){var a=i("00a5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=i("499e").default;o("a179ab0e",a,!0,{sourceMap:!1,shadowMode:!1})},"9dc9":function(e,t,i){"use strict";i("8377")},ac0d:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var a=document.documentElement,o=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return a&&a.scrollTop?e=a.scrollTop:o&&(e=o.scrollTop),e},getClientHeight:function(){var e=0;return e=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),e},getScrollHeight:function(){return Math.max(o.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b700:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".mb54[data-v-0c11c9fd]{height:54px;clear:both}.present-page[data-v-0c11c9fd] .van-tabs__line{bottom:21px}.present-list[data-v-0c11c9fd]{margin:10px 12px 0 12px}.present-list .present[data-v-0c11c9fd]{font-size:13px;font-weight:400;color:#6e6e79;line-height:13px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;text-align:left}.present-list .present h4[data-v-0c11c9fd]{padding:0 0 7px 0;font-weight:400}.present-list .present h5[data-v-0c11c9fd]{font-weight:400}",""]),e.exports=t},c2d5:function(e,t,i){var a=i("b700");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=i("499e").default;o("5266415d",a,!0,{sourceMap:!1,shadowMode:!1})},ee38:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"goods-item flex",on:{click:function(t){return t.stopPropagation(),e.goodsTo(e.item.id,e.item.goods_id)}}},[e._t("orderHead"),i("div",{staticClass:"flex"},[i("div",{staticClass:"img",class:["classify"===e.className?"min-img":""]},["classify"!==e.className?i("van-image",{attrs:{width:"90px",height:"90px",src:e.item&&e.item.goods&&e.item.goods.thumb,radius:"8px"}}):i("van-image",{attrs:{width:"80px",height:"80px",src:e.item.thumb,radius:"8px"}})],1),i("div",{staticClass:"wrap flex",class:["covert"===e.className||"present"===e.className?"covert-flex":"","order"===e.className||"classify"===e.className?"order-flex":""]},[i("div",{staticClass:"flex-j-sb title"},["classify"===e.className?i("h3",{staticClass:"ell"},[e._v(e._s(e.item.title))]):i("h3",{staticClass:"ell"},[e._v(e._s(e.item&&e.item.goods&&e.item.goods.title||e.item&&e.item.goods_name))]),e._t("amount")],2),e._t("orderSum"),e._t("convertBtn"),e._t("member"),e._t("classify")],2)]),e._t("orderAddress")],2)},o=[],s=(i("4056"),i("44bf")),r=(i("a9e3"),i("14d9"),{name:"",props:{item:{type:Object,default:function(){return{}}},className:String,goodIndex:Number},components:{VanImage:s["a"]},data:function(){return{}},computed:{},watch:{},methods:{goodsTo:function(e,t){"classify"===this.className&&e&&this.$router.push(this.fun.getUrl("goods",{id:e},{})),"covert"===this.className&&t&&this.$router.push(this.fun.getUrl("goods",{id:t},{}))}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),n=r,c=(i("9dc9"),i("2877")),d=Object(c["a"])(n,a,o,!1,null,"eaa84522",null);t["a"]=d.exports}}]); |