1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e6e2cb2"],{"6fe7":function(e,t,a){"use strict";a("d64c")},8306:function(e,t,a){var r=a("24fb");t=r(!1),t.push([e.i,".recommend-reward .reward-title[data-v-0769f6e3]{background-color:#f8f8f8;text-align:center;height:2.75rem;line-height:2.75rem}.recommend-reward .reward-title p[data-v-0769f6e3]{font-size:18px;color:#2c2c2c}.recommend-reward .reward-user[data-v-0769f6e3]{background-color:#f15353;height:6.69rem;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;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}.recommend-reward .reward-user .user-img[data-v-0769f6e3]{width:2.88rem;height:2.88rem;margin-left:1.56rem}.recommend-reward .reward-user .user-img img[data-v-0769f6e3]{width:100%;height:100%;border-radius:50%}.recommend-reward .reward-user .user-info[data-v-0769f6e3]{color:#fff;margin-left:.69rem;text-align:left}.recommend-reward .reward-user .user-info>p[data-v-0769f6e3]{font-size:16px;margin-bottom:.56rem}.recommend-reward .reward-user .user-info .user-grade[data-v-0769f6e3]{width:3.25rem;height:1.25rem;text-align:center;background-color:#f36b69;border-radius:.63rem}.recommend-reward .reward-user .user-info .user-grade p[data-v-0769f6e3]{line-height:1.25rem;color:#fff;font-size:12px}.recommend-reward .reward-price[data-v-0769f6e3]{height:5.5rem;background-color:#fff;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;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.recommend-reward .reward-price .prile-list p[data-v-0769f6e3]:first-child{font-size:16px;color:#f15353;margin-bottom:.75rem}.recommend-reward .reward-price .prile-list p[data-v-0769f6e3]:nth-child(2){font-size:14px;color:#8c8c8c}.recommend-reward .reward-list[data-v-0769f6e3]{margin-top:.63rem}.recommend-reward .list[data-v-0769f6e3]{background-color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.7rem .65rem;border-bottom:1px solid #f4f4f4}.recommend-reward .list li[data-v-0769f6e3]{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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:1.7rem}.recommend-reward .list p[data-v-0769f6e3]{font-size:14px}.recommend-reward .list .list-order p[data-v-0769f6e3]:first-child{color:#2a2f31}.recommend-reward .list .list-order p[data-v-0769f6e3]:nth-child(2){color:#f15353}.recommend-reward .list .list-date p[data-v-0769f6e3]:first-child{color:#6a6a6a;font-size:12px}.recommend-reward .list .list-date p[data-v-0769f6e3]:nth-child(2){color:#101010}",""]),e.exports=t},"90d4":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"recommend-reward"},[a("div",{staticClass:"reward-header"},[a("c-title",{staticClass:"circle_title",attrs:{hide:!1,text:"直荐奖"}}),a("div",{staticClass:"reward-user"},[a("div",{staticClass:"user-img"},[a("img",{attrs:{src:e.info.pic,alt:""}})]),a("div",{staticClass:"user-info"},[a("p",[e._v(e._s(e.info.name))]),a("div",{staticClass:"user-grade"},[a("p",[e._v(e._s(e.info.level_name))])])])]),a("div",{staticClass:"reward-price"},[a("div",{staticClass:"prile-list"},[a("p",[e._v("¥"+e._s(e.amount.wait||0))]),a("p",[e._v("未结算")])]),a("div",{staticClass:"prile-list"},[a("p",[e._v("¥"+e._s(e.amount.already))]),a("p",[e._v("已结算")])])])],1),a("div",{staticClass:"reward-list"},[a("van-tabs",{attrs:{"title-active-color":"#FB6B68"},on:{change:e.tabStatus},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[a("van-tab",{attrs:{title:"全部",name:2}}),a("van-tab",{attrs:{title:"未结算",name:0}}),a("van-tab",{attrs:{title:"已结算",name:1}}),a("van-tab",{attrs:{title:"失效",name:-1}}),e._l(e.listData,(function(t){return a("ul",{key:t.id,staticClass:"list"},[a("li",{staticClass:"list-order"},[a("p",[e._v(e._s(t.order.order_sn))]),a("p",[e._v("¥"+e._s(e._f("0")(t.amount)))])]),a("li",{staticClass:"list-date"},[a("p",[e._v(e._s(t.created_at))]),a("p",[e._v(e._s(t.status_name))])])])}))],2)],1)])},i=[],s=(a("e7e5"),a("d399")),n=(a("99af"),a("ac0d")),o={name:"recommend-reward",mixins:[n["a"]],data:function(){return{active:2,info:{},amount:{},listData:[],json:{},isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getIndexData()},methods:{getIndexData:function(){var e=this,t={};t={page:1},2!=this.active&&(t.status=this.active),$http.get("plugin.recommend-reward.frontend.controllers.records.index",t,"加载中...").then((function(t){1===t.result?(e.info=t.data.info,e.amount=t.data.amount,e.listData=t.data.list.data,e.total_page=t.data.list.last_page,e.total_page||(e.total_page=0)):Object(s["a"])(t.msg)}),(function(e){Object(s["a"])(e)})).catch((function(e){}))},tabStatus:function(){this.page=1,this.total_page=0,this.isLoadMore=!0,this.getIndexData()},getMoreData:function(){var e=this,t={};e.isLoadMore=!1,e.page>=e.total_page||(e.page=e.page+1,t={page:e.page},2!=this.active&&(t.status=this.active),$http.get("plugin.recommend-reward.frontend.controllers.records.search",t,"加载中...").then((function(t){if(e.isLoadMore=!0,1==t.result){var a=t.data.data;e.listData=e.listData.concat(a)}else e.page=e.page-1,e.isLoadMore=!1})).catch((function(e){})))}}},l=o,c=l,d=(a("6fe7"),a("2877")),f=Object(d["a"])(c,r,i,!1,null,"0769f6e3",null);t["default"]=f.exports},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var r=document.documentElement,i=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return r&&r.scrollTop?e=r.scrollTop:i&&(e=i.scrollTop),e},getClientHeight:function(){var e=0;return e=i.clientHeight&&r.clientHeight?Math.min(i.clientHeight,r.clientHeight):Math.max(i.clientHeight,r.clientHeight),e},getScrollHeight:function(){return Math.max(i.scrollHeight,r.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},d64c:function(e,t,a){var r=a("8306");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=a("499e").default;i("2fa8e7e0",r,!0,{sourceMap:!1,shadowMode:!1})}}]); |