3 lines
14 KiB
JavaScript
3 lines
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44f00058"],{"0c42":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".page[data-v-4d9df1f2]{min-height:100vh}.page[data-v-4d9df1f2],.title[data-v-4d9df1f2]{background:#fff}.title[data-v-4d9df1f2]{height:2.938rem;width:375px;-webkit-box-sizing:border-box;box-sizing:border-box}.title .con[data-v-4d9df1f2]{width:100%;position:relative}.title .con[data-v-4d9df1f2],.title .con .left[data-v-4d9df1f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.title .con .left[data-v-4d9df1f2]{position:absolute;left:0;top:0;width:3rem;height:100%;padding-left:1.313rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.title .con .left .icon-member-left[data-v-4d9df1f2],.title .con .right[data-v-4d9df1f2]{color:#000;font-weight:700}.title .con .right[data-v-4d9df1f2]{-webkit-box-flex:0;-webkit-flex:0 0 calc(100% - 6rem);-ms-flex:0 0 calc(100% - 6rem);flex:0 0 calc(100% - 6rem);width:calc(100% - 6rem);margin:0 auto;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;font-size:1.125rem;letter-spacing:.056rem;pointer-events:none;text-overflow:ellipsis;white-space:normal;overflow:hidden}.header[data-v-4d9df1f2]{padding-top:.906rem}.header .myname[data-v-4d9df1f2]{padding-left:.969rem;font-size:1rem;color:#202020;text-align:left}.header .achive[data-v-4d9df1f2]{padding-top:.8rem;padding-bottom:.969rem;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}.header .achive[data-v-4d9df1f2],.header .achive .item[data-v-4d9df1f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.header .achive .item[data-v-4d9df1f2]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.header .achive .item .c1[data-v-4d9df1f2]{font-size:1.25rem;color:#f15353}.header .achive .item .c2[data-v-4d9df1f2]{margin-top:.3rem;font-size:.813rem;color:#333}.splt[data-v-4d9df1f2]{width:100%;height:.65rem;background-color:#f2f2f2}.descContainer[data-v-4d9df1f2]{padding-left:.8rem;padding-right:.8rem}.descContainer .seat[data-v-4d9df1f2]{overflow:scroll}.descContainer .descItems[data-v-4d9df1f2]{margin-top:1.594rem;overflow:scroll}.descContainer .descItems[data-v-4d9df1f2],.descContainer .descItems .descItem[data-v-4d9df1f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.descContainer .descItems .descItem[data-v-4d9df1f2]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding-right:1rem}.descContainer .descItems .descItem[data-v-4d9df1f2]:last-child{padding-right:0}.descContainer .descItems .descItem .marketname[data-v-4d9df1f2]{white-space:nowrap;padding:0 .2rem;height:1.594rem;background-color:#f14e4e;border-radius:.313rem .313rem 0 0;border:.094rem solid #cb4f47;color:#fff;font-size:.813rem;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}.descContainer .descItems .descItem .nickname[data-v-4d9df1f2]{margin-top:.4rem;font-size:.75rem;color:#666}.descContainer .descItems .descItem .price[data-v-4d9df1f2]{margin-top:1.2rem;color:#333;font-size:.875rem;white-space:nowrap}.descContainer .descItems .descItem .desc[data-v-4d9df1f2]{margin-top:.644rem;font-size:.875rem;color:#333;white-space:nowrap}",""]),t.exports=e},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("d3b7");function n(t,e,r,n,i,a,o){try{var c=t[a](o),s=c.value}catch(d){return void r(d)}c.done?e(s):Promise.resolve(s).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,a){var o=t.apply(e,r);function c(t){n(o,i,a,c,s,"next",t)}function s(t){n(o,i,a,c,s,"throw",t)}c(void 0)}))}}},"22cd":function(t,e,r){"use strict";r("6c9f")},47826:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page"},[r("div",{staticClass:"title"},[r("div",{staticClass:"con",staticStyle:{height:"2.938rem"}},[r("div",{staticClass:"left",on:{click:t.goto}},[r("i",{staticClass:"iconfont icon-member-left back"})]),r("div",{staticClass:"right"},[t._v(t._s(t.titleName))])])]),r("div",{staticClass:"header"},[r("div",{staticClass:"myname"},[t._v(t._s(t.titleName))]),r("div",{staticClass:"achive"},[r("div",{staticClass:"item"},[r("div",{staticClass:"c1"},[t._v(t._s(t.amounts||0)+"元")]),r("div",{staticClass:"c2"},[t._v("总业绩")])]),r("div",{staticClass:"item"},[r("div",{staticClass:"c1"},[t._v(t._s(t.num||0)+"人")]),r("div",{staticClass:"c2"},[t._v("人数")])])])]),r("div",{staticClass:"splt"}),t.listData.length>0?r("div",{staticClass:"descContainer"},[r("div",{ref:"marketItems",staticClass:"descItems",on:{scroll:t.orderScroll}},[t._m(0),t._l(t.listData,(function(e,n){return r("div",{key:n,staticClass:"descItem"},[r("div",{staticClass:"marketname"},[t._v(t._s(t.titleName)+t._s(n+1))]),r("div",{staticClass:"nickname"},[t._v(t._s(e.name))]),r("div",{staticClass:"price"},[t._v(t._s(e.amounts))]),r("div",{staticClass:"desc"},[t._v(t._s(e.num))])])}))],2)]):t._e()])},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"descItem"},[r("div",{staticClass:"marketname",staticStyle:{visibility:"hidden"}},[t._v("占位")]),r("div",{staticClass:"nickname",staticStyle:{visibility:"hidden"}},[t._v("占位")]),r("div",{staticClass:"price",staticStyle:{color:"#8e521e","font-size":"0.85rem"}},[t._v("业绩")]),r("div",{staticClass:"desc",staticStyle:{color:"#8e521e","font-size":"0.85rem"}},[t._v("人数")])])}],a=r("c7eb"),o=(r("e7e5"),r("d399")),c=r("1da1"),s={data:function(){return{listData:[],isLoadMore:!0,page:1,total_page:0,amounts:0,num:0,titleName:"我的市场"}},created:function(){this.getData()},methods:{orderScroll:function(){var t=this.$refs.marketItems;t.scrollLeft+t.clientWidth>=t.scrollWidth-10&&this.isLoadMore},getData:function(){var t=this;return Object(c["a"])(Object(a["a"])().mark((function e(){var r,n;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r={},t.$route.query.marketId&&0!=t.$route.query.marketId&&(t.fun.setWXTitle("下级市场"),t.titleName="下级市场",r.member_id=t.$route.query.marketId),e.next=4,$http.get("plugin.regional-reward.Frontend.controllers.achievement.index",r,"");case 4:if(n=e.sent,1==n.result){e.next=8;break}return Object(o["a"])(n.msg),e.abrupt("return");case 8:t.listData=n.data.childs,t.amounts=n.data.amounts,t.num=n.data.num;case 11:case"end":return e.stop()}}),e)})))()},goto:function(){window.history.length<=1?this.$router.push(this.fun.getUrl("home",{})):this.$router.go(-1)}}},d=s,l=(r("22cd"),r("2877")),f=Object(l["a"])(d,n,i,!1,null,"4d9df1f2",null);e["default"]=f.exports},"6c9f":function(t,e,r){var n=r("0c42");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("499e").default;i("6be0ddbf",n,!0,{sourceMap:!1,shadowMode:!1})},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 n=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,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(j){d=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),o=new L(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return E()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var c=k(o,r);if(c){if(c===u)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,o),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(j){return{type:"throw",arg:j}}}t.wrap=l;var u={};function h(){}function m(){}function v(){}var p={};d(p,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(I([])));g&&g!==e&&r.call(g,o)&&(p=g);var b=v.prototype=h.prototype=Object.create(p);function w(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(a,o,c,s){var d=f(t[a],t,o);if("throw"!==d.type){var l=d.arg,u=l.value;return u&&"object"==Object(n["a"])(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){i("next",t,c,s)}),(function(t){i("throw",t,c,s)})):e.resolve(u).then((function(t){l.value=t,c(l)}),(function(t){return i("throw",t,c,s)}))}s(d.arg)}var a;this._invoke=function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return a=a?a.then(n,n):n()}}function k(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,k(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 n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,u;var i=n.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,u):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function _(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(_,this),this.reset(!0)}function I(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 n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],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 m.prototype=v,d(b,"constructor",v),d(v,"constructor",m),m.displayName=d(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,d(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),d(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new x(l(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),d(b,s,"Generator"),d(b,o,(function(){return this})),d(b,"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 n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=I,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)&&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 n(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},t}}}]); |