bztang-admin/addons/yun_shop/static/app/js/chunk-7972fafd.9e46aeae.js

3 lines
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7972fafd"],{"0da9":function(t,e,r){"use strict";r("b1f3")},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("d3b7");function n(t,e,r,n,a,i,o){try{var c=t[i](o),s=c.value}catch(l){return void r(l)}c.done?e(s):Promise.resolve(s).then(n,a)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var o=t.apply(e,r);function c(t){n(o,a,i,c,s,"next",t)}function s(t){n(o,a,i,c,s,"throw",t)}c(void 0)}))}}},"37c0":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("c-title",{attrs:{text:"爱心值排行榜"}}),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"bg"}),r("div",{staticClass:"content"},[r("div",{staticClass:"userInfo"},[r("p",{staticClass:"c1"},[t._v("我的成绩")]),r("div",{staticClass:"c2"},[r("img",{attrs:{src:t.userObj.avatar,alt:""}})]),r("p",{staticClass:"c3"},[t._v(" "+t._s(t.userObj.nickname)+" ")]),r("p",{staticClass:"c4"},[t._v("第"+t._s(t.userObj.countNO)+"名")]),r("p",{staticClass:"c5"},[t._v(" "+t._s(t.userObj.countLove)+" ")])]),r("div",{staticClass:"listData"},[t._m(0),t._l(t.listData,(function(e,n){return r("div",{key:e.member_id,staticClass:"item child"},[0==n?r("div",{staticClass:"c1"},[r("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/axzph_level1@2x.png",alt:""}})]):1==n?r("div",{staticClass:"c1"},[r("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/axzph_level2@2x.png",alt:""}})]):2==n?r("div",{staticClass:"c1"},[r("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/axzph_level3@2x.png",alt:""}})]):r("div",{staticClass:"c1",staticStyle:{"letter-spacing":"0.044rem",color:"#b4b6b8","font-size":"0.688rem"}},[t._v("NO."+t._s(n+1))]),r("div",{staticClass:"c2"},[r("img",{attrs:{src:e.has_one_member?e.has_one_member.avatar:"",alt:""}})]),r("p",{staticClass:"c3"},[t._v(" "+t._s(e.has_one_member?e.has_one_member.nickname:"")+" ")]),r("p",{staticClass:"c4"},[t._v(" "+t._s(e.total_amount)+" ")]),r("p",{staticClass:"c5",on:{click:function(r){return t.toCard(e.has_one_business_card)}}},[r("i",{staticClass:"iconfont icon-axph_read",staticStyle:{color:"#000"}})])])}))],2)])])],1)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"item head"},[r("p",{staticClass:"c1"},[t._v("排名")]),r("p",{staticClass:"c2"},[t._v("头像")]),r("p",{staticClass:"c3"},[t._v(" 昵称 ")]),r("p",{staticClass:"c4"},[t._v(" 爱心值 ")]),r("p",{staticClass:"c5"},[t._v(" 查看 ")])])}],i=r("2909"),o=r("c7eb"),c=(r("e7e5"),r("d399")),s=r("1da1"),l=r("ac0d"),u={mixins:[l["a"]],data:function(){return{userObj:{},listData:[],love_title:"爱心值排行榜",page:1,isLoadMore:!0,total_page:0}},activated:function(){this.initData(),this.getListData()},methods:{initData:function(){this.shareFlag=!1,this.page=1,this.isLoadMore=!0,this.total_page=0},getListData:function(){var t=this;return Object(s["a"])(Object(o["a"])().mark((function e(){var r,n,a,i;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return c["a"].loading({message:"加载中",forbidClick:!0}),e.next=3,$http.get("plugin.love-ranking.api.index.index");case 3:r=e.sent,c["a"].clear(),n=r.data.getSet.love_ranking,a=n.ranking.data,t.total_page=n.ranking.last_page,n.ranking.current_page>=n.ranking.last_page&&(t.isLoadMore=!1),i={},i.avatar=n.information.avatar,i.nickname=n.information.nickname,i.countLove=n.countLove,i.countNO=n.countNO,t.listData=a,t.userObj=i,""!=r.data.getSet.love_title&&(t.fun.setWXTitle(r.data.getSet.love_title),t.love_title=r.data.getSet.love_title);case 17:case"end":return e.stop()}}),e)})))()},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.love-ranking.api.index.index",{page:this.page}).then((function(e){var r;t.isLoadMore=!0;var n=e.data.getSet.love_ranking;n.ranking.current_page>=n.ranking.last_page&&(t.isLoadMore=!1),(r=t.listData).push.apply(r,Object(i["a"])(n.ranking.data))})))},toCard:function(t){t&&"undefined"!=typeof t&&t.id?this.$router.push(this.fun.getUrl("BusinessCard",{},{mark_id:t.id,mark:"card"})):Object(c["a"])("该会员没有对应的名片")}}},p=u,f=(r("0da9"),r("2877")),h=Object(f["a"])(p,n,a,!1,null,"4f815c18",null);e["default"]=h.exports},"7f87":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".page[data-v-4f815c18]{background-color:#f9f9f9;min-height:100vh;padding-bottom:3.0625rem}.wrapper[data-v-4f815c18]{position:relative}.wrapper .bg[data-v-4f815c18]{top:0;height:12rem;background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/axphb_bg@2x.png);background-size:cover}.wrapper .bg[data-v-4f815c18],.wrapper .content[data-v-4f815c18]{position:absolute;left:0;width:100%}.wrapper .content[data-v-4f815c18]{min-height:calc(100vh - 13.938rem);top:11rem;background:#fff;border-radius:1rem 1rem 0 0;padding:1rem}.wrapper .content .userInfo[data-v-4f815c18]{height:4rem;padding:1rem;background-color:#fff;-webkit-box-shadow:.1rem .1rem .5rem .5rem hsla(0,0%,39.6%,.05);box-shadow:.1rem .1rem .5rem .5rem hsla(0,0%,39.6%,.05);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}.wrapper .content .userInfo .c1[data-v-4f815c18]{width:2rem;height:2rem;color:#018ced;font-size:1rem}.wrapper .content .userInfo .c2[data-v-4f815c18]{width:2rem;height:2rem}.wrapper .content .userInfo .c2 img[data-v-4f815c18]{width:2rem;height:2rem;border-radius:50%}.wrapper .content .userInfo .c3[data-v-4f815c18]{width:6.2rem;font-size:.875rem;color:#171732;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wrapper .content .userInfo .c4[data-v-4f815c18]{height:2rem;height:.813rem}.wrapper .content .userInfo .c4[data-v-4f815c18],.wrapper .content .userInfo .c5[data-v-4f815c18]{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;color:#018ced}.wrapper .content .userInfo .c5[data-v-4f815c18]{height:2rem;font-size:.875rem}.wrapper .content .listData[data-v-4f815c18]{padding-top:2rem}.wrapper .content .listData .item[data-v-4f815c18]{display:grid;grid-template-columns:2.3rem 2.3rem 1fr 3.5rem 3rem;grid-column-gap:1.2rem;height:3rem}.wrapper .content .listData .item .c1[data-v-4f815c18]{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}.wrapper .content .listData .item .c1 img[data-v-4f815c18]{width:2rem;height:2rem}.wrapper .content .listData .item .c3[data-v-4f815c18]{letter-spacing:.044rem;color:#2c2f32;width:6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wrapper .content .listData .item .c4[data-v-4f815c18]{font-size:.875rem;letter-spacing:.044rem;color:#000}.wrapper .content .listData .head[data-v-4f815c18]{color:#b4b6b8;height:2rem;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.wrapper .content .listData .head .c3[data-v-4f815c18],.wrapper .content .listData .head .c4[data-v-4f815c18],.wrapper .content .listData .head .c5[data-v-4f815c18]{font-size:.875rem;color:#b4b6b8}.wrapper .content .listData .child .c2[data-v-4f815c18]{width:2rem;height:3rem}.wrapper .content .listData .child .c2 img[data-v-4f815c18]{width:2rem;height:2rem;border-radius:50%}.wrapper .content .listData .child .c2[data-v-4f815c18],.wrapper .content .listData .child .c3[data-v-4f815c18],.wrapper .content .listData .child .c4[data-v-4f815c18],.wrapper .content .listData .child .c5[data-v-4f815c18]{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}",""]),t.exports=e},ac0d:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=document.documentElement,a=document.body,i={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return n&&n.scrollTop?t=n.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&n.clientHeight?Math.min(a.clientHeight,n.clientHeight):Math.max(a.clientHeight,n.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,n.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(){}}}},b1f3:function(t,e,r){var n=r("7f87");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=r("499e").default;a("de624a0c",n,!0,{sourceMap:!1,shadowMode:!1})},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));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 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,r=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.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(E){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),o=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return O()}for(r.method=a,r.arg=i;;){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"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=p(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,o),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=u;var f={};function h(){}function d(){}function g(){}var m={};l(m,o,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(j([])));w&&w!==e&&r.call(w,o)&&(m=w);var b=g.prototype=h.prototype=Object.create(m);function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function a(i,o,c,s){var l=p(t[i],t,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Object(n["a"])(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){a("next",t,c,s)}),(function(t){a("throw",t,c,s)})):e.resolve(f).then((function(t){u.value=t,c(u)}),(function(t){return a("throw",t,c,s)}))}s(l.arg)}var i;this._invoke=function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}}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 n=p(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var a=n.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,f):a:(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 n=-1,a=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 a.next=a}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=g,l(b,"constructor",g),l(g,"constructor",d),d.displayName=l(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},y(x.prototype),l(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new x(u(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(b),l(b,s,"Generator"),l(b,o,(function(){return this})),l(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=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 n(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.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 n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}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}}}]);