1 line
8.5 KiB
JavaScript
1 line
8.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06e0b778"],{1723: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",{attrs:{id:"consumer_return"}},[a("c-title",{attrs:{hide:!1,text:t.trans?t.trans:"区间消费返点"}}),a("div",{staticClass:"content"},[t.info?a("div",{staticClass:"head"},[a("div",{staticClass:"head_sculpture"},[a("div",{staticClass:"left"},[a("img",{attrs:{src:t.info.pic,alt:""}})]),a("div",{staticClass:"right"},[t._v(t._s(t.info.name))])]),a("div",{staticClass:"amount_money"},[a("div",{staticClass:"left"},[a("div",{staticClass:"top"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.personal_amount))]),a("div",{staticClass:"bottom"},[t._v("累积个人返点金额")])]),a("div",{staticClass:"right"},[a("div",{staticClass:"top"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.team_amount))]),a("div",{staticClass:"bottom"},[t._v("累积团队返点金额")])])])]):t._e(),a("van-tabs",{on:{click:t.tabHandel},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"个人消费返点"}},t._l(t.recordsList,(function(e,i){return a("ul",{key:i,staticClass:"list"},[a("li",[a("div",{staticClass:"left"},[a("div",{staticClass:"top"},[t._v("返点id:"+t._s(e.id))]),a("div",{staticClass:"bottom"},[t._v(t._s(e.created_at))])]),a("div",{staticClass:"center"},[a("div",{staticClass:"top"},[t._v("个人消费:"+t._s(e.consume_amount)+t._s(t.$i18n.t("元")))]),a("div",{staticClass:"bottom"},[t._v("返点比例: "+t._s(e.rebate)+"%")])]),a("div",{staticClass:"right"},[t._v("+"+t._s(e.amount))])])])})),0),a("van-tab",{attrs:{title:"团队消费返点"}},[a("ul",{staticClass:"list"},t._l(t.recordsTeamList,(function(e,i){return a("li",{key:i},[a("div",{staticClass:"left"},[a("div",{staticClass:"top"},[t._v("返点id:"+t._s(e.id))]),a("div",{staticClass:"bottom"},[t._v(t._s(e.created_at))])]),a("div",{staticClass:"center"},[a("div",{staticClass:"top"},[t._v("团队消费:"+t._s(e.consume_amount)+t._s(t.$i18n.t("元")))]),a("div",{staticClass:"bottom"},[t._v("返点比例: "+t._s(e.rebate)+"%")])]),a("div",{staticClass:"right"},[t._v("+"+t._s(e.amount))])])})),0)])],1)],1)],1)},o=[],n=(a("e7e5"),a("d399")),s=(a("99af"),a("6968")),r=a("ac0d"),l={mixins:[r["a"]],data:function(){return{isLoadMore:!0,page:1,total_page:0,recordsList:[],moreDataType:1,recordsTeamList:[],trans:""}},created:function(){},activated:function(){this.getRecordsListData()},methods:{getRecordsTeamList:function(){var t=this;t.isLoadMore=!0,t.page=1,t.total_page=0,$http.post("plugin.interval-consumption.Frontend.controllers.records.team-records",{page:t.page},"").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.list.last_page,t.total_page||(t.total_page=0),t.recordsTeamList=e.data.list.data):t.$dialog.alert({message:e.msg})}),(function(e){t.$dialog.alert({message:e.msg})}))},getRecordsListData:function(){var t=this;t.isLoadMore=!0,t.page=1,t.total_page=0,$http.post("plugin.interval-consumption.Frontend.controllers.records.index",{page:t.page},"").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.list.last_page,t.total_page||(t.total_page=0),t.info=e.data.info,e.data.info&&e.data.info.trans&&(t.trans=e.data.info.trans),t.recordsList=e.data.list.data):t.$dialog.alert({message:e.msg})}),(function(e){t.$dialog.alert({message:e.msg})}))},tabHandel:function(t){this.moreDataType=t+1,1==this.moreDataType?this.getRecordsListData():2==this.moreDataType&&this.getRecordsTeamList()},initData:function(){this.page=1,this.total_page=0,this.isLoadMore=!0,this.recordsList=[],this.moreDataType=1,this.recordsTeamList=[],this.trans=""},getMoreData:function(){var t=this,e="";1==this.moreDataType?e="plugin.interval-consumption.Frontend.controllers.records.get-personal":2==this.moreDataType&&(e="plugin.interval-consumption.Frontend.controllers.records.get-team"),this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.post(e,{page:this.page},"加载中").then((function(e){t.isLoadMore=!0;var a=[];1===e.result?(a=e.data.data,1==t.moreDataType?t.recordsList=t.recordsList.concat(a):2==t.moreDataType&&(t.recordsTeamList=t.recordsTeamList.concat(a))):(t.page=t.page-1,t.isLoadMore=!1)}),(function(t){Object(n["a"])(t.msg)})).catch((function(t){})))}},components:{cTitle:s["a"]}},c=l,d=c,m=(a("d602"),a("2877")),u=Object(m["a"])(d,i,o,!1,null,"1f894150",null);e["default"]=u.exports},"7ec7":function(t,e,a){var i=a("ce8e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("73287a68",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,o=document.body,n={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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}},ce8e:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#consumer_return .content .head[data-v-1f894150]{background-color:#fff;margin-bottom:.63rem}#consumer_return .content .head .head_sculpture[data-v-1f894150]{margin-left:.78rem;margin-right:.78rem;padding-left:.28rem;padding-right:.28rem;padding-bottom:1.16rem;padding-top:1.41rem;border-bottom:1px solid #f4f4f4;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}#consumer_return .content .head .head_sculpture .left[data-v-1f894150]{width:4.25rem;height:4.25rem;border-radius:50%;margin-right:.75rem}#consumer_return .content .head .head_sculpture .left img[data-v-1f894150]{width:100%;height:100%;border-radius:50%}#consumer_return .content .head .head_sculpture .right[data-v-1f894150]{font-size:1.13rem;line-height:1.13rem;color:#413e4b}#consumer_return .content .head .amount_money[data-v-1f894150]{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;padding-top:.84rem;padding-bottom:.8rem}#consumer_return .content .head .amount_money .left[data-v-1f894150]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#consumer_return .content .head .amount_money .left .top[data-v-1f894150]{font-size:1.13rem;line-height:1.13rem;color:#ff2c29;margin-bottom:.8rem}#consumer_return .content .head .amount_money .left .bottom[data-v-1f894150]{font-size:.75rem;line-height:1.13rem;color:#000}#consumer_return .content .head .amount_money .right[data-v-1f894150]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#consumer_return .content .head .amount_money .right .top[data-v-1f894150]{font-size:1.13rem;line-height:1.13rem;color:#ff2c29;margin-bottom:.8rem}#consumer_return .content .head .amount_money .right .bottom[data-v-1f894150]{font-size:.75rem;line-height:1.13rem;color:#000}#consumer_return .content .list li[data-v-1f894150]{background:#fff;margin-bottom:.63rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-left:1rem;text-align:left;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-top:1.19rem;padding-bottom:1.09rem}#consumer_return .content .list li .left[data-v-1f894150]{width:8.97rem}#consumer_return .content .list li .left .top[data-v-1f894150]{font-size:.88rem;line-height:1.13rem;color:#000;padding-bottom:.5rem}#consumer_return .content .list li .left .bottom[data-v-1f894150]{font-size:.75rem;line-height:1.13rem;color:#333}#consumer_return .content .list li .center[data-v-1f894150]{width:9.16rem}#consumer_return .content .list li .center .top[data-v-1f894150]{font-size:.88rem;line-height:1.13rem;color:#000;padding-bottom:.5rem}#consumer_return .content .list li .center .bottom[data-v-1f894150]{font-size:.75rem;line-height:1.13rem;color:#333}#consumer_return .content .list li .right[data-v-1f894150]{font-size:.88rem;line-height:1.13rem;color:#ff2c29}",""]),t.exports=e},d602:function(t,e,a){"use strict";a("7ec7")}}]); |