1 line
9.6 KiB
JavaScript
1 line
9.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d8d9706"],{"1d23":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"consumption-dividend"}},[a("c-title",{attrs:{text:"消费分红"}}),a("div",{staticClass:"top-pane"},[e.memberData.member&&e.memberData.member.avatar_image?a("img",{attrs:{src:e.memberData.member?e.memberData.member.avatar_image:"",alt:""}}):e._e(),a("span",{staticClass:"name"},[e._v(e._s(e.memberData.member?e.memberData.member.username:""))])]),a("div",{staticClass:"middle-num"},[a("div",{staticClass:"num-rol"},[a("span",{staticClass:"num"},[e._v("¥"+e._s(e.memberData.rest_amount))]),a("span",{staticClass:"num-name",on:{click:function(t){e.popupShow=!0}}},[e._v("剩余额度"),a("van-icon",{attrs:{name:"arrow"}})],1)]),a("span",{staticClass:"line-rol"}),a("div",{staticClass:"num-rol"},[a("span",{staticClass:"num"},[e._v("¥"+e._s(e.memberData.sum_reward))]),a("span",{staticClass:"num-name"},[e._v("累计奖励金额")])])]),a("div",{staticClass:"bottom-list"},[a("van-tabs",{attrs:{color:"#F15353","title-active-color":"#F15353","line-width":"50px"},on:{click:e.clickEvent},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("van-tab",{attrs:{title:"额度记录",name:1}},[a("d-list",{attrs:{loading:e.loading,finished:e.finished},on:{load:e.onLoad}},e._l(e.detailList,(function(t,i){return a("div",{key:i,class:i+1==e.detailList.length?"detail-row no-detail-row":"detail-row"},[a("div",{staticClass:"buy-rol"},[a("span",{staticClass:"buy-name"},[e._v(e._s(t.type_desc))]),a("span",{class:e.filterAmount(t.change_amount)?"num-name active-color":"num-name"},[e._v(e._s(t.change_amount))])]),a("div",{staticClass:"pool-rol"},[a("span",{staticClass:"pool-name"},[e._v(e._s(t.has_one_pool?t.has_one_pool.name:""))]),a("span",[e._v(e._s(t.created_at))])])])})),0)],1),a("van-tab",{attrs:{title:"奖励记录",name:2}},[a("d-list",{attrs:{loading:e.loading,finished:e.finished},on:{load:e.onLoad}},e._l(e.detailList,(function(t,i){return a("div",{key:i,class:i+1==e.detailList.length?"detail-row no-detail-row":"detail-row"},[a("div",{staticClass:"buy-rol"},[a("span",{staticClass:"buy-name"},[e._v("ID:"+e._s(t.id))]),a("span",{staticClass:"num-name active-color"},[e._v("¥"+e._s(t.amount))])]),a("div",{staticClass:"pool-rol"},[a("span",[e._v(e._s(t.finish_time_str))])])])})),0)],1)],1)],1),a("van-popup",{staticClass:"van-popup-bom",style:{height:"18rem"},attrs:{round:"",position:"bottom"},model:{value:e.popupShow,callback:function(t){e.popupShow=t},expression:"popupShow"}},[a("van-icon",{staticClass:"closeable",attrs:{name:"cross"},on:{click:function(t){e.popupShow=!1}}}),a("div",{staticClass:"title-text"},[e._v("查看额度明细")]),e.amountSummary.length?a("div",{staticClass:"pool-popup"},e._l(e.amountSummary,(function(t,i){return a("div",{key:i,staticClass:"po-detail"},[a("span",{staticClass:"name"},[e._v(e._s(t.has_one_pool?t.has_one_pool.name:""))]),a("span",{staticClass:"num"},[e._v(e._s(t.actual_amount))])])})),0):e._e()],1)],1)},n=[],o=a("2909"),s=a("c7eb"),r=a("1da1"),m=(a("14d9"),a("94b4")),d={data:function(){return{activeName:1,popupShow:!1,detailList:[],amountSummary:[],loading:!1,finished:!1,page:1,memberData:{}}},mounted:function(){this.getTopData(),this.getAmountLog(),this.getAmountSummary()},methods:{getAmountSummary:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){var a,i,n,o;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,$http.post("plugin.consume-commission.frontend.index.amountSummary",{});case 2:a=t.sent,i=a.data,n=a.result,o=a.msg,n?e.amountSummary=i:e.$toast(o);case 7:case"end":return t.stop()}}),t)})))()},getTopData:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){var a,i,n,o;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,$http.post("plugin.consume-commission.frontend.index.index",{});case 2:a=t.sent,i=a.data,n=a.result,o=a.msg,n?e.memberData=i:e.$toast(o);case 7:case"end":return t.stop()}}),t)})))()},getAmountLog:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){var a,i,n,r,m,d;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!0!==e.loading&&!0!==e.finished){t.next=2;break}return t.abrupt("return");case 2:return e.loading=!0,a=1==e.activeName?"plugin.consume-commission.frontend.index.amountLog":"plugin.consume-commission.frontend.index.rewardLog",t.next=6,$http.post(a,{page:e.page});case 6:i=t.sent,n=i.data,r=i.result,m=i.msg,r?((d=e.detailList).push.apply(d,Object(o["a"])(n.data)),(0===n.data.length||n.data.length<n.per_page||n.current_page===n.last_page)&&(e.finished=!0),e.page++,e.isShowDirect=!0,e.loading=!1):e.$toast(m);case 11:case"end":return t.stop()}}),t)})))()},onLoad:function(){this.getAmountLog()},filterAmount:function(e){return-1==(e+"").indexOf("-")},clickEvent:function(){this.detailList=[],this.loading=!1,this.finished=!1,this.page=1,this.getAmountLog()}},components:{DList:m["a"]}},l=d,c=l,p=(a("5b5a"),a("2877")),u=Object(p["a"])(c,i,n,!1,null,"ee010390",null);t["default"]=u.exports},"4e14":function(e,t,a){var i=a("ff4a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("499e").default;n("3eaa1bfe",i,!0,{sourceMap:!1,shadowMode:!1})},"5b5a":function(e,t,a){"use strict";a("4e14")},ff4a:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"#consumption-dividend .top-pane[data-v-ee010390]{height:6.8rem;background:#ff8924;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.1rem .8rem .8rem .8rem}#consumption-dividend .top-pane img[data-v-ee010390]{width:3rem;height:3rem;border-radius:50%;margin:0 .2rem 0 0}#consumption-dividend .top-pane .name[data-v-ee010390]{font-size:.85rem;line-height:3rem;color:#fff}#consumption-dividend .middle-num[data-v-ee010390]{background:#fff;padding:1.1rem 0;margin:0 .8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-radius:.3rem;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;position:relative;top:-1.2rem}#consumption-dividend .middle-num .num-rol[data-v-ee010390]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:.2rem}#consumption-dividend .middle-num .num-rol .num[data-v-ee010390]{font-size:.9rem;color:#f14e4e;margin-bottom:.6rem;font-weight:700}#consumption-dividend .middle-num .num-rol .num-name[data-v-ee010390]{font-size:.75rem;color:#696969;line-height:1}#consumption-dividend .middle-num .line-rol[data-v-ee010390]{width:.05rem;background:#e7e7e7}#consumption-dividend .bottom-list[data-v-ee010390]{margin:0 .8rem;background:#fff;border-radius:.3rem;position:relative;top:-.4rem;padding-top:.1rem}#consumption-dividend .bottom-list .no-detail-row[data-v-ee010390]{border-bottom:none!important}#consumption-dividend .bottom-list .detail-row[data-v-ee010390]{padding:0 0 .8rem 0;margin:.8rem .8rem 0 .8rem;border-bottom:.05rem solid #f2f2f2}#consumption-dividend .bottom-list .detail-row .active-color[data-v-ee010390]{color:#f15353}#consumption-dividend .bottom-list .detail-row .num-name[data-v-ee010390]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#consumption-dividend .bottom-list .detail-row .num-name .icon[data-v-ee010390]{margin-bottom:.1rem}#consumption-dividend .bottom-list .detail-row .buy-rol[data-v-ee010390]{font-size:.85rem;color:#333;margin-bottom:.4rem;line-height:1}#consumption-dividend .bottom-list .detail-row .buy-rol[data-v-ee010390],#consumption-dividend .bottom-list .detail-row .pool-rol[data-v-ee010390]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-weight:400}#consumption-dividend .bottom-list .detail-row .pool-rol[data-v-ee010390]{font-size:.8rem;color:#999}#consumption-dividend .van-popup-bom[data-v-ee010390]{padding-bottom:.8rem}#consumption-dividend .van-popup-bom .closeable[data-v-ee010390]{font-size:.95rem;position:absolute;top:.65rem;right:.8rem;color:#333}#consumption-dividend .van-popup-bom .title-text[data-v-ee010390]{margin:1.5rem 0;font-size:.85rem;font-weight:400;color:#333}#consumption-dividend .van-popup-bom .pool-popup[data-v-ee010390]{padding-top:.6rem;margin:0 .85rem;display:grid;grid-template-columns:repeat(3,1fr);background:#f5f5f5;border-radius:.3rem;padding-left:.06rem;padding-right:.06rem}#consumption-dividend .van-popup-bom .pool-popup .po-detail[data-v-ee010390]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-bottom:.6rem}#consumption-dividend .van-popup-bom .pool-popup .po-detail .name[data-v-ee010390]{font-size:.8rem;font-weight:400;color:#999;margin-bottom:.4rem}#consumption-dividend .van-popup-bom .pool-popup .po-detail .num[data-v-ee010390]{font-size:.8rem;font-weight:700;color:#333}",""]),e.exports=t}}]); |