pages-users-promoter-list-index.0bdb6df9.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-promoter-list-index"],{1393:function(t,e,i){"use strict";i.r(e);var s=i("3780"),a=i("b8b4");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("4e9b");var n,r=i("f0c5"),c=Object(r["a"])(a["default"],s["b"],s["c"],!1,null,"de0a0f18",null,!1,s["a"],n);e["default"]=c.exports},3482:function(t,e,i){var s=i("6e9d");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var a=i("4f06").default;a("dabadc88",s,!0,{sourceMap:!1,shadowMode:!1})},3780:function(t,e,i){"use strict";var s;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return s}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"promoter-list"},[i("v-uni-view",{staticClass:"promoterHeader bg-color"},[i("v-uni-view",{staticClass:"headerCon acea-row row-between-wrapper"},[i("v-uni-view",[i("v-uni-view",{staticClass:"name"},[t._v("推广人数")]),i("v-uni-view",[i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.userInfo.spread_total))]),t._v("人")],1)],1),i("v-uni-view",{staticClass:"iconfont icon-tuandui"})],1)],1),i("v-uni-view",{staticClass:"nav acea-row row-around"},[i("v-uni-view",{class:0==t.grade?"item on":"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setType(0)}}},[t._v("一级("+t._s(t.userInfo.one_level_count)+")")]),i("v-uni-view",{class:1==t.grade?"item on":"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setType(1)}}},[t._v("二级("+t._s(t.userInfo.two_level_count)+")")])],1),i("v-uni-view",{staticClass:"search acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"input"},[i("v-uni-input",{attrs:{placeholder:"点击搜索会员名称","placeholder-class":"placeholder","confirm-type":"search",name:"search"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.submitForm.apply(void 0,arguments)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),i("v-uni-button",{staticClass:"iconfont icon-sousuo2",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submitForm.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"list"},[i("v-uni-view",{staticClass:"sortNav acea-row row-middle"},["spread_count DESC"==t.sort?i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setSort("spread_count ASC")}}},[t._v("团队排序"),i("v-uni-image",{attrs:{src:"/static/images/sort1.png"}})],1):"spread_count ASC"==t.sort?i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setSort("")}}},[t._v("团队排序"),i("v-uni-image",{attrs:{src:"/static/images/sort3.png"}})],1):i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setSort("spread_count DESC")}}},[t._v("团队排序"),i("v-uni-image",{attrs:{src:"/static/images/sort2.png"}})],1),"pay_price DESC"==t.sort?i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setSort("pay_price ASC")}}},[t._v("金额排序"),i("v-uni-image",{attrs:{src:"/static/images/sort1.png"}})],1):"pay_price ASC"==t.sort?i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setSort("")}}},[t._v("金额排序"),i("v-uni-image",{attrs:{src:"/static/images/sort3.png"}})],1):i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setSort("pay_price DESC")}}},[t._v("金额排序"),i("v-uni-image",{attrs:{src:"/static/images/sort2.png"}})],1),"pay_count DESC"==t.sort?i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setSort("pay_count ASC")}}},[t._v("订单排序"),i("v-uni-image",{attrs:{src:"/static/images/sort1.png"}})],1):"pay_count ASC"==t.sort?i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setSort("")}}},[t._v("订单排序"),i("v-uni-image",{attrs:{src:"/static/images/sort3.png"}})],1):i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setSort("pay_count DESC")}}},[t._v("订单排序"),i("v-uni-image",{attrs:{src:"/static/images/sort2.png"}})],1)],1),t._l(t.recordList,(function(e,s){return[i("v-uni-view",{key:s+"_0",staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"picTxt acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.avatar?e.avatar:"/static/images/f.png"}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.nickname))]),i("v-uni-view",[t._v("加入时间: "+t._s(e.spread_time))])],1)],1),i("v-uni-view",{staticClass:"right"},[i("v-uni-view",[i("v-uni-text",{staticClass:"num font-color"},[t._v(t._s(e.spread_count?e.spread_count:0))]),t._v("人")],1),i("v-uni-view",[i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.pay_count?e.pay_count:0))]),t._v("单")],1),i("v-uni-view",[i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.pay_price?e.pay_price:0))]),t._v("元")],1)],1)],1)]}))],2)],1)],1)},o=[]},"4e9b":function(t,e,i){"use strict";var s=i("3482"),a=i.n(s);a.a},"6e9d":function(t,e,i){var s=i("24fb");e=s(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.promoter-list .nav[data-v-de0a0f18]{background-color:#fff;height:%?86?%;line-height:%?86?%;font-size:%?28?%;color:#282828;border-bottom:%?1?% solid #eee}.promoter-list .nav .item.on[data-v-de0a0f18]{border-bottom:%?5?% solid #e93323;color:#e93323}.promoter-list .search[data-v-de0a0f18]{width:100%;background-color:#fff;height:%?86?%;padding-left:%?30?%;-webkit-box-sizing:border-box;box-sizing:border-box}.promoter-list .search .input[data-v-de0a0f18]{width:%?610?%;height:%?60?%;-webkit-border-radius:%?50?%;border-radius:%?50?%;background-color:#f5f5f5;text-align:center;position:relative}.promoter-list .search .input uni-input[data-v-de0a0f18]{height:100%;font-size:%?26?%;width:%?610?%;text-align:center}.promoter-list .search .input .placeholder[data-v-de0a0f18]{color:#bbb}.promoter-list .search .input .iconfont[data-v-de0a0f18]{position:absolute;right:%?28?%;color:#999;font-size:%?28?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.promoter-list .search .iconfont[data-v-de0a0f18]{font-size:%?45?%;color:#515151;width:%?110?%;height:%?60?%;line-height:%?60?%}.promoter-list .list[data-v-de0a0f18]{margin-top:%?12?%}.promoter-list .list .sortNav[data-v-de0a0f18]{background-color:#fff;height:%?76?%;border-bottom:%?1?% solid #eee;color:#333;font-size:%?28?%}.promoter-list .list .sortNav .sortItem[data-v-de0a0f18]{text-align:center;-webkit-box-flex:1;-webkit-flex:1;flex:1}.promoter-list .list .sortNav .sortItem uni-image[data-v-de0a0f18]{width:%?24?%;height:%?24?%;margin-left:%?6?%;vertical-align:%?-3?%}.promoter-list .list .item[data-v-de0a0f18]{background-color:#fff;border-bottom:%?1?% solid #eee;height:%?152?%;padding:0 %?30?% 0 %?20?%;font-size:%?24?%;color:#666}.promoter-list .list .item .picTxt[data-v-de0a0f18]{width:%?440?%}.promoter-list .list .item .picTxt .pictrue[data-v-de0a0f18]{width:%?106?%;height:%?106?%;-webkit-border-radius:50%;border-radius:50%}.promoter-list .list .item .picTxt .pictrue uni-image[data-v-de0a0f18]{width:100%;height:100%;-webkit-border-radius:50%;border-radius:50%;border:%?3?% solid #fff;-webkit-box-shadow:0 0 %?10?% #aaa;box-shadow:0 0 %?10?% #aaa;-webkit-box-sizing:border-box;box-sizing:border-box}.promoter-list .list .item .picTxt .text[data-v-de0a0f18]{width:%?304?%;font-size:%?24?%;color:#666}.promoter-list .list .item .picTxt .text .name[data-v-de0a0f18]{font-size:%?28?%;color:#333;margin-bottom:%?13?%}.promoter-list .list .item .right[data-v-de0a0f18]{width:%?240?%;text-align:right;font-size:%?22?%;color:#333}.promoter-list .list .item .right .num[data-v-de0a0f18]{margin-right:%?7?%}',""]),t.exports=e},b8b4:function(t,e,i){"use strict";i.r(e);var s=i("c5de"),a=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e["default"]=a.a},c5de:function(t,e,i){"use strict";i("99af"),i("4e82"),i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i("5e22"),a=i("c496"),o=i("2f62"),n={components:{},data:function(){return{total:0,totalLevel:0,teamCount:0,page:1,limit:20,keyword:"",sort:"",grade:0,status:!1,recordList:[],isAuto:!1,isShowAuth:!1,userInfo:{}}},computed:(0,o.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin?(this.userSpreadNewList(),this.getUserInfo()):(0,a.toLogin)()},onShow:function(){this.is_show&&(this.userSpreadNewList(),this.getUserInfo())},onHide:function(){this.is_show=!0},methods:{getUserInfo:function(){var t=this;(0,s.spreadInfo)().then((function(e){t.userInfo=e.data}))},onLoadFun:function(t){this.isShowAuth=!1,this.userSpreadNewList(),this.getUserInfo()},authColse:function(t){this.isShowAuth=t},setSort:function(t){var e=this;e.sort=t,e.page=1,e.limit=20,e.status=!1,e.$set(e,"recordList",[]),e.userSpreadNewList()},submitForm:function(){this.page=1,this.limit=20,this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList()},setType:function(t){this.grade!=t&&(this.grade=t,this.page=1,this.limit=20,this.keyword="",this.sort="",this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList())},userSpreadNewList:function(){var t=this,e=t.page,i=t.limit,a=t.status,o=t.keyword,n=t.sort,r=t.grade,c=t.recordList,u=[];1!=a&&(0,s.spreadPeople)({page:e,limit:i,keyword:o,level:r+1,sort:n}).then((function(s){var a=s.data.list.length,o=s.data.list;u=c.concat(o),t.total=s.data.total,t.totalLevel=s.data.totalLevel,t.teamCount=t.$util.$h.Add(Number(s.data.total),Number(s.data.totalLevel)),t.status=i>a,t.page=e+1,t.$set(t,"recordList",u)}))}},onReachBottom:function(){this.userSpreadNewList()}};e.default=n}}]);