(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[5965],{1576:function(t){!function(e,i){t.exports=i()}(0,(function(){"use strict";var t=1e3,e=6e4,i=36e5,n="millisecond",s="second",r="minute",a="hour",u="day",o="week",h="month",c="quarter",l="year",d="date",f="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,m={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("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}},p=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},v={s:p,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),s=i%60;return(e<=0?"+":"-")+p(n,2,"0")+":"+p(s,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var n=12*(i.year()-e.year())+(i.month()-e.month()),s=e.clone().add(n,h),r=i-s<0,a=e.clone().add(n+(r?-1:1),h);return+(-(n+(i-s)/(r?s-a:a-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:h,y:l,w:o,d:u,D:d,h:a,m:r,s:s,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},S="en",y={};y[S]=m;var D="$isDayjsObject",M=function(t){return t instanceof b||!(!t||!t[D])},x=function t(e,i,n){var s;if(!e)return S;if("string"==typeof e){var r=e.toLowerCase();y[r]&&(s=r),i&&(y[r]=i,s=r);var a=e.split("-");if(!s&&a.length>1)return t(a[0])}else{var u=e.name;y[u]=e,s=u}return!n&&s&&(S=s),s||!n&&S},k=function(t,e){if(M(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new b(i)},T=v;T.l=x,T.i=M,T.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function m(t){this.$L=x(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[D]=!0}var p=m.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(T.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(g);if(n){var s=n[2]-1||0,r=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(e)}(t),this.init()},p.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()},p.$utils=function(){return T},p.isValid=function(){return!(this.$d.toString()===f)},p.isSame=function(t,e){var i=k(t);return this.startOf(e)<=i&&i<=this.endOf(e)},p.isAfter=function(t,e){return k(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<k(t)},p.$g=function(t,e,i){return T.u(t)?this[e]:this.set(i,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,e){var i=this,n=!!T.u(e)||e,c=T.p(t),f=function(t,e){var s=T.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return n?s:s.endOf(u)},g=function(t,e){return T.w(i.toDate()[t].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},$=this.$W,m=this.$M,p=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case l:return n?f(1,0):f(31,11);case h:return n?f(1,m):f(0,m+1);case o:var S=this.$locale().weekStart||0,y=($<S?$+7:$)-S;return f(n?p-y:p+(6-y),m);case u:case d:return g(v+"Hours",0);case a:return g(v+"Minutes",1);case r:return g(v+"Seconds",2);case s:return g(v+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(t,e){var i,o=T.p(t),c="set"+(this.$u?"UTC":""),f=(i={},i[u]=c+"Date",i[d]=c+"Date",i[h]=c+"Month",i[l]=c+"FullYear",i[a]=c+"Hours",i[r]=c+"Minutes",i[s]=c+"Seconds",i[n]=c+"Milliseconds",i)[o],g=o===u?this.$D+(e-this.$W):e;if(o===h||o===l){var $=this.clone().set(d,1);$.$d[f](g),$.init(),this.$d=$.set(d,Math.min(this.$D,$.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[T.p(t)]()},p.add=function(n,c){var d,f=this;n=Number(n);var g=T.p(c),$=function(t){var e=k(f);return T.w(e.date(e.date()+Math.round(t*n)),f)};if(g===h)return this.set(h,this.$M+n);if(g===l)return this.set(l,this.$y+n);if(g===u)return $(1);if(g===o)return $(7);var m=(d={},d[r]=e,d[a]=i,d[s]=t,d)[g]||1,p=this.$d.getTime()+n*m;return T.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||f;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=T.z(this),r=this.$H,a=this.$m,u=this.$M,o=i.weekdays,h=i.months,c=i.meridiem,l=function(t,i,s,r){return t&&(t[i]||t(e,n))||s[i].slice(0,r)},d=function(t){return T.s(r%12||12,t,"0")},g=c||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n};return n.replace($,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return T.s(e.$y,4,"0");case"M":return u+1;case"MM":return T.s(u+1,2,"0");case"MMM":return l(i.monthsShort,u,h,3);case"MMMM":return l(h,u);case"D":return e.$D;case"DD":return T.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return l(i.weekdaysMin,e.$W,o,2);case"ddd":return l(i.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(r);case"HH":return T.s(r,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return g(r,a,!0);case"A":return g(r,a,!1);case"m":return String(a);case"mm":return T.s(a,2,"0");case"s":return String(e.$s);case"ss":return T.s(e.$s,2,"0");case"SSS":return T.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")}))},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(n,d,f){var g,$=this,m=T.p(d),p=k(n),v=(p.utcOffset()-this.utcOffset())*e,S=this-p,y=function(){return T.m($,p)};switch(m){case l:g=y()/12;break;case h:g=y();break;case c:g=y()/3;break;case o:g=(S-v)/6048e5;break;case u:g=(S-v)/864e5;break;case a:g=S/i;break;case r:g=S/e;break;case s:g=S/t;break;default:g=S}return f?g:T.a(g)},p.daysInMonth=function(){return this.endOf(h).$D},p.$locale=function(){return y[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),n=x(t,e,!0);return n&&(i.$L=n),i},p.clone=function(){return T.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},m}(),w=b.prototype;return k.prototype=w,[["$ms",n],["$s",s],["$m",r],["$H",a],["$W",u],["$M",h],["$y",l],["$D",d]].forEach((function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),k.extend=function(t,e){return t.$i||(t(e,b,k),t.$i=!0),k},k.locale=x,k.isDayjs=M,k.unix=function(t){return k(1e3*t)},k.en=y[S],k.Ls=y,k.p={},k}))},10339:function(t,e,i){"use strict";var n=i(47456),s=i(73474),r=i(32486),a=i(2879),u=i(90689),o=(0,n.Y)("list"),h=o[0],c=o[1],l=o[2];e.A=h({mixins:[(0,a.x)((function(t){this.scroller||(this.scroller=(0,r.Rm)(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,i=t.$el,n=t.scroller,r=t.offset,a=t.direction;e=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight};var u=e.bottom-e.top;if(!u||(0,s.d)(i))return!1;var o=!1,h=t.$refs.placeholder.getBoundingClientRect();o="up"===a?e.top-h.top<=r:h.bottom-e.bottom<=r,o&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:c("loading")},[this.slots("loading")||t(u.A,{attrs:{size:"16"}},[this.loadingText||l("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:c("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:c("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:c("placeholder")});return t("div",{class:c(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}})},7287:function(t,e,i){"use strict";i(76952),i(45396)},36790:function(t,e,i){"use strict";i(44114);var n=i(47456),s=i(48499),r=i(32486),a=i(28722),u=i(90689),o=(0,n.Y)("pull-refresh"),h=o[0],c=o[1],l=o[2],d=50,f=["pulling","loosing","success"];e.A=h({mixins:[a.B],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:d}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(this.headHeight!==d)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=(0,r.Rm)(this.$el)},methods:{checkPullStart:function(t){this.ceiling=0===(0,r.hY)(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){this.touchable&&(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&((0,s.wo)(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick((function(){t.$emit("refresh")}))):this.setStatus(0))},ease:function(t){var e=+(this.pullDistance||this.headHeight);return t>e&&(t=t<2*e?e+(t-e)/2:1.5*e+(t-2*e)/4),Math.round(t)},setStatus:function(t,e){var i;i=e?"loading":0===t?"normal":t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,i!==this.status&&(this.status=i)},genStatus:function(){var t=this.$createElement,e=this.status,i=this.distance,n=this.slots(e,{distance:i});if(n)return n;var s=[],r=this[e+"Text"]||l(e);return-1!==f.indexOf(e)&&s.push(t("div",{class:c("text")},[r])),"loading"===e&&s.push(t(u.A,{attrs:{size:"16"}},[r])),s},showSuccessTip:function(){var t=this;this.status="success",setTimeout((function(){t.setStatus(0)}),this.successDuration)}},render:function(){var t=arguments[0],e={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:c()},[t("div",{ref:"track",class:c("track"),style:e},[t("div",{class:c("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}})},4624:function(t,e,i){"use strict";i(76952),i(45396)},41661:function(t,e,i){"use strict";i(1576);var n=i(94348);e.A={data(){return{list:[],loading:!1,finished:!1,isLoading:!1,form:{page_no:1}}},methods:{handleData(t){n.log("列表",t),this.isLoading=!1,this.list=this.list.concat(t),this.loading=!1,t.length<20&&(this.finished=!0,n.log("没有更多数据了")),this.form.page_no++},onRefresh(){n.log("refresh"),this.form.page_no=1,this.list=[],this.get()},onLoad(){n.log("onLoad"),this.get()}}}}}]);
|