You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crmeb_php/public/static/js/pages-users-promoter-list-i...

1 line
18 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-promoter-list-index"],{"0123":function(t,e,i){"use strict";i("7a82");var o=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("4e82"),i("99af"),i("a9e3");var a=i("c6c3"),n=i("26cb"),s=o(i("f272")),r=i("8342"),c={components:{authorize:s.default},data:function(){return{domain:r.HTTP_REQUEST_URL,total:0,totalLevel:0,teamCount:0,page:1,limit:20,keyword:"",sort:"",grade:0,status:!1,recordList:[],isAuto:!1,isShowAuth:!1,userInfo:{}}},computed:(0,n.mapGetters)(["isLogin","viewColor","keyColor"]),onLoad:function(){this.isLogin?(this.userSpreadNewList(),this.getUserInfo()):(this.isAuto=!0,this.isShowAuth=!0)},onShow:function(){this.is_show&&(this.userSpreadNewList(),this.getUserInfo())},onHide:function(){this.is_show=!0},methods:{getUserInfo:function(){var t=this;(0,a.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){this.sort=t,this.page=1,this.limit=20,this.status=!1,this.$set(this,"recordList",[]),this.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,o=t.status,n=t.keyword,s=t.sort,r=t.grade,c=t.recordList,u=[];1!=o&&(0,a.spreadPeople)({page:e,limit:i,keyword:n,level:r+1,sort:s}).then((function(o){var a=o.data.list.length,n=o.data.list;u=c.concat(n),t.total=o.data.total,t.totalLevel=o.data.totalLevel,t.teamCount=t.$util.$h.Add(Number(o.data.total),Number(o.data.totalLevel)),t.status=i>a,t.page=e+1,t.$set(t,"recordList",u)}))}},onReachBottom:function(){this.userSpreadNewList()}};e.default=c},"01fb":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[i("v-uni-view",{staticClass:"promoter-list"},[i("v-uni-view",{staticClass:"promoterHeader"},[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:t.domain+"/static/diy/sort1"+t.keyColor+".png"}})],1):"spread_count ASC"==t.sort?i("v-uni-view",{staticClass:"sortItem",on:{click:function(e){arguments[0]=e=t