1 line
7.4 KiB
JavaScript
1 line
7.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ab620f66"],{"1fb6":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".income-page[data-v-8b4c0c7c] .van-nav-bar{background-color:#ff3a00}.income-page[data-v-8b4c0c7c] .van-nav-bar__title{color:#fff}.income-page[data-v-8b4c0c7c] .van-nav-bar__left .van-button{background-color:#ff3a00!important}.income-page[data-v-8b4c0c7c] .van-nav-bar{border-bottom:1px solid #ff3a00}.income-page[data-v-8b4c0c7c] .van-nav-bar .van-icon{color:#fff}",""]),t.exports=e},"5f22":function(t,e,a){var i=a("1fb6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("96b3cd0a",i,!0,{sourceMap:!1,shadowMode:!1})},6783:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".income-bg[data-v-8b4c0c7c]{background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/consumption-coupons/details_bg.png);background-size:100% 80%;background-repeat:no-repeat}.mb20[data-v-8b4c0c7c]{height:.625rem;clear:both}.income-user[data-v-8b4c0c7c]{padding:1.6875rem .625rem 1.0938rem .625rem}.income-user .name[data-v-8b4c0c7c]{margin-left:.4375rem;font-size:1rem;font-weight:700;color:#fff}.earnings[data-v-8b4c0c7c]{background-color:#fff;margin:1.5rem 0 0 0;border-radius:.3125rem;padding:1.0938rem 0 1.125rem 0;margin:0 .625rem}.earnings div[data-v-8b4c0c7c]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.account-price[data-v-8b4c0c7c]{font-size:.8125rem;font-weight:700;color:#f14e4e;margin-bottom:.6875rem}.account-name[data-v-8b4c0c7c]{font-size:.6875rem;font-weight:700;color:#696969}.border-b[data-v-8b4c0c7c]{border-bottom:.0625rem solid #f2f2f2}.income-list[data-v-8b4c0c7c]{margin:0 .625rem}.income-list .income-tabs[data-v-8b4c0c7c]{padding:0 .875rem 0 .8125rem;background-color:#fff}.income-list .income-item[data-v-8b4c0c7c]{background-color:#fff;padding:.875rem .8438rem .9375rem .8438rem;margin-bottom:.625rem}.income-item .income-sn[data-v-8b4c0c7c]{font-size:.8125rem;color:#353535;margin-bottom:.5rem}.income-item .status[data-v-8b4c0c7c],.income-item .time[data-v-8b4c0c7c]{font-size:.6875rem;color:#838383}.income-item .time[data-v-8b4c0c7c]{text-align:left}.income-itemRight[data-v-8b4c0c7c]{text-align:right}.income-item .price[data-v-8b4c0c7c]{font-size:.8125rem;margin-bottom:.5rem;color:#f15353}",""]),t.exports=e},93595:function(t,e,a){"use strict";a("5f22")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return c}));var i=document.documentElement,o=document.body,c={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(){}}}},be5c:function(t,e,a){var i=a("6783");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("77f8a544",i,!0,{sourceMap:!1,shadowMode:!1})},ce08:function(t,e,a){"use strict";a("be5c")},e1ce: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("div",{staticClass:"income-page"},[a("c-title",{attrs:{hide:!1,text:"收益明细"}}),a("div",{staticClass:"income-bg"},[a("div",{staticClass:"income-user flex"},[a("van-image",{attrs:{width:"3.4375rem",height:"3.4375rem",round:"",src:t.userInfo.avatar}}),a("div",{staticClass:"name"},[t._v(t._s(t.userInfo.nickname))])],1),a("div",{staticClass:"earnings flex-j-sa"},[a("div",{staticClass:"flex-a-c"},[a("div",{staticClass:"account-price"},[t._v("¥"+t._s(t.sumMoney))]),a("div",{staticClass:"account-name"},[t._v("累计收益")])]),a("div",{staticClass:"flex-a-c"},[a("div",{staticClass:"account-price"},[t._v("¥"+t._s(t.finishMoney))]),a("div",{staticClass:"account-name"},[t._v("已结算")])]),a("div",{staticClass:"flex-a-c"},[a("div",{staticClass:"account-price"},[t._v("¥"+t._s(t.waitMoney))]),a("div",{staticClass:"account-name"},[t._v("未结算")])])])]),a("div",{staticClass:"mb20"}),a("div",{staticClass:"income-list"},[a("div",{staticClass:"income-tabs"},[a("van-tabs",{attrs:{"custom-class":"border-b",active:t.incomeStatus,"line-width":"1.875rem","title-inactive-color":"#454545","title-active-color":"#F15353"},on:{change:t.onIncomeChange}},t._l(t.incomeTabs,(function(t,e){return a("block",{key:e},[a("van-tab",{attrs:{title:t.name,name:t.status}})],1)})),1)],1),t.incomeList.length>0?a("div",{staticClass:"income-content"},t._l(t.incomeList,(function(e,i){return a("block",{key:i},[a("div",{staticClass:"income-item flex-j-sb"},[a("div",[a("div",{staticClass:"income-sn"},[t._v("订单编号:"+t._s(e.order_sn))]),a("div",{staticClass:"time"},[t._v("时间:"+t._s(e.examine_time))])]),a("div",{staticClass:"income-itemRight"},[a("div",{staticClass:"price"},[t._v("¥"+t._s(e.reward_money))]),a("div",{staticClass:"status"},[t._v(t._s(e.is_reward?"已结算":"未结算"))])])])])})),1):a("van-empty",{attrs:{description:"空空如也"}})],1)],1)])},o=[],c=a("2909"),n=(a("4056"),a("44bf")),s=(a("a9e3"),a("99af"),a("6968")),r=a("ac0d"),l={components:{cTitle:s["a"],VanImage:n["a"]},mixins:[r["a"]],data:function(){return{storeId:0,isLoadMore:!0,page:1,totalPage:0,incomeList:[],userInfo:{},finishMoney:0,waitMoney:0,sumMoney:0,incomeTabs:[{name:"全部",status:0},{name:"已结算",status:2},{name:"未结算",status:1}],incomeStatus:0}},activated:function(){var t;""!==(null!==(t=this.$route.query.storeId)&&void 0!==t?t:"")&&(this.storeId=Number(this.$route.query.storeId)),this.incomeLists()},methods:{onIncomeChange:function(t){this.incomeStatus=t,this.page=1,this.incomeLists()},incomeLists:function(){var t=this,e={cstore_id:this.storeId,status:this.incomeStatus};$http.post("plugin.coupon-store.frontend.store-manage.moneyList",e,"正在获取").then((function(e){if(1==e.result){var a=e.data,i=a.data;t.isLoadMore=!0,t.totalPage=a.last_page,t.totalPage||(t.totalPage=0),t.incomeList=i,t.userInfo=a.member,t.finishMoney=a.finish_money,t.waitMoney=a.wait_money,t.sumMoney=a.sum_money}else t.page=t.page-1,t.isLoadMore=!1,t.$dialog.alert({message:e.msg})}),(function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.totalPage)){this.page=this.page+1;var e={cstore_id:this.storeId,status:this.incomeStatus,page:this.page};$http.post("plugin.coupon-store.frontend.store-manage.moneyList",e,"正在获取").then((function(e){if(1==e.result){var a=e.data,i=a.data;t.isLoadMore=!0,t.incomeList=[].concat(Object(c["a"])(t.incomeList),Object(c["a"])(i))}else t.page=t.page-1,t.isLoadMore=!1,t.$dialog.alert({message:e.msg})}),(function(t){}))}},handleScroll:function(){this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()&&this.isLoadMore&&this.getMoreData()}}},m=l,d=m,u=(a("93595"),a("ce08"),a("2877")),f=Object(u["a"])(d,i,o,!1,null,"8b4c0c7c",null);e["default"]=f.exports}}]); |