3 lines
19 KiB
JavaScript
3 lines
19 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d6123bc"],{"1da1":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));i("d3b7");function o(t,e,i,o,a,r,n){try{var s=t[r](n),l=s.value}catch(c){return void i(c)}s.done?e(l):Promise.resolve(l).then(o,a)}function a(t){return function(){var e=this,i=arguments;return new Promise((function(a,r){var n=t.apply(e,i);function s(t){o(n,a,r,s,l,"next",t)}function l(t){o(n,a,r,s,l,"throw",t)}s(void 0)}))}}},"4b46":function(t,e,i){"use strict";i("b4e3")},b4e3:function(t,e,i){var o=i("e401");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("21192ea2",o,!0,{sourceMap:!1,shadowMode:!1})},bd6b9:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"allowanceReward"}},[i("c-title",{staticClass:"circle_title",attrs:{hide:!1,text:t.title}}),i("van-tabs",{on:{change:t.tabChange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[i("van-tab",{attrs:{title:"全部"}}),i("van-tab",{attrs:{title:"已结算"}}),i("van-tab",{attrs:{title:"未结算"}})],1),i("div",{staticClass:"yearBox"},[i("div",{staticClass:"yearTxt"},[t._v("按年")]),i("div",{staticClass:"yearRight",on:{click:t.yearTap}},[i("span",[t._v(t._s(t.nowYears))]),i("i",{staticClass:"iconfont icon-member-bottom"})])]),i("div",{staticClass:"list"},t._l(t.list,(function(e,o){return i("div",{key:o,staticClass:"forListC"},[e.amounts>0?i("div",{staticClass:"list_li",on:{click:function(i){return t.tapGetList(e,o)}}},[i("div",{staticClass:"list_li_left"},[t._v(" "+t._s(e.year)+"-"+t._s(e.month)+": "),i("span",{staticClass:"price"},[t._v("¥"+t._s(e.amounts))])]),i("i",{staticClass:"iconfont icon-advertise-next"})]):t._e(),t._l(e.info,(function(a,r){return[e.show?i("div",{key:r,staticClass:"hideList"},[i("div",{staticClass:"list_lis",on:{click:function(e){return t.showGoods(r,a,o)}}},[i("div",{staticClass:"list_lis_top"},[i("div",{staticClass:"order"},[t._v(t._s(a.order_sn))]),i("div",{staticClass:"price"},[t._v("+"+t._s(a.award_amounts))])]),i("div",{staticClass:"list_lis_bottom"},[i("div",{staticClass:"date"},[t._v(t._s(a.created_at))]),i("div",{staticClass:"status"},[t._v(" "+t._s(a.status_name)+" "),1==t.tapind||0==t.tapind?[!a.show&&a.order_goods.length>0?i("div",{staticClass:"resver"},[i("i",{staticClass:"iconfont icon-member-bottom"})]):t._e(),a.show&&a.order_goods.length>0?i("div",[i("i",{staticClass:"iconfont icon-member-bottom"})]):t._e()]:t._e()],2)])]),1==t.tapind||0==t.tapind?[a.show&&a.order_goods.length>0?i("div",{staticClass:"goodsBox",class:a.moreShow?"":"goodsBoxHeight"},[t._l(a.order_goods,(function(e,o){return i("div",{key:o,staticClass:"shopList"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("div",{staticClass:"goodsDetail"},[i("div",{staticClass:"goodsDetailTxt"},[t._v(t._s(e.title))]),i("div",{staticClass:"goodsDetailPrice"},[i("span",[t._v("订单金额:")]),t._v(t._s(e.payment_amount))])])])})),!a.moreShow&&a.order_goods.length>2?i("div",{staticClass:"moreGoods",on:{click:function(i){return t.moreShowTap(e,r,o)}}},[t._v(" 查看更多 "),i("i",{staticClass:"iconfont icon-member-bottom"})]):t._e()],2):t._e()]:t._e()],2):t._e()]})),e.show&&e.last_page&&e.page<e.last_page?i("div",{staticClass:"getMore",on:{click:function(i){return t.getMore(e,o)}}},[t._v("加载更多")]):t._e()],2)})),0),i("van-popup",{attrs:{round:"",position:"bottom","value-key":"value"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[i("van-picker",{attrs:{title:"选择年份","show-toolbar":"",columns:t.years},on:{cancel:t.onCancel,confirm:t.onConfirm}})],1)],1)},a=[],r=(i("e7e5"),i("d399")),n=i("c7eb"),s=i("1da1"),l=(i("99af"),{data:function(){return{active:0,title:"极差奖励",years:[],showPicker:!1,list:[],info:[],nowYears:(new Date).getFullYear(),getUrl:"",getDetailUrl:"",tapind:""}},activated:function(){0==this.$route.params.ind?(this.title="极差奖励",this.getUrl="plugin.agency-subsidy.frontend.controllers.records.order.index",this.getDetailUrl="plugin.agency-subsidy.frontend.controllers.records.order.detail"):1==this.$route.params.ind?(this.title="层级奖励",this.getUrl="plugin.agency-subsidy.frontend.controllers.records.level.index",this.getDetailUrl="plugin.agency-subsidy.frontend.controllers.records.level.detail"):2==this.$route.params.ind?(this.title="补贴奖励",this.getUrl="plugin.agency-subsidy.frontend.controllers.records.subsidy.index",this.getDetailUrl="plugin.agency-subsidy.frontend.controllers.records.subsidy.detail"):3==this.$route.params.ind&&(this.title="业绩奖励",this.getUrl="plugin.agency-subsidy.frontend.controllers.records.performance.index",this.getDetailUrl="plugin.agency-subsidy.frontend.controllers.records.performance.detail"),this.tapind=this.$route.params.ind,this.fun.setWXTitle(this.title),this.getData()},methods:{tabChange:function(t){this.nowYears=(new Date).getFullYear(),this.list=[],this.getData()},moreShowTap:function(t,e,i){t.info[e].moreShow||this.$set(this.list[i].info[e],"moreShow",!0)},showGoods:function(t,e,i){e.show?this.$set(this.list[i].info[t],"show",!1):this.$set(this.list[i].info[t],"show",!0)},tapGetList:function(t,e){t.show?this.$set(this.list[e],"show",!1):(this.$set(this.list[e],"show",!0),this.list[e].page=1,this.list[e].last_page=1,this.getDetail(t,e))},yearTap:function(){var t=this;return Object(s["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getYear(),t.showPicker=!0;case 2:case"end":return e.stop()}}),e)})))()},onConfirm:function(t){this.showPicker=!1,this.nowYears=t,this.list=[],this.getData()},onCancel:function(){this.showPicker=!1},getYear:function(){if(!(this.years.length>=11))for(var t=(new Date).getFullYear(),e=0;e<=10;e++)this.years.push(t-e)},getData:function(){var t=this,e="";e=2==this.active?"-1":this.active;var i={year:this.nowYears,award_status:e};$http.post(this.getUrl,i,"加载中...").then((function(e){if(1==e.result){for(var i=0;i<e.data.length;i++)e.data[i].amounts>0&&(e.data[i].show=!1);t.list=e.data}else Object(r["a"])(e.msg)}))},getDetail:function(t,e){var i=this,o="";o=2==this.active?"-1":this.active;var a={year:t.year,month:t.month,award_status:o,page:t.page};$http.post(this.getDetailUrl,a,"加载中...").then((function(t){if(1==t.result){if(0==i.tapind||1==i.tapind)for(var o=0;o<t.data.data.length;o++)t.data.data[o].order_goods.length>0&&(t.data.data[o].show=!1);i.$set(i.list[e],"info",t.data.data),i.list[e].last_page=t.data.last_page}else Object(r["a"])(t.msg)}))},getMore:function(t,e){var i=this,o={year:t.year,month:t.month,award_status:this.active,page:t.page+1};$http.post(this.getDetailUrl,o,"加载中...").then((function(t){if(1==t.result){var o=t.data.data;i.list[e].info=i.list[e].info.concat(o),i.$set(i.list[e],"info",i.list[e].info),i.list[e].page=t.data.current_page,i.list[e].last_page=t.data.last_page}else Object(r["a"])(t.msg)}))}}}),c=l,d=(i("4b46"),i("2877")),f=Object(d["a"])(c,o,a,!1,null,"097d02ad",null);e["default"]=f.exports},c7eb:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("b636"),i("944a"),i("0c47"),i("23dc"),i("d9e2"),i("3410"),i("159b"),i("b0c0"),i("131a"),i("fb6a");var o=i("53ca");function a(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
a=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,i){return t[e]=i}}function d(t,e,i,o){var a=e&&e.prototype instanceof h?e:h,r=Object.create(a.prototype),n=new j(o||[]);return r._invoke=function(t,e,i){var o="suspendedStart";return function(a,r){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===a)throw r;return D()}for(i.method=a,i.arg=r;;){var n=i.delegate;if(n){var s=_(n,i);if(s){if(s===u)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===o)throw o="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o="executing";var l=f(t,e,i);if("normal"===l.type){if(o=i.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o="completed",i.method="throw",i.arg=l.arg)}}}(t,i,n),r}function f(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(E){return{type:"throw",arg:E}}}t.wrap=d;var u={};function h(){}function p(){}function g(){}var b={};c(b,n,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(C([])));v&&v!==e&&i.call(v,n)&&(b=v);var x=g.prototype=h.prototype=Object.create(b);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function a(r,n,s,l){var c=f(t[r],t,n);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==Object(o["a"])(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){a("next",t,s,l)}),(function(t){a("throw",t,s,l)})):e.resolve(u).then((function(t){d.value=t,s(d)}),(function(t){return a("throw",t,s,l)}))}l(c.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,o){a(t,i,e,o)}))}return r=r?r.then(o,o):o()}}function _(t,e){var i=t.iterator[e.method];if(void 0===i){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var o=f(i,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,u;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function C(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(i.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:D}}function D(){return{value:void 0,done:!0}}return p.prototype=g,c(x,"constructor",g),c(g,"constructor",p),p.displayName=c(g,l,"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,g):(t.__proto__=g,c(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},w(y.prototype),c(y.prototype,s,(function(){return this})),t.AsyncIterator=y,t.async=function(e,i,o,a,r){void 0===r&&(r=Promise);var n=new y(d(e,i,o,a),r);return t.isGeneratorFunction(i)?n:n.next().then((function(t){return t.done?t.value:n.next()}))},w(x),c(x,l,"Generator"),c(x,n,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var o=e.pop();if(o in t)return i.value=o,i.done=!1,i}return i.done=!0,i}},t.values=C,j.prototype={constructor:j,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)&&i.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 o(i,o){return n.type="throw",n.arg=t,e.next=i,o&&(e.method="next",e.arg=void 0),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],n=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var s=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var n=r?r.completion:{};return n.type=t,n.arg=e,r?(this.method="next",this.next=r.finallyLoc,u):this.complete(n)},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),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),L(i),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var a=o.arg;L(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:C(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},t}},e401:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".goodsBoxHeight[data-v-097d02ad]{max-height:7.3rem;position:relative}.moreGoods[data-v-097d02ad]{position:absolute;bottom:.3rem;width:100%;font-size:.69rem;color:#666;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:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.moreGoods .iconfont[data-v-097d02ad]{color:#666}.list[data-v-097d02ad]{background:#fff}.forListC[data-v-097d02ad],.getMore[data-v-097d02ad]{margin-bottom:.63rem}.getMore[data-v-097d02ad]{color:#666;overflow:hidden}.yearBox[data-v-097d02ad]{padding:.63rem 0;background:#fff;padding-right:1.09rem;padding-left:.94rem;overflow:hidden;margin:.63rem 0;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:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.yearBox .yearRight[data-v-097d02ad]{text-align:right}.yearBox .yearRight[data-v-097d02ad],.yearBox .yearTxt[data-v-097d02ad]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.yearBox .yearTxt[data-v-097d02ad]{text-align:left}.goodsBox[data-v-097d02ad]{background:#f2f2f2;padding:.75rem;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:.63rem}.goodsBox .shopList[data-v-097d02ad]{margin-bottom:.75rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.goodsBox .shopList[data-v-097d02ad],.goodsBox .shopList .goodsDetail[data-v-097d02ad]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.goodsBox .shopList .goodsDetail[data-v-097d02ad]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.38rem;-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;text-align:left;overflow:hidden}.goodsBox .shopList .goodsDetail .goodsDetailTxt[data-v-097d02ad]{font-size:.75rem;color:#202020;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goodsBox .shopList .goodsDetail .goodsDetailPrice[data-v-097d02ad]{font-size:.69rem;color:#f15353}.goodsBox .shopList .goodsDetail .goodsDetailPrice span[data-v-097d02ad]{color:#666}.goodsBox .shopList .img[data-v-097d02ad]{margin-right:.5rem}.goodsBox .shopList .img[data-v-097d02ad],.goodsBox .shopList .img img[data-v-097d02ad]{width:2.38rem;height:2.38rem;border-radius:.13rem}.hideList[data-v-097d02ad]{padding-right:1.09rem;padding-left:.94rem;background:#fff;overflow:hidden}.hideList .list_lis[data-v-097d02ad]{padding:.72rem 0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-top:1px solid #ebebeb}.hideList .list_lis[data-v-097d02ad],.hideList .list_lis .list_lis_top[data-v-097d02ad]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.hideList .list_lis .list_lis_top[data-v-097d02ad]{-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;margin-bottom:.4rem}.hideList .list_lis .list_lis_top .order[data-v-097d02ad]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;font-size:.75rem}.hideList .list_lis .list_lis_top .price[data-v-097d02ad]{-webkit-box-flex:.5;-webkit-flex:.5;-ms-flex:.5;flex:.5;text-align:right;color:#f15353;font-size:.81rem}.hideList .list_lis .list_lis_bottom[data-v-097d02ad]{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;font-size:.69rem}.hideList .list_lis .list_lis_bottom .date[data-v-097d02ad]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;color:#666;font-size:.69rem}.hideList .list_lis .list_lis_bottom .status[data-v-097d02ad]{-webkit-box-flex:.5;-webkit-flex:.5;-ms-flex:.5;flex:.5;text-align:right;color:#666;font-size:.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:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.hideList .list_lis .list_lis_bottom .status .resver[data-v-097d02ad]{-webkit-transform:rotate(180deg)!important;transform:rotate(180deg)!important}.list_li[data-v-097d02ad]{height:2.72rem;padding-right:1.09rem;padding-left:.94rem;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;background:#fff}.list_li .iconfont[data-v-097d02ad]{font-size:20px;color:#666}.list_li .list_li_left[data-v-097d02ad]{color:#202020;font-size:.88rem}.list_li .list_li_left .price[data-v-097d02ad]{color:#f15353}",""]),t.exports=e}}]); |