1 line
9.1 KiB
JavaScript
1 line
9.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8af9980c"],{"04fa1":function(e,t,a){var i=a("7985");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=a("499e").default;s("7c34550b",i,!0,{sourceMap:!1,shadowMode:!1})},7985:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".page[data-v-ca76ee52]{background:#fff;min-height:100vh;padding-bottom:3.0625rem}.header[data-v-ca76ee52]{width:23.438rem;height:5.5rem;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;text-align:left;color:#fff;padding-left:1.25rem}.header[data-v-ca76ee52],.header .face[data-v-ca76ee52]{background-color:#f15353}.header .face[data-v-ca76ee52]{width:3rem;height:3rem;border-radius:50%;border:.125rem solid #fff}.header .face img[data-v-ca76ee52]{width:100%;height:100%;border-radius:50%}.header .desc[data-v-ca76ee52]{height:2.8rem;margin-left:.625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.header .desc .name[data-v-ca76ee52]{font-size:1rem}.header .desc .level[data-v-ca76ee52]{font-size:.813rem}.headerItems[data-v-ca76ee52]{width:23.438rem;height:4.875rem;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:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#fff}.headerItems .headerItem .price[data-v-ca76ee52]{color:#f15353;font-size:1rem;font-weight:700}.headerItems .headerItem .desc[data-v-ca76ee52]{margin-top:.3rem;color:#333;font-size:.75rem}.spltBorder[data-v-ca76ee52]{width:23.438rem;height:.438rem;background-color:#ebebeb}.recordHeader[data-v-ca76ee52]{width:100%;border-bottom:.063rem solid #ebebeb;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.recordHeader[data-v-ca76ee52],.recordHeader .recordTitle[data-v-ca76ee52]{height:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.recordHeader .recordTitle[data-v-ca76ee52]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.875rem;color:#f15353;padding:0 1.313rem;border-bottom:.188rem solid #f15353}.recordList .recordItem[data-v-ca76ee52]{height:6rem;padding:1rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.recordList .recordItem[data-v-ca76ee52],.recordList .recordItem .top[data-v-ca76ee52]{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}.recordList .recordItem .top[data-v-ca76ee52]{font-size:.75rem}.recordList .recordItem .top .c1[data-v-ca76ee52]{color:#202020}.recordList .recordItem .top .c2[data-v-ca76ee52]{color:#f15353}.recordList .recordItem .opts[data-v-ca76ee52],.recordList .recordItem .top .c2[data-v-ca76ee52]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.recordList .recordItem .opts[data-v-ca76ee52]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.recordList .recordItem .opts .opt .price[data-v-ca76ee52]{color:#333;font-size:.938rem}.recordList .recordItem .opts .opt .desc[data-v-ca76ee52]{font-size:.75rem;color:#666}",""]),e.exports=t},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var i=document.documentElement,s=document.body,c={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return i&&i.scrollTop?e=i.scrollTop:s&&(e=s.scrollTop),e},getClientHeight:function(){var e=0;return e=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(s.scrollHeight,i.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(){}}}},bb33f:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page"},[a("c-title",{attrs:{text:"业绩区域奖励"}}),a("div",{staticClass:"header"},[a("div",{staticClass:"face"},[e.info.pic?a("img",{attrs:{src:e.info.pic,alt:""}}):e._e()]),a("div",{staticClass:"desc"},[a("div",{staticClass:"name"},[e._v(e._s(e.info.name))]),a("div",{staticClass:"level"},[e._v(e._s(e.info.level_name)+" "),e.location.province||e.location.city?a("i",{staticClass:"iconfont icon-icon_location"}):e._e(),e.location.province?a("span",[e._v(e._s(e.location.province)+"-")]):e._e(),e.location.city?a("span",[e._v(e._s(e.location.city))]):e._e()])])]),a("div",{staticClass:"headerItems"},[a("div",{staticClass:"headerItem"},[a("div",{staticClass:"price"},[e._v(" "+e._s(e.$i18n.t("money"))+e._s(e.statistics.amount)+" ")]),a("div",{staticClass:"desc"},[e._v("累计奖励额度")])]),a("div",{staticClass:"headerItem"},[a("div",{staticClass:"price"},[e._v(" "+e._s(e.$i18n.t("money"))+e._s(e.statistics.already_reward)+" ")]),a("div",{staticClass:"desc"},[e._v("累计释放额度")])]),a("div",{staticClass:"headerItem"},[a("div",{staticClass:"price"},[e._v(" "+e._s(e.$i18n.t("money"))+e._s(e.statistics.not_release)+" ")]),a("div",{staticClass:"desc"},[e._v("未释放额度")])])]),a("div",{staticClass:"spltBorder"}),e._m(0),e.listData.length>0?a("div",{staticClass:"recordList"},e._l(e.listData,(function(t){return a("div",{key:t.id},[a("div",{staticClass:"recordItem"},[a("div",{staticClass:"top"},[a("span",{staticClass:"c1"},[e._v("ID:"+e._s(t.id)+" "),t.belongs_to_reward?a("span",[e._v(e._s(t.belongs_to_reward.area_name))]):e._e()]),a("div",{staticClass:"c2",on:{click:function(a){return e.gotoAwardsRecord(t.id)}}},[e._v(" 查看详情 "),a("i",{staticClass:"iconfont icon-advertise-next"})])]),a("div",{staticClass:"opts"},[a("div",{staticClass:"opt"},[a("div",{staticClass:"price"},[e._v(" "+e._s(e.$i18n.t("money"))+e._s(t.amount)+" ")]),a("div",{staticClass:"desc"},[e._v("累计奖励额度")])]),a("div",{staticClass:"opt"},[a("div",{staticClass:"price"},[e._v(" "+e._s(e.$i18n.t("money"))+e._s(t.already_reward)+" ")]),a("div",{staticClass:"desc"},[e._v("累计释放额度")])]),a("div",{staticClass:"opt"},[a("div",{staticClass:"price"},[e._v(" "+e._s(e.$i18n.t("money"))+e._s(t.not_release)+" ")]),a("div",{staticClass:"desc"},[e._v("未释放额度")])])])]),a("div",{staticClass:"spltBorder"})])})),0):e._e()],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"recordHeader"},[a("div",{staticClass:"recordTitle"},[e._v("奖励额度记录")])])}],c=(a("e7e5"),a("d399")),r=a("c7eb"),o=a("1da1"),n=(a("99af"),a("14d9"),a("ac0d")),d={mixins:[n["a"]],data:function(){return{page:1,isLoadMore:!0,total_page:0,listData:[],statistics:{},info:{},location:{}}},activated:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.getData();case 1:case"end":return t.stop()}}),t)})))()},methods:{getData:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return c["a"].loading({message:"加载中",forbidClick:!0}),t.next=3,$http.get("plugin.regional-reward.Frontend.controllers.quota.index");case 3:if(a=t.sent,c["a"].clear(),1===a.result){t.next=8;break}return Object(c["a"])(a.msg),t.abrupt("return");case 8:e.statistics=a.data.statistics,e.info=a.data.info,e.location=a.data.location,e.listData=a.data.list.data,e.isLoadMore=!0,e.total_page=a.data.list.last_page,e.total_page||(e.total_page=0);case 15:case"end":return t.stop()}}),t)})))()},getMoreData:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isLoadMore=!1,!(e.page>=e.total_page)){t.next=5;break}return t.abrupt("return");case 5:e.page+=1,$http.get("plugin.regional-reward.Frontend.controllers.quota.index",{page:e.page}).then((function(t){if(e.isLoadMore=!0,1===t.result){var a=t.data.list.data;e.listData=e.listData.concat(a)}else e.page=e.page-1,e.isLoadMore=!1}));case 7:case"end":return t.stop()}}),t)})))()},gotoAwardsRecord:function(e){this.$router.push(this.fun.getUrl("regionalAwardsRecord",{},{quotaId:e}))}}},l=d,f=l,p=(a("eb26"),a("2877")),m=Object(p["a"])(f,i,s,!1,null,"ca76ee52",null);t["default"]=m.exports},eb26:function(e,t,a){"use strict";a("04fa1")}}]); |