3 lines
16 KiB
JavaScript
3 lines
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bf14e5a8"],{"04fa1":function(t,e,r){var a=r("7985");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=r("499e").default;i("7c34550b",a,!0,{sourceMap:!1,shadowMode:!1})},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("d3b7");function a(t,e,r,a,i,n,o){try{var c=t[n](o),s=c.value}catch(l){return void r(l)}c.done?e(s):Promise.resolve(s).then(a,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var o=t.apply(e,r);function c(t){a(o,i,n,c,s,"next",t)}function s(t){a(o,i,n,c,s,"throw",t)}c(void 0)}))}}},7985:function(t,e,r){var a=r("24fb");e=a(!1),e.push([t.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}",""]),t.exports=e},ac0d:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var a=document.documentElement,i=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 a&&a.scrollTop?t=a.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&a.clientHeight?Math.min(i.clientHeight,a.clientHeight):Math.max(i.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(i.scrollHeight,a.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(){}}}},bb33f:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page"},[r("c-title",{attrs:{text:"业绩区域奖励"}}),r("div",{staticClass:"header"},[r("div",{staticClass:"face"},[t.info.pic?r("img",{attrs:{src:t.info.pic,alt:""}}):t._e()]),r("div",{staticClass:"desc"},[r("div",{staticClass:"name"},[t._v(t._s(t.info.name))]),r("div",{staticClass:"level"},[t._v(t._s(t.info.level_name)+" "),t.location.province||t.location.city?r("i",{staticClass:"iconfont icon-icon_location"}):t._e(),t.location.province?r("span",[t._v(t._s(t.location.province)+"-")]):t._e(),t.location.city?r("span",[t._v(t._s(t.location.city))]):t._e()])])]),r("div",{staticClass:"headerItems"},[r("div",{staticClass:"headerItem"},[r("div",{staticClass:"price"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(t.statistics.amount)+" ")]),r("div",{staticClass:"desc"},[t._v("累计奖励额度")])]),r("div",{staticClass:"headerItem"},[r("div",{staticClass:"price"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(t.statistics.already_reward)+" ")]),r("div",{staticClass:"desc"},[t._v("累计释放额度")])]),r("div",{staticClass:"headerItem"},[r("div",{staticClass:"price"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(t.statistics.not_release)+" ")]),r("div",{staticClass:"desc"},[t._v("未释放额度")])])]),r("div",{staticClass:"spltBorder"}),t._m(0),t.listData.length>0?r("div",{staticClass:"recordList"},t._l(t.listData,(function(e){return r("div",{key:e.id},[r("div",{staticClass:"recordItem"},[r("div",{staticClass:"top"},[r("span",{staticClass:"c1"},[t._v("ID:"+t._s(e.id)+" "),e.belongs_to_reward?r("span",[t._v(t._s(e.belongs_to_reward.area_name))]):t._e()]),r("div",{staticClass:"c2",on:{click:function(r){return t.gotoAwardsRecord(e.id)}}},[t._v(" 查看详情 "),r("i",{staticClass:"iconfont icon-advertise-next"})])]),r("div",{staticClass:"opts"},[r("div",{staticClass:"opt"},[r("div",{staticClass:"price"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(e.amount)+" ")]),r("div",{staticClass:"desc"},[t._v("累计奖励额度")])]),r("div",{staticClass:"opt"},[r("div",{staticClass:"price"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(e.already_reward)+" ")]),r("div",{staticClass:"desc"},[t._v("累计释放额度")])]),r("div",{staticClass:"opt"},[r("div",{staticClass:"price"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(e.not_release)+" ")]),r("div",{staticClass:"desc"},[t._v("未释放额度")])])])]),r("div",{staticClass:"spltBorder"})])})),0):t._e()],1)},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"recordHeader"},[r("div",{staticClass:"recordTitle"},[t._v("奖励额度记录")])])}],n=(r("e7e5"),r("d399")),o=r("c7eb"),c=r("1da1"),s=(r("99af"),r("ac0d")),l={mixins:[s["a"]],data:function(){return{page:1,isLoadMore:!0,total_page:0,listData:[],statistics:{},info:{},location:{}}},activated:function(){var t=this;return Object(c["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getData();case 1:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;return Object(c["a"])(Object(o["a"])().mark((function e(){var r;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n["a"].loading({message:"加载中",forbidClick:!0}),e.next=3,$http.get("plugin.regional-reward.Frontend.controllers.quota.index");case 3:if(r=e.sent,n["a"].clear(),1===r.result){e.next=8;break}return Object(n["a"])(r.msg),e.abrupt("return");case 8:t.statistics=r.data.statistics,t.info=r.data.info,t.location=r.data.location,t.listData=r.data.list.data,t.isLoadMore=!0,t.total_page=r.data.list.last_page,t.total_page||(t.total_page=0);case 15:case"end":return e.stop()}}),e)})))()},getMoreData:function(){var t=this;return Object(c["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isLoadMore=!1,!(t.page>=t.total_page)){e.next=5;break}return e.abrupt("return");case 5:t.page+=1,$http.get("plugin.regional-reward.Frontend.controllers.quota.index",{page:t.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var r=e.data.list.data;t.listData=t.listData.concat(r)}else t.page=t.page-1,t.isLoadMore=!1}));case 7:case"end":return e.stop()}}),e)})))()},gotoAwardsRecord:function(t){this.$router.push(this.fun.getUrl("regionalAwardsRecord",{},{quotaId:t}))}}},d=l,u=d,f=(r("eb26"),r("2877")),h=Object(f["a"])(u,a,i,!1,null,"ca76ee52",null);e["default"]=h.exports},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("d9e2"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var a=r("53ca");function i(){
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(I){l=function(t,e,r){return t[e]=r}}function d(t,e,r,a){var i=e&&e.prototype instanceof h?e:h,n=Object.create(i.prototype),o=new C(a||[]);return n._invoke=function(t,e,r){var a="suspendedStart";return function(i,n){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===i)throw n;return E()}for(r.method=i,r.arg=n;;){var o=r.delegate;if(o){var c=_(o,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var s=u(t,e,r);if("normal"===s.type){if(a=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a="completed",r.method="throw",r.arg=s.arg)}}}(t,r,o),n}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(I){return{type:"throw",arg:I}}}t.wrap=d;var f={};function h(){}function p(){}function v(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(j([])));b&&b!==e&&r.call(b,o)&&(m=b);var y=v.prototype=h.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(n,o,c,s){var l=u(t[n],t,o);if("throw"!==l.type){var d=l.arg,f=d.value;return f&&"object"==Object(a["a"])(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,c,s)}),(function(t){i("throw",t,c,s)})):e.resolve(f).then((function(t){d.value=t,c(d)}),(function(t){return i("throw",t,c,s)}))}s(l.arg)}var n;this._invoke=function(t,r){function a(){return new e((function(e,a){i(t,r,e,a)}))}return n=n?n.then(a,a):a()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var a=u(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,f;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function e(){for(;++a<t.length;)if(r.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=v,l(y,"constructor",v),l(v,"constructor",p),p.displayName=l(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,a,i,n){void 0===n&&(n=Promise);var o=new x(d(e,r,a,i),n);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var a=e.pop();if(a in t)return r.value=a,r.done=!1,r}return r.done=!0,r}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return o.type="throw",o.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i],o=n.completion;if("root"===n.tryLoc)return a("end");if(n.tryLoc<=this.prev){var c=r.call(n,"catchLoc"),s=r.call(n,"finallyLoc");if(c&&s){if(this.prev<n.catchLoc)return a(n.catchLoc,!0);if(this.prev<n.finallyLoc)return a(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return a(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return a(n.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,f):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var i=a.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}},eb26:function(t,e,r){"use strict";r("04fa1")}}]); |