chunk-3c51d60a.b05cf90e.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c51d60a"],{"0b33":function(t,e,i){"use strict";var n=i("1988"),s=i("d282"),o=i("9884"),a=i("48f4"),r=Object(s["a"])("tab"),l=r[0],c=r[1];e["a"]=l({mixins:[Object(o["a"])("vanTabs")],props:Object(n["a"])({},a["c"],{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,i=this.parent,n=this.isActive,s=e();if(s||i.animated){var o=i.scrollspy||n,a=this.inited||i.scrollspy||!i.lazyRender,r=a?s:t();return i.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!n},class:c("pane-wrapper",{inactive:!n})},[t("div",{class:c("pane")},[r])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:c("pane")},[r])}}})},"5e46":function(t,e,i){"use strict";var n=i("d282"),s=i("ea8e"),o=i("a142"),a=i("4598"),r=i("a8c1");function l(t,e,i){var n=0,s=t.scrollLeft,o=0===i?1:Math.round(1e3*i/16);function r(){t.scrollLeft+=(e-s)/o,++n<o&&Object(a["c"])(r)}r()}function c(t,e,i,n){var s=Object(r["c"])(t),o=s<e,l=0===i?1:Math.round(1e3*i/16),c=(e-s)/l;function u(){s+=c,(o&&s>e||!o&&s<e)&&(s=e),Object(r["h"])(t,s),o&&s<e||!o&&s>e?Object(a["c"])(u):n&&Object(a["c"])(n)}u()}var u=i("48f4"),h=i("02de"),d=i("1325"),f=i("b1d2");function v(t){var e=t.interceptor,i=t.args,n=t.done;if(e){var s=e.apply(void 0,i);Object(o["f"])(s)?s.then((function(t){t&&n()})).catch(o["h"]):s&&n()}else n()}var b=i("9884"),p=i("5fbe"),m=i("6f2f"),g=Object(n["a"])("tab"),C=g[0],x=g[1],y=C({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,i=this.isActive,n="card"===this.type;e&&n&&(t.borderColor=e,this.disabled||(i?t.backgroundColor=e:t.color=e));var s=i?this.activeColor:this.inactiveColor;return s&&(t.color=s),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:x("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(o["c"])(this.info)&&""!==this.info?t("span",{class:x("text-wrapper")},[e,t(m["a"],{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[x({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),w=i("3104"),j=i("1988"),S=i("3875"),k=Object(n["a"])("tabs"),I=k[0],O=k[1],$=50,T=I({mixins:[S["a"]],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,i=this.currentIndex;"horizontal"===t&&this.offsetX>=$&&(e>0&&0!==i?this.$emit("change",i-1):e<0&&i!==this.count-1&&this.$emit("change",i+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:O("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:O("content",{animated:this.animated}),on:Object(j["a"])({},this.listeners)},[this.genChildren()])}}),_=Object(n["a"])("tabs"),N=_[0],L=_[1];e["a"]=N({mixins:[Object(b["b"])("vanTabs"),Object(p["a"])((function(t){this.scroller||(this.scroller=Object(r["d"])(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(s["b"])(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(r["g"])(Math.ceil(Object(r["a"])(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?Object(d["b"])(this.scroller,"scroll",this.onScroll,!0):Object(d["a"])(this.scroller,"scroll",this.onScroll)}},mounted:function(){var t=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){t.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){t.inited=!0,t.tabHeight=Object(r["e"])(t.$refs.wrap),t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var i=t.$refs.titles;if(i&&i[t.currentIndex]&&"line"===t.type&&!Object(h["a"])(t.$el)){var n=i[t.currentIndex].$el,a=t.lineWidth,r=t.lineHeight,l=n.offsetLeft+n.offsetWidth/2,c={width:Object(s["a"])(a),backgroundColor:t.color,transform:"translateX("+l+"px) translateX(-50%)"};if(e&&(c.transitionDuration=t.duration+"s"),Object(o["c"])(r)){var u=Object(s["a"])(r);c.height=u,c.borderRadius=u}t.lineStyle=c}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),i=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:i)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(o["c"])(e)){var i=this.children[e],n=i.computedName,s=null!==this.currentIndex;this.currentIndex=e,n!==this.active&&(this.$emit("input",n),s&&this.$emit("change",n,i.title))}},findAvailableTab:function(t){var e=t<this.currentIndex?-1:1;while(t>=0&&t<this.children.length){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var i=this,n=this.children[e],s=n.title,o=n.disabled,a=n.computedName;o?this.$emit("disabled",a,s):(v({interceptor:this.beforeChange,args:[a],done:function(){i.setCurrentIndex(e),i.scrollToCurrentContent()}}),this.$emit("click",a,s),Object(u["b"])(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var i=this.$refs.nav,n=e[this.currentIndex].$el,s=n.offsetLeft-(i.offsetWidth-n.offsetWidth)/2;l(i,s,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick((function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var i=this.children[this.currentIndex],n=null==i?void 0:i.$el;if(n){var s=Object(r["a"])(n,this.scroller)-this.scrollOffset;this.lockScroll=!0,c(this.scroller,s,t?0:+this.duration,(function(){e.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t=this.children,e=0;e<t.length;e++){var i=Object(r["f"])(t[e].$el);if(i>this.scrollOffset)return 0===e?0:e-1}return t.length-1}},render:function(){var t,e=this,i=arguments[0],n=this.type,s=this.animated,o=this.scrollable,a=this.children.map((function(t,s){var a;return i(y,{ref:"titles",refInFor:!0,attrs:{type:n,dot:t.dot,info:null!=(a=t.badge)?a:t.info,title:t.title,color:e.color,isActive:s===e.currentIndex,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,s)}}})})),r=i("div",{ref:"wrap",class:[L("wrap",{scrollable:o}),(t={},t[f["f"]]="line"===n&&this.border,t)]},[i("div",{ref:"nav",attrs:{role:"tablist"},class:L("nav",[n,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),a,"line"===n&&i("div",{class:L("line"),style:this.lineStyle}),this.slots("nav-right")])]);return i("div",{class:L([n])},[this.sticky?i(w["a"],{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[r]):r,i(T,{attrs:{count:this.children.length,animated:s,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}})},a097:function(t,e,i){},b807:function(t,e,i){},bafe:function(t,e,i){"use strict";i.r(e);var n,s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page"},[i("mescroll-vue",{ref:"wordListBox",staticClass:"customerBoxmescroll",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[i("div",{staticClass:"prizeMsg flex-row align-center"},[i("div",{staticClass:"flex-sub flex-column justify-center align-center color384855"},[i("span",{staticClass:"fontw700 font36"},[t._v(t._s(t.clientInfo.zfnum))]),i("span",{staticClass:"font24 mt10"},[t._v("转发次数")])]),i("div",{staticClass:"line-column"}),i("div",{staticClass:"flex-sub flex-column justify-center align-center color384855"},[i("span",{staticClass:"fontw700 font36"},[t._v(t._s(t.clientInfo.is_lucky))]),i("span",{staticClass:"font24 mt10"},[t._v("中奖客户")])]),i("div",{staticClass:"line-column"}),i("div",{staticClass:"flex-sub flex-column justify-center align-center color384855"},[i("span",{staticClass:"fontw700 font36"},[t._v(t._s(t.clientInfo.lucky_num))]),i("span",{staticClass:"font24 mt10"},[t._v("抽奖次数")])])]),i("van-sticky",[i("van-tabs",{attrs:{color:"#249DFA","title-active-color":"#249DFA"},on:{click:t.handleSwitch},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[i("van-tab",{attrs:{title:"中奖客户",name:"1"}}),i("van-tab",{attrs:{title:"抽奖行为",name:"2"}})],1)],1),t._l(t.joinClientList,(function(e){return i("div",{key:e.id},[1==t.active?[i("div",{staticClass:"customer-box flex-row"},[i("div",{staticClass:"flex-two flex-column justify-between"},[i("span",{staticClass:"font28"},[t._v(t._s(e.user.nickname)+":"+t._s(e.good?e.good.good_name:""))]),i("span",{staticClass:"font24 color9DB6CF"},[t._v("中奖时间:"+t._s(e.lucky_time))])]),i("div",{staticClass:"flex-sub flex-row justify-between align-center"},[e.user.phone?i("a",{attrs:{href:"tel:"+e.user.phone}},[i("van-icon",{attrs:{name:"phone-circle-o",color:"#249DFA",size:"20"}})],1):i("span"),i("span",{staticClass:"font24",class:1==e.status?"color249DFA":"color384855"},[t._v(t._s(1==e.status?"未兑奖":"已兑奖"))])])])]:[i("div",{staticClass:"customer-box flex-row"},[i("div",{staticClass:"flex-two flex-column justify-between"},[i("span",{staticClass:"font28"},[t._v(t._s(e.user.nickname))]),i("span",{staticClass:"font24 color9DB6CF"},[t._v("抽奖次数:"+t._s(e.is_lottery))])]),i("div",{staticClass:"flex-sub flex-row justify-between align-center"},[e.user.phone?i("a",{attrs:{href:"tel:"+e.user.phone}},[i("van-icon",{attrs:{name:"phone-circle-o",color:"#249DFA",size:"20"}})],1):i("span"),i("span",{staticClass:"font24 colorFF3B30"},[t._v("未中奖")])])])]],2)})),i("nonedata",{attrs:{len:t.joinClientList.length,datashow:t.datashow}})],2)],1)},o=[],a=i("fc11"),r=(i("bda71"),i("5e46")),l=(i("da3c"),i("0b33")),c=(i("0cc8"),i("3104")),u=(i("b0c0"),i("ac1f"),i("5319"),i("99af"),i("95db")),h=i("8d6b"),d=i("a92e"),f={components:(n={},Object(a["a"])(n,c["a"].name,c["a"]),Object(a["a"])(n,l["a"].name,l["a"]),Object(a["a"])(n,r["a"].name,r["a"]),Object(a["a"])(n,"MescrollVue",h["a"]),Object(a["a"])(n,"nonedata",d["a"]),n),data:function(){return{clientInfo:{},actid:"",joinClientList:[],active:"",datashow:!1,loadFlag:!0,mescroll:null,mescrollDown:{},mescrollUp:{callback:this.getFuncList,page:{num:0,size:10},htmlLoading:"",htmlNodata:"",noMoreSize:0}}},created:function(){var t=this.getQueryStringArgs(window.location.href);t.actid&&(this.actid=t.actid)},methods:{handleSwitch:function(){this.datashow=!1,this.mescroll.resetUpScroll()},getQueryStringArgs:function(t){t=null==t?window.location.href:t;var e=t.substring(t.lastIndexOf("?")+1),i={},n=/([^?&=]+)=([^?&=]*)/g;return e.replace(n,(function(t,e,n){var s=decodeURIComponent(e),o=decodeURIComponent(n);return o=String(o),i[s]=o,t})),i},getEmpUserLuckyStatistics:function(){var t=this;Object(u["d"])({actid:this.actid}).then((function(e){0==e.data.code&&(t.clientInfo=e.data.data)}))},mescrollInit:function(t){this.mescroll=t},getFuncList:function(t,e){var i=this,n=this,s={page:t.num,limit:10,actid:this.actid};1==this.active?Object(u["c"])(s).then((function(s){"0"==s.data.code&&(1===t.num&&(n.joinClientList=[]),n.joinClientList=n.joinClientList.concat(s.data.data),n.$nextTick((function(){e.endSuccess(s.data.data.length)}))),i.loadFlag=!1,i.datashow=!0})):Object(u["e"])(s).then((function(s){"0"==s.data.code&&(1===t.num&&(n.joinClientList=[]),n.joinClientList=n.joinClientList.concat(s.data.data),n.$nextTick((function(){e.endSuccess(s.data.data.length)}))),i.loadFlag=!1,i.datashow=!0})),1==t.num&&this.getEmpUserLuckyStatistics()}}},v=f,b=(i("f858"),i("2877")),p=Object(b["a"])(v,s,o,!1,null,"c2a3a932",null);e["default"]=p.exports},bda71:function(t,e,i){"use strict";i("68ef"),i("9d70"),i("ae9e"),i("b807")},da3c:function(t,e,i){"use strict";i("68ef"),i("f319")},f319:function(t,e,i){},f858:function(t,e,i){"use strict";i("a097")}}]);