12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70007df4"],{"09fa":function(t,n,e){var i=e("4588"),r=e("9def");t.exports=function(t){if(void 0===t)return 0;var n=i(t),e=r(n);if(n!==e)throw RangeError("Wrong length!");return e}},"0a49":function(t,n,e){var i=e("9b43"),r=e("626a"),o=e("4bf8"),s=e("9def"),u=e("cd1c");t.exports=function(t,n){var e=1==t,a=2==t,c=3==t,f=4==t,l=6==t,h=5==t||l,d=n||u;return function(n,u,v){for(var p,g,m=o(n),b=r(m),y=i(u,v,3),x=s(b.length),w=0,I=e?d(n,x):a?d(n,0):void 0;x>w;w++)if((h||w in b)&&(p=b[w],g=y(p,w,m),t))if(e)I[w]=g;else if(g)switch(t){case 3:return!0;case 5:return p;case 6:return w;case 2:I.push(p)}else if(f)return!1;return l?-1:c||f?f:I}}},"0f88":function(t,n,e){var i,r=e("7726"),o=e("32e9"),s=e("ca5a"),u=s("typed_array"),a=s("view"),c=!(!r.ArrayBuffer||!r.DataView),f=c,l=0,h=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(l<h)(i=r[d[l++]])?(o(i.prototype,u,!0),o(i.prototype,a,!0)):f=!1;t.exports={ABV:c,CONSTR:f,TYPED:u,VIEW:a}},1169:function(t,n,e){var i=e("2d95");t.exports=Array.isArray||function(t){return"Array"==i(t)}},"28a5":function(t,n,e){"use strict";var i=e("aae3"),r=e("cb7c"),o=e("ebd6"),s=e("0390"),u=e("9def"),a=e("5f1b"),c=e("520a"),f=Math.min,l=[].push,h="split",d="length",v="lastIndex",p=!!function(){try{return new RegExp("x","y")}catch(t){}}();e("214f")("split",2,function(t,n,e,g){var m=e;return"c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[d]||2!="ab"[h](/(?:ab)*/)[d]||4!="."[h](/(.?)(.?)/)[d]||"."[h](/()()/)[d]>1||""[h](/.?/)[d]?m=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!i(t))return e.call(r,t,n);var o,s,u,a=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,p=void 0===n?4294967295:n>>>0,g=new RegExp(t.source,f+"g");while(o=c.call(g,r)){if(s=g[v],s>h&&(a.push(r.slice(h,o.index)),o[d]>1&&o.index<r[d]&&l.apply(a,o.slice(1)),u=o[0][d],h=s,a[d]>=p))break;g[v]===o.index&&g[v]++}return h===r[d]?!u&&g.test("")||a.push(""):a.push(r.slice(h)),a[d]>p?a.slice(0,p):a}:"0"[h](void 0,0)[d]&&(m=function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}),[function(e,i){var r=t(this),o=void 0==e?void 0:e[n];return void 0!==o?o.call(e,r,i):m.call(String(r),e,i)},function(t,n){var i=g(m,t,this,n,m!==e);if(i.done)return i.value;var c=r(t),l=String(this),h=o(c,RegExp),d=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(p?"y":"g"),b=new h(p?c:"^(?:"+c.source+")",v),y=void 0===n?4294967295:n>>>0;if(0===y)return[];if(0===l.length)return null===a(b,l)?[l]:[];var x=0,w=0,I=[];while(w<l.length){b.lastIndex=p?w:0;var _,S=a(b,p?l:l.slice(w));if(null===S||(_=f(u(b.lastIndex+(p?0:w)),l.length))===x)w=s(l,w,d);else{if(I.push(l.slice(x,w)),I.length===y)return I;for(var C=1;C<=S.length-1;C++)if(I.push(S[C]),I.length===y)return I;w=x=_}}return I.push(l.slice(x)),I}]})},"34ef":function(t,n,e){e("ec30")("Uint8",1,function(t){return function(n,e,i){return t(this,n,e,i)}})},"36bd":function(t,n,e){"use strict";var i=e("4bf8"),r=e("77f1"),o=e("9def");t.exports=function(t){var n=i(this),e=o(n.length),s=arguments.length,u=r(s>1?arguments[1]:void 0,e),a=s>2?arguments[2]:void 0,c=void 0===a?e:r(a,e);while(c>u)n[u++]=t;return n}},"5f5f":function(t,n,e){"use strict";e("68ef"),e("a526")},"62d0":function(t,n,e){},"8a0b":function(t,n,e){},"8f80":function(t,n,e){"use strict";var i=e("fe7e");n["a"]=Object(i["a"])({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:t.b()},[t._t("default"),e("input",t._b({ref:"input",class:t.b("input"),attrs:{type:"file",accept:t.accept,disabled:t.disabled},on:{change:t.onChange}},"input",t.$attrs,!1))],2)},name:"uploader",inheritAttrs:!1,props:{disabled:Boolean,beforeRead:Function,afterRead:Function,accept:{type:String,default:"image/*"},resultType:{type:String,default:"dataUrl"},maxSize:{type:Number,default:Number.MAX_VALUE}},methods:{onChange:function(t){var n=this,e=t.target.files;!this.disabled&&e.length&&(e=1===e.length?e[0]:[].slice.call(e,0),!e||this.beforeRead&&!this.beforeRead(e)||(Array.isArray(e)?Promise.all(e.map(this.readFile)).then(function(t){var i=!1,r=e.map(function(r,o){return r.size>n.maxSize&&(i=!0),{file:e[o],content:t[o]}});n.onAfterRead(r,i)}):this.readFile(e).then(function(t){n.onAfterRead({file:e,content:t},e.size>n.maxSize)})))},readFile:function(t){var n=this;return new Promise(function(e){var i=new FileReader;i.onload=function(t){e(t.target.result)},"dataUrl"===n.resultType?i.readAsDataURL(t):"text"===n.resultType&&i.readAsText(t)})},onAfterRead:function(t,n){n?this.$emit("oversize",t):(this.afterRead&&this.afterRead(t),this.$refs.input&&(this.$refs.input.value=""))}}})},a526:function(t,n,e){},aeeb:function(t,n,e){"use strict";var i=e("62d0"),r=e.n(i);r.a},ba92:function(t,n,e){"use strict";var i=e("4bf8"),r=e("77f1"),o=e("9def");t.exports=[].copyWithin||function(t,n){var e=i(this),s=o(e.length),u=r(t,s),a=r(n,s),c=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===c?s:r(c,s))-a,s-u),l=1;a<u&&u<a+f&&(l=-1,a+=f-1,u+=f-1);while(f-- >0)a in e?e[u]=e[a]:delete e[u],u+=l,a+=l;return e}},bcd3:function(t,n,e){},c3a6:function(t,n,e){"use strict";e("68ef")},cd1c:function(t,n,e){var i=e("e853");t.exports=function(t,n){return new(i(t))(n)}},da1d:function(t,n,e){"use strict";var i,r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("van-nav-bar",{staticStyle:{"background-color":"#fff6e3"},attrs:{title:t.title,border:!1}},[t._v('\n style="max-width: 30px;"\n />\n '),e("van-icon",{attrs:{slot:"left",name:"arrow-left",color:"black"},on:{click:t.onClickLeft},slot:"left"})],1)],1)},o=[],s=e("ade3"),u=(e("c3a6"),e("ad06")),a=(e("7f7f"),e("68ef"),e("8a0b"),e("fe7e")),c=Object(a["a"])({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:[t.b({fixed:t.fixed}),{"van-hairline--bottom":t.border}],style:t.style},[e("div",{class:t.b("left"),on:{click:function(n){t.$emit("click-left")}}},[t._t("left",[t.leftArrow?e("icon",{class:t.b("arrow"),attrs:{name:"arrow-left"}}):t._e(),t.leftText?e("span",{class:t.b("text"),domProps:{textContent:t._s(t.leftText)}}):t._e()])],2),e("div",{staticClass:"van-ellipsis",class:t.b("title")},[t._t("title",[t._v(t._s(t.title))])],2),e("div",{class:t.b("right"),on:{click:function(n){t.$emit("click-right")}}},[t._t("right",[t.rightText?e("span",{class:t.b("text"),domProps:{textContent:t._s(t.rightText)}}):t._e()])],2)])},name:"nav-bar",props:{title:String,fixed:Boolean,leftText:String,rightText:String,leftArrow:Boolean,border:{type:Boolean,default:!0},zIndex:{type:Number,default:1}},computed:{style:function(){return{zIndex:this.zIndex}}}}),f=(e("cadf"),e("551c"),e("097d"),{name:"navBar",components:(i={},Object(s["a"])(i,c.name,c),Object(s["a"])(i,u["a"].name,u["a"]),i),props:{path:{type:String,default:"index"},title:{type:String,default:"深大换换礼物交换"}},methods:{onClickLeft:function(){this.$router.push(this.path)}}}),l=f,h=(e("aeeb"),e("2877")),d=Object(h["a"])(l,r,o,!1,null,"7f9774c3",null);d.options.__file="navBar.vue";n["a"]=d.exports},e853:function(t,n,e){var i=e("d3f4"),r=e("1169"),o=e("2b4c")("species");t.exports=function(t){var n;return r(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)||(n=void 0),i(n)&&(n=n[o],null===n&&(n=void 0))),void 0===n?Array:n}},e930:function(t,n,e){"use strict";e("68ef"),e("bcd3")},ec30:function(t,n,e){"use strict";if(e("9e1e")){var i=e("2d00"),r=e("7726"),o=e("79e5"),s=e("5ca1"),u=e("0f88"),a=e("ed0b"),c=e("9b43"),f=e("f605"),l=e("4630"),h=e("32e9"),d=e("dcbc"),v=e("4588"),p=e("9def"),g=e("09fa"),m=e("77f1"),b=e("6a99"),y=e("69a8"),x=e("23c6"),w=e("d3f4"),I=e("4bf8"),_=e("33a4"),S=e("2aeb"),C=e("38fd"),A=e("9093").f,E=e("27ee"),T=e("ca5a"),O=e("2b4c"),V=e("0a49"),k=e("c366"),R=e("ebd6"),N=e("cadf"),B=e("84f2"),$=e("5cc5"),F=e("7a56"),j=e("36bd"),P=e("ba92"),L=e("86cc"),U=e("11e9"),H=L.f,D=U.f,M=r.RangeError,W=r.TypeError,Y=r.Uint8Array,z="ArrayBuffer",K="Shared"+z,J="BYTES_PER_ELEMENT",G="prototype",X=Array[G],q=a.ArrayBuffer,Q=a.DataView,Z=V(0),tt=V(2),nt=V(3),et=V(4),it=V(5),rt=V(6),ot=k(!0),st=k(!1),ut=N.values,at=N.keys,ct=N.entries,ft=X.lastIndexOf,lt=X.reduce,ht=X.reduceRight,dt=X.join,vt=X.sort,pt=X.slice,gt=X.toString,mt=X.toLocaleString,bt=O("iterator"),yt=O("toStringTag"),xt=T("typed_constructor"),wt=T("def_constructor"),It=u.CONSTR,_t=u.TYPED,St=u.VIEW,Ct="Wrong length!",At=V(1,function(t,n){return kt(R(t,t[wt]),n)}),Et=o(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),Tt=!!Y&&!!Y[G].set&&o(function(){new Y(1).set({})}),Ot=function(t,n){var e=v(t);if(e<0||e%n)throw M("Wrong offset!");return e},Vt=function(t){if(w(t)&&_t in t)return t;throw W(t+" is not a typed array!")},kt=function(t,n){if(!(w(t)&&xt in t))throw W("It is not a typed array constructor!");return new t(n)},Rt=function(t,n){return Nt(R(t,t[wt]),n)},Nt=function(t,n){var e=0,i=n.length,r=kt(t,i);while(i>e)r[e]=n[e++];return r},Bt=function(t,n,e){H(t,n,{get:function(){return this._d[e]}})},$t=function(t){var n,e,i,r,o,s,u=I(t),a=arguments.length,f=a>1?arguments[1]:void 0,l=void 0!==f,h=E(u);if(void 0!=h&&!_(h)){for(s=h.call(u),i=[],n=0;!(o=s.next()).done;n++)i.push(o.value);u=i}for(l&&a>2&&(f=c(f,arguments[2],2)),n=0,e=p(u.length),r=kt(this,e);e>n;n++)r[n]=l?f(u[n],n):u[n];return r},Ft=function(){var t=0,n=arguments.length,e=kt(this,n);while(n>t)e[t]=arguments[t++];return e},jt=!!Y&&o(function(){mt.call(new Y(1))}),Pt=function(){return mt.apply(jt?pt.call(Vt(this)):Vt(this),arguments)},Lt={copyWithin:function(t,n){return P.call(Vt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return et(Vt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return j.apply(Vt(this),arguments)},filter:function(t){return Rt(this,tt(Vt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(Vt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(Vt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Vt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Vt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Vt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return dt.apply(Vt(this),arguments)},lastIndexOf:function(t){return ft.apply(Vt(this),arguments)},map:function(t){return At(Vt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(Vt(this),arguments)},reduceRight:function(t){return ht.apply(Vt(this),arguments)},reverse:function(){var t,n=this,e=Vt(n).length,i=Math.floor(e/2),r=0;while(r<i)t=n[r],n[r++]=n[--e],n[e]=t;return n},some:function(t){return nt(Vt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return vt.call(Vt(this),t)},subarray:function(t,n){var e=Vt(this),i=e.length,r=m(t,i);return new(R(e,e[wt]))(e.buffer,e.byteOffset+r*e.BYTES_PER_ELEMENT,p((void 0===n?i:m(n,i))-r))}},Ut=function(t,n){return Rt(this,pt.call(Vt(this),t,n))},Ht=function(t){Vt(this);var n=Ot(arguments[1],1),e=this.length,i=I(t),r=p(i.length),o=0;if(r+n>e)throw M(Ct);while(o<r)this[n+o]=i[o++]},Dt={entries:function(){return ct.call(Vt(this))},keys:function(){return at.call(Vt(this))},values:function(){return ut.call(Vt(this))}},Mt=function(t,n){return w(t)&&t[_t]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Wt=function(t,n){return Mt(t,n=b(n,!0))?l(2,t[n]):D(t,n)},Yt=function(t,n,e){return!(Mt(t,n=b(n,!0))&&w(e)&&y(e,"value"))||y(e,"get")||y(e,"set")||e.configurable||y(e,"writable")&&!e.writable||y(e,"enumerable")&&!e.enumerable?H(t,n,e):(t[n]=e.value,t)};It||(U.f=Wt,L.f=Yt),s(s.S+s.F*!It,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:Yt}),o(function(){gt.call({})})&&(gt=mt=function(){return dt.call(this)});var zt=d({},Lt);d(zt,Dt),h(zt,bt,Dt.values),d(zt,{slice:Ut,set:Ht,constructor:function(){},toString:gt,toLocaleString:Pt}),Bt(zt,"buffer","b"),Bt(zt,"byteOffset","o"),Bt(zt,"byteLength","l"),Bt(zt,"length","e"),H(zt,yt,{get:function(){return this[_t]}}),t.exports=function(t,n,e,a){a=!!a;var c=t+(a?"Clamped":"")+"Array",l="get"+t,d="set"+t,v=r[c],m=v||{},b=v&&C(v),y=!v||!u.ABV,I={},_=v&&v[G],E=function(t,e){var i=t._d;return i.v[l](e*n+i.o,Et)},T=function(t,e,i){var r=t._d;a&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[d](e*n+r.o,i,Et)},O=function(t,n){H(t,n,{get:function(){return E(this,n)},set:function(t){return T(this,n,t)},enumerable:!0})};y?(v=e(function(t,e,i,r){f(t,v,c,"_d");var o,s,u,a,l=0,d=0;if(w(e)){if(!(e instanceof q||(a=x(e))==z||a==K))return _t in e?Nt(v,e):$t.call(v,e);o=e,d=Ot(i,n);var m=e.byteLength;if(void 0===r){if(m%n)throw M(Ct);if(s=m-d,s<0)throw M(Ct)}else if(s=p(r)*n,s+d>m)throw M(Ct);u=s/n}else u=g(e),s=u*n,o=new q(s);h(t,"_d",{b:o,o:d,l:s,e:u,v:new Q(o)});while(l<u)O(t,l++)}),_=v[G]=S(zt),h(_,"constructor",v)):o(function(){v(1)})&&o(function(){new v(-1)})&&$(function(t){new v,new v(null),new v(1.5),new v(t)},!0)||(v=e(function(t,e,i,r){var o;return f(t,v,c),w(e)?e instanceof q||(o=x(e))==z||o==K?void 0!==r?new m(e,Ot(i,n),r):void 0!==i?new m(e,Ot(i,n)):new m(e):_t in e?Nt(v,e):$t.call(v,e):new m(g(e))}),Z(b!==Function.prototype?A(m).concat(A(b)):A(m),function(t){t in v||h(v,t,m[t])}),v[G]=_,i||(_.constructor=v));var V=_[bt],k=!!V&&("values"==V.name||void 0==V.name),R=Dt.values;h(v,xt,!0),h(_,_t,c),h(_,St,!0),h(_,wt,v),(a?new v(1)[yt]==c:yt in _)||H(_,yt,{get:function(){return c}}),I[c]=v,s(s.G+s.W+s.F*(v!=m),I),s(s.S,c,{BYTES_PER_ELEMENT:n}),s(s.S+s.F*o(function(){m.of.call(v,1)}),c,{from:$t,of:Ft}),J in _||h(_,J,n),s(s.P,c,Lt),F(c),s(s.P+s.F*Tt,c,{set:Ht}),s(s.P+s.F*!k,c,Dt),i||_.toString==gt||(_.toString=gt),s(s.P+s.F*o(function(){new v(1).slice()}),c,{slice:Ut}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()})||!o(function(){_.toLocaleString.call([1,2])})),c,{toLocaleString:Pt}),B[c]=k?V:R,i||k||h(_,bt,R)}}else t.exports=function(){}},ed0b:function(t,n,e){"use strict";var i=e("7726"),r=e("9e1e"),o=e("2d00"),s=e("0f88"),u=e("32e9"),a=e("dcbc"),c=e("79e5"),f=e("f605"),l=e("4588"),h=e("9def"),d=e("09fa"),v=e("9093").f,p=e("86cc").f,g=e("36bd"),m=e("7f20"),b="ArrayBuffer",y="DataView",x="prototype",w="Wrong length!",I="Wrong index!",_=i[b],S=i[y],C=i.Math,A=i.RangeError,E=i.Infinity,T=_,O=C.abs,V=C.pow,k=C.floor,R=C.log,N=C.LN2,B="buffer",$="byteLength",F="byteOffset",j=r?"_b":B,P=r?"_l":$,L=r?"_o":F;function U(t,n,e){var i,r,o,s=new Array(e),u=8*e-n-1,a=(1<<u)-1,c=a>>1,f=23===n?V(2,-24)-V(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for(t=O(t),t!=t||t===E?(r=t!=t?1:0,i=a):(i=k(R(t)/N),t*(o=V(2,-i))<1&&(i--,o*=2),t+=i+c>=1?f/o:f*V(2,1-c),t*o>=2&&(i++,o/=2),i+c>=a?(r=0,i=a):i+c>=1?(r=(t*o-1)*V(2,n),i+=c):(r=t*V(2,c-1)*V(2,n),i=0));n>=8;s[l++]=255&r,r/=256,n-=8);for(i=i<<n|r,u+=n;u>0;s[l++]=255&i,i/=256,u-=8);return s[--l]|=128*h,s}function H(t,n,e){var i,r=8*e-n-1,o=(1<<r)-1,s=o>>1,u=r-7,a=e-1,c=t[a--],f=127&c;for(c>>=7;u>0;f=256*f+t[a],a--,u-=8);for(i=f&(1<<-u)-1,f>>=-u,u+=n;u>0;i=256*i+t[a],a--,u-=8);if(0===f)f=1-s;else{if(f===o)return i?NaN:c?-E:E;i+=V(2,n),f-=s}return(c?-1:1)*i*V(2,f-n)}function D(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function M(t){return[255&t]}function W(t){return[255&t,t>>8&255]}function Y(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return U(t,52,8)}function K(t){return U(t,23,4)}function J(t,n,e){p(t[x],n,{get:function(){return this[e]}})}function G(t,n,e,i){var r=+e,o=d(r);if(o+n>t[P])throw A(I);var s=t[j]._b,u=o+t[L],a=s.slice(u,u+n);return i?a:a.reverse()}function X(t,n,e,i,r,o){var s=+e,u=d(s);if(u+n>t[P])throw A(I);for(var a=t[j]._b,c=u+t[L],f=i(+r),l=0;l<n;l++)a[c+l]=f[o?l:n-l-1]}if(s.ABV){if(!c(function(){_(1)})||!c(function(){new _(-1)})||c(function(){return new _,new _(1.5),new _(NaN),_.name!=b})){_=function(t){return f(this,_),new T(d(t))};for(var q,Q=_[x]=T[x],Z=v(T),tt=0;Z.length>tt;)(q=Z[tt++])in _||u(_,q,T[q]);o||(Q.constructor=_)}var nt=new S(new _(2)),et=S[x].setInt8;nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||a(S[x],{setInt8:function(t,n){et.call(this,t,n<<24>>24)},setUint8:function(t,n){et.call(this,t,n<<24>>24)}},!0)}else _=function(t){f(this,_,b);var n=d(t);this._b=g.call(new Array(n),0),this[P]=n},S=function(t,n,e){f(this,S,y),f(t,_,y);var i=t[P],r=l(n);if(r<0||r>i)throw A("Wrong offset!");if(e=void 0===e?i-r:h(e),r+e>i)throw A(w);this[j]=t,this[L]=r,this[P]=e},r&&(J(_,$,"_l"),J(S,B,"_b"),J(S,$,"_l"),J(S,F,"_o")),a(S[x],{getInt8:function(t){return G(this,1,t)[0]<<24>>24},getUint8:function(t){return G(this,1,t)[0]},getInt16:function(t){var n=G(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=G(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return D(G(this,4,t,arguments[1]))},getUint32:function(t){return D(G(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return H(G(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return H(G(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){X(this,1,t,M,n)},setUint8:function(t,n){X(this,1,t,M,n)},setInt16:function(t,n){X(this,2,t,W,n,arguments[2])},setUint16:function(t,n){X(this,2,t,W,n,arguments[2])},setInt32:function(t,n){X(this,4,t,Y,n,arguments[2])},setUint32:function(t,n){X(this,4,t,Y,n,arguments[2])},setFloat32:function(t,n){X(this,4,t,K,n,arguments[2])},setFloat64:function(t,n){X(this,8,t,z,n,arguments[2])}});m(_,b),m(S,y),u(S[x],s.VIEW,!0),n[b]=_,n[y]=S},f253:function(t,n,e){"use strict";var i=e("fe7e"),r=e("1128");function o(t){return Array.isArray(t)?t.map(function(t){return o(t)}):"object"===typeof t?Object(r["a"])({},t):t}var s=e("a142"),u=200,a=Object(i["a"])({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:[t.b(),t.className],style:t.columnStyle,on:{touchstart:t.onTouchStart,touchmove:function(n){return n.preventDefault(),t.onTouchMove(n)},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}},[e("ul",{style:t.wrapperStyle},t._l(t.options,function(n,i){return e("li",{staticClass:"van-ellipsis",class:t.b("item",{disabled:t.isDisabled(n),selected:i===t.currentIndex}),style:t.optionStyle,domProps:{innerHTML:t._s(t.getOptionText(n))},on:{click:function(n){t.setIndex(i,!0)}}})}))])},name:"picker-column",props:{valueKey:String,className:String,itemHeight:Number,defaultIndex:Number,initialOptions:Array,visibleItemCount:Number},data:function(){return{startY:0,offset:0,duration:0,startOffset:0,options:o(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{defaultIndex:function(){this.setIndex(this.defaultIndex)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2},columnStyle:function(){return{height:this.itemHeight*this.visibleItemCount+"px"}},wrapperStyle:function(){return{transition:this.duration+"ms",transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",lineHeight:this.itemHeight+"px"}},optionStyle:function(){return{height:this.itemHeight+"px"}}},methods:{onTouchStart:function(t){this.startY=t.touches[0].clientY,this.startOffset=this.offset,this.duration=0},onTouchMove:function(t){var n=t.touches[0].clientY-this.startY;this.offset=Object(s["f"])(this.startOffset+n,-this.count*this.itemHeight,this.itemHeight)},onTouchEnd:function(){if(this.offset!==this.startOffset){this.duration=u;var t=Object(s["f"])(Math.round(-this.offset/this.itemHeight),0,this.count-1);this.setIndex(t,!0)}},adjustIndex:function(t){t=Object(s["f"])(t,0,this.count);for(var n=t;n<this.count;n++)if(!this.isDisabled(this.options[n]))return n;for(var e=t-1;e>=0;e--)if(!this.isDisabled(this.options[e]))return e},isDisabled:function(t){return Object(s["d"])(t)&&t.disabled},getOptionText:function(t){return Object(s["d"])(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,n){t=this.adjustIndex(t)||0,this.offset=-t*this.itemHeight,t!==this.currentIndex&&(this.currentIndex=t,n&&this.$emit("change",t))},setValue:function(t){for(var n=this.options,e=0;e<n.length;e++)if(this.getOptionText(n[e])===t)return this.setIndex(e)},getValue:function(){return this.options[this.currentIndex]}}}),c={props:{title:String,loading:Boolean,showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,visibleItemCount:{type:Number,default:5},itemHeight:{type:Number,default:44}}};n["a"]=Object(i["a"])({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:t.b()},[t.showToolbar?e("div",{staticClass:"van-hairline--top-bottom",class:t.b("toolbar")},[t._t("default",[e("div",{class:t.b("cancel"),on:{click:function(n){t.emit("cancel")}}},[t._v("\n "+t._s(t.cancelButtonText||t.$t("cancel"))+"\n ")]),t.title?e("div",{staticClass:"van-ellipsis",class:t.b("title"),domProps:{textContent:t._s(t.title)}}):t._e(),e("div",{class:t.b("confirm"),on:{click:function(n){t.emit("confirm")}}},[t._v("\n "+t._s(t.confirmButtonText||t.$t("confirm"))+"\n ")])])],2):t._e(),t.loading?e("div",{class:t.b("loading")},[e("loading")],1):t._e(),e("div",{class:t.b("columns"),style:t.columnsStyle,on:{touchmove:function(t){t.preventDefault()}}},[t._l(t.simple?[t.columns]:t.columns,function(n,i){return e("picker-column",{key:i,attrs:{"value-key":t.valueKey,"initial-options":t.simple?n:n.values,"class-name":n.className,"default-index":n.defaultIndex,"item-height":t.itemHeight,"visible-item-count":t.visibleItemCount},on:{change:function(n){t.onChange(i)}}})}),e("div",{staticClass:"van-hairline--top-bottom",class:t.b("frame"),style:t.frameStyle})],2)])},name:"picker",mixins:[c],components:{PickerColumn:a},props:{columns:Array,valueKey:{type:String,default:"text"}},data:function(){return{children:[]}},computed:{frameStyle:function(){return{height:this.itemHeight+"px"}},columnsStyle:function(){return{height:this.itemHeight*this.visibleItemCount+"px"}},simple:function(){return this.columns.length&&!this.columns[0].values}},watch:{columns:function(){this.setColumns()}},methods:{setColumns:function(){var t=this,n=this.simple?[{values:this.columns}]:this.columns;n.forEach(function(n,e){t.setColumnValues(e,o(n.values))})},emit:function(t){this.simple?this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0)):this.$emit(t,this.getValues(),this.getIndexes())},onChange:function(t){this.simple?this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0)):this.$emit("change",this,this.getValues(),t)},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var n=this.getColumn(t);return n&&n.getValue()},setColumnValue:function(t,n){var e=this.getColumn(t);e&&e.setValue(n)},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,n){var e=this.getColumn(t);e&&e.setIndex(n)},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,n){var e=this.children[t];e&&JSON.stringify(e.options)!==JSON.stringify(n)&&(e.options=n,e.setIndex(0))},getValues:function(){return this.children.map(function(t){return t.getValue()})},setValues:function(t){var n=this;t.forEach(function(t,e){n.setColumnValue(e,t)})},getIndexes:function(){return this.children.map(function(t){return t.currentIndex})},setIndexes:function(t){var n=this;t.forEach(function(t,e){n.setColumnIndex(e,t)})}}})}}]);
- //# sourceMappingURL=chunk-70007df4.d8419dc0.js.map
|