bztang-admin/addons/yun_shop/static/app/js/chunk-5c042bb7.0f5a6869.js

1 line
5.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c042bb7"],{"0dad":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"static_points_dividend"},[a("c-title",{attrs:{text:t.text}}),a("div",{staticClass:"header"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.avatar,alt:""}})]),a("div",{staticClass:"c-fff"},[t._v(t._s(t.nickname))])]),a("p",{staticClass:"total-money"},[t._v("奖励总额:"),a("span",{staticStyle:{color:"#fb6b68"}},[t._v(t._s(t.$i18n.t("money"))+t._s(t.total_reward))])]),a("van-tabs",{attrs:{color:"#FB6B68"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"奖励记录"}},[t.list&&0!==t.list.length?a("div",{staticStyle:{"padding-bottom":"1.5625rem",background:"#fff"}},t._l(t.list,(function(e){return a("div",{key:e.id,staticClass:"box"},[a("div",{staticClass:"flex space-between ",staticStyle:{"font-size":"0.875rem"}},[a("span",{staticStyle:{"font-weight":"bold"}},[t._v("分红ID:"+t._s(e.id))]),a("span",{staticStyle:{color:"#fb6b68"}},[t._v(t._s(t.$i18n.t("money"))+t._s(e.reward_amount))])]),a("div",{staticClass:"content "},[a("div",{staticClass:"flex space-between "},[a("span",[t._v("个人"+t._s(t.integral)+"数:"+t._s(e.point))]),a("span",[t._v("商城"+t._s(t.integral)+"数:"+t._s(e.has_one_shop_reward.shop_point))])]),a("div",{staticClass:"time"},[t._v(t._s(e.created_at))])])])})),0):t._e()])],1)],1)},n=[],s=a("c7eb"),o=a("1da1"),r=(a("99af"),a("ac0d")),d={mixins:[r["a"]],data:function(){return{active:0,avatar:"",nickname:"",total_reward:0,integral:"",list:[],total_page:1,page:1,isLoadMore:!0}},activated:function(){this.isLoadMore=!0,this.get_data()},methods:{getMoreData:function(){if(this.isLoadMore=!1,this.page>=this.total_page)return!1;var t=this.page+1;this.get_data(t)},get_data:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;$http.post("plugin.static-point-dividend.frontend.reward-log.getRewardList",{page:e},"loading").then(function(){var a=Object(o["a"])(Object(s["a"])().mark((function a(i){var n,o,r,d;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.isLoadMore=!0,i.result?(i.basic_info?t.integral=i.basic_info.point:t.integral=t.fun.getCustomTextLang("member_center.credit1","积分"),n=i.data,o=n.list,r=n.reward_summarize,d=n.plugin_name,t.list=1==e?o.data||[]:t.list.concat(o.data),t.nickname=r.member_info.username,t.avatar=r.member_info.avatar_image,t.total_reward=r.total_reward,t.total_page=o.last_page,t.page=o.current_page,t.text=d):t.$toast(i.msg);case 2:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}())}}},c=d,l=(a("5aef"),a("2877")),f=Object(l["a"])(c,i,n,!1,null,"d9a4f408",null);e["default"]=f.exports},"20ce":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".static_points_dividend .total-money[data-v-d9a4f408]{background:#fff;padding:.75rem .9375rem;text-align:left;margin-bottom:.625rem}.static_points_dividend .header[data-v-d9a4f408]{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;background:#fb6b68;padding:1.5rem .9375rem}.static_points_dividend .img[data-v-d9a4f408]{width:3.625rem;height:3.625rem;overflow:hidden;border-radius:100px;margin-right:.3125rem}.static_points_dividend .img img[data-v-d9a4f408]{width:100%;height:100%}.static_points_dividend .box[data-v-d9a4f408]{padding:.9375rem .9375rem 0}.static_points_dividend .time[data-v-d9a4f408]{text-align:left;margin-top:.25rem}.static_points_dividend .content[data-v-d9a4f408]{color:#6a6a6a;font-size:.6875rem;margin-top:.5rem;padding-bottom:.5rem;border-bottom:1px solid #f2f2f2}.static_points_dividend .flex[data-v-d9a4f408]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.static_points_dividend .space-between[data-v-d9a4f408]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.static_points_dividend .c-fff[data-v-d9a4f408]{color:#fff}",""]),t.exports=e},"4f61":function(t,e,a){var i=a("20ce");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("080e3fef",i,!0,{sourceMap:!1,shadowMode:!1})},"5aef":function(t,e,a){"use strict";a("4f61")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=document.documentElement,n=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]);