chunk-401ee18c.140a8e1b.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-401ee18c"],{"09fe":function(t,e,s){},"31bf":function(t,e,s){"use strict";s.r(e);var n,i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"page"},[s("div",{staticClass:"header box-module flex-row align-center"},[s("div",{staticClass:"header-Tab flex-sub flex-row justify-around"},t._l(t.tab,(function(e){return s("div",{key:e.type,class:t.active==e.type?"header-tab-item active":"header-tab-item",on:{click:function(s){return t.switchTab(e.type)}}},[t._v(" "+t._s(e.name)+" ")])})),0),s("div",{staticClass:"header-time flex-row align-center justify-end",on:{click:t.showDateTimePicker}},[s("span",{staticClass:"color333 font-20"},[t._v(t._s(t.searchDate?t.searchDate:"选择时间"))]),s("van-icon",{staticClass:"ml10",attrs:{name:"arrow-down",size:"16"}})],1)]),s("mescroll-vue",{ref:"wordListBox",staticClass:"customerBoxmescroll",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[t._l(t.list,(function(e,n){return s("div",{key:n,staticClass:"collageBox"},[s("div",{staticClass:"collageTime flex-row align-center justify-center"},[s("span",{staticClass:"color666 font-20"},[t._v(t._s(e.date))])]),s("div",{staticClass:"collageItemBox"},t._l(e.list,(function(n,i){return s("div",{key:i,staticClass:"collageItem flex-column box-module mb30",class:t.setBorderLeftColor(n.status)},[s("div",{staticClass:"circle",class:t.setBorderColor(n.status)},[s("div",{directives:[{name:"show",rawName:"v-show",value:i!=e.list.length-1,expression:"idx!=(item.list.length-1)"}],staticClass:"dashedline"})]),s("div",{staticClass:"flex-sub flex-row justify-between"},[s("div",{staticClass:"flex-row align-start"},[s("span",{staticClass:"font28 color333 fontw700 flex-row align-center mt3"},[s("span",{staticClass:"limitWord color249DFA font28",class:"1"!=n.status?"limitMaxWord":"limitMinWord"},[t._v(t._s(n.user.nickname))]),t._v("的团队")]),"1"==n.status?s("span",{staticClass:"collageItem-time"},[t._v("剩余时限:"+t._s(n.surplus_time))]):t._e()]),s("div",{staticClass:"collageItem-status flex-row align-center justify-center",class:t.setBgColor(n.status)},[t._v(" "+t._s(t.getStatusName(n.status))+" ")])]),s("div",{staticClass:"flex-sub flex-row justify-between align-end"},[s("div",{staticClass:"flex-sub flex-row align-center"},[s("span",{staticClass:"color999 font24"},[t._v("成员:")]),s("div",{staticClass:"flex-row mr10"},t._l(n.joinuser,(function(t,e){return s("van-image",{key:e,class:e>0?"avatar":"",attrs:{width:"25",height:"25",round:"",src:t.user.headimgurl}})})),1)]),s("div",{staticClass:"collageInfo flex-row align-center justify-end"},[s("span",{staticClass:"color249DFA font24",on:{click:function(e){return t.getEmpSelTeamDetail(n.id)}}},[t._v("拼团详情>>")])])])])})),0)])})),s("nonedata",{attrs:{len:t.list.length,datashow:t.datashow}})],2),s("wzhload",{directives:[{name:"show",rawName:"v-show",value:t.loadFlag,expression:"loadFlag"}]}),s("van-popup",{style:{height:"40%"},attrs:{position:"bottom"},model:{value:t.showDate,callback:function(e){t.showDate=e},expression:"showDate"}},[s("van-datetime-picker",{attrs:{type:"date",title:"选择年月日","min-date":t.minDate,"max-date":t.maxDate},on:{confirm:t.confirm,cancel:t.cancel},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1),t.dialog?s("div",{staticClass:"mask"},[s("div",{staticClass:"dialog"},[t._m(0),s("div",{staticClass:"dialog-content"},[t._l(t.detaillist,(function(e){return s("div",{key:e.join_uid,staticClass:"dialog-content-item flex-row"},[s("div",{staticClass:"avatarBox flex-two flex-row align-center justify-start"},[s("van-image",{attrs:{width:"50",height:"50",round:"",src:e.user.headimgurl}}),s("div",{directives:[{name:"show",rawName:"v-show",value:1==e.is_heads,expression:"item.is_heads ==1"}],staticClass:"avatarBoxName font-20 colorfff flex-row justify-center align-center"},[t._v("队长")])],1),s("div",{staticClass:"flex-seven flex-column"},[s("div",{staticClass:"flex-sub flex-row justify-between"},[s("span",{staticClass:"font26 color333 ellipsis textConstraint"},[t._v(t._s(e.user.nickname)+" ")])]),s("div",{staticClass:"flex-sub mt10 flex-row align-end font26 color333"},[t._v(t._s(e.user.phone))]),s("div",{staticClass:"flex-sub mt10 font20 color666"},[t._v(t._s(e.addtime)+"开团")])]),s("div",{staticClass:"flex-sub flex-row justify-end align-center"},[s("a",{attrs:{href:"tel:"+e.user.phone}},[s("van-icon",{attrs:{name:"phone-o",color:"#28A1FF",size:"20"}})],1)])])})),t._l(t.needNumber,(function(e){return s("div",{key:e,staticClass:"dialog-footer flex-row align-center"},[t._m(1,!0),s("span",{staticClass:"color333 font26 ml20"},[t._v("待加入")])])}))],2),s("div",{staticClass:"close flex-row align-center justify-center"},[s("van-icon",{attrs:{name:"cross",size:"20",color:"#666666"},on:{click:function(e){t.dialog=!1}}})],1)])]):t._e()],1)},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"dialog-title flex-row justify-center align-center"},[s("span",{staticClass:"font30 color333"},[t._v("团队详情")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"dialog-footer-avatar flex-row align-center justify-center"},[s("span",{staticClass:"font52",staticStyle:{color:"#707070"}},[t._v("?")])])}],r=(s("e7e5"),s("d399")),o=s("fc11"),c=(s("0cc8"),s("3104")),l=(s("8a58"),s("e41f")),u=(s("d1cf"),s("ee83")),d=(s("4056"),s("44bf")),f=(s("b0c0"),s("ac1f"),s("5319"),s("99af"),s("5a0c")),h=s.n(f),m=s("95db"),g=s("8d6b"),v=s("a92e"),w={components:(n={},Object(o["a"])(n,d["a"].name,d["a"]),Object(o["a"])(n,u["a"].name,u["a"]),Object(o["a"])(n,l["a"].name,l["a"]),Object(o["a"])(n,c["a"].name,c["a"]),Object(o["a"])(n,"MescrollVue",g["a"]),Object(o["a"])(n,"nonedata",v["a"]),n),data:function(){return{dialog:!1,showDate:!1,minDate:new Date(2019,0,1),maxDate:new Date(2028,10,1),currentDate:new Date,active:"",searchDate:"",tab:[{name:"全部",type:""},{name:"进行中",type:"1"},{name:"拼团成功",type:"2"},{name:"已超时",type:"3"}],list:[],detaillist:[],needNumber:0,datashow:!1,loadFlag:!0,mescroll:null,mescrollDown:{},mescrollUp:{callback:this.getFuncList,page:{num:0,size:10},htmlLoading:"",htmlNodata:"",noMoreSize:0}}},mounted:function(){var t=this.getQueryStringArgs(window.location.href);t.empid&&(this.empid=t.empid)},methods:{showDateTimePicker:function(){this.currentDate=this.currentDate?this.currentDate:new Date,this.showDate=!0},getQueryStringArgs:function(t){t=null==t?window.location.href:t;var e=t.substring(t.lastIndexOf("?")+1),s={},n=/([^?&=]+)=([^?&=]*)/g;return e.replace(n,(function(t,e,n){var i=decodeURIComponent(e),a=decodeURIComponent(n);return a=String(a),s[i]=a,t})),s},switchTab:function(t){this.active=t,this.mescroll.resetUpScroll()},setBorderLeftColor:function(t){switch(t){case 1:return"borderLeftYellow";case 2:return"borderLeftOrange";case 3:return"borderLeftBlue";default:return"borderLeftYellow"}},setBorderColor:function(t){switch(t){case 1:return"borderYellow";case 2:return"borderOrange";case 3:return"borderBlue";default:return"borderYellow"}},setBgColor:function(t){switch(t){case 1:return"bgYellow";case 2:return"bgOrange";case 3:return"bgBlue";default:return"bgYellow"}},getStatusName:function(t){switch(t){case 1:return"进行中";case 2:return"拼团成功";case 3:return"已超时"}},cancel:function(){this.showDate=!1},confirm:function(t){var e=h()(t).format("YYYY-MM-DD");this.searchDate=e,this.showDate=!1,this.mescroll.resetUpScroll()},mescrollInit:function(t){this.mescroll=t},getFuncList:function(t,e){var s=this;this.loadFlag=!0;var n=this,i={page:t.num,limit:10,empid:this.empid,status:this.active,starttime:this.searchDate};Object(m["b"])(i).then((function(i){"0"==i.data.code&&(1===t.num&&(n.list=[]),n.list=n.list.concat(s.handlelist(i.data.list)),n.$nextTick((function(){e.endSuccess(i.data.list.length)}))),s.loadFlag=!1,s.datashow=!0}))},getEmpSelTeamDetail:function(t){var e=this;r["a"].loading({message:"加载中...",forbidClick:!0,loadingType:"spinner"}),Object(m["a"])({teamid:t}).then((function(t){r["a"].clear(),e.detaillist=t.data.list.team_list,e.needNumber=t.data.list.show_join,e.dialog=!0})).catch((function(t){r["a"].clear()}))},handlelist:function(t){if(t instanceof Array)return t;var e=[];for(var s in t)e.push({date:s,list:t[s]});return e}}},p=w,$=(s("b699"),s("2877")),y=Object($["a"])(p,i,a,!1,null,"248ec069",null);e["default"]=y.exports},"3cf6":function(t,e,s){},4056:function(t,e,s){"use strict";s("68ef"),s("9d70"),s("3743"),s("09fe")},"44bf":function(t,e,s){"use strict";var n=s("2638"),i=s.n(n),a=s("d282"),r=s("a142"),o=s("ea8e"),c=s("ad06"),l=Object(a["a"])("image"),u=l[0],d=l[1];e["a"]=u({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(r["c"])(this.width)&&(t.width=Object(o["a"])(this.width)),Object(r["c"])(this.height)&&(t.height=Object(o["a"])(this.height)),Object(r["c"])(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(o["a"])(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&r["b"]&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){var e=t.el;e===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){var e=t.el;e!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:d("loading")},[this.slots("loading")||t(c["a"],{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:d("loading-icon")})]):this.error&&this.showError?t("div",{class:d("error")},[this.slots("error")||t(c["a"],{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:d("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:d("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",i()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",i()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:d({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}})},"5a0c":function(t,e,s){!function(e,s){t.exports=s()}(0,(function(){"use strict";var t=1e3,e=6e4,s=36e5,n="millisecond",i="second",a="minute",r="hour",o="day",c="week",l="month",u="quarter",d="year",f="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},w=function(t,e,s){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(s)+t},p={s:w,z:function(t){var e=-t.utcOffset(),s=Math.abs(e),n=Math.floor(s/60),i=s%60;return(e<=0?"+":"-")+w(n,2,"0")+":"+w(i,2,"0")},m:function t(e,s){if(e.date()<s.date())return-t(s,e);var n=12*(s.year()-e.year())+(s.month()-e.month()),i=e.clone().add(n,l),a=s-i<0,r=e.clone().add(n+(a?-1:1),l);return+(-(n+(s-i)/(a?i-r:r-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:d,w:c,d:o,D:f,h:r,m:a,s:i,ms:n,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",y={};y[$]=v;var b=function(t){return t instanceof C},D=function(t,e,s){var n;if(!t)return $;if("string"==typeof t)y[t]&&(n=t),e&&(y[t]=e,n=t);else{var i=t.name;y[i]=t,n=i}return!s&&n&&($=n),n||!s&&$},x=function(t,e){if(b(t))return t.clone();var s="object"==typeof e?e:{};return s.date=t,s.args=arguments,new C(s)},_=p;_.l=D,_.i=b,_.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function v(t){this.$L=D(t.locale,null,!0),this.parse(t)}var w=v.prototype;return w.parse=function(t){this.$d=function(t){var e=t.date,s=t.utc;if(null===e)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(m);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return s?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},w.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},w.$utils=function(){return _},w.isValid=function(){return!(this.$d.toString()===h)},w.isSame=function(t,e){var s=x(t);return this.startOf(e)<=s&&s<=this.endOf(e)},w.isAfter=function(t,e){return x(t)<this.startOf(e)},w.isBefore=function(t,e){return this.endOf(e)<x(t)},w.$g=function(t,e,s){return _.u(t)?this[e]:this.set(s,t)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(t,e){var s=this,n=!!_.u(e)||e,u=_.p(t),h=function(t,e){var i=_.w(s.$u?Date.UTC(s.$y,e,t):new Date(s.$y,e,t),s);return n?i:i.endOf(o)},m=function(t,e){return _.w(s.toDate()[t].apply(s.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),s)},g=this.$W,v=this.$M,w=this.$D,p="set"+(this.$u?"UTC":"");switch(u){case d:return n?h(1,0):h(31,11);case l:return n?h(1,v):h(0,v+1);case c:var $=this.$locale().weekStart||0,y=(g<$?g+7:g)-$;return h(n?w-y:w+(6-y),v);case o:case f:return m(p+"Hours",0);case r:return m(p+"Minutes",1);case a:return m(p+"Seconds",2);case i:return m(p+"Milliseconds",3);default:return this.clone()}},w.endOf=function(t){return this.startOf(t,!1)},w.$set=function(t,e){var s,c=_.p(t),u="set"+(this.$u?"UTC":""),h=(s={},s[o]=u+"Date",s[f]=u+"Date",s[l]=u+"Month",s[d]=u+"FullYear",s[r]=u+"Hours",s[a]=u+"Minutes",s[i]=u+"Seconds",s[n]=u+"Milliseconds",s)[c],m=c===o?this.$D+(e-this.$W):e;if(c===l||c===d){var g=this.clone().set(f,1);g.$d[h](m),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},w.set=function(t,e){return this.clone().$set(t,e)},w.get=function(t){return this[_.p(t)]()},w.add=function(n,u){var f,h=this;n=Number(n);var m=_.p(u),g=function(t){var e=x(h);return _.w(e.date(e.date()+Math.round(t*n)),h)};if(m===l)return this.set(l,this.$M+n);if(m===d)return this.set(d,this.$y+n);if(m===o)return g(1);if(m===c)return g(7);var v=(f={},f[a]=e,f[r]=s,f[i]=t,f)[m]||1,w=this.$d.getTime()+n*v;return _.w(w,this)},w.subtract=function(t,e){return this.add(-1*t,e)},w.format=function(t){var e=this,s=this.$locale();if(!this.isValid())return s.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),a=this.$H,r=this.$m,o=this.$M,c=s.weekdays,l=s.months,u=function(t,s,i,a){return t&&(t[s]||t(e,n))||i[s].substr(0,a)},d=function(t){return _.s(a%12||12,t,"0")},f=s.meridiem||function(t,e,s){var n=t<12?"AM":"PM";return s?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:_.s(o+1,2,"0"),MMM:u(s.monthsShort,o,l,3),MMMM:u(l,o),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:u(s.weekdaysMin,this.$W,c,2),ddd:u(s.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(a),HH:_.s(a,2,"0"),h:d(1),hh:d(2),a:f(a,r,!0),A:f(a,r,!1),m:String(r),mm:_.s(r,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:i};return n.replace(g,(function(t,e){return e||m[t]||i.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(n,f,h){var m,g=_.p(f),v=x(n),w=(v.utcOffset()-this.utcOffset())*e,p=this-v,$=_.m(this,v);return $=(m={},m[d]=$/12,m[l]=$,m[u]=$/3,m[c]=(p-w)/6048e5,m[o]=(p-w)/864e5,m[r]=p/s,m[a]=p/e,m[i]=p/t,m)[g]||p,h?$:_.a($)},w.daysInMonth=function(){return this.endOf(l).$D},w.$locale=function(){return y[this.$L]},w.locale=function(t,e){if(!t)return this.$L;var s=this.clone(),n=D(t,e,!0);return n&&(s.$L=n),s},w.clone=function(){return _.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},v}(),S=C.prototype;return x.prototype=S,[["$ms",n],["$s",i],["$m",a],["$H",r],["$W",o],["$M",l],["$y",d],["$D",f]].forEach((function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),x.extend=function(t,e){return t.$i||(t(e,C,x),t.$i=!0),x},x.locale=D,x.isDayjs=b,x.unix=function(t){return x(1e3*t)},x.en=y[$],x.Ls=y,x.p={},x}))},b699:function(t,e,s){"use strict";s("3cf6")}}]);