bztang-admin/addons/yun_shop/static/app/js/chunk-719dded0.48b6222d.js

1 line
9.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-719dded0"],{"03d8":function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,"#newcomer-reward .box[data-v-fda78962]{background:#fff;margin:.63rem;border-radius:.31rem;padding:.86rem .81rem .63rem .63rem}#newcomer-reward .box .top[data-v-fda78962]{text-align:left}#newcomer-reward .box .top .top-time[data-v-fda78962]{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-fda78962]{font-size:.75rem;font-weight:400;font-stretch:normal;color:#f15353}#newcomer-reward .box .top .top-title[data-v-fda78962]{-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-fda78962],#newcomer-reward .box .top .top-title .member[data-v-fda78962]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#newcomer-reward .box .top .top-title .member img[data-v-fda78962]{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-fda78962]{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-fda78962]{font-size:.75rem;font-weight:400;font-stretch:normal;color:#353535}#newcomer-reward .box .top .top-title .member .member-detail .member-id[data-v-fda78962]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#686868}#newcomer-reward .box .top .right-status[data-v-fda78962]{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-fda78962]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#686868}#newcomer-reward .box .top .desc-name-status[data-v-fda78962]{line-height:1.5}#newcomer-reward .box .top .desc-detail[data-v-fda78962]{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-fda78962]{font-size:.81rem;font-weight:400;font-stretch:normal;color:#353535;width:50%}#newcomer-reward .box .top .desc-detail .desc-sn[data-v-fda78962]{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-fda78962]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#9e9e9e}#newcomer-reward .box .middle-line[data-v-fda78962]{width:100%;height:.06rem;background-color:#f2f2f2;margin:.72rem 0}#newcomer-reward .box .bottom[data-v-fda78962]{text-align:left}#newcomer-reward .box .bottom .top-goods[data-v-fda78962]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#newcomer-reward .box .bottom .top-goods img[data-v-fda78962]{width:2.48rem;height:2.48rem;border-radius:.13rem;margin:0 .31rem 0 0}#newcomer-reward .box .bottom .top-goods .detail[data-v-fda78962]{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-fda78962]{font-size:.75rem;font-weight:400;font-stretch:normal;color:#353535}#newcomer-reward .box .bottom .top-goods .detail .goods-num[data-v-fda78962]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#686868}#newcomer-reward .box .bottom .bottom-money[data-v-fda78962]{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-fda78962]{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-fda78962]{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-fda78962]{font-size:.63rem;font-weight:700;font-stretch:normal;line-height:1;color:#3d3d3d}",""]),e.exports=t},"5b98":function(e,t,a){var o=a("03d8");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=a("499e").default;s("a97d5f36",o,!0,{sourceMap:!1,shadowMode:!1})},b6b9:function(e,t,a){"use strict";a("5b98")},be3a:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"newcomer-reward"}},[a("c-title",{attrs:{hide:!1,text:"奖励记录"}}),a("van-tabs",{staticClass:"tabs-style",attrs:{"title-active-color":"#f14e4e",color:"#f14e4e"},on:{change:e.changeTabs},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.vanTab,(function(t,o){return a("van-tab",{key:o,attrs:{title:t.title,name:t.id}},[a("d-list",{attrs:{loading:e.loading,finished:e.finished},on:{load:e.onLoad}},[a("div",e._l(e.newcomerReward,(function(o,s){return e.active==t.id?a("div",{key:e.index,staticClass:"box"},[a("div",{staticClass:"top"},[a("div",{staticClass:"top-time"},[a("div",{staticClass:"reward-time"},[e._v(e._s(o.created_at))]),a("span",{staticClass:"status"},[e._v(e._s(o.status_name))])]),a("div",{staticClass:"top-title"},[null!==o.has_one_buyer?a("div",{staticClass:"member"},[a("img",{attrs:{src:o.has_one_buyer.avatar_image,alt:""}}),a("div",{staticClass:"member-detail"},[a("span",{staticClass:"member-name"},[e._v(e._s(o.has_one_buyer.nickname))]),a("span",{staticClass:"member-id"},[e._v("id: "+e._s(o.has_one_buyer.uid))])])]):e._e(),null!==o.has_one_buyer?a("div",{staticClass:"right-status"},[a("span",{staticClass:"num"},[e._v(e._s(o.type_name))]),a("span",{staticClass:"num"},[e._v(e._s(o.record_sort))])]):e._e()]),a("div",{staticClass:"desc-detail"},[a("span",{staticClass:"desc-name"},[e._v(e._s(o.has_one_activity.name))]),o.order_sn?a("span",{staticClass:"desc-sn"},[e._v(e._s(o.order_sn))]):e._e(),null!=o.has_one_buyer||o.order_sn?e._e():a("div",{staticClass:"right-status desc-name-status"},[a("span",{staticClass:"num"},[e._v(e._s(o.type_name))]),a("span",{staticClass:"num"},[e._v(e._s(o.record_sort))])])])]),a("div",{staticClass:"middle-line"}),a("div",{staticClass:"bottom"},[null!==o.has_one_goods?a("div",{staticClass:"top-goods"},[a("img",{attrs:{src:null!==o.has_one_goods?o.has_one_goods.thumb:"",alt:""}}),a("div",{staticClass:"detail"},[a("span",{staticClass:"goods-name"},[e._v(e._s(null!==o.has_one_goods?o.has_one_goods.title:""))])])]):e._e(),a("div",{staticClass:"bottom-money"},[a("div",{staticClass:"money-box"},[a("span",{staticClass:"num"},[e._v(e._s(o.rewards_amounts))]),a("span",{staticClass:"status-name"},[e._v(e._s(e.fun.getBalanceLang()))])]),a("div",{staticClass:"money-box"},[a("span",{staticClass:"num"},[e._v(e._s(o.rewards_income))]),a("span",{staticClass:"status-name"},[e._v("收入")])]),a("div",{staticClass:"money-box"},[a("span",{staticClass:"num"},[e._v(e._s(o.rewards_points))]),a("span",{staticClass:"status-name"},[e._v(e._s(e.fun.getCustomTextLang("member_center.credit1","积分")))])]),a("div",{staticClass:"money-box"},[a("span",{staticClass:"num"},[e._v(e._s(o.rewards_coupons)+"张")]),a("span",{staticClass:"status-name"},[e._v("优惠券")])])])])]):e._e()})),0)])],1)})),1)],1)},s=[],i=a("c7eb"),n=a("2909"),r=a("1da1"),d=(a("14d9"),a("94b4")),l=a("6968"),c={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 e=this;return Object(r["a"])(Object(i["a"])().mark((function t(){var a,o,s,r,d;return Object(i["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,e.info=!0,t.next=6,$http.post("plugin.newcomer-fission.frontend.controllers.list.index",{page:e.page,record_status:e.active});case 6:if(o=t.sent,s=o.data,r=o.result,d=o.msg,0!==r){t.next=13;break}return e.$toast(d),t.abrupt("return");case 13:e.info=!1,(0===s.data.length||s.data.length<s.per_page||s.current_page===s.last_page)&&(e.finished=!0),(a=e.newcomerReward).push.apply(a,Object(n["a"])(s.data)),e.page++,e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},onLoad:function(){this.info=!0,this.getData()},changeTabs:function(e){this.loading=!1,this.finished=!1,this.page=1,this.newcomerReward=[],this.getData()}},components:{cTitle:l["a"],DList:d["a"]}},m=c,b=m,f=(a("b6b9"),a("2877")),w=Object(f["a"])(b,o,s,!1,null,"fda78962",null);t["default"]=w.exports}}]);