pages-user-promoter_rank.0988b87e.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-promoter_rank"],{"0b8c":function(t,e,a){var n=a("24fb"),i=a("1de5"),r=a("86c7");e=n(!1);var o=i(r);e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.rank[data-v-29532ab4]{color:#e93323!important}.nav[data-v-29532ab4]{display:flex}.nav uni-view[data-v-29532ab4]{text-align:center;flex:1}.header[data-v-29532ab4]{border-bottom-left-radius:%?20?%;border-bottom-right-radius:%?20?%}.CommissionRank .header[data-v-29532ab4]{background-image:url('+o+");background-repeat:no-repeat;width:100%;height:%?344?%;background-size:100% 100%}.CommissionRank .header .rank[data-v-29532ab4]{font-size:%?33?%;color:#fff;position:absolute;top:%?160?%;left:%?48?%}.CommissionRank .header .rank .num[data-v-29532ab4]{font-size:%?51?%;font-weight:700;margin:0 %?10?%}.CommissionRank .wrapper[data-v-29532ab4]{width:%?710?%;background-color:#fff;border-radius:%?20?%;margin:%?-76?% auto 0 auto}.CommissionRank .wrapper .nav[data-v-29532ab4]{height:%?99?%;border-bottom:%?2.5?% solid #f3f3f3;font-size:%?30?%;font-weight:700;color:#999;line-height:%?99?%}.CommissionRank .wrapper .nav .item.font-color[data-v-29532ab4]{border-bottom:%?4?% solid #e93323}.CommissionRank .wrapper .list[data-v-29532ab4]{padding:0 %?30?%}.CommissionRank .wrapper .list .item[data-v-29532ab4]{border-bottom:1px solid #f3f3f3;height:%?101?%;font-size:%?28?%}.CommissionRank .wrapper .list .item .num[data-v-29532ab4]{color:#666;width:%?70?%}.CommissionRank .wrapper .list .item .num uni-image[data-v-29532ab4]{width:%?34?%;height:%?40?%;display:block}.CommissionRank .wrapper .list .item .picTxt[data-v-29532ab4]{width:%?350?%}.CommissionRank .wrapper .list .item .picTxt .pictrue[data-v-29532ab4]{width:%?68?%;height:%?68?%}.CommissionRank .wrapper .list .item .picTxt .pictrue uni-image[data-v-29532ab4]{width:100%;height:100%;display:block;border-radius:50%}.CommissionRank .wrapper .list .item .picTxt .text[data-v-29532ab4]{width:%?262?%;color:#333}.CommissionRank .wrapper .list .item .people[data-v-29532ab4]{width:%?175?%;text-align:right}",""]),t.exports=e},1460:function(t,e,a){"use strict";var n=a("4ea4");a("4160"),a("c975"),a("a9e3"),a("e25e"),a("ac1f"),a("5319"),a("1276"),a("498a"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.silenceBindingSpread=o,e.isWeixin=u,e.parseQuery=s,e.default=e.VUE_APP_WS_URL=void 0;var i=a("7eca"),r=n(a("5a85"));function o(){var t=r.default.get("spread");t=parseInt(t),Number.isNaN(t)&&(t=0),t&&(0,i.spread)(t).then((function(t){console.log(t),r.default.clear("spread")})).catch((function(t){console.log(t)}))}function u(){return-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")}function s(){var t={},e=(location.href.split("?")[1]||"").trim().replace(/^(\?|#|&)/,"");return e?(e.split("&").forEach((function(e){var a=e.replace(/\+/g," ").split("="),n=decodeURIComponent(a.shift()),i=a.length>0?decodeURIComponent(a.join("=")):null;void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]})),t):t}var c=Object({VUE_APP_INDEX_CSS_HASH:"2772579d",VUE_APP_NAME:"玲卿+",VUE_APP_PLATFORM:"h5",NODE_ENV:"production",BASE_URL:"/index/"}).VUE_APP_WS_URL||"ws://mmz.liuniu946.com:19003";e.VUE_APP_WS_URL=c;var d=s;e.default=d},"1de5":function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},4412:function(t,e,a){var n=a("0b8c");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("38140e90",n,!0,{sourceMap:!1,shadowMode:!1})},"4b38":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"CommissionRank"},[a("v-uni-view",{staticClass:"header"},[t.position?a("v-uni-view",{staticClass:"rank"},[t._v("您目前的排名第"),a("v-uni-text",{staticClass:"num"},[t._v(t._s(t.position))]),t._v("名")],1):a("v-uni-view",{staticClass:"rank"},[t._v("您目前暂无排名")])],1),a("v-uni-view",{staticClass:"wrapper"},[a("v-uni-view",{staticClass:"nav acea-row row-around"},t._l(t.navList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"item",class:t.active==n?"font-color":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchTap(n)}}},[t._v(t._s(e))])})),1),a("v-uni-view",{staticClass:"list"},t._l(t.rankList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"item acea-row row-between-wrapper"},[n<3?a("v-uni-view",{staticClass:"num"},[a("v-uni-image",{attrs:{src:"../../static/img/"+(n+1)+".png"}})],1):a("v-uni-view",{staticClass:"num"},[t._v(t._s(n+1))]),a("v-uni-view",{staticClass:"picTxt acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"pictrue"},[a("v-uni-image",{attrs:{src:e.avatar?e.avatar:"/static/images/f.png"}})],1),a("v-uni-view",{staticClass:"text line1"},[t._v(t._s(e.nickname))])],1),a("v-uni-view",{staticClass:"people font-color"},[t._v("¥"+t._s(e.brokerage_price))])],1)})),1)],1)],1)],1)},r=[]},"5a85":function(t,e,a){"use strict";var n=a("4ea4");a("a9e3"),a("e25e"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("d4ec")),r=n(a("bee2")),o=function(){function t(e){(0,i.default)(this,t),this.cacheSetHandler=uni.setStorageSync,this.cacheGetHandler=uni.getStorageSync,this.cacheClearHandler=uni.removeStorageSync,this.cacheExpire="_expire_2019_12_17_18_44"}return(0,r.default)(t,[{key:"time",value:function(){return Math.round(new Date/1e3)}},{key:"setExpireCahe",value:function(t,e){e=void 0!==e?e:0,e&&this.cacheSetHandler(t+this.cacheExpire,this.time()+e)}},{key:"getExpireCahe",value:function(t,e){try{var a=this.cacheGetHandler(t+this.cacheExpire);if(a){var n=parseInt(a);return!(a&&a<this.time()&&!Number.isNaN(n))||(void 0!==e&&!0!==e||(this.cacheClearHandler(t),this.cacheClearHandler(t+this.cacheExpire)),!1)}return!!this.cacheGetHandler(t)}catch(i){return!1}}},{key:"set",value:function(t,e,a){"object"===typeof e&&(e=JSON.stringify(e));try{return this.setExpireCahe(t,a),this.cacheSetHandler(t,e)}catch(n){return!1}}},{key:"has",value:function(t){return this.getExpireCahe(t)}},{key:"get",value:function(t,e,a){try{var n=this.getExpireCahe(t),i=this.cacheGetHandler(t);if(i&&n)return"boolean"===typeof e?JSON.parse(i):i;if("function"===typeof e){var r=e();return this.set(t,r,a),r}return this.set(t,e,a),e}catch(o){return null}}},{key:"clear",value:function(t){try{var e=this.cacheGetHandler(t+this.cacheExpire);return e&&this.cacheClearHandler(t+this.cacheExpire),this.cacheClearHandler(t)}catch(a){return!1}}},{key:"clearOverdue",value:function(){}}]),t}(),u=new o;e.default=u},"7eca":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.lookSubpoints=r,e.spreadInfo=o,e.lookOneself=u,e.getbrowse=s,e.getRankList=c,e.getBrokerageRank=d,e.spreadOrder=l,e.spread=f,e.myspread=h,e.myuser=p,e.orderData=v,e.getUserInfo=m,e.userinfo=g,e.spreadBanner=_,e.getAddressList=k,e.addressEdit=w,e.addressDel=b,e.setAddressDefault=E,e.getCartList=y,e.getCartNum=C,e.cartDel=S,e.getcollectList=T,e.delcollect=A,e.transfer=R,e.extractBank=L,e.yuetransfer=x,e.cashtransfer=U,e.share=I,e.upload=P,e.edit=O;var i=n(a("561b"));function r(t,e){return(0,i.default)({url:"/api/tree/children/"+e,method:"get",data:t})}function o(){return(0,i.default)({url:"/api/commission",method:"get"})}function u(t){return(0,i.default)({url:"/api/tree/points",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/getbrowse",method:"get",data:t})}function c(t){return(0,i.default)({url:"/api/rank",method:"get",data:t})}function d(t){return(0,i.default)({url:"/api/brokerage_rank",method:"get",data:t})}function l(t){return(0,i.default)({url:"/api/spread/order",method:"post",data:t})}function f(t){return(0,i.default)({url:"/api/user/spread",method:"post",data:t})}function h(t){return(0,i.default)({url:"/api/spread/people",method:"POST",data:t})}function p(t){return(0,i.default)({url:"/api/user",method:"GET",data:t})}function v(t){return(0,i.default)({url:"/api/order/data",method:"get",data:t})}function m(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})}function g(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})}function _(t){return(0,i.default)({url:"/api/spread/banner",method:"get",data:t})}function k(t){return(0,i.default)({url:"/api/address/list",method:"get",data:t})}function w(t){return(0,i.default)({url:"/api/address/edit",method:"post",data:t})}function b(t){return(0,i.default)({url:"/api/address/del",method:"post",data:t})}function E(t){return(0,i.default)({url:"/api/address/default/set",method:"post",data:t})}function y(t){return(0,i.default)({url:"/api/cart/list",method:"get",data:t})}function C(t){return(0,i.default)({url:"/api/cart/num",method:"post",data:t})}function S(t){return(0,i.default)({url:"/api/cart/del",method:"post",data:t})}function T(t){return(0,i.default)({url:"/api/collect/user",method:"get",data:t})}function A(t){return(0,i.default)({url:"/api/collect/del",method:"post",data:t})}function R(t){return(0,i.default)({url:"/api/trade",method:"post",data:t})}function L(t){return(0,i.default)({url:"/api/extract/bank",method:"get",data:t})}function x(t){return(0,i.default)({url:"/api/yue/trade",method:"post",data:t})}function U(t){return(0,i.default)({url:"/api/cash/trade",method:"post",data:t})}function I(t){return(0,i.default)({url:"/api/game",method:"get",data:t})}function P(t){return(0,i.default)({url:"/api/upload/image",method:"post",data:t})}function O(t){return(0,i.default)({url:"/api/user/edit",method:"post",data:t})}},"86c7":function(t,e,a){t.exports=a.p+"static/img/phb.a462ba43.jpg"},"95b6":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.toLogin=d,e.checkLogin=l;var i=n(a("8ab5")),r=n(a("5a85")),o=a("1460"),u=n(a("e0d1")),s=a("e6b7");function c(){var t=getCurrentPages(),e=t[t.length-2];return e}function d(t,e){var a=c();a?(a=a.router,void 0==a&&(a=location.pathname)):a=location.pathname,e||(e="/page/users/login/index"),r.default.set("login_back_url",a),(0,o.isWeixin)()?u.default.oAuth():a!==e&&(t?uni.navigateTo({url:"/pages/users/login/index"}):uni.reLaunch({url:"/pages/users/login/index"}))}function l(){var t=r.default.get(s.LOGIN_STATUS),e=r.default.get(s.EXPIRES_TIME),a=Math.round(new Date/1e3);if(e<a||!t)return r.default.clear(s.LOGIN_STATUS),r.default.clear(s.EXPIRES_TIME),r.default.clear(s.USER_INFO),r.default.clear(s.STATE_R_KEY),!1;i.default.commit("UPDATE_LOGIN",t);var n=r.default.get(s.USER_INFO,!0);return n&&i.default.commit("UPDATE_USERINFO",n),!0}},aa6d:function(t,e,a){"use strict";a.r(e);var n=a("4b38"),i=a("d90e");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("b35c");var o,u=a("f0c5"),s=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,"29532ab4",null,!1,n["a"],o);e["default"]=s.exports},ae71:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("7eca"),i=(a("95b6"),a("26cb"),{components:{},data:function(){return{navList:["周排行","月排行"],active:0,rankList:[],page:1,limit:20,loadend:!1,loading:!1,loadTitle:"加载更多",type:"week",position:0}},onLoad:function(){this.getBrokerageRankList()},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getBrokerageRankList()},switchTap:function(t){this.active=t,this.type=t?"month":"week",this.page=1,this.loadend=!1,this.$set(this,"rankList",[]),this.getBrokerageRankList()},getBrokerageRankList:function(){var t=this;this.loadend||this.loading||(this.loading=!0,this.loadTitle="",(0,n.getBrokerageRank)({page:this.page,limit:this.limit,type:this.type}).then((function(e){var a=e.data.rank,n=a.length<t.limit;t.rankList.push.apply(t.rankList,a),t.loading=!1,t.loadend=n,t.loadTitle=n?"😕我也是有底线的":"加载更多",t.$set(t,"rankList",t.rankList),t.position=e.data.position})).catch((function(e){t.loading=!1,t.loadTitle="加载更多"})))}},onReachBottom:function(){this.page=this.page+1,this.getBrokerageRankList()}});e.default=i},b35c:function(t,e,a){"use strict";var n=a("4412"),i=a.n(n);i.a},d90e:function(t,e,a){"use strict";a.r(e);var n=a("ae71"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},e0d1:function(t,e,a){"use strict";var n=a("4ea4");a("99af"),a("4160"),a("c975"),a("d3b7"),a("e25e"),a("ac1f"),a("5319"),a("841c"),a("1276"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("5530")),r=n(a("d4ec")),o=n(a("bee2")),u=n(a("413e")),s=a("8639"),c=a("e6b7"),d=a("1460"),l=n(a("8ab5")),f=n(a("5a85")),h=function(){function t(){(0,r.default)(this,t),this.instance=u.default,this.status=!1,this.initConfig={}}return(0,o.default)(t,[{key:"isAndroid",value:function(){var t=navigator.userAgent;return t.indexOf("Android")>-1||t.indexOf("Adr")>-1}},{key:"wechat",value:function(){var t=this;return new Promise((function(e,a){(0,s.wechatConfig)().then((function(a){t.instance.config(a.data),t.initConfig=a.data,t.status=!0,t.instance.ready((function(){e(t.instance)}))})).catch((function(e){console.log(e),t.status=!1,a(e)}))}))}},{key:"verifyInstance",value:function(){var t=this;return new Promise((function(e,a){if(null!==t.instance||t.status)return e(t.instance);t.wechat().then((function(a){e(t.instance)})).catch((function(){return a()}))}))}},{key:"openAddress",value:function(){var t=this;return new Promise((function(e,a){t.wechat().then((function(n){t.toPromise(n.openAddress).then((function(t){e(t)})).catch((function(t){a(t)}))})).catch((function(t){a(t)}))}))}},{key:"pay",value:function(t){var e=this;return new Promise((function(a,n){e.wechat().then((function(i){e.toPromise(i.chooseWXPay,t).then((function(t){a(t)})).catch((function(t){n(t)}))})).catch((function(t){n(t)}))}))}},{key:"toPromise",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(a,n){t((0,i.default)((0,i.default)({},e),{},{success:function(t){a(t)},fail:function(t){n(t)},complete:function(t){n(t)},cancel:function(t){n(t)}}))}))}},{key:"oAuth",value:function(){if(!uni.getStorageSync(c.WX_AUTH)||!l.default.state.app.token){var t=(0,d.parseQuery)(),e=t.code;return e?void 0:this.toAuth()}}},{key:"clearAuthStatus",value:function(){}},{key:"auth",value:function(t){return new Promise((function(e,a){var n=f.default.get(c.LOGINTYPE);(0,s.wechatAuth)(t,parseInt(f.default.get("spread")),n).then((function(a){var i=a.data,r=i.expires_time.substring(0,19);r=r.replace(/-/g,"/"),r=new Date(r).getTime();var o=Math.round(new Date/1e3);l.default.commit("LOGIN",{token:i.token,time:r-o}),f.default.set(c.WX_AUTH,t),f.default.clear(c.STATE_KEY),n&&f.default.clear(c.LOGINTYPE),e()})).catch(a)}))}},{key:"getAuthUrl",value:function(t){var e=encodeURIComponent("".concat(location.origin,"/pages/auth/index?back_url=")+encodeURIComponent(encodeURIComponent(uni.getStorageSync(c.BACK_URL)?uni.getStorageSync(c.BACK_URL):location.pathname+location.search)));uni.removeStorageSync(c.BACK_URL);var a=encodeURIComponent((""+Math.random()).split(".")[1]+"authorizestate");return uni.setStorageSync(c.STATE_KEY,a),"https://open.weixin.qq.com/connect/oauth2/authorize?appid=".concat(t,"&redirect_uri=").concat(e,"&response_type=code&scope=snsapi_userinfo&state=").concat(a,"#wechat_redirect")}},{key:"toAuth",value:function(){var t=this,e=this;this.wechat().then((function(a){location.href=t.getAuthUrl(e.initConfig.appId)}))}},{key:"wechatEvevt",value:function(t,e){var a=this;return new Promise((function(n,i){var r={fail:function(t){if(console.log(t,11111),a.instance)return i({is_ready:!0,wx:a.instance});a.verifyInstance().then((function(t){return i({is_ready:!0,wx:t})}))},success:function(t){return n(t,2222)}};Object.assign(r,e),a.wechat().then((function(e){"object"===typeof t?t.forEach((function(t){e[t]&&e[t](r)})):e[t]&&e[t](r)}))}))}},{key:"isWeixin",value:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")}}]),t}(),p=new h;e.default=p},e6b7:function(t,e){t.exports={LOGIN_STATUS:"LOGIN_STATUS_TOKEN",UID:"UID",USER_INFO:"USER_INFO",EXPIRES_TIME:"EXPIRES_TIME",WX_AUTH:"WX_AUTH",STATE_KEY:"wx_authorize_state",LOGINTYPE:"loginType",BACK_URL:"login_back_url",STATE_R_KEY:"roution_authorize_state",LOGO_URL:"LOGO_URL",SUBSCRIBE_MESSAGE:"SUBSCRIBE_MESSAGE",TIPS_KEY:"TIPS_KEY",SPREAD:"spread",CACHE_LONGITUDE:"LONGITUDE",CACHE_LATITUDE:"LATITUDE"}}}]);