1 line
7.2 KiB
JavaScript
1 line
7.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-685af127"],{"8f29":function(t,e,a){"use strict";a("bf0f")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,s=document.body,o={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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},ac25: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:"page"},[a("c-title",{attrs:{hide:!1,text:t.title}}),a("div",{staticClass:"r_top_box"},[a("div",{staticClass:"image"},[a("img",{attrs:{src:t.member.avatar,alt:""}})]),a("div",[a("div",{staticClass:"r_top_box_name"},[t._v(t._s(t.member.nickname))])])]),a("div",{staticClass:"esp",on:{click:t.gotoConsumerRewardApply}},[a("div",{staticClass:"num"},[t._v("领取收益")]),a("i",{staticClass:"iconfont icon-member_right"})]),a("div",{staticClass:"count"},[t._v(" 累计收益: "),a("span",{staticClass:"price"},[t._v(" "+t._s(t.totalPrice))])]),a("div",{staticClass:"count withdraw-box"},[a("div",[t._v(" 可提现金额:"),a("span",{staticClass:"price"},[t._v(" "+t._s(t.withdraw_amount))])]),a("div",{staticClass:"withdraw-btn",on:{click:function(e){return e.stopPropagation(),t.gotoWithdraw.apply(null,arguments)}}},[t._v("去提现")])]),a("div",{staticClass:"hr"}),a("div",{staticClass:"listTitle"},[t._v("奖励明细")]),a("div",{staticClass:"listItems"},t._l(t.listData,(function(e,i){return a("div",{key:i,staticClass:"listItem"},[a("div",{staticClass:"desc"},[e.has_one_order?a("div",{staticClass:"order"},[t._v(t._s(e.has_one_order.order_sn))]):t._e(),a("div",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))])]),a("div",{staticClass:"price"},[t._v("+"+t._s(e.reward_amount))])])})),0)],1)},s=[],o=(a("e7e5"),a("d399")),r=(a("99af"),a("ac0d")),n="消费奖励",l={mixins:[r["a"]],data:function(){return{member:{},listData:[],totalPrice:0,withdraw_amount:"",title:"",page:1,isLoadMore:!0,total_page:0}},created:function(){document.body.scrollTop=0,document.documentElement.scrollTop=0,this.getData()},methods:{getData:function(){var t=this;$http.get("plugin.consumer-reward.frontend.controllers.reward.reward-record").then((function(e){if(1!=e.result)return Object(o["a"])(e.msg);t.member=e.data.member,t.listData=e.data.reward_record.data,t.totalPrice=e.data.total,t.withdraw_amount=e.data.withdraw_amount,t.total_page=e.data.reward_record.last_page,t.total_page||(t.total_page=0),t.title=e.data.plugin_name||n,t.fun.setWXTitle(t.title)}))},gotoConsumerRewardApply:function(){this.$router.push(this.fun.getUrl("consumerRewardApply",{}))},gotoWithdraw:function(){var t=this;$http.get("plugin.consumer-reward.frontend.controllers.reward.receive-income",{}).then((function(e){Object(o["a"])(e.msg),1==e.result&&t.getData()}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.consumer-reward.frontend.controllers.reward.reward-record",{page:this.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.reward_record.data;t.listData=t.listData.concat(a)}else t.page=t.page-1,t.isLoadMore=!1})))}}},c=l,d=c,m=(a("8f29"),a("2877")),b=Object(m["a"])(d,i,s,!1,null,"14c17ba2",null);e["default"]=b.exports},bf0f:function(t,e,a){var i=a("ec10");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("0944e4d6",i,!0,{sourceMap:!1,shadowMode:!1})},ec10:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".page[data-v-14c17ba2]{background:#fff;min-height:100vh}.r_top_box[data-v-14c17ba2]{width:100%;height:5.594rem;background-color:#ee2e2b;padding:1.69rem 1.56rem 2.09rem 1.56rem;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}.r_top_box .image[data-v-14c17ba2]{width:2.88rem;height:2.88rem;margin-right:.69rem}.r_top_box .image img[data-v-14c17ba2]{width:2.88rem;height:2.88rem;background-color:#000;border-radius:50%}.r_top_box .r_top_box_name[data-v-14c17ba2]{font-size:1rem;color:#fff;text-align:left}.esp[data-v-14c17ba2]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding-left:.969rem;padding-right:.938rem;color:#fff;width:100%;height:1.75rem;background-color:#fb6868;font-size:.75rem}.count[data-v-14c17ba2],.esp[data-v-14c17ba2]{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}.count[data-v-14c17ba2]{height:2.844rem;padding-left:.875rem;font-size:1rem;color:#333;font-weight:500;background:#fff}.count .price[data-v-14c17ba2]{color:#ee2e2b}.hr[data-v-14c17ba2]{width:100%;height:.625rem;background-color:#ebebeb}.listTitle[data-v-14c17ba2]{padding-top:1rem;padding-bottom:1rem;font-size:.875rem;color:#ee2e2b}.listItems[data-v-14c17ba2]{padding:0 .875rem}.listItems .listItem[data-v-14c17ba2]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:3.65rem;border-bottom:.063rem solid #ebebeb}.listItems .listItem[data-v-14c17ba2],.listItems .listItem .desc[data-v-14c17ba2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.listItems .listItem .desc[data-v-14c17ba2]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;text-align:left}.listItems .listItem .desc .order[data-v-14c17ba2]{font-size:.813rem;color:#333}.listItems .listItem .desc .time[data-v-14c17ba2]{font-size:.75rem;color:#8c8c8c}.listItems .listItem .price[data-v-14c17ba2]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:1rem;color:#f15353}.listItems .listItem .price[data-v-14c17ba2],.withdraw-box[data-v-14c17ba2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.withdraw-box[data-v-14c17ba2]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .875rem}.withdraw-box .withdraw-btn[data-v-14c17ba2]{height:1.5rem;line-height:1.5rem;background:#ee2e2b;color:#fff;padding:0 .5rem;font-size:12px;border-radius:.25rem;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}",""]),t.exports=e}}]); |