| 12 |
- webpackJsonp([57],{V9un:function(t,e){},emZn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3KG0"),i={name:"rebateRecord",filters:{formatDate:function(t){t*=1e3;var e=new Date(t);return Object(n.a)(e,"yyyy-MM-dd hh:mm")}},data:function(){return{choiceFlag:!1,dateShowStart:!1,dateShowEnd:!1,minDateStart:new Date("2020/1/1"),maxDateStart:new Date,minDateEnd:new Date,maxDateEnd:new Date,currentDateStart:new Date,currentDateEnd:new Date,dateTimeStart:"开始时间",dateTimeEnd:"结束时间",loading:!0,finished:!1,offset:15,page:0,page_size:10,recordList:[],all_rebate_reward:0}},mounted:function(){this.getlist()},activated:function(){document.documentElement.scrollTop=0},methods:{filterClick:function(){this.choiceFlag=!0},choiceClose:function(){this.choiceFlag=!1},dateChangeStart:function(){this.dateShowStart=!1,this.dateTimeStart=this.dateFilter(this.currentDateStart),this.minDateEnd=this.currentDateStart},dateChangeEnd:function(){this.dateShowEnd=!1,this.dateTimeEnd=this.dateFilter(this.currentDateEnd)},dateFilter:function(t){var e=new Date(t);return e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()},reset:function(){this.dateShowStart=!1,this.dateShowEnd=!1,this.minDateStart=new Date("2020/1/1"),this.maxDateStart=new Date,this.minDateEnd=new Date,this.maxDateEnd=new Date,this.currentDateStart=new Date,this.currentDateEnd=new Date,this.dateTimeStart="开始时间",this.dateTimeEnd="结束时间"},filter:function(){this.loading=!0,this.finished=!1,this.page=0,this.recordList=[],this.getlist(),this.choiceClose()},getlist:function(){var t=this;this.$nextTick(function(){var e={page_page:t.page_page,page:t.page};"开始时间"!=t.dateTimeStart&&"结束时间"!=t.dateTimeEnd&&(e.start_date=t.dateTimeStart,e.end_date=t.dateTimeEnd),t.$api.recruitment.getRebate(e).then(function(e){t.all_rebate_reward=e.data.all_rebate_reward,e.data.list.length>0?t.recordList=t.recordList.concat(e.data.list):t.finished=!0,t.loading=!1})})},onLoad:function(){var t=this;this.finished||(this.page=this.page+1,setTimeout(function(){t.getlist()},300))}}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rebateRecord"},[n("app-nav",{attrs:{back:!0}},[n("span",[t._v(t._s(t.$t("返水记录")))]),t._v(" "),n("template",{attrs:{slot:"recharge"},slot:"recharge"},[n("div",[n("img",{staticStyle:{width:"0.40rem",height:"0.42rem"},attrs:{src:a("nYtz"),alt:""},on:{click:t.filterClick}})])])],2),t._v(" "),n("div",{staticClass:"rebateRecord_title"},[n("span",[t._v(t._s(t.$t("总返水")))]),t._v(" "),n("span",[t._v(t._s(t.all_rebate_reward))])]),t._v(" "),n("van-list",{attrs:{finished:t.finished,"loading-text":t.$t("加载中"),"finished-text":t.$t("没有更多了"),offset:t.offset},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[n("div",{staticClass:"rebateRecord_list"},t._l(t.recordList,function(e,a){return n("div",{key:a,staticClass:"rebateRecord_list_data"},[n("div",{staticClass:"rebateRecord_list_data_info"},[n("div",{staticClass:"rebateRecord_list_data_info_d"},[n("div",[t._v(t._s(t.$t("流水总额"))+":")]),t._v(" "),n("div",{staticClass:"rebateRecord_list_data_info_d_r"},[t._v(t._s(e.all_flow)+"USDT")]),t._v(" "),n("div",[t._v(t._s(t.$t("返水总额"))+":")]),t._v(" "),n("div",{staticClass:"rebateRecord_list_data_info_d_r"},[t._v(t._s(e.settlement_reward)+"USDT")])])]),t._v(" "),n("div",{staticClass:"rebateRecord_list_data_btn"},[e.settled_at?n("span",[t._v(t._s(t.$t("结算时间"))+":"+t._s(t._f("formatDate")(e.settled_at)))]):n("span",[t._v(t._s(t.$t("结算时间"))+":-")]),t._v(" "),n("span",{staticClass:"rebateRecord_list_data_btn_b",on:{click:function(a){t.$router.push("/recruitment/rebateInfo?days="+e.day)}}},[t._v("\n "+t._s(t.$t("详情"))+"\n ")])])])}))]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.choiceFlag,expression:"choiceFlag"}],staticClass:"choiceType",on:{click:t.choiceClose}},[n("div",{staticClass:"choiceType_m"},[n("div",{staticClass:"choiceType_m_select"},[n("span",[t._v(t._s(t.$t("下单时间")))]),t._v(" "),n("div",{staticClass:"choiceType_m_select_i"},[n("p",{staticClass:"choiceType_m_select_i_in2",on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.dateShowStart=!0}}},[t._v("\n "+t._s(t.$t(t.dateTimeStart))+"\n ")]),t._v(" "),n("span",{staticClass:"choiceType_m_select_i_h"},[t._v("-")]),t._v(" "),n("p",{staticClass:"choiceType_m_select_i_in2",on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.dateShowEnd=!0}}},[t._v("\n "+t._s(t.$t(t.dateTimeEnd))+"\n ")])])]),t._v(" "),n("div",{staticClass:"choiceType_m_btn"},[n("span",{staticClass:"choiceType_m_btn_b1",on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.reset(e)}}},[t._v(t._s(t.$t("重置")))]),t._v(" "),n("span",{staticClass:"choiceType_m_btn_b2",on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.filter(e)}}},[t._v(t._s(t.$t("筛选")))])])])]),t._v(" "),n("van-popup",{staticClass:"popup",attrs:{position:"bottom"},model:{value:t.dateShowStart,callback:function(e){t.dateShowStart=e},expression:"dateShowStart"}},[n("van-datetime-picker",{attrs:{type:"date","confirm-button-text":t.$t("确定"),"cancel-button-text":t.$t("取消"),"min-date":t.minDateStart,"max-date":t.maxDateStart},on:{confirm:function(e){t.dateChangeStart()},cancel:function(e){t.dateShowStart=!1}},model:{value:t.currentDateStart,callback:function(e){t.currentDateStart=e},expression:"currentDateStart"}})],1),t._v(" "),n("van-popup",{staticClass:"popup",attrs:{position:"bottom"},model:{value:t.dateShowEnd,callback:function(e){t.dateShowEnd=e},expression:"dateShowEnd"}},[n("van-datetime-picker",{attrs:{type:"date","confirm-button-text":t.$t("确定"),"cancel-button-text":t.$t("取消"),"min-date":t.minDateEnd,"max-date":t.maxDateEnd},on:{confirm:function(e){t.dateChangeEnd()},cancel:function(e){t.dateShowEnd=!1}},model:{value:t.currentDateEnd,callback:function(e){t.currentDateEnd=e},expression:"currentDateEnd"}})],1)],1)},staticRenderFns:[]};var c=a("VU/8")(i,s,!1,function(t){a("V9un")},"data-v-b4388134",null);e.default=c.exports}});
- //# sourceMappingURL=57.15b8a6ca9a3d2003c3b2.js.map
|