3 lines
18 KiB
JavaScript
3 lines
18 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b7a729c"],{"1da1":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));i("d3b7");function a(t,e,i,a,r,n,o){try{var s=t[n](o),l=s.value}catch(c){return void i(c)}s.done?e(l):Promise.resolve(l).then(a,r)}function r(t){return function(){var e=this,i=arguments;return new Promise((function(r,n){var o=t.apply(e,i);function s(t){a(o,r,n,s,l,"next",t)}function l(t){a(o,r,n,s,l,"throw",t)}s(void 0)}))}}},"63fc":function(t,e,i){var a=i("a646");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=i("499e").default;r("4a4cb73f",a,!0,{sourceMap:!1,shadowMode:!1})},6512:function(t,e,i){"use strict";i("63fc")},a646:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".page[data-v-b62a453e]{background:#fff;min-height:100vh}.header_box[data-v-b62a453e]{padding:1rem .75rem;background:#f15353;color:#f5f5f5;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;font-size:14px}.header_box .left[data-v-b62a453e]{line-height:3rem;font-size:.875rem}.header_box .right[data-v-b62a453e]{font-size:.875rem;text-align:right}.header_box .right .li[data-v-b62a453e]{line-height:1.5rem}.money[data-v-b62a453e]{width:100%;height:5.375rem;-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}.money[data-v-b62a453e],.money .moneyItem[data-v-b62a453e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.money .moneyItem[data-v-b62a453e]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.money .moneyItem .price[data-v-b62a453e]{font-size:1rem;color:#f15353}.money .moneyItem .desc[data-v-b62a453e]{color:#8c8c8c;font-size:.875rem;margin-top:.2rem}.hr[data-v-b62a453e]{height:.625rem;width:100%;background-color:#ebebeb}.wrapper span.month[data-v-b62a453e]{display:block;text-align:left;line-height:2.25rem;padding:0 .75rem;background:#f0f0f0;font-size:16px}.wrapper .info[data-v-b62a453e]{border-bottom:.0625rem solid #eee;overflow:hidden;padding:.625rem .75rem;background:#fff;font-size:14px}.wrapper .info .info-div[data-v-b62a453e]{width:100%;float:left}.wrapper .info .left[data-v-b62a453e]{width:70%;float:left;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box}.wrapper .info .left .time[data-v-b62a453e]{font-size:12px;color:#8c8c8c}.wrapper .info .left .left-item[data-v-b62a453e]{line-height:1.5rem}.wrapper .info .right[data-v-b62a453e]{float:left;width:30%;color:#f15353;text-align:right}.wrapper .info .right .state[data-v-b62a453e]{font-size:12px;color:#8c8c8c}.wrapper .info .right .right-item[data-v-b62a453e]{line-height:1.5rem}.order_detail.opens[data-v-b62a453e]{display:block}.order_detail[data-v-b62a453e]{display:none;overflow:hidden;width:100%}.order_detail .team_list[data-v-b62a453e]{background-color:#fff;padding:.625rem 0;overflow:hidden;border-top:.0625rem solid #e2e2e2}.order_detail .team_list .img[data-v-b62a453e]{width:2.5rem;height:2.5rem;float:left;text-align:left}.order_detail .team_list .img img[data-v-b62a453e]{width:100%;height:100%}.order_detail .team_list .info1[data-v-b62a453e]{height:2.5rem;width:80%;float:left;font-size:14px;color:#222;line-height:1.429rem;text-align:left;padding:0 .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}.order_detail .team_list .info1 .name[data-v-b62a453e]{font-size:.875rem;color:#333}.order_detail .team_list .info1 .desc[data-v-b62a453e]{color:#8c8c8c;font-size:.75rem}#distribution-goods[data-v-b62a453e]{background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;padding-top:10px;border-top:.0625rem solid #e2e2e2;margin-bottom:.375rem}#distribution-goods .img[data-v-b62a453e]{background-color:#666}#distribution-goods .img[data-v-b62a453e],#distribution-goods .img img[data-v-b62a453e]{width:4.375rem;height:4.375rem}#distribution-goods .inner[data-v-b62a453e]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;padding:0 .625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}#distribution-goods .name[data-v-b62a453e]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;text-align:justify;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.875rem;color:#333}#distribution-goods .price[data-v-b62a453e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#distribution-goods .price .b[data-v-b62a453e]{text-align:right;color:#666;font-size:12px}#distribution-goods .price .total[data-v-b62a453e]{color:#333;float:right;font-size:1rem;line-height:1.6rem}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,r=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:r&&(t=r.scrollTop),t},getClientHeight:function(){var t=0;return t=r.clientHeight&&a.clientHeight?Math.min(r.clientHeight,a.clientHeight):Math.max(r.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(r.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(){}}}},c7eb:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));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 a=i("53ca");function r(){
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
r=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",l=n.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(z){c=function(t,e,i){return t[e]=i}}function d(t,e,i,a){var r=e&&e.prototype instanceof h?e:h,n=Object.create(r.prototype),o=new L(a||[]);return n._invoke=function(t,e,i){var a="suspendedStart";return function(r,n){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw n;return E()}for(i.method=r,i.arg=n;;){var o=i.delegate;if(o){var s=_(o,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"===a)throw a="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a="executing";var l=f(t,e,i);if("normal"===l.type){if(a=i.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(a="completed",i.method="throw",i.arg=l.arg)}}}(t,i,o),n}function f(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(z){return{type:"throw",arg:z}}}t.wrap=d;var u={};function h(){}function p(){}function m(){}var v={};c(v,o,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(j([])));g&&g!==e&&i.call(g,o)&&(v=g);var y=m.prototype=h.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(n,o,s,l){var c=f(t[n],t,o);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==Object(a["a"])(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(u).then((function(t){d.value=t,s(d)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var n;this._invoke=function(t,i){function a(){return new e((function(e,a){r(t,i,e,a)}))}return n=n?n.then(a,a):a()}}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 a=f(i,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,u;var r=a.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(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,r=function e(){for(;++a<t.length;)if(i.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=m,c(y,"constructor",m),c(m,"constructor",p),p.displayName=c(m,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,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(x.prototype),c(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,i,a,r,n){void 0===n&&(n=Promise);var o=new x(d(e,i,a,r),n);return t.isGeneratorFunction(i)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(y),c(y,l,"Generator"),c(y,o,(function(){return this})),c(y,"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 a=e.pop();if(a in t)return i.value=a,i.done=!1,i}return i.done=!0,i}},t.values=j,L.prototype={constructor:L,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(C),!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 a(i,a){return o.type="throw",o.arg=t,e.next=i,a&&(e.method="next",e.arg=void 0),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r],o=n.completion;if("root"===n.tryLoc)return a("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev<n.catchLoc)return a(n.catchLoc,!0);if(this.prev<n.finallyLoc)return a(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return a(n.catchLoc,!0)}else{if(!l)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 r=this.tryEntries[a];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var n=r;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,u):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),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),C(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 a=i.completion;if("throw"===a.type){var r=a.arg;C(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:j(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},t}},edd8:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page"},[i("c-title",{attrs:{hide:!1,text:t.pageData.plugin_name}}),i("div",{staticClass:"header_box"},[i("div",{staticClass:"left"},[i("span",[t._v(t._s(t.pageData.level_name))])]),i("div",{staticClass:"right"},[i("div",{staticClass:"li"},[t._v("等级比例:"+t._s(t.pageData.dividend_ratio)+"%")]),i("div",{staticClass:"li"},[t._v("下一等级比例:"+t._s(t.pageData.next_dividend_ratio)+"%")])])]),i("div",{staticClass:"money"},[i("div",{staticClass:"moneyItem"},[i("div",{staticClass:"price"},[t._v(t._s(t.pageData.unliquidated)+"元")]),i("div",{staticClass:"desc"},[t._v("未结算")])]),i("div",{staticClass:"moneyItem"},[i("div",{staticClass:"price"},[t._v(t._s(t.pageData.liquidated)+"元")]),i("div",{staticClass:"desc"},[t._v("已结算")])])]),i("div",{staticClass:"hr"}),i("div",{staticClass:"tags"},[i("van-tabs",{on:{change:t.changeVanTab},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.list_title,(function(t,e){return i("van-tab",{key:e,attrs:{title:t.name,name:t.dividend_type}})})),1)],1),i("div",{staticClass:"listData"},[t._l(t.list_data,(function(e,a){return i("div",{key:a,staticClass:"wrapper"},[i("div",{staticClass:"detail"},[i("span",{staticClass:"month"},[t._v(t._s(e.create_month))]),t._l(e.has_many_dividend,(function(e,r){return i("div",{key:r,staticClass:"info"},[i("div",{staticClass:"info-div",on:{click:function(e){return t.openDetail(a,r)}}},[i("div",{staticClass:"left"},[i("div",{staticClass:"num left-item"},[t._v("订单号:"+t._s(e.order_sn))]),i("div",{staticClass:"time left-item"},[t._v("时间:"+t._s(e.created_at))])]),i("div",{staticClass:"right"},[i("div",{staticClass:"price right-item"},[t._v(t._s(e.dividend_amount))]),i("div",{staticClass:"state right-item"},[t._v(t._s(e.status_name))])])]),i("div",{staticClass:"order_detail",class:{opens:a==t.display1&&r==t.display2}},[i("div",{staticClass:"team_list"},[e.member?i("div",{staticClass:"img"},[i("img",{attrs:{src:e.member.avatar}})]):t._e(),e.member?i("div",{staticClass:"info1"},[i("span",{staticClass:"name"},[t._v(t._s(e.member.nickname))]),i("span",{staticClass:"desc"},[t._v("微信号:"+t._s(e.member.yz_member&&e.member.yz_member.wechat?e.member.yz_member.wechat:"暂无微信号"))])]):t._e()]),t._l(e.order_goods,(function(e,a){return i("div",{key:a,staticClass:"team_goods",attrs:{id:"distribution-goods"}},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.thumb}})]),i("div",{staticClass:"inner"},[i("div",{staticClass:"name"},[t._v(t._s(e.title))])]),i("div",{staticClass:"price"},[i("div",[i("div",{staticClass:"b"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price/e.total))]),i("div",{staticClass:"b"},[t._v(" ×"+t._s(e.total))])]),i("div",{staticClass:"total"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.goods_price))])])])}))],2)])}))],2)])})),0==t.list_data.length?i("div",{staticClass:"no_data",staticStyle:{color:"#666","font-size":"0.8rem","margin-top":"2rem"}},[t._v(" 没有任何数据 ")]):t._e()],2)],1)},r=[],n=i("c7eb"),o=(i("e7e5"),i("d399")),s=i("1da1"),l=(i("99af"),i("6968")),c=i("ac0d"),d={mixins:[c["a"]],components:{cTitle:l["a"]},data:function(){return{display1:"-1",display2:"-1",list_title:[],list_data:[],active:0,isLoadMore:!0,page:1,total_page:0,requestData:{},pageData:{}}},activated:function(){this.getData(),window.screenTop=0,setTimeout((function(){window.scrollTo(0,0)}),200)},methods:{openDetail:function(t,e){if(this.display1==t&&this.display2==e)return this.display1="-1",void(this.display2="-1");this.display1=t,this.display2=e},initData:function(){this.page=1,this.requestData={}},changeVanTab:function(t){this.initData(),this.getData(t)},getData:function(){var t=arguments,e=this;return Object(s["a"])(Object(n["a"])().mark((function i(){var a,r;return Object(n["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=t.length>0&&void 0!==t[0]?t[0]:null,null!=a&&(e.requestData.dividend_type=a),o["a"].loading({message:"获取中...",forbidClick:!0}),i.next=5,$http.get("plugin.team-sztt.api.index",e.requestData);case 5:if(r=i.sent,o["a"].clear(),1==r.result){i.next=9;break}return i.abrupt("return",Object(o["a"])(r.msg));case 9:e.isLoadMore=!0,e.total_page=r.data.lastpage,e.total_page||(e.total_page=0),e.pageData=r.data,setTimeout((function(){e.fun.setWXTitle(r.data.plugin_name)}),200),e.list_title=r.data.list_title,e.list_data=r.data.list;case 16:case"end":return i.stop()}}),i)})))()},getMoreData:function(){var t=this;if(this.page!=this.total_page){this.page=this.page+1;var e={page:this.page};Object.assign(e,this.requestData),$http.get("plugin.team-sztt.api.index",e,"加载中...").then((function(e){1==e.result?t.list_data=t.list_data.concat(e.data.list):(t.page=t.page-1,t.isLoadMore=!1)})).catch((function(t){}))}}}},f=d,u=(i("6512"),i("2877")),h=Object(u["a"])(f,a,r,!1,null,"b62a453e",null);e["default"]=h.exports}}]); |