(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-504162a7"],{1560:function(t,e,r){var o=r("2cbb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=r("499e").default;n("f3d31f8c",o,!0,{sourceMap:!1,shadowMode:!1})},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("d3b7");function o(t,e,r,o,n,a,i){try{var s=t[a](i),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(o,n)}function n(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function s(t){o(i,n,a,s,c,"next",t)}function c(t){o(i,n,a,s,c,"throw",t)}s(void 0)}))}}},"2cbb":function(t,e,r){var o=r("24fb");e=o(!1),e.push([t.i,"#newcomer-reward .box[data-v-eb35b4e0]{background:#fff;margin:.63rem;border-radius:.31rem;padding:.86rem .81rem .63rem .63rem}#newcomer-reward .box .top[data-v-eb35b4e0]{text-align:left}#newcomer-reward .box .top .top-time[data-v-eb35b4e0]{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;margin-bottom:.46rem}#newcomer-reward .box .top .top-time .status[data-v-eb35b4e0]{font-size:.75rem;font-weight:400;font-stretch:normal;color:#f15353}#newcomer-reward .box .top .top-title[data-v-eb35b4e0]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:.94rem}#newcomer-reward .box .top .top-title[data-v-eb35b4e0],#newcomer-reward .box .top .top-title .member[data-v-eb35b4e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#newcomer-reward .box .top .top-title .member img[data-v-eb35b4e0]{width:1.96rem;height:1.96rem;border-radius:50%;margin:0 .41rem 0 0}#newcomer-reward .box .top .top-title .member .member-detail[data-v-eb35b4e0]{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:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1}#newcomer-reward .box .top .top-title .member .member-detail .member-name[data-v-eb35b4e0]{font-size:.75rem;font-weight:400;font-stretch:normal;color:#353535}#newcomer-reward .box .top .top-title .member .member-detail .member-id[data-v-eb35b4e0]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#686868}#newcomer-reward .box .top .right-status[data-v-eb35b4e0]{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:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;line-height:1}#newcomer-reward .box .top .right-status .num[data-v-eb35b4e0]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#686868}#newcomer-reward .box .top .desc-name-status[data-v-eb35b4e0]{line-height:1.5}#newcomer-reward .box .top .desc-detail[data-v-eb35b4e0]{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;margin-bottom:.63rem}#newcomer-reward .box .top .desc-detail .desc-name[data-v-eb35b4e0]{font-size:.81rem;font-weight:400;font-stretch:normal;color:#353535;width:50%}#newcomer-reward .box .top .desc-detail .desc-sn[data-v-eb35b4e0]{font-size:.69rem;font-weight:400;font-stretch:normal;color:#686868;word-break:break-all;width:50%;text-align:right}#newcomer-reward .box .top .reward-time[data-v-eb35b4e0]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#9e9e9e}#newcomer-reward .box .middle-line[data-v-eb35b4e0]{width:100%;height:.06rem;background-color:#f2f2f2;margin:.72rem 0}#newcomer-reward .box .bottom[data-v-eb35b4e0]{text-align:left}#newcomer-reward .box .bottom .top-goods[data-v-eb35b4e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#newcomer-reward .box .bottom .top-goods img[data-v-eb35b4e0]{width:2.48rem;height:2.48rem;border-radius:.13rem;margin:0 .31rem 0 0}#newcomer-reward .box .bottom .top-goods .detail[data-v-eb35b4e0]{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:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#newcomer-reward .box .bottom .top-goods .detail .goods-name[data-v-eb35b4e0]{font-size:.75rem;font-weight:400;font-stretch:normal;color:#353535}#newcomer-reward .box .bottom .top-goods .detail .goods-num[data-v-eb35b4e0]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#686868}#newcomer-reward .box .bottom .bottom-money[data-v-eb35b4e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:rgba(241,83,83,.1);border-radius:.31rem;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;margin-top:.69rem;padding:.69rem 0 .59rem 0}#newcomer-reward .box .bottom .bottom-money .money-box[data-v-eb35b4e0]{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;text-align:center}#newcomer-reward .box .bottom .bottom-money .money-box .num[data-v-eb35b4e0]{font-size:.75rem;font-weight:700;font-stretch:normal;line-height:1;color:#f14e4e;margin-bottom:.78rem}#newcomer-reward .box .bottom .bottom-money .money-box .status-name[data-v-eb35b4e0]{font-size:.63rem;font-weight:700;font-stretch:normal;line-height:1;color:#3d3d3d}",""]),t.exports=e},"355e":function(t,e,r){"use strict";r("1560")},be3a:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"newcomer-reward"}},[r("c-title",{attrs:{hide:!1,text:"奖励记录"}}),r("van-tabs",{staticClass:"tabs-style",attrs:{"title-active-color":"#f14e4e",color:"#f14e4e"},on:{change:t.changeTabs},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.vanTab,(function(e,o){return r("van-tab",{key:o,attrs:{title:e.title,name:e.id}},[r("d-list",{attrs:{loading:t.loading,finished:t.finished},on:{load:t.onLoad}},[r("div",t._l(t.newcomerReward,(function(o,n){return t.active==e.id?r("div",{key:t.index,staticClass:"box"},[r("div",{staticClass:"top"},[r("div",{staticClass:"top-time"},[r("div",{staticClass:"reward-time"},[t._v(t._s(o.created_at))]),r("span",{staticClass:"status"},[t._v(t._s(o.status_name))])]),r("div",{staticClass:"top-title"},[null!==o.has_one_buyer?r("div",{staticClass:"member"},[r("img",{attrs:{src:o.has_one_buyer.avatar_image,alt:""}}),r("div",{staticClass:"member-detail"},[r("span",{staticClass:"member-name"},[t._v(t._s(o.has_one_buyer.nickname))]),r("span",{staticClass:"member-id"},[t._v("id: "+t._s(o.has_one_buyer.uid))])])]):t._e(),null!==o.has_one_buyer?r("div",{staticClass:"right-status"},[r("span",{staticClass:"num"},[t._v(t._s(o.type_name))]),r("span",{staticClass:"num"},[t._v(t._s(o.record_sort))])]):t._e()]),r("div",{staticClass:"desc-detail"},[r("span",{staticClass:"desc-name"},[t._v(t._s(o.has_one_activity.name))]),o.order_sn?r("span",{staticClass:"desc-sn"},[t._v(t._s(o.order_sn))]):t._e(),null!=o.has_one_buyer||o.order_sn?t._e():r("div",{staticClass:"right-status desc-name-status"},[r("span",{staticClass:"num"},[t._v(t._s(o.type_name))]),r("span",{staticClass:"num"},[t._v(t._s(o.record_sort))])])])]),r("div",{staticClass:"middle-line"}),r("div",{staticClass:"bottom"},[null!==o.has_one_goods?r("div",{staticClass:"top-goods"},[r("img",{attrs:{src:null!==o.has_one_goods?o.has_one_goods.thumb:"",alt:""}}),r("div",{staticClass:"detail"},[r("span",{staticClass:"goods-name"},[t._v(t._s(null!==o.has_one_goods?o.has_one_goods.title:""))])])]):t._e(),r("div",{staticClass:"bottom-money"},[r("div",{staticClass:"money-box"},[r("span",{staticClass:"num"},[t._v(t._s(o.rewards_amounts))]),r("span",{staticClass:"status-name"},[t._v(t._s(t.fun.getBalanceLang()))])]),r("div",{staticClass:"money-box"},[r("span",{staticClass:"num"},[t._v(t._s(o.rewards_income))]),r("span",{staticClass:"status-name"},[t._v("收入")])]),r("div",{staticClass:"money-box"},[r("span",{staticClass:"num"},[t._v(t._s(o.rewards_points))]),r("span",{staticClass:"status-name"},[t._v(t._s(t.fun.getIntegralLang()))])]),r("div",{staticClass:"money-box"},[r("span",{staticClass:"num"},[t._v(t._s(o.rewards_coupons)+"张")]),r("span",{staticClass:"status-name"},[t._v("优惠券")])])])])]):t._e()})),0)])],1)})),1)],1)},n=[],a=r("c7eb"),i=r("2909"),s=r("1da1"),c=r("94b4"),l=r("6968"),d={data:function(){return{active:"随意",loading:!1,finished:!1,info:!1,page:1,newcomerReward:[],vanTab:[{title:"全部",id:"随意"},{title:"预计奖励",id:4},{title:"待结算",id:1},{title:"已结算",id:2},{title:"无效奖励",id:3}]}},mounted:function(){this.getData()},methods:{getData:function(){var t=this;return Object(s["a"])(Object(a["a"])().mark((function e(){var r,o,n,s,c;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!0!==t.loading&&!0!==t.finished){e.next=2;break}return e.abrupt("return");case 2:return t.loading=!0,t.info=!0,e.next=6,$http.post("plugin.newcomer-fission.frontend.controllers.list.index",{page:t.page,record_status:t.active});case 6:if(o=e.sent,n=o.data,s=o.result,c=o.msg,0!==s){e.next=13;break}return t.$toast(c),e.abrupt("return");case 13:t.info=!1,(0===n.data.length||n.data.length=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;j(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}}}]);