youzan / vant

A lightweight, customizable Vue UI library for mobile web apps.
https://vant.pro/vant/
MIT License
23.33k stars 9.49k forks source link

van-filed 组件的 button slot 无效。 #826

Closed highmore closed 6 years ago

highmore commented 6 years ago

微信H5页面中采用CDN模式引用VANT,在van-filed组件中插入一个尾部按钮,代码如下: <van-field v-model.trim="smscode" type="tel" label="验证码" required> <van-button slot="button" type="primary" size="small" @click="getVerificationCode">获取验证码</van-button> </van-field> 但页面中没有显示预期的“获取验证码”按钮。。。

cookfront commented 6 years ago

请贴一下完整的代码,这样无法定位问题

highmore commented 6 years ago

代码:<van-field v-model.trim="smscode" type="tel" label="验证码" required> <van-button slot="button" type="primary" size="small" @click="getVerificationCode">获取验证码</van-button> </van-field>

cookfront commented 6 years ago

我这边试了下展示很正常,你那个无效怎么无效,截图能贴下么

highmore commented 6 years ago

谢谢答复,下面是完整代码截图及界面图: http://mzyellow.com/upload/001.jpg http://mzyellow.com/upload/002.jpg 另外把slot="button"换成solt="icon"可以正常显示。。。

cookfront commented 6 years ago

还是没能复现 方便的话提供一个在线的demo。类似这种:https://jsfiddle.net/dfarLdko/1/

highmore commented 6 years ago

晕死,找到原因了,我下载到本地的vant.min.js文件不对。(但也是在官网上下载的)我这里把文件贴出来你看看。用这个vant文件就无法显示button !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("vant",["vue"],e):"object"==typeof exports?exports.vant=e(require("vue")):t.vant=e(t.Vue)}(this,function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=62)}([function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"e",function(){return u}),n.d(e,"d",function(){return r}),n.d(e,"f",function(){return o}),n.d(e,"a",function(){return d}),n.d(e,"c",function(){return h});var i=n(29),s=n.n(i),a=n(2),o=n.n(a).a.prototype.$isServer;function r(t){return null!=t}function u(t){var e=void 0===t?"undefined":s()(t);return null!==t&&("object"===e||"function"===e)}function l(t,e){var n=e.split("."),i=t;return n.forEach(function(t){i=r(i[t])?i[t]:""}),i}var c=/-(\w)/g;function d(t){return t.replace(c,function(t,e){return e.toUpperCase()})}function h(){return!o&&/android/.test(navigator.userAgent.toLowerCase())}},function(t,e,n){"use strict";e.__esModule=!0;var i,s=n(3),a=(i=s)&&i.__esModule?i:{default:i};e.default=a.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(e,n){e.exports=t},function(t,e,n){t.exports={default:n(107),__esModule:!0}},function(t,e,n){var i=n(36)("wks"),s=n(25),a=n(6).Symbol,o="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=o&&a[t]||(o?a:s)("Symbol."+t))}).store=i},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports={default:n(83),__esModule:!0}},function(t,e,n){var i=n(12);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var i=n(6),s=n(5),a=n(28),o=n(14),r=function(t,e,n){var u,l,c,d=t&r.F,h=t&r.G,f=t&r.S,p=t&r.P,v=t&r.B,m=t&r.W,g=h?s:s[e]||(s[e]={}),_=g.prototype,b=h?i:f?i[e]:(i[e]||{}).prototype;for(u in h&&(n=e),n)(l=!d&&b&&void 0!==b[u])&&u in g||(c=l?b[u]:n[u],g[u]=h&&"function"!=typeof b[u]?n[u]:v&&l?a(c,i):m&&b[u]==c?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):p&&"function"==typeof c?a(Function.call,c):c,p&&((g.virtual||(g.virtual={}))[u]=c,t&r.R&&_&&!_[u]&&o(_,u,c)))};r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var i=n(8),s=n(59),a=n(40),o=Object.defineProperty;e.f=n(11)?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),s)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(13),s=n(26);t.exports=n(11)?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports={default:n(80),__esModule:!0}},function(t,e,n){var i=n(57),s=n(39);t.exports=function(t){return i(s(t))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return u}),n.d(e,"a",function(){return l});var i=n(0),s=Date.now();var a=i.f?t:window,o=a.requestAnimationFrame||a.webkitRequestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-s)),i=setTimeout(t,n);return s=e+n,i},r=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.clearTimeout;function u(t){return o.call(a,t)}function l(t){r.call(a,t)}}).call(this,n(65))},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(58),s=n(35);t.exports=Object.keys||function(t){return i(t,s)}},function(t,e,n){var i=n(13).f,s=n(10),a=n(4)("toStringTag");t.exports=function(t,e,n){t&&!s(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e){t.exports=!0},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(27);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,s){return t.call(e,n,i,s)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(102)),s=o(n(93)),a="function"==typeof s.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};function o(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof s.default&&"symbol"===a(i.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e,n){"use strict";var i=n(27);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}(t)}},function(t,e,n){var i=n(6),s=n(5),a=n(23),o=n(32),r=n(13).f;t.exports=function(t){var e=s.Symbol||(s.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||r(e,t,{value:o.f(t)})}},function(t,e,n){e.f=n(4)},function(t,e,n){var i=n(39);t.exports=function(t){return Object(i(t))}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(6),s=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return s[t]||(s[t]={})}},function(t,e,n){var i=n(36)("keys"),s=n(25);t.exports=function(t){return i[t]||(i[t]=s(t))}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var i=n(12);t.exports=function(t,e){if(!i(t))return t;var n,s;if(e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;if("function"==typeof(n=t.valueOf)&&!i(s=n.call(t)))return s;if(!e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(12),s=n(6).document,a=i(s)&&i(s.createElement);t.exports=function(t){return a?s.createElement(t):{}}},function(t,e,n){t.exports={default:n(66),__esModule:!0}},function(t,e,n){var i=n(8),s=n(12),a=n(30);t.exports=function(t,e){if(i(t),s(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i,s,a,o=n(28),r=n(73),u=n(51),l=n(41),c=n(6),d=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,v=c.Dispatch,m=0,g={},_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){_.call(t.data)};h&&f||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++m]=function(){r("function"==typeof t?t:Function(t),e)},i(m),m},f=function(t){delete g[t]},"process"==n(20)(d)?i=function(t){d.nextTick(o(_,t,1))}:v&&v.now?i=function(t){v.now(o(_,t,1))}:p?(a=(s=new p).port2,s.port1.onmessage=b,i=o(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):i="onreadystatechange"in l("script")?function(t){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),_.call(t)}}:function(t){setTimeout(o(_,t,1),0)}),t.exports={set:h,clear:f}},function(t,e,n){var i=n(8),s=n(27),a=n(4)("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||null==(n=i(o)[a])?e:s(n)}},function(t,e,n){var i=n(20),s=n(4)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),s))?n:a?i(e):"Object"==(o=i(e))&&"function"==typeof e.callee?"Arguments":o}},function(t,e){},function(t,e,n){var i=n(58),s=n(35).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,s)}},function(t,e,n){n(96);for(var i=n(6),s=n(14),a=n(19),o=n(4)("toStringTag"),r="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<r.length;u++){var l=r[u],c=i[l],d=c&&c.prototype;d&&!d[o]&&s(d,o,l),a[l]=a.Array}},function(t,e,n){var i=n(6).document;t.exports=i&&i.documentElement},function(t,e,n){var i=n(8),s=n(98),a=n(35),o=n(37)("IE_PROTO"),r=function(){},u=function(){var t,e=n(41)("iframe"),i=a.length;for(e.style.display="none",n(51).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u.prototype[a[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(r.prototype=i(t),n=new r,r.prototype=null,n[o]=t):n=u(),void 0===e?n:s(n,e)}},function(t,e,n){t.exports=n(14)},function(t,e,n){"use strict";var i=n(23),s=n(9),a=n(53),o=n(14),r=n(10),u=n(19),l=n(99),c=n(22),d=n(97),h=n(4)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,v,m,g,_){l(n,e,v);var b,y,k,x=function(t){if(!f&&t in $)return $[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",S="values"==m,w=!1,$=t.prototype,T=$[h]||$["@@iterator"]||m&&$[m],E=!f&&T||x(m),B=m?S?x("entries"):E:void 0,I="Array"==e&&$.entries||T;if(I&&(k=d(I.call(new t)))!==Object.prototype&&k.next&&(c(k,C,!0),i||r(k,h)||o(k,h,p)),S&&T&&"values"!==T.name&&(w=!0,E=function(){return T.call(this)}),i&&!_||!f&&!w&&$[h]||o($,h,E),u[e]=E,u[C]=p,m)if(b={values:S?E:x("values"),keys:g?E:x("keys"),entries:B},_)for(y in b)y in $||a($,y,b[y]);else s(s.P+s.F*(f||w),e,b);return b}},function(t,e,n){"use strict";var i=n(100)(!0);n(54)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var i=n(38),s=Math.min;t.exports=function(t){return t>0?s(i(t),9007199254740991):0}},function(t,e,n){var i=n(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(10),s=n(16),a=n(104)(!1),o=n(37)("IE_PROTO");t.exports=function(t,e){var n,r=s(t),u=0,l=[];for(n in r)n!=o&&i(r,n)&&l.push(n);for(;e.length>u;)i(r,n=e[u++])&&(~a(l,n)||l.push(n));return l}},function(t,e,n){t.exports=!n(11)&&!n(17)(function(){return 7!=Object.defineProperty(n(41)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){t.exports=function(){"use strict";function t(t){t=t||{};var i=arguments.length,s=0;if(1===i)return t;for(;++s<i;){var a=arguments[s];d(t)&&(t=a),n(a)&&e(t,a)}return t}function e(e,s){for(var a in h(e,s),s)if("__proto__"!==a&&i(s,a)){var o=s[a];n(o)?("undefined"===p(e[a])&&"function"===p(o)&&(e[a]=o),e[a]=t(e[a]||{},o)):e[a]=o}return e}function n(t){return"object"===p(t)||"function"===p(t)}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function a(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),i=[],s=t.parentNode,a=s.offsetWidth*e,o=void 0,r=void 0,u=void 0;(n=n.trim().split(",")).map(function(t){t=t.trim(),-1===(o=t.lastIndexOf(" "))?(r=t,u=999998):(r=t.substr(0,o),u=parseInt(t.substr(o+1,t.length-o-2),10)),i.push([u,r])}),i.sort(function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0});for(var l="",c=void 0,d=i.length,h=0;h<d;h++)if((c=i[h])[0]>=a){l=c[1];break}return l}}function o(t,e){for(var n=void 0,i=0,s=t.length;i<s;i++)if(e(t[i])){n=t[i];break}return n}function r(){}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),d=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":u(t))},h=function(t,e){if(null==t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var n=Object.prototype.propertyIsEnumerable,i=Object(t),s=arguments.length,a=0;++a<s;)for(var o=Object(arguments[a]),r=Object.getOwnPropertySymbols(o),u=0;u<r.length;u++){var l=r[u];n.call(o,l)&&(i[l]=o[l])}return i},f=Object.prototype.toString,p=function(t){var e=void 0===t?"undefined":u(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=f.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"},v=t,m="undefined"!=typeof window,g=m&&"IntersectionObserver"in window,_={event:"event",observer:"observer"},b=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}if(m)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return m&&window.devicePixelRatio||t},k=function(){if(m){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),x={on:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];k?t.addEventListener(e,n,{capture:i,passive:!0}):t.addEventListener(e,n,i)},off:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,i)}},C=function(t,e,n){var i=new Image;i.src=t.src,i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},S=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},w=function(t){return S(t,"overflow")+S(t,"overflow-y")+S(t,"overflow-x")},$={},T=function(){function t(e){var n=e.el,i=e.src,s=e.error,a=e.loading,o=e.bindType,r=e.$parent,u=e.options,c=e.elRenderer;l(this,t),this.el=n,this.src=i,this.error=s,this.loading=a,this.bindType=o,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=u,this.rect=null,this.$parent=r,this.elRenderer=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return c(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,i=t.error,s=this.src;this.src=e,this.loading=n,this.error=i,this.filter(),s!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map(function(e){t.options.filter[e](t,t.options)})}},{key:"renderLoading",value:function(t){var e=this;C({src:this.loading},function(n){e.render("loading",!1),t()},function(){t(),e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")})}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||$[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading(function(){t.attempt++,t.record("loadStart"),C({src:t.src},function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),$[t.src]=1,e()},function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)})})}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),E="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",B=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],I={rootMargin:"0px",threshold:0},O=function(t){return function(){function e(t){var n=t.preLoad,i=t.error,s=t.throttleWait,a=t.preLoadTop,o=t.dispatchEvent,r=t.loading,u=t.attempt,c=t.silent,d=void 0===c||c,h=t.scale,f=t.listenEvents,p=(t.hasbind,t.filter),v=t.adapter,g=t.observer,b=t.observerOptions;l(this,e),this.version="1.2.2",this.mode=_.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!o,throttleWait:s||200,preLoad:n||1.3,preLoadTop:a||0,error:i||E,loading:r||E,attempt:u||3,scale:h||y(h),ListenEvents:f||B,hasbind:!1,supportWebp:function(){if(!m)return!1;var t=!0,e=document;try{var n=e.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",e.body.appendChild(n),t=!n.offsetWidth,e.body.removeChild(n)}catch(e){t=!1}return t}(),filter:p||{},adapter:v||{},observer:!!g,observerOptions:b||I},this._initEvent(),this.lazyLoadHandler=function(t,e){var n=null,i=0;return function(){if(!n){var s=Date.now()-i,a=this,o=arguments,r=function(){i=Date.now(),n=!1,t.apply(a,o)};s>=e?r():n=setTimeout(r,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?_.observer:_.event)}return c(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map(function(e){t.push(e.performance())}),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),m&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,n,i){var s=this;if(function(t,e){for(var n=!1,i=0,s=t.length;i<s;i++)if(e(t[i])){n=!0;break}return n}(this.ListenerQueue,function(t){return t.el===e}))return this.update(e,n),t.nextTick(this.lazyLoadHandler);var o=this._valueFormatter(n.value),r=o.src,u=o.loading,l=o.error;t.nextTick(function(){r=a(e,s.options.scale)||r,s._observer&&s._observer.observe(e);var o=Object.keys(n.modifiers)[0],c=void 0;o&&(c=(c=i.context.$refs[o])?c.$el||c:document.getElementById(o)),c||(c=function(t){if(m){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(w(e)))return e;e=e.parentNode}return window}}(e));var d=new T({bindType:n.arg,$parent:c,el:e,loading:u,error:l,src:r,elRenderer:s._elRenderer.bind(s),options:s.options});s.ListenerQueue.push(d),m&&(s._addListenerTarget(window),s._addListenerTarget(c)),s.lazyLoadHandler(),t.nextTick(function(){return s.lazyLoadHandler()})})}},{key:"update",value:function(e,n){var i=this,s=this._valueFormatter(n.value),r=s.src,u=s.loading,l=s.error;r=a(e,this.options.scale)||r;var c=o(this.ListenerQueue,function(t){return t.el===e});c&&c.update({src:r,loading:u,error:l}),this._observer&&this._observer.observe(e),this.lazyLoadHandler(),t.nextTick(function(){return i.lazyLoadHandler()})}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=o(this.ListenerQueue,function(e){return e.el===t});e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),s(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(s(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;g||t!==_.observer||(t=_.event),this.mode=t,t===_.event?(this._observer&&(this.ListenerQueue.forEach(function(t){e._observer.unobserve(t.el)}),this._observer=null),this.TargetQueue.forEach(function(t){e._initListen(t.el,!0)})):(this.TargetQueue.forEach(function(t){e._initListen(t.el,!1)}),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=o(this.TargetQueue,function(e){return e.el===t});return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===_.event&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach(function(n,i){n.el===t&&(--n.childrenCount||(e._initListen(n.el,!1),e.TargetQueue.splice(i,1),n=null))})}},{key:"_initListen",value:function(t,e){var n=this;this.options.ListenEvents.forEach(function(i){return x[e?"on":"off"](t,i,n.lazyLoadHandler)})}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,n){t.Event.listeners[e].push(n)},this.$once=function(e,n){var i=t;t.$on(e,function t(){i.$off(e,t),n.apply(i,arguments)})},this.$off=function(e,n){n?s(t.Event.listeners[e],n):t.Event.listeners[e]=[]},this.$emit=function(e,n,i){t.Event.listeners[e].forEach(function(t){return t(n,i)})}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach(function(e,n){e.state.loaded||e.checkInView()&&e.load(function(){!e.error&&e.loaded&&t.ListenerQueue.splice(n,1)})})}},{key:"_initIntersectionObserver",value:function(){var t=this;g&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach(function(e){t._observer.observe(e.el)}))}},{key:"_observerHandler",value:function(t,e){var n=this;t.forEach(function(t){t.isIntersecting&&n.ListenerQueue.forEach(function(e){if(e.el===t.target){if(e.state.loaded)return n._observer.unobserve(e.el);e.load()}})})}},{key:"_elRenderer",value:function(t,e,n){if(t.el){var i=t.el,s=t.bindType,a=void 0;switch(e){case"loading":a=t.loading;break;case"error":a=t.error;break;default:a=t.src}if(s?i.style[s]="url("+a+")":i.getAttribute("src")!==a&&i.setAttribute("src",a),i.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var o=new b(e,{detail:t});i.dispatchEvent(o)}}}},{key:"_valueFormatter",value:function(t){var e=t,n=this.options.loading,i=this.options.error;return function(t){return null!==t&&"object"===(void 0===t?"undefined":u(t))}(t)&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),e=t.src,n=t.loading||this.options.loading,i=t.error||this.options.error),{src:e,loading:n,error:i}}}]),e}()},N=function(){function t(e){var n=e.lazy;l(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return c(t,[{key:"bind",value:function(t,e,n){var i=new A({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(i)}},{key:"update",value:function(t,e,n){var i=o(this._queue,function(e){return e.el===t});i&&i.update({el:t,binding:e,vnode:n})}},{key:"unbind",value:function(t,e,n){var i=o(this._queue,function(e){return e.el===t});i&&(i.clear(),s(this._queue,i))}}]),t}(),F={selector:"img"},A=function(){function t(e){var n=e.el,i=e.binding,s=e.vnode,a=e.lazy;l(this,t),this.el=null,this.vnode=s,this.binding=i,this.options={},this.lazy=a,this._queue=[],this.update({el:n,binding:i})}return c(t,[{key:"update",value:function(t){var e=this,n=t.el,i=t.binding;this.el=n,this.options=v({},F,i.value),this.getImgs().forEach(function(t){e.lazy.add(t,v({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)})}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,n=[],i=0;i<e;i++)n.push(t[i]);return n}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach(function(e){return t.lazy.remove(e)}),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=O(t),i=new n(e),s=new N({lazy:i}),a="2"===t.version.split(".")[0];t.prototype.$Lazyload=i,e.lazyComponent&&t.component("lazy-component",function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),m&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}}(i)),a?(t.directive("lazy",{bind:i.add.bind(i),update:i.update.bind(i),componentUpdated:i.lazyLoadHandler.bind(i),unbind:i.remove.bind(i)}),t.directive("lazy-container",{bind:s.bind.bind(s),update:s.update.bind(s),unbind:s.unbind.bind(s)})):(t.directive("lazy",{bind:i.lazyLoadHandler.bind(i),update:function(t,e){v(this.vm.$refs,this.vm.$els),i.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){s.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){s.unbind(this.el)}}))}}}()},function(t,e,n){"use strict";n.r(e);var i=n(3),s=n.n(i),a=n(2),o=n.n(a),r=n(0),u=Object.prototype.hasOwnProperty;function l(t,e,n){var i=e[n];!Object(r.d)(i)||u.call(t,n)&&!Object(r.d)(t[n])||(u.call(t,n)&&Object(r.e)(i)?t[n]=c(Object(t[n]),e[n]):t[n]=i)}function c(t,e){for(var n in e)u.call(e,n)&&l(t,e,n);return t}var d={name:"名字",tel:"联系电话",save:"保存",confirm:"确认",cancel:"取消",complete:"完成",contact:"联系人",province:"选择省份",city:"选择城市",county:"选择地区",loadingTip:"加载中...",nameEmpty:"请填写名字",nameOverlimit:"名字过长,请重新输入",telInvalid:"请填写正确的手机号码或电话号码",telPlaceholder:"手机或固定电话",vanContactCard:{addText:"添加订单联系人信息"},vanContactList:{addText:"新建联系人"},vanContactEdit:{delete:"删除联系人",confirmDelete:"确定要删除这个联系人么"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCouponCell:{title:"优惠券码",tips:"使用优惠",reduce:"省",count:function(t){return"您有 "+t+" 个可用优惠"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠",disabled:"不可用优惠",placeholder:"请输入优惠码"},vanCouponItem:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanAddressEdit:{area:"收件地区",addressText:"收货",areaEmpty:"请选择收件地区",addressOverlimit:"详细地址不能超过200个字符",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",deleteAddress:"删除收货地址",confirmDelete:"确定要删除这个收货地址么",label:{name:"收货人",postal:"邮政编码"},placeholder:{postal:"邮政编码(选填)"}},vanAddressEditDetail:{label:"详细地址",placeholder:"如街道、楼层、门牌号等"},vanAddressList:{address:"收货地址",add:"新增收货地址"},vanSku:{unavailable:"商品已经无法购买啦",spec:"请选择完整的规格",least:"至少选择一件",quota:function(t){return"限购"+t+"件"},inventory:"库存不足",purchase:function(t){return"您已购买"+t+"件"}},vanSkuActions:{cart:"加入购物车",buy:"立即购买"},vanSkuMessages:{fill:"请填写",upload:"请上传",number:"请填写正确的数字格式留言",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码",overlimit:"写的太多了,不要超过200字",onePic:"仅限一张",placeholder:{id_no:"输入18位身份证号码",text:"输入文本",tel:"输入数字",email:"输入邮箱",date:"点击选择日期",time:"点击选择时间",textarea:"点击填写段落文本"}},vanSkuImgUploader:{or:"或",uploading:"正在上传...",rephoto:"重拍",photo:"拍照",reselect:"重新选择照片",select:"选择照片",maxSize:function(t){return"最大可上传图片为"+t+"MB,请尝试压缩图片尺寸"}},vanSkuStepper:{title:"购买数量",remain:function(t){return"剩余"+t+"件"},quota:function(t){return"每人限购"+t+"件"}}},h=o.a.prototype,f={install:function(){var t;h.$vantLang||(o.a.util.defineReactive(h,"$vantLang","zh-CN"),o.a.util.defineReactive(h,"$vantMessages",((t={})["zh-CN"]=d,t)))},use:function(t,e){var n;h.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(h.$vantMessages,t)}};f.install();var p=f,v={computed:{$t:function(){var t=this.$options.name,e=t?Object(r.a)(t)+".":"",n=this.$vantMessages[this.$vantLang];return function(t){for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];var o=Object(r.b)(n,e+t)||Object(r.b)(n,t);return"function"==typeof o?o.apply(null,s):o}}}},m=function(t){t.component(this.name,this)},g=function(t){return t.name="van-"+t.name,t.install=t.install||m,t.mixins=t.mixins||[],t.mixins.push(v),t};function _(t,e,n,i,s,a,o,r){var u=typeof(t=t||{}).default;"object"!==u&&"function"!==u||(t=t.default);var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId=a),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):s&&(l=r?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}var b=_(g({name:"icon",props:{name:String,info:String}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("i",t._g({staticClass:"van-icon",class:"van-icon-"+t.name},t.$listeners),[t._t("default"),t.info?n("div",{staticClass:"van-icon__info"},[t._v(t._s(t.info))]):t._e()],2)},[],!1,null,null,null).exports,y=_(g({name:"loading",props:{size:String,type:{type:String,default:"circular"},color:{type:String,default:"black"}},computed:{style:function(){return this.size?{width:this.size,height:this.size}:{}}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-loading",class:["van-loading--"+t.type,"van-loading--"+t.color],style:t.style},[n("span",{staticClass:"van-loading__spinner",class:"van-loading__spinner--"+t.type},[t._l("spinner"===t.type?12:0,function(t){return n("i")}),"circular"===t.type?n("svg",{staticClass:"van-loading__circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]):t._e()],2)])},[],!1,null,null,null).exports,k={props:{url:String,replace:Boolean,to:[String,Object]},methods:{routerLink:function(){var t=this.to,e=this.url,n=this.$router,i=this.replace;t&&n?n[i?"replace":"push"](t):e&&(i?location.replace(e):location.href=e)}}},x=_(g({name:"cell",components:{Icon:b},mixins:[k],props:{icon:String,title:String,label:String,isLink:Boolean,required:Boolean,clickable:Boolean,value:[String,Number],border:{type:Boolean,default:!0}},methods:{onClick:function(){this.$emit("click"),this.routerLink()}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-cell",class:{"van-hairline":t.border,"van-cell--required":t.required,"van-cell--clickable":t.isLink||t.clickable},on:{click:t.onClick}},[t.title||t.icon||t.$slots.title||t.$slots.icon?n("div",{staticClass:"van-cell__title"},[t._t("icon",[t.icon?n("icon",{attrs:{name:t.icon}}):t._e()]),t._t("title",[n("span",{staticClass:"van-cell__text",domProps:{textContent:t._s(t.title)}}),t.label?n("span",{staticClass:"van-cell__label",domProps:{textContent:t._s(t.label)}}):t._e()])],2):t._e(),t.value||t.$slots.default?n("div",{staticClass:"van-cell__value",class:{"van-cell__value--link":t.isLink,"van-cell__value--alone":!t.$slots.title&&!t.title&&!t.label}},[t._t("default",[n("span",{domProps:{textContent:t._s(t.value)}})])],2):t._e(),t._t("right-icon",[t.isLink?n("icon",{staticClass:"van-cell__right-icon",attrs:{name:"arrow"}}):t._e()]),t._t("extra")],2)},[],!1,null,null,null).exports,C=_(g({name:"cell-group",props:{border:{type:Boolean,default:!0}}}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-cell-group",class:{"van-hairline--top-bottom":this.border}},[this._t("default")],2)},[],!1,null,null,null).exports,S=function(t){return t.components=s()(t.components||{},{Icon:b,Loading:y,Cell:x,CellGroup:C}),g(t)},w=n(1),$=n.n(w),T=_({name:"modal",props:{visible:Boolean,zIndex:Number,className:String,customStyle:Object},computed:{style:function(){return $()({zIndex:this.zIndex},this.customStyle)}}},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"van-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"van-modal",class:t.className,style:t.style,on:{touchmove:function(t){t.preventDefault(),t.stopPropagation()},click:function(e){t.$emit("click",e)}}})])},[],!1,null,null,null).exports,E={id:1,zIndex:2e3,stack:[],plusKey:function(t){return this[t]++},get top(){return this.stack[this.stack.length-1]}},B={className:"",customStyle:{}},I={open:function(t,e){if(!E.stack.some(function(e){return e.id===t._popupId})){var n=t.$el,i=n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode:document.body;E.stack.push({vm:t,config:e,targetNode:i}),this.update()}},close:function(t){var e=E.stack;e.length&&(E.top.vm._popupId===t?(e.pop(),this.update()):E.stack=e.filter(function(e){return e.vm._popupId!==t}))},update:function(){var t=E.modal;if(t||((t=new(o.a.extend(T))({el:document.createElement("div")})).$on("click",this.onClick),E.modal=t),t.$el.parentNode&&(t.visible=!1),E.top){var e=E.top,n=e.targetNode,i=e.config;n.appendChild(t.$el),s()(t,$()({},B,i,{visible:!0}))}},onClick:function(){if(E.top){var t=E.top.vm;t.$emit("click-overlay"),t.closeOnClickOverlay&&t.close()}}},O={debounce:function(t,e,n){var i=void 0,s=void 0,a=void 0,o=void 0,r=void 0;return function(){a=this,s=arguments,o=new Date;return i||(i=setTimeout(function n(){var u=new Date-o;u<e?i=setTimeout(n,e-u):(i=null,r=t.apply(a,s))},e)),r}},getScrollEventTarget:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var i=this.getComputedStyle(n).overflowY;if("scroll"===i||"auto"===i)return n;n=n.parentNode}return e},isAttached:function(t){for(var e=t.parentNode;e;){if("HTML"===e.tagName)return!0;if(11===e.nodeType)return!1;e=e.parentNode}return!1},getScrollTop:function(t){return"scrollTop"in t?t.scrollTop:t.pageYOffset},setScrollTop:function(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)},getElementTop:function(t){return(t===window?0:t.getBoundingClientRect().top)+this.getScrollTop(window)},getVisibleHeight:function(t){return t===window?t.innerHeight:t.getBoundingClientRect().height},getComputedStyle:!r.f&&document.defaultView.getComputedStyle.bind(document.defaultView)},N=!1;if(!r.f)try{var F={};Object.defineProperty(F,"passive",{get:function(){N=!0}}),window.addEventListener("test-passive",null,F)}catch(t){}function A(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!r.f&&t.addEventListener(e,n,!!N&&{capture:!1,passive:i})}function M(t,e,n){!r.f&&t.removeEventListener(e,n)}var L={props:{value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[String,Number],getContainer:Function,lockScroll:{type:Boolean,default:!0}},watch:{value:function(t){this[t?"open":"close"]()},getContainer:function(){this.move()},overlay:function(){this.renderOverlay()}},created:function(){this._popupId="popup-"+E.plusKey("id"),this.pos={x:0,y:0}},mounted:function(){this.getContainer&&this.move(),this.value&&this.open()},beforeDestroy:function(){this.close()},methods:{open:function(){this.$isServer||(void 0!==this.zIndex&&(E.zIndex=this.zIndex),this.lockScroll&&(document.body.classList.add("van-overflow-hidden"),A(document,"touchstart",this.onTouchStart),A(document,"touchmove",this.onTouchMove)),this.renderOverlay(),this.$emit("input",!0))},close:function(){this.lockScroll&&(document.body.classList.remove("van-overflow-hidden"),M(document,"touchstart",this.onTouchStart),M(document,"touchmove",this.onTouchMove)),I.close(this._popupId),this.$emit("input",!1)},move:function(){this.getContainer?this.getContainer().appendChild(this.$el):this.$parent&&this.$parent.$el.appendChild(this.$el)},onTouchStart:function(t){this.pos={x:t.touches[0].clientX,y:t.touches[0].clientY}},onTouchMove:function(t){var e=this.pos,n=t.touches[0].clientX-e.x,i=t.touches[0].clientY-e.y,s=i>0?"10":"01",a=O.getScrollEventTarget(t.target,this.$el),o=a.scrollHeight,r=a.offsetHeight,u=a.scrollTop,l=Math.abs(n)<Math.abs(i),c="11";0===u?c=r>=o?"00":"01":u+r>=o&&(c="10"),"11"===c||!l||parseInt(c,2)&parseInt(s,2)||(t.preventDefault(),t.stopPropagation())},renderOverlay:function(){this.overlay?I.open(this,{zIndex:E.plusKey("zIndex"),className:this.overlayClass,customStyle:this.overlayStyle}):I.close(this._popupId),this.$el.style.zIndex=E.plusKey("zIndex")}}},D=_(S({name:"actionsheet",mixins:[L],props:{value:Boolean,title:String,cancelText:String,actions:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},methods:{onClickItem:function(t){"function"==typeof t.callback&&t.callback(t)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"van-actionsheet-float"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"van-actionsheet",class:{"van-actionsheet--withtitle":t.title}},[t.title?n("div",{staticClass:"van-actionsheet__header van-hairline--top-bottom"},[n("div",{domProps:{textContent:t._s(t.title)}}),n("icon",{attrs:{name:"close"},on:{click:function(e){e.stopPropagation(),t.$emit("input",!1)}}})],1):t._e(),t.title?t._e():n("ul",{staticClass:"van-actionsheet__list van-hairline--bottom"},t._l(t.actions,function(e,i){return n("li",{key:i,staticClass:"van-actionsheet__item van-hairline--top",class:[e.className,{"van-actionsheet__item--loading":e.loading}],on:{click:function(n){n.stopPropagation(),t.onClickItem(e)}}},[e.loading?n("loading",{staticClass:"van-actionsheet__loading",attrs:{size:"20px"}}):[n("span",{staticClass:"van-actionsheet__name"},[t._v(t._s(e.name))]),e.subname?n("span",{staticClass:"van-actionsheet__subname"},[t._v(t._s(e.subname))]):t._e()]],2)})),t.cancelText?n("div",{staticClass:"van-actionsheet__item van-actionsheet__cancel van-hairline--top",domProps:{textContent:t._s(t.cancelText)},on:{click:function(e){e.stopPropagation(),t.$emit("input",!1)}}}):n("div",{staticClass:"van-actionsheet__content"},[t._t("default")],2)])])},[],!1,null,null,null).exports,P=n(7),j=n.n(P),V=_(S({name:"field",inheritAttrs:!1,props:{type:{type:String,default:"text"},value:{},icon:String,label:String,error:Boolean,border:Boolean,required:Boolean,autosize:[Boolean,Object],errorMessage:String,onIconClick:{type:Function,default:function(){}}},watch:{value:function(){this.$nextTick(this.adjustSize)}},mounted:function(){this.$nextTick(this.adjustSize)},computed:{hasIcon:function(){return this.$slots.icon||this.icon},listeners:function(){return $()({},this.$listeners,{input:this.onInput,keypress:this.onKeypress})}},methods:{onInput:function(t){this.$emit("input",t.target.value)},onClickIcon:function(){this.$emit("click-icon"),this.onIconClick()},onKeypress:function(t){if("number"===this.type){var e=t.keyCode,n=-1===this.value.indexOf(".");e>=48&&e<=57||46===e&&n||t.preventDefault()}this.$emit("keypress",t)},adjustSize:function(){if("textarea"===this.type&&this.autosize){var t=this.$refs.textarea;if(t){t.style.height="auto";var e=t.scrollHeight;if(Object(r.e)(this.autosize)){var n=this.autosize,i=n.maxHeight,s=n.minHeight;i&&(e=Math.min(e,i)),s&&(e=Math.max(e,s))}t.style.height=e+"px"}}}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("cell",{staticClass:"van-field",class:{"van-field--has-textarea":"textarea"===t.type,"van-field--nolabel":!t.label,"van-field--disabled":t.$attrs.disabled,"van-field--error":t.error,"van-field--border":t.border,"van-field--autosize":t.autosize,"van-field--has-icon":t.hasIcon,"van-hairline--surround":t.border},attrs:{title:t.label,required:t.required}},["textarea"===t.type?n("textarea",t._g(t._b({ref:"textarea",staticClass:"van-field__control",domProps:{value:t.value}},"textarea",t.$attrs,!1),t.listeners)):n("input",t._g(t._b({staticClass:"van-field__control",attrs:{type:t.type},domProps:{value:t.value}},"input",t.$attrs,!1),t.listeners)),t.errorMessage?n("div",{staticClass:"van-field__error-message",domProps:{textContent:t._s(t.errorMessage)}}):t._e(),t.hasIcon?n("div",{directives:[{name:"show",rawName:"v-show",value:t.$slots.icon||t.value,expression:"$slots.icon || value"}],staticClass:"van-field__icon",on:{touchstart:function(e){return e.preventDefault(),t.onClickIcon(e)}}},[t._t("icon",[n("icon",{attrs:{name:t.icon}})])],2):t._e()])},[],!1,null,null,null).exports,z=_(S({name:"button",props:{text:String,block:Boolean,loading:Boolean,disabled:Boolean,nativeType:String,bottomAction:Boolean,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"}},methods:{onClick:function(t){this.loading||this.disabled||this.$emit("click",t)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,{tag:"component",staticClass:"van-button",class:["van-button--"+t.type,"van-button--"+t.size,{"van-button--disabled":t.disabled,"van-button--loading":t.loading,"van-button--block":t.block,"van-button--bottom-action":t.bottomAction}],attrs:{type:t.nativeType,disabled:t.disabled},on:{click:t.onClick}},[t.loading?n("loading",{attrs:{size:"20px",color:"default"===t.type?"black":"white"}}):t._e(),n("span",{staticClass:"van-button__text"},[t._t("default",[t._v(t._s(t.text))])],2)],1)},[],!1,null,null,null).exports,H=_(S({name:"popup",mixins:[L],props:{transition:String,overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:""}},data:function(){return{currentValue:!1,currentTransition:this.transition||(""===this.position?"van-fade":"popup-slide-"+this.position)}}}),function(){var t,e=this.$createElement,n=this._self._c||e;return n("transition",{attrs:{name:this.currentTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:this.value,expression:"value"}],staticClass:"van-popup",class:(t={},t["van-popup--"+this.position]=this.position,t)},[this._t("default")],2)])},[],!1,null,null,null).exports,R=["success","fail","loading"],Y=_(S({name:"toast",mixins:[L],props:{message:[String,Number],type:{type:String,default:"text"},position:{type:String,default:"middle"},lockScroll:{type:Boolean,default:!1}},computed:{displayStyle:function(){return-1!==R.indexOf(this.type)?"default":this.type},hasMessage:function(){return this.message||0===this.message}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"van-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"van-toast",class:["van-toast--"+t.displayStyle,"van-toast--"+t.position]},["text"===t.displayStyle?n("div",[t._v(t._s(t.message))]):t._e(),"html"===t.displayStyle?n("div",{domProps:{innerHTML:t._s(t.message)}}):t._e(),"default"===t.displayStyle?["loading"===t.type?n("loading",{attrs:{color:"white"}}):n("icon",{staticClass:"van-toast__icon",attrs:{name:t.type}}),t.hasMessage?n("div",{staticClass:"van-toast__text"},[t._v(t._s(t.message))]):t._e()]:t._e()],2)])},[],!1,null,null,null).exports,q={type:"text",mask:!1,message:"",value:!0,duration:3e3,position:"middle",forbidClick:!1,overlayStyle:{}},W=function(t){return Object(r.e)(t)?t:{message:t}},G=[],K=!0,X=$()({},q);function U(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){if(!G.length||!K){var t=new(o.a.extend(Y))({el:document.createElement("div")});document.body.appendChild(t.$el),G.push(t)}return G[G.length-1]}();return t=$()({},X,W(t),{clear:function(){e.value=!1}}),s()(e,function(t){return t.overlay=t.mask,t.forbidClick&&!t.overlay&&(t.overlay=!0,t.overlayStyle={background:"transparent"}),t}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}["loading","success","fail"].forEach(function(t){var e;U[t]=(e=t,function(t){return U($()({type:e},W(t)))})}),U.clear=function(t){G.length&&(t?(G.forEach(function(t){t.clear()}),G=[]):K?G[0].clear():G.shift().clear())},U.setDefaultOptions=function(t){s()(X,t)},U.resetDefaultOptions=function(){X=$()({},q)},U.allowMultiple=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];K=!t},U.install=function(){o.a.use(Y)},o.a.prototype.$toast=U;var Q=U,J=n(15),Z=n.n(J),tt=_(S({name:"dialog",components:{VanButton:z},mixins:[L],props:{title:String,message:String,callback:Function,confirmButtonText:String,cancelButtonText:String,showCancelButton:Boolean,showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},methods:{handleAction:function(t){this.$emit("input",!1),this.$emit(t),this.callback&&this.callback(t)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"van-dialog-bounce"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"van-dialog"},[t.title?n("div",{staticClass:"van-dialog__header",domProps:{textContent:t._s(t.title)}}):t._e(),n("div",{staticClass:"van-dialog__content van-hairline"},[t._t("default",[t.message?n("div",{staticClass:"van-dialog__message",class:{"van-dialog__message--withtitle":t.title},domProps:{innerHTML:t._s(t.message)}}):t._e()])],2),n("div",{staticClass:"van-dialog__footer",class:{"is-twobtn":t.showCancelButton&&t.showConfirmButton}},[n("van-button",{directives:[{name:"show",rawName:"v-show",value:t.showCancelButton,expression:"showCancelButton"}],staticClass:"van-dialog__cancel",attrs:{size:"large"},on:{click:function(e){t.handleAction("cancel")}}},[t._v("\n "+t._s(t.cancelButtonText||t.$t("cancel"))+"\n ")]),n("van-button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],staticClass:"van-dialog__confirm",class:{"van-hairline--left":t.showCancelButton&&t.showConfirmButton},attrs:{size:"large"},on:{click:function(e){t.handleAction("confirm")}}},[t._v("\n "+t._s(t.confirmButtonText||t.$t("confirm"))+"\n ")])],1)])])},[],!1,null,null,null).exports,et=void 0,nt=function(t){return new Z.a(function(e,n){et||((et=new(o.a.extend(tt))({el:document.createElement("div")})).$on("input",function(t){et.value=t}),document.body.appendChild(et.$el)),s()(et,$()({resolve:e,reject:n},t))})};nt.defaultOptions={value:!0,title:"",message:"",overlay:!0,lockScroll:!0,confirmButtonText:"",cancelButtonText:"",showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1,callback:function(t){et["confirm"===t?"resolve":"reject"](t)}},nt.alert=function(t){return nt($()({},nt.currentOptions,t))},nt.confirm=function(t){return nt($()({},nt.currentOptions,{showCancelButton:!0},t))},nt.close=function(){et.value=!1},nt.setDefaultOptions=function(t){s()(nt.currentOptions,t)},nt.resetDefaultOptions=function(){nt.currentOptions=$()({},nt.defaultOptions)},nt.install=function(){o.a.use(tt)},o.a.prototype.$dialog=nt,nt.resetDefaultOptions();var it=nt,st=n(42),at=n.n(st),ot=function(t,e){return Math.min(Math.max(t,e[0]),e[1])},rt=_(S({name:"picker-column",props:{valueKey:String,className:String,itemHeight:Number,visibleItemCount:Number,options:{type:Array,default:function(){return[]}},defaultIndex:{type:Number,default:0}},data:function(){return{startY:0,offset:0,duration:0,startOffset:0,currentIndex:this.defaultIndex}},created:function(){this.$parent&&this.$parent.children.push(this)},mounted:function(){this.setIndex(this.currentIndex)},destroyed:function(){this.$parent&&this.$parent.children.splice(this.$parent.children.indexOf(this),1)},watch:{defaultIndex:function(){this.setIndex(this.defaultIndex)},options:function(t,e){at()(t)!==at()(e)&&this.setIndex(0)}},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"}},currentValue:function(){return this.options[this.currentIndex]}},methods:{onTouchStart:function(t){this.startY=t.touches[0].clientY,this.startOffset=this.offset,this.duration=0},onTouchMove:function(t){var e=t.touches[0].clientY-this.startY;this.offset=ot(this.startOffset+e,[-this.count*this.itemHeight,this.itemHeight])},onTouchEnd:function(){if(this.offset!==this.startOffset){this.duration=200;var t=ot(Math.round(-this.offset/this.itemHeight),[0,this.count-1]);this.setIndex(t,!0)}},adjustIndex:function(t){for(var e=t=ot(t,[0,this.count]);e<this.count;e++)if(!this.isDisabled(this.options[e]))return e;for(var n=t-1;n>=0;n--)if(!this.isDisabled(this.options[n]))return n},isDisabled:function(t){return Object(r.e)(t)&&t.disabled},getOptionText:function(t){return Object(r.e)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){t=this.adjustIndex(t),this.offset=-t*this.itemHeight,t!==this.currentIndex&&(this.currentIndex=t,e&&this.$emit("change",t))},setValue:function(t){for(var e=this.options,n=0;n<e.length;n++)if(this.getOptionText(e[n])===t)return void this.setIndex(n)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-picker-column",class:t.className,style:t.columnStyle,on:{touchstart:t.onTouchStart,touchmove:function(e){return e.preventDefault(),t.onTouchMove(e)},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}},[n("ul",{style:t.wrapperStyle},t._l(t.options,function(e,i){return n("li",{staticClass:"van-ellipsis",class:{"van-picker-column--disabled":t.isDisabled(e),"van-picker-column--selected":i===t.currentIndex},domProps:{textContent:t._s(t.getOptionText(e))},on:{click:function(e){t.setIndex(i,!0)}}})}))])},[],!1,null,null,null).exports,ut=n(29),lt=n.n(ut);function ct(t){return Array.isArray(t)?t.map(function(t){return ct(t)}):"object"===(void 0===t?"undefined":lt()(t))?c({},t):t}var dt=_(S({name:"picker",components:{PickerColumn:rt},props:{title:String,loading:Boolean,showToolbar:Boolean,confirmButtonText:String,cancelButtonText:String,visibleItemCount:{type:Number,default:5},valueKey:{type:String,default:"text"},itemHeight:{type:Number,default:44},columns:{type:Array,default:function(){return[]}}},data:function(){return{children:[],currentColumns:[]}},created:function(){this.initColumns()},watch:{columns:function(){this.initColumns()}},computed:{frameStyle:function(){return{height:this.itemHeight+"px"}},columnsStyle:function(){return{height:this.itemHeight*this.visibleItemCount+"px"}}},methods:{initColumns:function(){var t=this.columns.map(ct);this.isSimpleColumn=t.length&&!t[0].values,this.currentColumns=this.isSimpleColumn?[{values:t}]:t},emit:function(t){this.isSimpleColumn?this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0)):this.$emit(t,this.getValues(),this.getIndexes())},onChange:function(t){this.isSimpleColumn?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){return(this.getColumn(t)||{}).currentValue},setColumnValue:function(t,e){var n=this.getColumn(t);n&&n.setValue(e)},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var n=this.getColumn(t);n&&n.setIndex(e)},getColumnValues:function(t){return(this.currentColumns[t]||{}).values},setColumnValues:function(t,e){var n=this.currentColumns[t];n&&(n.values=e)},getValues:function(){return this.children.map(function(t){return t.currentValue})},setValues:function(t){var e=this;t.forEach(function(t,n){e.setColumnValue(n,t)})},getIndexes:function(){return this.children.map(function(t){return t.currentIndex})},setIndexes:function(t){var e=this;t.forEach(function(t,n){e.setColumnIndex(n,t)})}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-picker"},[t.showToolbar?n("div",{staticClass:"van-picker__toolbar van-hairline--top-bottom"},[t._t("default",[n("div",{staticClass:"van-picker__cancel",on:{click:function(e){t.emit("cancel")}}},[t._v(t._s(t.cancelButtonText||t.$t("cancel")))]),t.title?n("div",{staticClass:"van-picker__title van-ellipsis",domProps:{textContent:t._s(t.title)}}):t._e(),n("div",{staticClass:"van-picker__confirm",on:{click:function(e){t.emit("confirm")}}},[t._v(t._s(t.confirmButtonText||t.$t("confirm")))])])],2):t._e(),t.loading?n("div",{staticClass:"van-picker__loading"},[n("loading")],1):t._e(),n("div",{staticClass:"van-picker__columns",style:t.columnsStyle,on:{touchmove:function(t){t.preventDefault()}}},[t._l(t.currentColumns,function(e,i){return n("picker-column",{key:i,attrs:{"value-key":t.valueKey,options:e.values,"class-name":e.className,"default-index":e.defaultIndex,"item-height":t.itemHeight,"visible-item-count":t.visibleItemCount},on:{change:function(e){t.onChange(i)}}})}),n("div",{staticClass:"van-picker__frame van-hairline--top-bottom",style:t.frameStyle})],2)])},[],!1,null,null,null).exports,ht=_(S({name:"area",components:{Picker:dt},props:{value:{},title:String,loading:Boolean,areaList:Object,itemHeight:Number,visibleItemCount:Number,columnsNum:{type:[String,Number],default:3}},computed:{listValid:function(){return this.areaList&&Object(r.e)(this.areaList.province_list)},columns:function(){var t=[];if(!this.listValid)return t;var e=this.value||"",n=+this.columnsNum;return t.push({values:this.getList("province")}),n>1&&t.push({values:this.getList("city",e.slice(0,2))}),n>2&&t.push({values:this.getList("county",e.slice(0,4))}),t}},mounted:function(){this.setIndex()},watch:{value:function(){this.setIndex()},areaList:function(){this.setIndex()}},methods:{setIndex:function(){var t=this;this.$nextTick(function(){var e=t.value||"",n=t.$refs.picker;n&&n.setIndexes([t.getIndex("province",e),t.getIndex("city",e),t.getIndex("county",e)])})},getList:function(t,e){var n=[];if(this.listValid&&("province"===t||e)){var i=this.areaList,s="province"===t?i.province_list:"city"===t?i.city_list:i.county_list;n=j()(s).map(function(t){return{code:t,name:s[t]}}),"province"!==t&&e&&(n=n.filter(function(t){return 0===t.code.indexOf(e)}))}return n.unshift({code:"-1",name:this.$t(t)}),n},getIndex:function(t,e){var n="province"===t?2:"city"===t?4:6,i=this.getList(t,e.slice(0,n-2));e=e.slice(0,n);for(var s=0;s<i.length;s++)if(i[s].code.slice(0,n)===e)return s;return 0},onChange:function(t,e,n){var i=e[n].code;0===n?(t.setColumnValues(1,this.getList("city",i.slice(0,2))),t.setColumnValues(2,this.getList("county",i.slice(0,4)))):1===n&&t.setColumnValues(2,this.getList("county",i.slice(0,4)))},getValues:function(){return this.$refs.picker?this.$refs.picker.getValues():[]}}}),function(){var t=this,e=t.$createElement;return(t._self._c||e)("picker",{ref:"picker",staticClass:"van-area",attrs:{"show-toolbar":"","value-key":"name",title:t.title,loading:t.loading,columns:t.columns,"item-height":t.itemHeight,"visible-item-count":t.visibleItemCount},on:{change:t.onChange,confirm:function(e){t.$emit("confirm",e)},cancel:function(e){t.$emit("cancel",e)}}})},[],!1,null,null,null).exports,ft=_(S({name:"address-edit-detail",components:{Field:V},props:{value:{},isError:Boolean,searchResult:Array,showSearchResult:Boolean},data:function(){return{isAndroid:Object(r.c)(),isFocused:!1}},computed:{showSearchList:function(){return this.showSearchResult&&this.isFocused&&this.searchResult.length>0},showIcon:function(){return this.value&&this.isFocused}},methods:{onFocus:function(t){this.isFocused=!0,this.$emit("focus",t),this.$refs.root.scrollIntoView()},onBlur:function(t){var e=this;setTimeout(function(){e.isFocused=!1,e.$emit("blur",t)},100)},onIconClick:function(){this.isAndroid?this.$refs.root.querySelector(".van-field__control").blur():this.$emit("input","")},onSuggestSelect:function(t){this.$emit("input",((t.address||"")+" "+(t.name||"")).trim()),this.$emit("select-search",t)},isString:function(t){return"string"==typeof t}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root"},[n("field",{attrs:{label:t.$t("label"),placeholder:t.$t("placeholder"),maxlength:"200",type:"textarea",autosize:"",rows:"1",value:t.value,error:t.isError,"on-icon-click":t.onIconClick},on:{input:function(e){t.$emit("input",e)},focus:t.onFocus,blur:t.onBlur}},[n("div",{attrs:{slot:"icon"},slot:"icon"},[t.showIcon&&t.isAndroid?n("span",{staticClass:"van-address-edit-detail__finish-edit"},[t._v(t._s(t.$t("complete")))]):t.showIcon?n("icon",{attrs:{name:"clear"}}):t._e()],1)]),t.showSearchList?n("cell-group",{staticClass:"van-address-edit-detail__suggest-list"},t._l(t.searchResult,function(e){return n("cell",{key:e.name+e.address,staticClass:"van-address-edit-detail__suggest-item",attrs:{clickable:""},on:{click:function(n){t.onSuggestSelect(e)}}},[n("icon",{staticClass:"van-address-edit-detail__location",attrs:{name:"location"}}),n("div",{staticClass:"van-address-edit-detail__item-info"},[t.isString(e.name)?n("p",{staticClass:"van-address-edit-detail__title"},[t._v(t._s(e.name))]):t._e(),t.isString(e.address)?n("p",{staticClass:"van-address-edit-detail__subtitle"},[t._v(t._s(e.address))]):t._e()])],1)})):t._e()],1)},[],!1,null,null,null).exports,pt=_(S({name:"switch",props:{value:Boolean,loading:Boolean,disabled:Boolean,size:{type:String,default:"30px"}},computed:{style:function(){return{fontSize:this.size}}},methods:{onClick:function(){this.disabled||this.loading||(this.$emit("input",!this.value),this.$emit("change",!this.value))}}}),function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"van-switch",class:[{"van-switch--on":this.value,"van-switch--disabled":this.disabled}],style:this.style,on:{click:this.onClick}},[e("div",{staticClass:"van-switch__node"},[this.loading?e("loading",{staticClass:"van-switch__loading"}):this._e()],1)])},[],!1,null,null,null).exports,vt=_(S({name:"switch-cell",components:{VanSwitch:pt},props:{title:String,value:Boolean,border:Boolean,loading:Boolean,disabled:Boolean},watch:{value:function(){this.$emit("change",this.value)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("cell",{staticClass:"van-switch-cell",attrs:{title:t.title,border:t.border}},[n("van-switch",t._b({on:{input:function(e){t.$emit("input",e)}}},"van-switch",t.$props,!1))],1)},[],!1,null,null,null).exports;function mt(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9\-]{10,13}$/.test(t)}var gt={name:"",tel:"",province:"",city:"",county:"",area_code:"",postal_code:"",address_detail:"",is_default:!1},_t=_(S({name:"address-edit",components:{Field:V,Popup:H,VanArea:ht,VanButton:z,SwitchCell:vt,AddressEditDetail:ft},props:{isSaving:Boolean,isDeleting:Boolean,areaList:Object,showDelete:Boolean,showPostal:Boolean,showSetDefault:Boolean,showSearchResult:Boolean,addressInfo:{type:Object,default:function(){return $()({},gt)}},searchResult:{type:Array,default:function(){return[]}},telValidator:{type:Function,default:mt}},data:function(){return{showArea:!1,data:$()({},gt,this.addressInfo),detailFocused:!1,errorInfo:{name:!1,tel:!1,address_detail:!1,postal_code:!1}}},computed:{hideBottomFields:function(){return this.searchResult.length&&this.detailFocused},areaListLoaded:function(){return Object(r.e)(this.areaList)&&j()(this.areaList).length},isEdit:function(){return this.showDelete||!!this.data.id}},watch:{addressInfo:{handler:function(t){this.data=$()({},gt,t),this.setAreaCode(t.area_code)},deep:!0},areaList:function(){this.setAreaCode(this.data.area_code)}},created:function(){this.setAreaCode(this.data.area_code)},methods:{onFocus:function(t){this.errorInfo[t]=!1,this.detailFocused="address_detail"===t,this.$emit("focus",t)},onChangeDetail:function(t){this.data.address_detail=t,this.$emit("change-detail",t)},onAreaConfirm:function(t){if(3!==t.length||t.some(function(t){return-1==+t.code}))return Q(this.$t("areaEmpty"));this.data.area_code=t[2].code,this.assignAreaValues(t),this.showArea=!1,this.$emit("change-area",t)},assignAreaValues:function(t){t.length>=3&&s()(this.data,{province:t[0].name,city:t[1].name,county:t[2].name})},onSave:function(){var t=this,e=["name","tel","area_code","address_detail"];this.showPostal&&e.push("postal_code"),e.every(function(e){var n=t.getErrorMessageByKey(e);return n&&(t.errorInfo[e]=!0,Q(n)),!n})&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessageByKey:function(t){var e=this.data[t],n=this.$t;switch(t){case"name":return e?e.length<=15?"":n("nameOverlimit"):n("nameEmpty");case"tel":return this.telValidator(e)?"":n("telInvalid");case"area_code":return e&&-1!=+e?"":n("areaEmpty");case"address_detail":return e?e.length<=200?"":n("addressOverlimit"):n("addressEmpty");case"postal_code":return e&&!/^\d{6}$/.test(e)?n("postalEmpty"):""}},onDelete:function(){var t=this;this.isDeleting||it.confirm({message:this.$t("confirmDelete")}).then(function(){t.$emit("delete",t.data)})},getArea:function(){var t=this.$refs.area;return t?t.getValues():[]},setAreaCode:function(t){var e=this;this.data.area_code=t||"",this.$nextTick(function(){e.$nextTick(function(){var t=e.$refs.area;t&&e.assignAreaValues(t.getValues())})})}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-address-edit"},[n("cell-group",[n("field",{attrs:{maxlength:"15",placeholder:t.$t("name"),label:t.$t("label.name"),error:t.errorInfo.name},on:{focus:function(e){t.onFocus("name")}},model:{value:t.data.name,callback:function(e){t.$set(t.data,"name",e)},expression:"data.name"}}),n("field",{attrs:{type:"tel",label:t.$t("tel"),placeholder:t.$t("telPlaceholder"),error:t.errorInfo.tel},on:{focus:function(e){t.onFocus("tel")}},model:{value:t.data.tel,callback:function(e){t.$set(t.data,"tel",e)},expression:"data.tel"}}),n("cell",{staticClass:"van-address-edit__area",attrs:{clickable:"",title:t.$t("area")},on:{click:function(e){t.showArea=!0}}},[n("span",[t._v(t._s(t.data.province||t.$t("province")))]),n("span",[t._v(t._s(t.data.city||t.$t("city")))]),n("span",[t._v(t._s(t.data.county||t.$t("county")))])]),n("address-edit-detail",{attrs:{value:t.data.address_detail,"is-error":t.errorInfo.address_detail,"show-search-result":t.showSearchResult,"search-result":t.searchResult},on:{focus:function(e){t.onFocus("address_detail")},blur:function(e){t.detailFocused=!1},input:t.onChangeDetail,"select-search":function(e){t.$emit("select-search",e)}}}),t.showPostal?n("field",{directives:[{name:"show",rawName:"v-show",value:!t.hideBottomFields,expression:"!hideBottomFields"}],staticClass:"van-hairline--top",attrs:{type:"tel",label:t.$t("label.postal"),placeholder:t.$t("placeholder.postal"),maxlength:"6",error:t.errorInfo.postal_code},on:{focus:function(e){t.onFocus("postal_code")}},model:{value:t.data.postal_code,callback:function(e){t.$set(t.data,"postal_code",e)},expression:"data.postal_code"}}):t._e(),t._t("default"),t.showSetDefault?n("switch-cell",{directives:[{name:"show",rawName:"v-show",value:!t.hideBottomFields,expression:"!hideBottomFields"}],attrs:{title:t.$t("defaultAddress")},model:{value:t.data.is_default,callback:function(e){t.$set(t.data,"is_default",e)},expression:"data.is_default"}}):t._e()],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideBottomFields,expression:"!hideBottomFields"}],staticClass:"van-address-edit__buttons"},[n("van-button",{attrs:{block:"",loading:t.isSaving,type:"primary"},on:{click:t.onSave}},[t._v("\n "+t._s(t.$t("save"))+"\n ")]),t.isEdit?n("van-button",{attrs:{block:"",loading:t.isDeleting},on:{click:t.onDelete}},[t._v("\n "+t._s(t.$t("deleteAddress"))+"\n ")]):t._e()],1),n("popup",{attrs:{position:"bottom"},model:{value:t.showArea,callback:function(e){t.showArea=e},expression:"showArea"}},[n("van-area",{ref:"area",attrs:{loading:!t.areaListLoaded,value:t.data.area_code,"area-list":t.areaList},on:{confirm:t.onAreaConfirm,cancel:function(e){t.showArea=!1}}})],1)],1)},[],!1,null,null,null).exports,bt={methods:{findParentByName:function(t){if(!this.parentGroup)for(var e=this.$parent;e;){if(e.$options.name===t){this.parentGroup=e;break}e=e.$parent}return this.parentGroup}}},yt=_(S({name:"radio",mixins:[bt],props:{value:{},disabled:Boolean,name:[String,Number]},computed:{isGroup:function(){return!!this.findParentByName("van-radio-group")},currentValue:{get:function(){return this.isGroup&&this.parentGroup?this.parentGroup.value:this.value},set:function(t){this.isGroup&&this.parentGroup?this.parentGroup.$emit("input",t):this.$emit("input",t)}},isDisabled:function(){return this.isGroup&&this.parentGroup&&this.parentGroup.disabled||this.disabled}},methods:{onClickLabel:function(){this.isDisabled||(this.currentValue=this.name)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-radio",class:{"van-radio--disabled":t.isDisabled},on:{click:function(e){t.$emit("click")}}},[n("span",{staticClass:"van-radio__input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"van-radio__control",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.name,checked:t._q(t.currentValue,t.name)},on:{change:function(e){t.currentValue=t.name}}}),n("icon",{attrs:{name:t.currentValue===t.name?"checked":"check"}})],1),n("span",{staticClass:"van-radio__label",on:{click:t.onClickLabel}},[t._t("default")],2)])},[],!1,null,null,null).exports,kt=_(S({name:"radio-group",props:{value:{},disabled:Boolean},watch:{value:function(t){this.$emit("change",t)}}}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-radio-group"},[this._t("default")],2)},[],!1,null,null,null).exports,xt=_(S({name:"address-list",components:{Radio:yt,RadioGroup:kt},props:{addButtonText:String,value:[String,Number],list:{type:Array,default:function(){return[]}}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-address-list"},[n("radio-group",{staticClass:"van-address-list__group",attrs:{value:t.value},on:{input:function(e){t.$emit("input",e)}}},[n("cell-group",t._l(t.list,function(e,i){return n("cell",{key:e.id,attrs:{"is-link":""}},[n("radio",{attrs:{name:e.id},on:{click:function(n){t.$emit("select",e,i)}}},[n("div",{staticClass:"van-address-list__name"},[t._v(t._s(e.name)+","+t._s(e.tel))]),n("div",{staticClass:"van-address-list__address"},[t._v(t._s(t.$t("address"))+":"+t._s(e.address))])]),n("icon",{staticClass:"van-address-list__edit",attrs:{slot:"right-icon",name:"edit"},on:{click:function(n){t.$emit("edit",e,i)}},slot:"right-icon"})],1)}))],1),n("cell",{staticClass:"van-address-list__add van-hairline--top",attrs:{icon:"add","is-link":"",title:t.addButtonText||t.$t("add")},on:{click:function(e){t.$emit("add")}}})],1)},[],!1,null,null,null).exports,Ct=_(S({name:"badge",props:{url:String,info:String,title:String},beforeCreate:function(){this.$parent.badges.push(this)},computed:{isSelect:function(){return this.$parent.badges.indexOf(this)===this.$parent.activeKey}},methods:{onClick:function(){this.$emit("click",this.$parent.badges.indexOf(this))}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"van-badge van-hairline",class:{"van-badge--select":t.isSelect},attrs:{href:t.url},on:{click:t.onClick}},[t.info?n("div",{staticClass:"van-badge__info"},[t._v(t._s(t.info))]):t._e(),t._v("\n "+t._s(t.title)+"\n")])},[],!1,null,null,null).exports,St=_(S({name:"badge-group",props:{activeKey:{type:[Number,String],default:0}},data:function(){return{badges:[]}}}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-badge-group van-hairline--top-bottom"},[this._t("default")],2)},[],!1,null,null,null).exports,wt=_(S({name:"card",props:{thumb:String,title:String,desc:String,centered:Boolean,num:[Number,String],price:[Number,String]}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-card",class:{"van-card--center":t.centered}},[n("div",{staticClass:"van-card__thumb"},[t._t("thumb",[n("img",{staticClass:"van-card__img",attrs:{src:t.thumb}})])],2),n("div",{staticClass:"van-card__content"},[t._t("title",[t.title||void 0!==t.price?n("div",{staticClass:"van-card__row"},[t.title?n("div",{staticClass:"van-card__title"},[t._v(t._s(t.title))]):t._e(),void 0!==t.price?n("div",{staticClass:"van-card__price"},[t._v("¥ "+t._s(t.price))]):t._e()]):t._e()]),t._t("desc",[t.desc||void 0!==t.num?n("div",{staticClass:"van-card__row"},[t.desc?n("div",{staticClass:"van-card__desc"},[t._v(t._s(t.desc))]):t._e(),void 0!==t.num?n("div",{staticClass:"van-card__num"},[t._v("x "+t._s(t.num))]):t._e()]):t._e()]),t._t("tags")],2),t.$slots.footer?n("div",{staticClass:"van-card__footer"},[t._t("footer")],2):t._e()])},[],!1,null,null,null).exports,$t={bind:function(t,e){var n=function(e){t.contains(e.target)||t["@@clickoutsideContext"].callback()};t["@@clickoutsideContext"]={handler:n,callback:e.value,arg:e.arg||"click"},A(document,t["@@clickoutsideContext"].arg,n)},update:function(t,e){t["@@clickoutsideContext"].callback=e.value},unbind:function(t){M(document,t["@@clickoutsideContext"].arg,t["@@clickoutsideContext"].handler)},install:function(t){t.directive("clickoutside",{bind:this.bind,unbind:this.unbind})}},Tt=_(S({name:"cell-swipe",props:{onClose:Function,leftWidth:{type:Number,default:0},rightWidth:{type:Number,default:0}},directives:{Clickoutside:$t},data:function(){return{offset:0,draging:!1}},computed:{wrapperStyle:function(){return{transform:"translate3d("+this.offset+"px, 0, 0)",transition:this.draging?"none":".6s cubic-bezier(0.18, 0.89, 0.32, 1)"}}},methods:{close:function(){this.offset=0},resetSwipeStatus:function(){this.swiping=!1,this.opened=!0},swipeMove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=t,t&&(this.swiping=!0),!t&&(this.opened=!1)},swipeLeaveTransition:function(t){var e=this.offset,n=this.leftWidth,i=this.rightWidth,s=this.opened?.85:.15;t>0&&-e>i*s&&i>0?(this.swipeMove(-i),this.resetSwipeStatus()):t<0&&e>n*s&&n>0?(this.swipeMove(n),this.resetSwipeStatus()):this.swipeMove()},startDrag:function(t){this.draging=!0,this.startX=t.touches[0].pageX,this.startY=t.touches[0].pageY,this.opened&&(this.startX-=this.offset)},onDrag:function(t){var e=t.touches[0].pageY-this.startY,n=t.touches[0].pageX-this.startX;if(!(n<0&&-n>this.rightWidth||n>0&&n>this.leftWidth||n>0&&!this.leftWidth||n<0&&!this.rightWidth)){var i=Math.abs(e),s=Math.abs(n);!(s<5||s>=5&&i>=1.73*s)&&(t.preventDefault(),this.swipeMove(n))}},endDrag:function(){this.draging=!1,this.swiping&&this.swipeLeaveTransition(this.offset>0?-1:1)},onClick:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"outside";this.offset&&(this.onClose?this.onClose(t,this):this.swipeMove(0))}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside:touchstart",value:t.onClick,expression:"onClick",arg:"touchstart"}],staticClass:"van-cell-swipe",on:{click:function(e){t.onClick("cell")},touchstart:t.startDrag,touchmove:t.onDrag,touchend:t.endDrag,touchcancel:t.endDrag}},[n("div",{staticClass:"van-cell-swipe__wrapper",style:t.wrapperStyle,on:{transitionend:function(e){t.swipe=!1}}},[t.leftWidth?n("div",{staticClass:"van-cell-swipe__left",on:{click:function(e){e.stopPropagation(),t.onClick("left")}}},[t._t("left")],2):t._e(),t._t("default"),t.rightWidth?n("div",{staticClass:"van-cell-swipe__right",on:{click:function(e){e.stopPropagation(),t.onClick("right")}}},[t._t("right")],2):t._e()],2)])},[],!1,null,null,null).exports,Et=_(S({name:"checkbox",mixins:[bt],props:{value:{},disabled:Boolean,labelDisabled:{type:Boolean,default:!1},name:[String,Number],shape:{type:String,default:"round"}},watch:{value:function(t){this.$emit("change",t)}},data:function(){return this.findParentByName("van-checkbox-group"),{}},computed:{currentValue:{get:function(){return this.parentGroup?-1!==this.parentGroup.value.indexOf(this.name):this.value},set:function(t){var e=this.parentGroup;if(e){var n=this.parentGroup.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var i=n.indexOf(this.name);-1!==i&&(n.splice(i,1),e.$emit("input",n))}}else this.$emit("input",t)}},isChecked:function(){var t=this.currentValue;return"[object Boolean]"==={}.toString.call(t)?t:Object(r.d)(t)?t===this.name:void 0},isDisabled:function(){return this.parentGroup&&this.parentGroup.disabled||this.disabled}},methods:{onClick:function(t){this.isDisabled||"label"===t&&this.labelDisabled||(this.currentValue=!this.currentValue)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-checkbox"},[n("icon",{staticClass:"van-checkbox__icon",class:["van-checkbox--"+t.shape,{"van-checkbox--disabled":t.isDisabled,"van-checkbox--checked":t.isChecked}],attrs:{name:"success"},on:{click:t.onClick}}),n("span",{staticClass:"van-checkbox__label",on:{click:function(e){t.onClick("label")}}},[t._t("default")],2)],1)},[],!1,null,null,null).exports,Bt=_(S({name:"checkbox-group",props:{value:{},disabled:Boolean,max:{default:0,type:Number}},watch:{value:function(t){this.$emit("change",t)}}}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-checkbox-group"},[this._t("default")],2)},[],!1,null,null,null).exports,It=n(18),Ot=_(S({name:"circle",props:{text:String,value:Number,speed:Number,size:{type:String,default:"100px"},fill:{type:String,default:"none"},rate:{type:Number,default:100},layerColor:{type:String,default:"#fff"},color:{type:String,default:"#38f"},strokeWidth:{type:Number,default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.perimeter=3140,this.path="M 530 530 m -500, 0 a 500, 500 0 1, 1 1000, 0 a 500, 500 0 1, 1 -1000, 0"},computed:{style:function(){return{width:this.size,height:this.size}},layerStyle:function(){var t=this.perimeter*(100-this.value)/100;return t=this.clockwise?t:2*this.perimeter-t,{stroke:""+this.color,strokeDashoffset:t+"px",strokeWidth:this.strokeWidth+1+"px"}},hoverStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}}},mounted:function(){this.render()},watch:{rate:function(){this.render()}},methods:{render:function(){this.startTime=Date.now(),this.startRate=this.value,this.endRate=this.format(this.rate),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(It.a)(this.rafId),this.rafId=Object(It.b)(this.animate)):this.$emit("input",this.endRate)},animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1)*(this.endRate-this.startRate)+this.startRate;this.$emit("input",this.format(parseFloat(e.toFixed(1)))),(this.increase?e<this.endRate:e>this.endRate)&&(this.rafId=Object(It.b)(this.animate))},format:function(t){return Math.min(Math.max(t,0),100)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-circle",style:t.style},[n("svg",{attrs:{viewBox:"0 0 1060 1060"}},[n("path",{staticClass:"van-circle__hover",style:t.hoverStyle,attrs:{d:t.path}}),n("path",{staticClass:"van-circle__layer",style:t.layerStyle,attrs:{d:t.path}})]),t._t("default",[n("div",{staticClass:"van-circle__text"},[t._v(t._s(t.text))])])],2)},[],!1,null,null,null).exports,Nt=_(S({name:"col",props:{span:[Number,String],offset:[Number,String]},computed:{gutter:function(){return this.$parent&&Number(this.$parent.gutter)||0},style:function(){var t=this.gutter/2+"px";return this.gutter?{paddingLeft:t,paddingRight:t}:{}}}}),function(){var t,e=this.$createElement;return(this._self._c||e)("div",{staticClass:"van-col",class:(t={},t["van-col-"+this.span]=this.span,t["van-col-offset-"+this.offset]=this.offset,t),style:this.style},[this._t("default")],2)},[],!1,null,null,null).exports,Ft=_(S({name:"collapse",model:{prop:"activeNames"},props:{accordion:Boolean,activeNames:[String,Number,Array]},data:function(){return{items:[]}},methods:{switch:function(t,e){var n=this.activeNames;this.accordion||(t=e?n.concat(t):n.filter(function(e){return e!==t})),this.$emit("change",t),this.$emit("input",t)}}}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-collapse van-hairline--top-bottom"},[this._t("default")],2)},[],!1,null,null,null).exports,At=_(S({name:"collapse-item",mixins:[bt],props:{name:[String,Number],title:String},computed:{items:function(){return this.parentGroup.items},index:function(){return this.items.indexOf(this)},currentName:function(){return Object(r.d)(this.name)?this.name:this.index},expanded:function(){var t=this,e=this.parentGroup.activeNames;return this.parentGroup.accordion?e===this.currentName:e.some(function(e){return e===t.currentName})}},created:function(){this.findParentByName("van-collapse"),this.items.push(this)},destroyed:function(){this.items.splice(this.index,1)},methods:{onClick:function(){var t=this.parentGroup,e=t.accordion&&this.currentName===t.activeNames?"":this.currentName;this.parentGroup.switch(e,!this.expanded)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-collapse-item",class:{"van-hairline--top":t.index,"van-collapse-item--expanded":t.expanded}},[n("cell",{staticClass:"van-collapse-item__title",attrs:{"is-link":""},on:{click:t.onClick}},[t._t("title",[t._v(t._s(t.title))])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"van-collapse-item__content"},[t._t("default")],2)],1)},[],!1,null,null,null).exports,Mt=_(S({name:"contact-card",props:{tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}},methods:{onClick:function(t){this.editable&&this.$emit("click",t)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-contact-card",class:["van-contact-card--"+t.type,{"van-contact-card--uneditable":!t.editable}],on:{click:t.onClick}},[n("div",{staticClass:"van-contact-card__content"},["add"===t.type?[n("icon",{staticClass:"van-contact-card__icon",attrs:{name:"add2"}}),n("div",{staticClass:"van-contact-card__text"},[t._v(t._s(t.addText||t.$t("addText")))])]:"edit"===t.type?[n("icon",{staticClass:"van-contact-card__icon",attrs:{name:"contact"}}),n("div",{staticClass:"van-contact-card__text"},[n("div",[t._v(t._s(t.$t("contact"))+":"+t._s(t.name))]),n("div",[t._v(t._s(t.$t("tel"))+":"+t._s(t.tel))])])]:t._e()],2),t.editable?n("icon",{staticClass:"van-contact-card__arrow",attrs:{name:"arrow"}}):t._e()],1)},[],!1,null,null,null).exports,Lt=_(S({name:"contact-edit",components:{Field:V,VanButton:z},props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,contactInfo:{type:Object,default:function(){return{id:"",tel:"",name:""}}},telValidator:{type:Function,default:mt}},data:function(){return{data:this.contactInfo,errorInfo:{name:!1,tel:!1}}},watch:{contactInfo:function(t){this.data=t}},methods:{onFocus:function(t){this.errorInfo[t]=!1},getErrorMessageByKey:function(t){var e=this.data[t];switch(t){case"name":return e?e.length<=15?"":this.$t("nameOverlimit"):this.$t("nameEmpty");case"tel":return this.telValidator(e)?"":this.$t("telInvalid")}},onSaveContact:function(){var t=this;["name","tel"].every(function(e){var n=t.getErrorMessageByKey(e);return n&&(t.errorInfo[e]=!0,Q(n)),!n})&&!this.isSaving&&this.$emit("save",this.data)},onDeleteContact:function(){var t=this;this.isDeleting||it.confirm({message:this.$t("confirmDelete")}).then(function(){t.$emit("delete",t.data)})}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-contact-edit"},[n("cell-group",[n("field",{attrs:{maxlength:"30",label:t.$t("contact"),placeholder:t.$t("name"),error:t.errorInfo.name},on:{focus:function(e){t.onFocus("name")}},model:{value:t.data.name,callback:function(e){t.$set(t.data,"name",e)},expression:"data.name"}}),n("field",{attrs:{type:"tel",label:t.$t("tel"),placeholder:t.$t("telPlaceholder"),error:t.errorInfo.tel},on:{focus:function(e){t.onFocus("tel")}},model:{value:t.data.tel,callback:function(e){t.$set(t.data,"tel",e)},expression:"data.tel"}})],1),n("div",{staticClass:"van-contact-edit__buttons"},[n("van-button",{attrs:{block:"",loading:t.isSaving,type:"primary"},on:{click:t.onSaveContact}},[t._v(t._s(t.$t("save")))]),t.isEdit?n("van-button",{attrs:{block:"",loading:t.isDeleting},on:{click:t.onDeleteContact}},[t._v(t._s(t.$t("delete")))]):t._e()],1)],1)},[],!1,null,null,null).exports,Dt=_(S({name:"contact-list",components:{Radio:yt,RadioGroup:kt},props:{value:{},addText:String,list:{type:Array,default:function(){return[]}}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-contact-list"},[n("radio-group",{attrs:{value:t.value},on:{input:function(e){t.$emit("input",e)}}},[n("cell-group",t._l(t.list,function(e,i){return n("cell",{key:e.id,attrs:{"is-link":""}},[n("radio",{attrs:{name:e.id},on:{click:function(n){t.$emit("select",e,i)}}},[n("p",{staticClass:"van-contact-list__text"},[t._v(t._s(t.$t("contact"))+":"+t._s(e.name))]),n("p",{staticClass:"van-contact-list__text"},[t._v(t._s(t.$t("tel"))+":"+t._s(e.tel))])]),n("icon",{staticClass:"van-contact-list__edit",attrs:{slot:"right-icon",name:"edit"},on:{click:function(n){t.$emit("edit",e,i)}},slot:"right-icon"})],1)}))],1),n("cell",{staticClass:"van-contact-list__add van-hairline--top",attrs:{icon:"add","is-link":"",title:t.addText||t.$t("addText")},on:{click:function(e){t.$emit("add")}}})],1)},[],!1,null,null,null).exports,Pt=_(S({name:"coupon-cell",model:{prop:"chosenCoupon"},props:{title:String,coupons:{type:Array,default:function(){return[]}},chosenCoupon:{type:Number,default:-1},editable:{type:Boolean,default:!0}},computed:{value:function(){var t=this.coupons,e=t[this.chosenCoupon];return e?this.$t("reduce")+"¥"+(e.value/100).toFixed(2):0===t.length?this.$t("tips"):this.$t("count",t.length)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("cell-group",{staticClass:"van-coupon-cell"},[n("cell",{attrs:{title:t.title||t.$t("title"),value:t.value,"is-link":t.editable},on:{click:function(e){t.$emit("click")}}})],1)},[],!1,null,null,null).exports,jt=_(S({name:"coupon-item",props:{data:Object,chosen:Boolean,disabled:Boolean},computed:{validPeriod:function(){return this.getDate(this.data.start_at)+"-"+this.getDate(this.data.end_at)},faceAmount:function(){return 0!==this.data.denominations?"<span>¥</span> "+this.formatAmount(this.data.denominations):0!==this.data.discount?this.formatDiscount(this.data.discount):""},conditionMessage:function(){var t=this.data.origin_condition;return t=t%100==0?Math.round(t/100):(t/100).toFixed(2),0===this.data.origin_condition?this.$t("unlimited"):this.$t("condition",t)}},methods:{getDate:function(t){var e=new Date(1e3*t);return e.getFullYear()+"."+this.padZero(e.getMonth()+1)+"."+this.padZero(e.getDate())},padZero:function(t){return(t<10?"0":"")+t},formatDiscount:function(t){return this.$t("discount",""+(t/10).toFixed(t%10==0?0:1))},formatAmount:function(t){return(t/100).toFixed(t%100==0?0:t%10==0?1:2)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-coupon-item",class:{"van-coupon-item--disabled":t.disabled}},[n("div",{staticClass:"van-coupon-item__head"},[n("div",{staticClass:"van-coupon-item__lines"}),n("div",{staticClass:"van-coupon-item__gradient"},[n("h2",{domProps:{innerHTML:t._s(t.faceAmount)}}),n("p",[t._v(t._s(t.conditionMessage))])])]),n("div",{staticClass:"van-coupon-item__body"},[n("h2",[t._v(t._s(t.data.name))]),n("span",[t._v(t._s(t.validPeriod))]),t.disabled&&t.data.reason?n("p",[t._v(t._s(t.data.reason))]):t._e(),t.chosen?n("div",{staticClass:"van-coupon-item__corner"},[n("icon",{attrs:{name:"success"}})],1):t._e()])])},[],!1,null,null,null).exports,Vt=_(S({name:"coupon-list",components:{VanButton:z,Field:V,CouponItem:jt},model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,disabledListTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0}},data:function(){return{currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||this.currentCode.length<this.exchangeMinLength)}},watch:{code:function(t){this.currentCode=t},currentCode:function(t){this.$emit("input",t)},displayedCouponIndex:function(t){this.scrollToShowCoupon(t)}},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(t){var e=this;-1!==t&&this.$nextTick(function(){var n=e.$refs,i=n.card,s=n.list;s&&i&&i[t]&&(s.scrollTop=i[t].$el.offsetTop-100)})}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-coupon-list"},[t.showExchangeBar?n("cell-group",{staticClass:"van-coupon-list__top"},[n("field",{staticClass:"van-coupon-list__filed van-hairline--surround",attrs:{placeholder:t.inputPlaceholder||t.$t("placeholder"),maxlength:20},model:{value:t.currentCode,callback:function(e){t.currentCode=e},expression:"currentCode"}}),n("van-button",{staticClass:"van-coupon-list__exchange",attrs:{size:"small",type:"danger",text:t.exchangeButtonText||t.$t("exchange"),loading:t.exchangeButtonLoading,disabled:t.buttonDisabled},on:{click:t.onClickExchangeButton}})],1):t._e(),n("div",{ref:"list",staticClass:"van-coupon-list__list",class:{"van-coupon-list--with-exchange":t.showExchangeBar}},[t._l(t.coupons,function(e,i){return n("coupon-item",{key:e.id||e.name,ref:"card",refInFor:!0,attrs:{data:e,chosen:i===t.chosenCoupon},nativeOn:{click:function(e){t.$emit("change",i)}}})}),t.disabledCoupons.length?n("h3",[t._v(t._s(t.disabledListTitle||t.$t("disabled")))]):t._e(),t._l(t.disabledCoupons,function(t){return n("coupon-item",{key:t.id||t.name,attrs:{disabled:"",data:t}})}),t.coupons.length||t.disabledCoupons.length?t._e():n("div",{staticClass:"van-coupon-list__empty"},[n("img",{attrs:{src:"https://img.yzcdn.cn/v2/image/wap/trade/new_order/empty@2x.png"}}),n("p",[t._v(t._s(t.$t("empty")))])])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showCloseButton,expression:"showCloseButton"}],staticClass:"van-coupon-list__close van-hairline--top",domProps:{textContent:t._s(t.closeButtonText||t.$t("close"))},on:{click:function(e){t.$emit("change",-1)}}})],1)},[],!1,null,null,null).exports,zt=(new Date).getFullYear(),Ht=function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())},Rt=_(S({name:"datetime-picker",components:{Picker:dt},props:{type:{type:String,default:"datetime"},showToolbar:{type:Boolean,default:!0},format:{type:String,default:"YYYY.MM.DD HH时 mm分"},visibleItemCount:{type:Number,default:5},minDate:{type:Date,default:function(){return new Date(zt-10,0,1)},validator:Ht},maxDate:{type:Date,default:function(){return new Date(zt+10,11,31)},validator:Ht},minHour:{type:Number,default:0},maxHour:{type:Number,default:23},value:{}},data:function(){return{innerValue:this.correctValue(this.value)}},watch:{value:function(t){t=this.correctValue(t),("time"===this.type?t===this.innerValue:t.valueOf()===this.innerValue.valueOf())||(this.innerValue=t)},innerValue:function(t){this.updateColumnValue(t),this.$emit("input",t)}},computed:{ranges:function(){if("time"===this.type)return[[this.minHour,this.maxHour],[0,59]];var t=this.getBoundary("max",this.innerValue),e=t.maxYear,n=t.maxDate,i=t.maxMonth,s=t.maxHour,a=t.maxMinute,o=this.getBoundary("min",this.innerValue),r=o.minYear,u=o.minDate,l=[[r,e],[o.minMonth,i],[u,n],[o.minHour,s],[o.minMinute,a]];return"date"===this.type&&l.splice(3,2),"year-month"===this.type&&l.splice(2,3),l},columns:function(){var t=this;return this.ranges.map(function(e){return{values:t.times(e[1]-e[0]+1,function(t){var n=e[0]+t;return n<10?"0"+n:""+n})}})}},methods:{correctValue:function(t){var e="time"!==this.type;if(e&&!Ht(t))t=this.minDate;else if(!t){var n=this.minHour;t=(n>10?n:"0"+n)+":00"}if(!e){var i=t.split(":"),s=i[0],a=i[1],o=Math.max(s,this.minHour);return(o=Math.min(o,this.maxHour))+":"+a}var r=this.getBoundary("max",t),u=r.maxYear,l=r.maxDate,c=r.maxMonth,d=r.maxHour,h=r.maxMinute,f=this.getBoundary("min",t),p=f.minYear,v=f.minDate,m=f.minMonth,g=f.minHour,_=f.minMinute,b=new Date(p,m-1,v,g,_),y=new Date(u,c-1,l,d,h);return t=Math.max(t,b),t=Math.min(t,y),new Date(t)},times:function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i},getBoundary:function(t,e){var n,i=this[t+"Date"],s=i.getFullYear(),a=1,o=1,r=0,u=0;return"max"===t&&(a=12,o=this.getMonthEndDay(e.getFullYear(),e.getMonth()+1),r=23,u=59),e.getFullYear()===s&&(a=i.getMonth()+1,e.getMonth()+1===a&&(o=i.getDate(),e.getDate()===o&&(r=i.getHours(),e.getHours()===r&&(u=i.getMinutes())))),(n={})[t+"Year"]=s,n[t+"Month"]=a,n[t+"Date"]=o,n[t+"Hour"]=r,n[t+"Minute"]=u,n},getTrueValue:function(t){if(t){for(;isNaN(parseInt(t,10));)t=t.slice(1);return parseInt(t,10)}},getMonthEndDay:function(t,e){return this.isShortMonth(e)?30:2===e?this.isLeapYear(t)?29:28:31},isLeapYear:function(t){return t%400==0||t%100!=0&&t%4==0},isShortMonth:function(t){return[4,6,9,11].indexOf(t)>-1},onConfirm:function(){this.$emit("confirm",this.innerValue)},onChange:function(t){var e=t.getValues(),n=void 0;if("time"===this.type)n=e.join(":");else{var i=this.getTrueValue(e[0]),s=this.getTrueValue(e[1]),a=this.getMonthEndDay(i,s),o=this.getTrueValue(e[2]);"year-month"===this.type&&(o=1),o=o>a?a:o;var r=0,u=0;"datetime"===this.type&&(r=this.getTrueValue(e[3]),u=this.getTrueValue(e[4])),n=new Date(i,s-1,o,r,u)}n=this.correctValue(n),this.innerValue=n,this.$emit("change",t)},updateColumnValue:function(t){var e=this;console.log(t,this.type);var n=[];if("time"===this.type){var i=t.split(":");n=[i[0],i[1]]}else n=[""+t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)],"datetime"===this.type&&n.push(("0"+t.getHours()).slice(-2),("0"+t.getMinutes()).slice(-2)),"year-month"===this.type&&(n=n.slice(0,2));this.$nextTick(function(){e.setColumnByValues(n)})},setColumnByValues:function(t){this.$refs.picker&&this.$refs.picker.setValues(t)}},mounted:function(){this.updateColumnValue(this.innerValue)}}),function(){var t=this,e=t.$createElement;return(t._self._c||e)("picker",{ref:"picker",attrs:{"show-toolbar":t.showToolbar,columns:t.columns,"visible-item-count":t.visibleItemCount},on:{change:t.onChange,confirm:t.onConfirm,cancel:function(e){t.$emit("cancel")}}})},[],!1,null,null,null).exports,Yt=_(S({name:"goods-action"}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-goods-action"},[this._t("default")],2)},[],!1,null,null,null).exports,qt=_(S({name:"goods-action-big-btn",mixins:[k],components:{VanButton:z},props:{url:String,text:String,primary:Boolean},methods:{onClick:function(t){this.$emit("click",t),this.routerLink()}}}),function(){var t=this.$createElement;return(this._self._c||t)("van-button",{staticClass:"van-goods-action__big-btn",attrs:{tag:"a",href:this.url,type:this.primary?"primary":"default","bottom-action":""},on:{click:this.onClick}},[this._t("default",[this._v(this._s(this.text))])],2)},[],!1,null,null,null).exports,Wt=_(S({name:"goods-action-mini-btn",mixins:[k],props:{url:String,text:String,info:String,icon:String,iconClass:String},methods:{onClick:function(t){this.$emit("click",t),this.routerLink()}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"van-goods-action__mini-btn van-hairline",attrs:{href:t.url},on:{click:t.onClick}},[n("icon",{staticClass:"van-goods-action__mini-btn-icon",class:t.iconClass,attrs:{info:t.info,name:t.icon}}),t._t("default",[t._v(t._s(t.text))])],2)},[],!1,null,null,null).exports,Gt=_(S({name:"swipe",props:{autoplay:Number,loop:{type:Boolean,default:!0},initialSwipe:{type:Number,default:0},showIndicators:{type:Boolean,default:!0},duration:{type:Number,default:500}},data:function(){return{width:0,offset:0,startX:0,startY:0,active:0,deltaX:0,swipes:[],direction:"",currentDuration:0}},mounted:function(){this.initialize()},destroyed:function(){clearTimeout(this.timer)},watch:{swipes:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t||clearTimeout(this.timer)}},computed:{count:function(){return this.swipes.length},trackStyle:function(){return{paddingLeft:this.width+"px",width:(this.count+2)*this.width+"px",transitionDuration:this.currentDuration+"ms",transform:"translate("+this.offset+"px, 0)"}},activeIndicator:function(){return(this.active+this.count)%this.count}},methods:{initialize:function(){clearTimeout(this.timer),this.width=this.$el.getBoundingClientRect().width,this.active=this.initialSwipe,this.currentDuration=0,this.offset=this.count>1?-this.width*(this.active+1):0,this.swipes.forEach(function(t){t.offset=0}),this.autoPlay()},onTouchStart:function(t){clearTimeout(this.timer),this.deltaX=0,this.direction="",this.currentDuration=0,this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY,this.active<=-1&&this.move(this.count),this.active>=this.count&&this.move(-this.count)},onTouchMove:function(t){this.direction=this.direction||this.getDirection(t.touches[0]),"horizontal"===this.direction&&(t.preventDefault(),this.deltaX=t.touches[0].clientX-this.startX,this.move(0,this.range(this.deltaX,[-this.width,this.width])))},onTouchEnd:function(){this.deltaX&&(this.move(Math.abs(this.deltaX)>50?this.deltaX>0?-1:1:0),this.currentDuration=this.duration),this.autoPlay()},move:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.active,i=this.count,s=this.swipes,a=this.deltaX,o=this.width;!this.loop&&(0===n&&(e>0||t<0)||n===i-1&&(e<0||t>0))||(t?(-1===n&&(s[i-1].offset=0),s[0].offset=n===i-1&&t>0?i*o:0,this.active+=t):0===n?s[i-1].offset=a>0?-i*o:0:n===i-1&&(s[0].offset=a<0?i*o:0),this.offset=e-(this.active+1)*this.width)},autoPlay:function(){var t=this,e=this.autoplay;e&&this.count>1&&(clearTimeout(this.timer),this.timer=setTimeout(function(){t.currentDuration=0,t.active>=t.count&&t.move(-t.count),setTimeout(function(){t.currentDuration=t.duration,t.move(1),t.autoPlay()},30)},e))},getDirection:function(t){var e=Math.abs(t.clientX-this.startX),n=Math.abs(t.clientY-this.startY);return e>n?"horizontal":e<n?"vertical":""},range:function(t,e){return Math.min(Math.max(t,e[0]),e[1])}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-swipe"},[t.count>1?n("div",{staticClass:"van-swipe__track",style:t.trackStyle,on:{touchstart:t.onTouchStart,touchmove:t.onTouchMove,touchend:t.onTouchEnd,touchcancel:t.onTouchEnd,transitionend:function(e){t.$emit("change",t.activeIndicator)}}},[t._t("default")],2):n("div",{staticClass:"van-swipe__track"},[t._t("default")],2),t.showIndicators&&t.count>1?n("div",{staticClass:"van-swipe__indicators"},t._l(t.count,function(e){return n("i",{class:{"van-swipe__indicator--active":e-1===t.activeIndicator}})})):t._e()])},[],!1,null,null,null).exports,Kt=_(S({name:"swipe-item",data:function(){return{offset:0}},computed:{style:function(){return{width:this.$parent.width+"px",transform:"translate("+this.offset+"px, 0)"}}},beforeCreate:function(){this.$parent.swipes.push(this)},destroyed:function(){this.$parent.swipes.splice(this.$parent.swipes.indexOf(this),1)}}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-swipe-item",style:this.style},[this._t("default")],2)},[],!1,null,null,null).exports,Xt=_(S({name:"image-preview",mixins:[L],components:{Swipe:Gt,SwipeItem:Kt},props:{overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{images:[],startPosition:0}},methods:{onTouchStart:function(t){this.touchStartTime=new Date,this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY,this.deltaX=0,this.deltaY=0},onTouchMove:function(t){t.preventDefault(),this.deltaX=t.touches[0].clientX-this.touchStartX,this.deltaY=t.touches[0].clientY-this.touchStartY},onTouchEnd:function(t){t.preventDefault(),new Date-this.touchStartTime<100&&Math.abs(this.deltaX)<20&&Math.abs(this.deltaY)<20&&this.close()}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"van-image-preview",on:{touchstart:t.onTouchStart,touchmove:t.onTouchMove,touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}},[n("swipe",{attrs:{"initial-swipe":t.startPosition}},t._l(t.images,function(t,e){return n("swipe-item",{key:e},[n("img",{staticClass:"van-image-preview__image",attrs:{src:t}})])}))],1)},[],!1,null,null,null).exports,Ut=void 0,Qt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ut||(Ut=new(o.a.extend(Xt))({el:document.createElement("div")}),document.body.appendChild(Ut.$el)),Ut.images=t,Ut.startPosition=e,Ut.value=!0,Ut.$on("input",function(t){Ut.value=t}),Ut};Qt.install=function(){o.a.use(Xt)};var Jt=Qt,Zt=n(61),te=n.n(Zt).a,ee=_(S({name:"list",model:{prop:"loading"},props:{loading:Boolean,finished:Boolean,immediateCheck:{type:Boolean,default:!0},offset:{type:Number,default:300}},mounted:function(){this.scroller=O.getScrollEventTarget(this.$el),this.handler(!0),this.immediateCheck&&this.$nextTick(this.onScroll)},destroyed:function(){this.handler(!1)},activated:function(){this.handler(!0)},deactivated:function(){this.handler(!1)},watch:{loading:function(){this.$nextTick(this.onScroll)},finished:function(){this.$nextTick(this.onScroll)}},methods:{onScroll:function(){if(!this.loading&&!this.finished){var t=this.$el,e=this.scroller,n=O.getVisibleHeight(e);if(n&&"none"!==O.getComputedStyle(t).display){var i=O.getScrollTop(e)+n,s=!1;if(t===e)s=e.scrollHeight-i<this.offset;else s=O.getElementTop(t)-O.getElementTop(e)+O.getVisibleHeight(t)-n<this.offset;s&&(this.$emit("input",!0),this.$emit("load"))}}},handler:function(t){this.binded!==t&&(this.binded=t,(t?A:M)(this.scroller,"scroll",this.onScroll))}}}),function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"van-list"},[this._t("default"),e("div",{directives:[{name:"show",rawName:"v-show",value:this.loading,expression:"loading"}],staticClass:"van-list__loading"},[this._t("loading",[e("loading"),e("span",{staticClass:"van-list__loading-text"},[this._v(this._s(this.$t("loadingTip")))])])],2)],2)},[],!1,null,null,null).exports,ne=_(S({name:"nav-bar",props:{title:String,leftText:String,rightText:String,leftArrow:Boolean,fixed:Boolean,zIndex:{type:Number,default:1}},computed:{style:function(){return{zIndex:this.zIndex}}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-nav-bar van-hairline--bottom",class:{"van-nav-bar--fixed":t.fixed},style:t.style},[n("div",{staticClass:"van-nav-bar__left",on:{click:function(e){t.$emit("click-left")}}},[t._t("left",[t.leftArrow?n("icon",{staticClass:"van-nav-bar__arrow",attrs:{name:"arrow"}}):t._e(),t.leftText?n("span",{staticClass:"van-nav-bar__text",domProps:{textContent:t._s(t.leftText)}}):t._e()])],2),n("div",{staticClass:"van-nav-bar__title"},[t._t("title",[t._v(t._s(t.title))])],2),n("div",{staticClass:"van-nav-bar__right",on:{click:function(e){t.$emit("click-right")}}},[t._t("right",[t.rightText?n("span",{staticClass:"van-nav-bar__text",domProps:{textContent:t._s(t.rightText)}}):t._e()])],2)])},[],!1,null,null,null).exports,ie=_(S({name:"notice-bar",props:{text:String,mode:String,color:String,leftIcon:String,background:String,delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:!0},speed:{type:Number,default:50}},data:function(){return{wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticeBar:!0,animationClass:""}},computed:{iconName:function(){return"closeable"===this.mode?"close":"link"===this.mode?"arrow":""},barStyle:function(){return{color:this.color,background:this.background}},contentStyle:function(){return{paddingLeft:this.firstRound?0:this.wrapWidth+"px",animationDelay:(this.firstRound?this.delay:0)+"s",animationDuration:this.duration+"s"}}},mounted:function(){this.initAnimation()},watch:{text:function(){this.$nextTick(this.initAnimation)}},methods:{onClickIcon:function(){this.showNoticeBar="closeable"!==this.mode},onAnimationEnd:function(){var t=this;this.firstRound=!1,this.$nextTick(function(){t.duration=(t.offsetWidth+t.wrapWidth)/t.speed,t.animationClass="van-notice-bar__play--infinite"})},initAnimation:function(){var t=this.$refs.content.getBoundingClientRect().width,e=this.$refs.contentWrap.getBoundingClientRect().width;this.scrollable&&t>e&&(this.wrapWidth=e,this.offsetWidth=t,this.duration=t/this.speed,this.animationClass="van-notice-bar__play")}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showNoticeBar,expression:"showNoticeBar"}],staticClass:"van-notice-bar",class:{"van-notice-bar--withicon":t.mode},style:t.barStyle,on:{click:function(e){t.$emit("click")}}},[t.leftIcon?n("div",{staticClass:"van-notice-bar__left-icon"},[n("img",{attrs:{src:t.leftIcon}})]):t._e(),n("div",{ref:"contentWrap",staticClass:"van-notice-bar__content-wrap"},[n("div",{ref:"content",staticClass:"van-notice-bar__content",class:t.animationClass,style:t.contentStyle,on:{animationend:t.onAnimationEnd,webkitAnimationEnd:t.onAnimationEnd}},[t._t("default",[t._v(t._s(t.text))])],2)]),t.iconName?n("icon",{staticClass:"van-notice-bar__right-icon",attrs:{name:t.iconName},on:{click:t.onClickIcon}}):t._e()],1)},[],!1,null,null,null).exports,se=_(S({name:"number-keyboard",components:{Key:_({props:{text:[String,Number],type:{type:Array,default:function(){return[]}}},data:function(){return{active:!1}},computed:{className:function(){var t=this.type.slice(0);return this.active&&t.push("active"),t.map(function(t){return"van-key--"+t})}},methods:{onFocus:function(){this.active=!0,this.$emit("press",this.text)},onBlur:function(){this.active=!1}}},function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{staticClass:"van-hairline van-key",class:t.className,domProps:{textContent:t._s(t.text)},on:{touchstart:function(e){return e.stopPropagation(),e.preventDefault(),t.onFocus(e)},touchmove:t.onBlur,touchend:t.onBlur,touchcancel:t.onBlur}})},[],!1,null,null,null).exports},props:{show:Boolean,title:String,closeButtonText:String,theme:{type:String,default:"default"},extraKey:{type:String,default:""},zIndex:{type:Number,default:100},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0}},mounted:function(){this.handler(!0)},destroyed:function(){this.handler(!1)},activated:function(){this.handler(!0)},deactivated:function(){this.handler(!1)},watch:{show:function(){this.transition||this.$emit(this.show?"show":"hide")}},computed:{keys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});switch(this.theme){case"default":t.push({text:this.extraKey,type:["gray"]},{text:0},{text:"delete",type:["gray","delete"]});break;case"custom":t.push({text:0,type:["middle"]},{text:this.extraKey})}return t},style:function(){return{zIndex:this.zIndex}},showTitleClose:function(){return this.closeButtonText&&"default"===this.theme}},methods:{handler:function(t){t!==this.handlerStatus&&this.hideOnClickOutside&&(this.handlerStatus=t,document.body[(t?"add":"remove")+"EventListener"]("touchstart",this.onBlur))},onBlur:function(){this.$emit("blur")},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPressKey:function(t){""!==t&&("delete"===t?this.$emit("delete"):t===this.closeButtonText?this.onBlur():this.$emit("input",t))}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.transition?"van-slide-bottom":""}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"van-number-keyboard",class:"van-number-keyboard--"+t.theme,style:t.style,on:{animationend:t.onAnimationEnd,webkitAnimationEnd:t.onAnimationEnd}},[t.title||t.showTitleClose?n("div",{staticClass:"van-number-keyboard__title van-hairline--top"},[n("span",{domProps:{textContent:t._s(t.title)}}),t.showTitleClose?n("span",{staticClass:"van-number-keyboard__close",domProps:{textContent:t._s(t.closeButtonText)},on:{click:t.onBlur}}):t._e()]):t._e(),n("div",{staticClass:"van-number-keyboard__body"},t._l(t.keys,function(e,i){return n("key",{key:i,attrs:{text:e.text,type:e.type},on:{press:t.onPressKey}})})),"custom"===t.theme?n("div",{staticClass:"van-number-keyboard__sidebar"},[n("key",{attrs:{text:"delete",type:["delete","big"]},on:{press:t.onPressKey}}),n("key",{attrs:{text:t.closeButtonText,type:["green","big"]},on:{press:t.onPressKey}})],1):t._e()])])},[],!1,null,null,null).exports,ae=_(S({name:"pagination",props:{value:Number,prevText:String,nextText:String,pageCount:Number,forceEllipses:Boolean,mode:{type:String,default:"multi"},itemsPerPage:{type:Number,default:10},showPageSize:{type:Number,default:5},totalItems:{type:Number,default:0}},computed:{isMultiMode:function(){return"multi"===this.mode},computedPageCount:function(){var t=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,t)},pageDesc:function(){return this.value+"/"+this.computedPageCount},pages:function(){var t=[],e=this.computedPageCount,n=1,i=e,s=void 0!==this.showPageSize&&this.showPageSize<e;s&&(i=(n=Math.max(this.value-Math.floor(this.showPageSize/2),1))+this.showPageSize-1)>e&&(n=(i=e)-this.showPageSize+1);for(var a=n;a<=i;a++){var o=this.makePage(a,a,a===this.value);t.push(o)}if(s&&this.showPageSize>0&&this.forceEllipses){if(n>1){var r=this.makePage(n-1,"...",!1);t.unshift(r)}if(i<e){var u=this.makePage(i+1,"...",!1);t.push(u)}}return t}},created:function(){this.selectPage(this.value)},watch:{value:function(t){this.selectPage(t)}},methods:{selectPage:function(t){t=Math.max(1,t),t=Math.min(this.computedPageCount,t),this.value!==t&&(this.$emit("input",t),this.$emit("change",t))},makePage:function(t,e,n){return{number:t,text:e,active:n}}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"van-pagination",class:{"van-pagination-simple":!t.isMultiMode}},[n("li",{staticClass:"van-pagination__item van-pagination__prev van-hairline",class:{"van-pagination--disabled":1===t.value},on:{click:function(e){t.selectPage(t.value-1)}}},[t._v("\n "+t._s(t.prevText||t.$t("prev"))+"\n ")]),t._l(t.pages,function(e,i){return t.isMultiMode?n("li",{key:i,staticClass:"van-pagination__item van-pagination__page van-hairline",class:{"van-pagination--active":e.active},on:{click:function(n){t.selectPage(e.number)}}},[t._v("\n "+t._s(e.text)+"\n ")]):t._e()}),t.isMultiMode?t._e():n("li",{staticClass:"van-pagination__page-desc"},[t._t("pageDesc",[t._v(t._s(t.pageDesc))])],2),n("li",{staticClass:"van-pagination__item van-pagination__next van-hairline",class:{"van-pagination--disabled":t.value===t.computedPageCount},on:{click:function(e){t.selectPage(t.value+1)}}},[t._v("\n "+t._s(t.nextText||t.$t("next"))+"\n ")])],2)},[],!1,null,null,null).exports,oe=_(S({name:"panel",props:{desc:String,title:String,status:String}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-panel van-hairline--top-bottom"},[n("div",{staticClass:"van-panel__header van-hairline--bottom"},[t._t("header",[n("div",{staticClass:"van-panel__title",domProps:{textContent:t._s(t.title)}}),t.desc?n("span",{staticClass:"van-panel__desc",domProps:{textContent:t._s(t.desc)}}):t._e(),t.status?n("span",{staticClass:"van-panel__status",domProps:{textContent:t._s(t.status)}}):t._e()])],2),n("div",{staticClass:"van-panel__content"},[t._t("default")],2),t.$slots.footer?n("div",{staticClass:"van-panel__footer van-hairline--top"},[t._t("footer")],2):t._e()])},[],!1,null,null,null).exports,re=_(S({name:"password-input",props:{info:String,errorInfo:String,value:{type:String,default:""},length:{type:Number,default:6}},computed:{points:function(){for(var t=[],e=0;e<this.length;e++)t[e]=this.value[e]?"visible":"hidden";return t}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-password-input"},[n("ul",{staticClass:"van-password-input__security van-hairline--surround",on:{touchstart:function(e){e.stopPropagation(),t.$emit("focus")}}},t._l(t.points,function(t){return n("li",{staticClass:"van-hairline"},[n("i",{style:"visibility: "+t})])})),t.errorInfo||t.info?n("div",{class:t.errorInfo?"van-password-input__error-info":"van-password-input__info",domProps:{textContent:t._s(t.errorInfo||t.info)}}):t._e()])},[],!1,null,null,null).exports,ue=_(S({name:"progress",props:{inactive:Boolean,percentage:{type:Number,required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0},pivotText:{type:String,default:function(){return this.percentage+"%"}},color:{type:String,default:"#38f"},textColor:{type:String,default:"#fff"}},computed:{componentColor:function(){return this.inactive?"#cacaca":this.color},pivotStyle:function(){var t=this.percentage;return{color:this.textColor,backgroundColor:this.componentColor,left:t<=5?"0%":t>=95?"100%":t+"%",marginLeft:t<=5?"0":t>=95?"-28px":"-14px"}},portionStyle:function(){return{width:this.percentage+"%",backgroundColor:this.componentColor}}}}),function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"van-progress"},[e("span",{staticClass:"van-progress__portion",style:this.portionStyle}),e("span",{directives:[{name:"show",rawName:"v-show",value:this.showPivot,expression:"showPivot"}],staticClass:"van-progress__pivot",style:this.pivotStyle},[this._v(this._s(this.pivotText))])])},[],!1,null,null,null).exports,le=_(S({name:"pull-refresh",props:{pullingText:String,loosingText:String,loadingText:String,value:{type:Boolean,required:!0},animationDuration:{type:Number,default:300},headHeight:{type:Number,default:50}},data:function(){return{status:"normal",height:0,duration:0}},computed:{style:function(){return{transition:this.duration+"ms",transform:"translate3d(0,"+this.height+"px, 0)"}}},mounted:function(){this.scrollEl=O.getScrollEventTarget(this.$el)},watch:{value:function(t){this.duration=this.animationDuration,this.getStatus(t?this.headHeight:0,t)}},methods:{onTouchStart:function(t){"loading"!==this.status&&this.getCeiling()&&(this.duration=0,this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY)},onTouchMove:function(t){"loading"!==this.status&&(this.deltaY=t.touches[0].clientY-this.startY,this.direction=this.getDirection(t.touches[0]),!this.ceiling&&this.getCeiling()&&(this.duration=0,this.startY=t.touches[0].clientY,this.deltaY=0),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(this.getStatus(this.ease(this.deltaY)),t.preventDefault()))},onTouchEnd:function(){"loading"!==this.status&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.getStatus(this.headHeight,!0),this.$emit("input",!0),this.$emit("refresh")):this.getStatus(0))},getCeiling:function(){return this.ceiling=0===O.getScrollTop(this.scrollEl),this.ceiling},ease:function(t){var e=this.headHeight;return t<e?t:t<2*e?Math.round(e+(t-e)/2):Math.round(1.5*e+(t-2*e)/4)},getStatus:function(t,e){this.height=t;var n=e?"loading":0===t?"normal":t<this.headHeight?"pulling":"loosing";n!==this.status&&(this.status=n)},getDirection:function(t){var e=Math.abs(t.clientX-this.startX),n=Math.abs(t.clientY-this.startY);return e>n?"horizontal":e<n?"vertical":""}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-pull-refresh"},[n("div",{staticClass:"van-pull-refresh__track",style:t.style,on:{touchstart:t.onTouchStart,touchmove:t.onTouchMove,touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}},[n("div",{staticClass:"van-pull-refresh__head"},["normal"===t.status?t._t("normal"):t._e(),"pulling"===t.status?t._t("pulling",[n("span",{staticClass:"van-pull-refresh__text"},[t._v(t._s(t.pullingText||t.$t("pulling")))])]):t._e(),"loosing"===t.status?t._t("loosing",[n("span",{staticClass:"van-pull-refresh__text"},[t._v(t._s(t.loosingText||t.$t("loosing")))])]):t._e(),"loading"===t.status?t._t("loading",[n("div",{staticClass:"van-pull-refresh__loading"},[n("loading"),n("span",[t._v(t._s(t.loadingText||t.$t("loadingTip")))])],1)]):t._e()],2),t._t("default")],2)])},[],!1,null,null,null).exports,ce=_(S({name:"row",props:{gutter:{type:[Number,String],default:0}},computed:{style:function(){var t="-"+Number(this.gutter)/2+"px";return this.gutter?{marginLeft:t,marginRight:t}:{}}}}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-row",style:this.style},[this._t("default")],2)},[],!1,null,null,null).exports,de=_(S({name:"search",inheritAttrs:!1,props:{value:String,showAction:Boolean,background:{type:String,default:"#f2f2f2"}},data:function(){return{isFocus:!1,focusStatus:!1}},directives:{Clickoutside:$t,refocus:{update:function(t,e){e.value&&t.focus()}}},computed:{listeners:function(){return $()({},this.$listeners,{focus:this.onFocus,input:this.onInput,keypress:this.onKeypress})}},methods:{onFocus:function(){this.isFocus=!0,this.$emit("focus")},onInput:function(t){this.$emit("input",t.target.value)},onKeypress:function(t){13===t.keyCode&&(t.preventDefault(),this.$emit("search",this.value)),this.$emit("keypress",t)},onClean:function(){var t=this;this.$emit("input",""),this.focusStatus=!0,this.$nextTick(function(){t.focusStatus=!1})},onBack:function(){this.$emit("input",""),this.$emit("cancel")},onClickoutside:function(){this.isFocus=!1,this.focusStatus=!1}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-search",class:{"van-search--show-action":t.showAction},style:{"background-color":t.background}},[n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.onClickoutside,expression:"onClickoutside"}],staticClass:"van-search__input-wrap"},[n("icon",{attrs:{name:"search"}}),n("input",t._g(t._b({directives:[{name:"refocus",rawName:"v-refocus",value:t.focusStatus,expression:"focusStatus"}],staticClass:"van-search__input",attrs:{type:"search"},domProps:{value:t.value}},"input",t.$attrs,!1),t.listeners)),n("icon",{directives:[{name:"show",rawName:"v-show",value:t.isFocus&&t.value,expression:"isFocus && value"}],attrs:{name:"clear"},on:{click:t.onClean}})],1),t.showAction?n("div",{staticClass:"van-search__action"},[t._t("action",[n("div",{staticClass:"van-search__action-text",on:{click:t.onBack}},[t._v(t._s(t.$t("cancel")))])])],2):t._e()])},[],!1,null,null,null).exports,he=_(S({name:"sku-header",props:{sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object},computed:{goodsImg:function(){var t=this.selectedSku.s1;return this.getSkuImg(t)||this.goods.picture}},methods:{getSkuImg:function(t){if(t){var e=this.sku.tree.filter(function(t){return"s1"===t.k_s})[0]||{};if(e.v){var n=e.v.filter(function(e){return e.id===t})[0];return n&&n.imgUrl?n.imgUrl:void 0}}}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-sku-header van-hairline--bottom"},[n("div",{staticClass:"van-sku-header__img-wrap"},[n("img",{attrs:{src:t.goodsImg}})]),n("div",{staticClass:"van-sku-header__goods-info"},[n("div",{staticClass:"van-sku__goods-name van-ellipsis"},[t._v(t._s(t.goods.title))]),t._t("default"),n("icon",{staticClass:"van-sku__close-icon",attrs:{name:"close"},on:{click:function(e){t.skuEventBus.$emit("sku:close")}}})],2)])},[],!1,null,null,null).exports,fe=_(S({name:"sku-row",props:{skuRow:Object}}),function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"van-sku-row"},[e("div",{staticClass:"van-sku-row__title"},[this._v(this._s(this.skuRow.k)+":")]),this._t("default")],2)},[],!1,null,null,null).exports,pe={QUOTA_LIMIT:0,STOCK_LIMIT:1},ve={LIMIT_TYPE:pe,UNSELECTED_SKU_VALUE_ID:""},me=function(t){var e={};return t.forEach(function(t){e[t.k_s]=t.v}),e},ge=function(t,e){var n=j()(e).filter(function(t){return""!==e[t]});return t.length===n.length},_e=function(t,e){return t.filter(function(t){return j()(e).every(function(n){return String(t[n])===String(e[n])})})[0]},be=function(t,e){var n=me(t);return j()(e).reduce(function(t,i){var s=n[i],a=e[i];if(""!==a){var o=s.filter(function(t){return t.id===a})[0];o&&t.push(o)}return t},[])},ye=function(t,e,n){var i,a=n.key,o=n.valueId,r=s()({},e,((i={})[a]=o,i)),u=j()(r).filter(function(t){return""!==r[t]});return t.filter(function(t){return u.every(function(e){return String(r[e])===String(t[e])})}).reduce(function(t,e){return t+e.stock_num},0)>0},ke={normalizeSkuTree:me,getSkuComb:_e,getSelectedSkuValues:be,isAllSelected:ge,isSkuChoosable:ye},xe=_(S({name:"sku-row-item",props:{skuEventBus:Object,skuValue:Object,skuList:Array,selectedSku:Object,skuKeyStr:String},computed:{isChoosed:function(){return this.skuValue.id===this.selectedSku[this.skuKeyStr]},isChoosable:function(){return ye(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.isChoosable&&this.skuEventBus.$emit("sku:select",$()({},this.skuValue,{skuKeyStr:this.skuKeyStr}))}}}),function(){var t=this.$createElement;return(this._self._c||t)("span",{staticClass:"van-sku-row__item",class:{"van-sku-row__item--active":this.isChoosed,"van-sku-row__item--disabled":!this.isChoosable},on:{click:this.onSelect}},[this._v("\n "+this._s(this.skuValue.name)+"\n")])},[],!1,null,null,null).exports,Ce=n(60),Se=n.n(Ce),we=_(S({name:"stepper",props:{value:{},disabled:Boolean,disableInput:Boolean,min:{type:[String,Number],default:1},max:{type:[String,Number],default:1/0},step:{type:[String,Number],default:1},defaultValue:{type:[String,Number],default:1}},data:function(){var t=this.value?+this.value:+this.defaultValue,e=this.correctValue(t);return t!==e&&(t=e,this.$emit("input",t)),{currentValue:t}},computed:{isMinusDisabled:function(){var t=+this.min,e=+this.step,n=+this.currentValue;return t===n||n-e<t||this.disabled},isPlusDisabled:function(){var t=+this.max,e=+this.step,n=+this.currentValue;return t===n||n+e>t||this.disabled}},watch:{value:function(t){""!==t&&(t=this.correctValue(+t))!==this.currentValue&&(this.currentValue=t)}},methods:{correctValue:function(t){return Se()(t)?t=this.min:(t=Math.max(this.min,t),t=Math.min(this.max,t)),t},onInput:function(t){var e=t.target.value;this.currentValue=e?this.correctValue(+e):e,t.target.value=this.currentValue,this.emitInput()},onChange:function(t){if(this.isMinusDisabled&&"minus"===t||this.isPlusDisabled&&"plus"===t)this.$emit("overlimit",t);else{var e=+this.step,n=+this.currentValue;this.currentValue="minus"===t?n-e:n+e,this.emitInput(),this.$emit(t)}},emitInput:function(){this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-stepper",class:{"van-stepper--disabled":t.disabled}},[n("button",{staticClass:"van-stepper__stepper van-stepper__minus",class:{"van-stepper__minus--disabled":t.isMinusDisabled},on:{click:function(e){t.onChange("minus")}}}),n("input",{staticClass:"van-stepper__input",attrs:{type:"number",disabled:t.disabled||t.disableInput},domProps:{value:t.currentValue},on:{input:t.onInput}}),n("button",{staticClass:"van-stepper__stepper van-stepper__plus",class:{"van-stepper__plus--disabled":t.isPlusDisabled},on:{click:function(e){t.onChange("plus")}}})])},[],!1,null,null,null).exports,$e=pe.QUOTA_LIMIT,Te=pe.STOCK_LIMIT,Ee=_(S({name:"sku-stepper",components:{Stepper:we},props:{skuEventBus:Object,skuStockNum:Number,selectedSku:Object,selectedSkuComb:Object,selectedNum:Number,stepperTitle:String,quota:Number,quotaUsed:Number,hideStock:Boolean,disableStepperInput:Boolean,customStepperConfig:Object},data:function(){return{currentNum:this.selectedNum,limitType:Te}},watch:{currentNum:function(t){this.skuEventBus.$emit("sku:numChange",t)},stepperLimit:function(t){t<this.currentNum&&(this.currentNum=t)}},computed:{stock:function(){return this.selectedSkuComb?this.selectedSkuComb.stock_num:this.skuStockNum},quotaText:function(){var t=this.customStepperConfig.quotaText,e="";return t?e=t:this.quota>0&&(e=this.$t("quota",this.quota)),e},stepperLimit:function(){var t=this.quota-this.quotaUsed,e=void 0;return this.quota>0&&t<=this.stock?(e=t<0?0:t,this.limitType=$e):(e=this.stock,this.limitType=Te),e}},methods:{setCurrentNum:function(t){this.currentNum=t},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed})},onChange:function(t){var e=this.customStepperConfig.handleStepperChange;e&&e(t)}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-sku-stepper-stock"},[n("div",{staticClass:"van-sku-stepper-container"},[n("div",{staticClass:"van-sku__stepper-title"},[t._v(t._s(t.stepperTitle||t.$t("title"))+":")]),n("stepper",{staticClass:"van-sku__stepper",attrs:{min:1,max:t.stepperLimit,"disable-input":t.disableStepperInput},on:{overlimit:t.onOverLimit,change:t.onChange},model:{value:t.currentNum,callback:function(e){t.currentNum=e},expression:"currentNum"}})],1),t.hideStock?t._e():n("div",{staticClass:"van-sku__stock"},[t._v(t._s(t.$t("remain",t.stock)))]),t.quotaText?n("div",{staticClass:"van-sku__quota"},[t._v(t._s(t.quotaText))]):t._e()])},[],!1,null,null,null).exports;function Be(t){return/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_{|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(.([a-z]|\d|[!#\$%&'*+-\/=\?\^`{|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+))|((\x22)((((\x20|\x09)(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))(((\x20|\x09)(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|.||~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))).)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)}function Ie(t){return/^\d+$/.test(t)}var Oe=_(S({name:"uploader",inheritAttrs:!1,props:{disabled:Boolean,beforeRead:Function,afterRead:Function,resultType:{type:String,default:"dataUrl"},maxSize:{type:Number,default:Number.MAX_VALUE}},methods:{onChange:function(t){var e=this,n=t.target.files;!this.disabled&&n.length&&(!(n=1===n.length?n[0]:[].slice.call(n,0))||this.beforeRead&&!this.beforeRead(n)||(Array.isArray(n)?Z.a.all(n.map(this.readFile)).then(function(t){var i=!1,s=n.map(function(s,a){return s.size>e.maxSize&&(i=!0),{file:n[a],content:t[a]}});e.onAfterRead(s,i)}):this.readFile(n).then(function(t){e.onAfterRead({file:n,content:t},n.size>e.maxSize)})))},readFile:function(t){var e=this;return new Z.a(function(n){var i=new FileReader;i.onload=function(t){n(t.target.result)},"dataUrl"===e.resultType?i.readAsDataURL(t):"text"===e.resultType&&i.readAsText(t)})},onAfterRead:function(t,e){e?this.$emit("oversize",t):(this.afterRead&&this.afterRead(t),this.$refs.input&&(this.$refs.input.value=""))}}}),function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"van-uploader"},[this._t("default"),e("input",this._b({ref:"input",staticClass:"van-uploaderinput",attrs:{type:"file",disabled:this.disabled},on:{change:this.onChange}},"input",this.$attrs,!1))],2)},[],!1,null,null,null).exports,Ne=(S({name:"sku-messages",components:{SkuImgUploader:(S({name:"sku-img-uploader",components:{VanUploader:Oe},props:{value:String,uploadImg:{type:Function,required:!0},maxSize:{type:Number,default:6}},data:function(){return{paddingImg:""}},computed:{imgList:function(){return this.value&&!this.paddingImg?[this.value]:[]}},methods:{afterReadFile:function(t){var e=this;this.paddingImg=t.content,this.uploadImg(t.file,t.content).then(function(t){e.$emit("input",t),e.$nextTick(function(){e.paddingImg=""})}).catch(function(){e.paddingImg=""})}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-sku-img-uploader"},[n("van-uploader",{attrs:{disabled:!!t.paddingImg,"after-read":t.afterReadFile,"max-size":1024t.maxSize1024,accept:"image/*"},on:{oversize:function(e){t.$toast(t.$t("maxSize",t.maxSize))}}},[n("div",{staticClass:"van-sku-img-uploaderheader"},[t.paddingImg?n("div",[t._v(t._s(t.$t("uploading")))]):[n("icon",{attrs:{name:"photograph"}}),n("span",{staticClass:"label"},[t._v(t._s(t.$t(t.value?"rephoto":"photo")))]),t._v(" "+t._s(t.$t("or"))+"\n "),n("icon",{attrs:{name:"photo"}}),n("span",{staticClass:"label"},[t._v(t._s(t.$t(t.value?"reselect":"select")))])]],2)]),t.paddingImg||t.imgList.length>0?n("div",{staticClass:"van-clearfix"},[t._l(t.imgList,function(e,i){return n("div",{key:i,staticClass:"van-sku-img-uploaderimg"},[n("img",{attrs:{src:e}}),n("icon",{staticClass:"van-sku-img-uploaderdelete",attrs:{name:"clear"},on:{click:function(e){t.$emit("input","")}}})],1)}),t.paddingImg?n("div",{staticClass:"van-sku-img-uploaderimg"},[n("img",{attrs:{src:t.paddingImg}}),n("loading",{staticClass:"van-sku-img-uploaderuploading",attrs:{type:"spinner",color:"black"}})],1):t._e()],2):t._e()],1)},[],!1,null,null,null).exports,Field:V},props:{messages:Array,messageConfig:Object,goodsId:[Number,String]},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},computed:{messagePlaceholderMap:function(){return this.messageConfig.placeholderMap||{}}},methods:{resetMessageValues:function(t){return(t||[]).map(function(){return{value:""}})},getType:function(t){return 1==+t.multiple?"textarea":"idno"===t.type?"text":t.datetime>0?"datetime-local":t.type},getMessages:function(){var t=this,e={};return this.messageValues.forEach(function(n,i){var s=n.value;t.messages[i].datetime>0&&(s=s.replace(/T/g," ")),e["message"+i]=s}),e},getCartMessages:function(){var t=this,e={};return this.messageValues.forEach(function(n,i){var s=n.value,a=t.messages[i];a.datetime>0&&(s=s.replace(/T/g," ")),e[a.name]=s}),e},getPlaceholder:function(t){var e=1==+t.multiple?"textarea":t.type;return this.messagePlaceholderMap[e]||this.$t("placeholder."+e)},validateMessages:function(){for(var t=this.messageValues,e=0;e<t.length;e++){var n=t[e].value,i=this.messages[e];if(""===n){if("1"==i.required){var s="image"===i.type?"upload":"fill";return this.$t(s)+i.name}}else{if("tel"===i.type&&!Ie(n))return this.$t("number");if("email"===i.type&&!Be(n))return this.$t("email");if("id_no"===i.type&&(n.length<15||n.length>18))return this.$t("id_no")}if(n.length>200)return i.name+" "+this.$t("overlimit")}}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("cell-group",{staticClass:"van-sku-messages"},[t._l(t.messages,function(e,i){return["image"===e.type?n("cell",{key:t.goodsId+"-"+i,staticClass:"van-sku-messagesimage-cell",attrs:{label:t.$t("onePic"),required:"1"==e.required,title:e.name}},[n("sku-img-uploader",{attrs:{"upload-img":t.messageConfig.uploadImg,"max-size":t.messageConfig.uploadMaxSize},model:{value:t.messageValues[i].value,callback:function(e){t.$set(t.messageValues[i],"value",e)},expression:"messageValues[index].value"}})],1):n("field",{key:t.goodsId+"-"+i,attrs:{required:"1"==e.required,label:e.name,placeholder:t.getPlaceholder(e),type:t.getType(e)},model:{value:t.messageValues[i].value,callback:function(e){t.$set(t.messageValues[i],"value",e)},expression:"messageValues[index].value"}})]})],2)},[],!1,null,null,null).exports,Fe=_(S({name:"sku-actions",components:{VanButton:z},props:{buyText:String,skuEventBus:Object,showAddCartBtn:Boolean}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-sku-actions"},[t.showAddCartBtn?n("van-button",{attrs:{"bottom-action":"",text:t.$t("cart")},on:{click:function(e){t.skuEventBus.$emit("sku:addCart")}}}):t._e(),n("van-button",{attrs:{type:"primary","bottom-action":"",text:t.buyText||t.$t("buy")},on:{click:function(e){t.skuEventBus.$emit("sku:buy")}}})],1)},[],!1,null,null,null).exports,Ae=pe.QUOTALIMIT,Me=(S({name:"sku",components:{Popup:H,SkuHeader:he,SkuRow:fe,SkuRowItem:xe,SkuStepper:Ee,SkuMessages:Ne,SkuActions:Fe},props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],stepperTitle:String,hideStock:Boolean,getContainer:Function,resetStepperOnHide:Boolean,resetSelectedSkuOnHide:Boolean,disableStepperInput:Boolean,closeOnClickOverlay:Boolean,initialSku:{type:Object,default:function(){return{}}},quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},showAddCartBtn:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{placeholderMap:{},uploadImg:function(){return Z.a.resolve()},uploadMaxSize:5}}},customStepperConfig:{type:Object,default:function(){return{}}}},data:function(){return{selectedSku:{},selectedNum:1,show:this.value}},watch:{show:function(t){if(this.$emit("input",t),!t){var e=be(this.sku.tree,this.selectedSku);this.$emit("sku-close",{selectedSkuValues:e,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.$refs.skuStepper&&this.$refs.skuStepper.setCurrentNum(1),this.resetSelectedSkuOnHide&&this.resetSelectedSku(this.skuTree)}},value:function(t){this.show=t},skuTree:function(t){this.resetSelectedSku(t)}},computed:{bodyStyle:function(){if(!this.$isServer)return{maxHeight:window.innerHeight-this.bodyOffsetTop+"px"}},isSkuCombSelected:function(){return ge(this.sku.tree,this.selectedSku)},isSkuEmpty:function(){return 0===j()(this.sku).length},hasSku:function(){return!this.sku.none_sku},selectedSkuComb:function(){return this.hasSku?this.isSkuCombSelected?_e(this.sku.list,this.selectedSku):null:{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num}},price:function(){return this.selectedSkuComb?(this.selectedSkuComb.price/100).toFixed(2):this.sku.price},skuTree:function(){return this.sku.tree||[]}},created:function(){var t=new o.a;this.skuEventBus=t,t.$on("sku:close",this.onClose),t.$on("sku:select",this.onSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetSelectedSku(this.skuTree),this.$emit("after-sku-create",t)},methods:{resetSelectedSku:function(t){var e=this;this.selectedSku={},t.forEach(function(t){e.selectedSku[t.k_s]=e.initialSku[t.k_s]||""}),t.forEach(function(t){var n=t.k_s,i=t.v[0].id;1===t.v.length&&ye(e.sku.list,e.selectedSku,{key:n,valueId:i})&&(e.selectedSku[n]=i)})},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){return 0===this.selectedNum?this.$t("unavailable"):this.isSkuCombSelected?this.validateSkuMessages():this.$t("spec")},onClose:function(){this.show=!1},onSelect:function(t){var e,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?$()({},this.selectedSku,((e={})[t.skuKeyStr]="",e)):$()({},this.selectedSku,((n={})[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onOverLimit:function(t){var e=t.action,n=t.limitType,i=t.quota,s=t.quotaUsed,a=this.customStepperConfig.handleOverLimit;if(a)a(t);else if("minus"===e)Q(this.$t("least"));else if("plus"===e)if(n===Ae){var o=this.$t("quota",i);s>0&&(o+=","+this.$t("purchase",s)),Q(o)}else Q(this.$t("inventory"))},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){var e=this.validateSku();e?Q(e):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb,messages:this.getSkuMessages(),cartMessages:this.getSkuCartMessages()}}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isSkuEmpty?t._e():n("popup",{staticClass:"van-sku-container",attrs:{position:"bottom","close-on-click-overlay":t.closeOnClickOverlay,"get-container":t.getContainer},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[t._t("sku-header",[n("sku-header",{attrs:{"sku-event-bus":t.skuEventBus,"selected-sku":t.selectedSku,goods:t.goods,sku:t.sku}},[t._t("sku-header-price",[n("div",{staticClass:"van-skugoods-price"},[n("span",{staticClass:"van-skuprice-symbol"},[t._v("¥")]),n("span",{staticClass:"van-skuprice-num"},[t._v(t._s(t.price))])])],{price:t.price,selectedSkuComb:t.selectedSkuComb})],2)],{skuEventBus:t.skuEventBus,selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb}),n("div",{staticClass:"van-sku-body",style:t.bodyStyle},[t._t("sku-body-top",null,{selectedSku:t.selectedSku,skuEventBus:t.skuEventBus}),t._t("sku-group",[t.hasSku?n("div",{staticClass:"van-sku-group-container van-hairline--bottom"},t._l(t.skuTree,function(e,i){return n("sku-row",{key:i,attrs:{"sku-row":e}},t._l(e.v,function(i,s){return n("sku-row-item",{key:s,attrs:{"sku-key-str":e.k_s,"sku-value":i,"sku-event-bus":t.skuEventBus,"selected-sku":t.selectedSku,"sku-list":t.sku.list}})}))})):t._e()],{selectedSku:t.selectedSku,skuEventBus:t.skuEventBus}),t._t("extra-sku-group",null,{skuEventBus:t.skuEventBus}),t._t("sku-stepper",[n("sku-stepper",{ref:"skuStepper",attrs:{"sku-event-bus":t.skuEventBus,"selected-sku":t.selectedSku,"selected-sku-comb":t.selectedSkuComb,"selected-num":t.selectedNum,"stepper-title":t.stepperTitle,"sku-stock-num":t.sku.stock_num,quota:t.quota,"quota-used":t.quotaUsed,"disable-stepper-input":t.disableStepperInput,"hide-stock":t.hideStock,"custom-stepper-config":t.customStepperConfig}})],{skuEventBus:t.skuEventBus,selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb,selectedNum:t.selectedNum}),t._t("sku-messages",[n("sku-messages",{ref:"skuMessages",attrs:{"goods-id":t.goodsId,"message-config":t.messageConfig,messages:t.sku.messages}})])],2),t.t("sku-actions",[n("sku-actions",{attrs:{"sku-event-bus":t.skuEventBus,"buy-text":t.buyText,"show-add-cart-btn":t.showAddCartBtn}})],{skuEventBus:t.skuEventBus})],2)},[],!1,null,null,null).exports;Me.SkuActions=Fe,Me.SkuHeader=he,Me.SkuMessages=Ne,Me.SkuStepper=Ee,Me.SkuRow=fe,Me.SkuRowItem=xe,Me.skuHelper=ke,Me.skuConstants=ve;var Le=Me,De=(S({name:"step",beforeCreate:function(){this.$parent.steps.push(this)},computed:{status:function(){var t=this.$parent.steps.indexOf(this),e=this.$parent.active;return t<e?"finish":t===e?"process":void 0},titleStyle:function(){return"process"===this.status?{color:this.$parent.activeColor}:{}}}}),function(){var t,e=this.$createElement,n=this._self._c||e;return n("div",{staticClass:"van-step van-hairline",class:["van-step--"+this.$parent.direction,(t={},t["van-step--"+this.status]=this.status,t)]},[n("div",{staticClass:"van-stepcircle-container"},["process"!==this.status?n("i",{staticClass:"van-stepcircle"}):n("icon",{style:{color:this.$parent.activeColor},attrs:{name:"checked"}})],1),n("div",{staticClass:"van-steptitle",style:this.titleStyle},[this._t("default")],2),n("div",{staticClass:"van-step_line"})])},[],!1,null,null,null).exports,Pe=(S({name:"steps",props:{icon:String,title:String,active:Number,iconClass:String,description:String,direction:{type:String,default:"horizontal"},activeColor:{type:String,default:"#06bf04"}},data:function(){return{steps:[]}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-steps",class:"van-steps--"+t.direction},[t.title||t.description?n("div",{staticClass:"van-stepsstatus"},[t.icon||t.$slots.icon?n("div",{staticClass:"van-stepsicon"},[t._t("icon",[n("icon",{class:t.iconClass,attrs:{name:t.icon}})])],2):t._e(),n("div",{staticClass:"van-stepsmessage"},[n("div",{staticClass:"van-stepstitle",domProps:{textContent:t._s(t.title)}}),n("div",{staticClass:"van-steps__desc van-ellipsis",domProps:{textContent:t._s(t.description)}})]),t._t("message-extra")],2):t._e(),n("div",{staticClass:"van-stepsitems",class:{"van-stepsitems--alone":!t.title&&!t.description}},[t.t("default")],2)])},[],!1,null,null,null).exports,je=(S({name:"submit-bar",components:{VanButton:z},props:{tip:String,type:Number,price:Number,label:String,loading:Boolean,disabled:Boolean,buttonText:String,buttonType:{type:String,default:"danger"}},computed:{hasPrice:function(){return"number"==typeof this.price},priceInterger:function(){return Math.floor(this.price/100)},priceDecimal:function(){var t=this.price%100;return(t<10?"0":"")+t}},methods:{onSubmit:function(){this.disabled||this.loading||this.$emit("submit")}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-submit-bar"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.tip||t.$slots.tip,expression:"tip || $slots.tip"}],staticClass:"van-submit-bartip"},[t._v("\n "+t._s(t.tip)),t._t("tip")],2),n("div",{staticClass:"van-submit-barbar"},[t._t("default"),n("div",{staticClass:"van-submit-barprice"},[t.hasPrice?[n("span",{staticClass:"van-submit-barprice-text"},[t._v(t._s(t.label||t.$t("label")))]),n("span",{staticClass:"van-submit-barprice-interger"},[t._v("¥"+t._s(t.priceInterger)+".")]),n("span",{staticClass:"van-submit-barprice-decimal"},[t._v(t._s(t.priceDecimal))])]:t._e()],2),n("van-button",{attrs:{type:t.buttonType,disabled:t.disabled,loading:t.loading},on:{click:t.onSubmit}},[t._v("\n "+t.s(t.loading?"":t.buttonText)+"\n ")])],2)])},[],!1,null,null,null).exports,Ve=(S({name:"tab",mixins:[bt],props:{title:String,disabled:Boolean},computed:{index:function(){return this.parentGroup.tabs.indexOf(this)}},created:function(){this.findParentByName("van-tabs"),this.parentGroup.tabs.push(this)},destroyed:function(){this.parentGroup.tabs.splice(this.index,1)}}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-tabpane",class:{"van-tabpane--select":this.index===this.parentGroup.curActive}},[this.t("default")],2)},[],!1,null,null,null).exports,ze=(S({name:"tabbar",data:function(){return{items:[]}},props:{value:Number,fixed:{type:Boolean,default:!0}},watch:{items:function(){this.setActiveItem()},value:function(){this.setActiveItem()}},methods:{setActiveItem:function(){var t=this;this.items.forEach(function(e,n){e.active=n===t.value})},onChange:function(t){this.$emit("input",t),this.$emit("change",t)}}}),function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-tabbar van-hairline--top-bottom",class:{"van-tabbar--fixed":this.fixed}},[this.t("default")],2)},[],!1,null,null,null).exports,He=(S({name:"tabbar-item",mixins:[k],props:{icon:String,dot:Boolean,info:String},data:function(){return{active:!1}},beforeCreate:function(){this.$parent.items.push(this)},destroyed:function(){this.$parent.items.splice(this.$parent.items.indexOf(this),1)},methods:{onClick:function(t){this.$parent.onChange(this.$parent.items.indexOf(this)),this.$emit("click",t),this.routerLink()}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-tabbar-item",class:{"van-tabbar-item--active":t.active},on:{click:t.onClick}},[n("div",{staticClass:"van-tabbar-itemicon",class:{"van-tabbar-itemicon-dot":t.dot}},[t._t("icon",[t.icon?n("icon",{attrs:{name:t.icon}}):t._e()],{active:t.active}),t.info?n("div",{staticClass:"van-icon__info"},[t._v(t._s(t.info))]):t._e()],2),n("div",{staticClass:"van-tabbar-itemtext"},[t.t("default",null,{active:t.active})],2)])},[],!1,null,null,null).exports,Re=(S({name:"tabs",components:{VanNode:{name:"van-node",functional:!0,props:{node:Array},render:function(t,e){return e.props.node}}},props:{sticky:Boolean,active:{type:[Number,String],default:0},type:{type:String,default:"line"},duration:{type:Number,default:.2},swipeThreshold:{type:Number,default:4},swipeable:Boolean},data:function(){return{tabs:[],position:"content-top",curActive:0,navBarStyle:{}}},computed:{scrollable:function(){return this.tabs.length>this.swipeThreshold}},watch:{active:function(t){this.correctActive(t)},tabs:function(t){this.correctActive(this.curActive||this.active),this.setNavBar()},curActive:function(){this.scrollIntoView(),this.setNavBar(),"page-top"!==this.position&&"content-bottom"!==this.position||O.setScrollTop(this.scrollEl,O.getElementTop(this.$el))},sticky:function(t){this.scrollHandler(t)}},mounted:function(){var t=this;this.correctActive(this.active),this.setNavBar(),this.$nextTick(function(){t.sticky&&t.scrollHandler(!0),t.swipeable&&t.swipeableHandler(!0),t.scrollIntoView()})},beforeDestroy:function(){this.sticky&&this.scrollHandler(!1),this.swipeable&&this.swipeableHandler(!1)},methods:{scrollHandler:function(t){this.scrollEl=this.scrollEl||O.getScrollEventTarget(this.$el),(t?A:M)(this.scrollEl,"scroll",this.onScroll,!0),t&&this.onScroll()},swipeableHandler:function(t){var e=this.$refs.content;(t?A:M)(e,"touchstart",this.onTouchStart,!1),(t?A:M)(e,"touchmove",this.onTouchMove,!1),(t?A:M)(e,"touchend",this.onTouchEnd,!1),(t?A:M)(e,"touchcancel",this.onTouchEnd,!1)},onTouchStart:function(t){this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},onTouchMove:function(t){this.deltaX=t.touches[0].clientX-this.startX,this.direction=this.getDirection(t.touches[0])},onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.curActive;"horizontal"===t&&Math.abs(e)>=50&&(e>0&&0!==n?this.curActive=n-1:e<0&&n!==this.tabs.length-1&&(this.curActive=n+1))},getDirection:function(t){var e=Math.abs(t.clientX-this.startX),n=Math.abs(t.clientY-this.startY);return e>n?"horizontal":e<n?"vertical":""},onScroll:function(){var t=O.getScrollTop(this.scrollEl),e=O.getElementTop(this.$el),n=e+this.$el.offsetHeight-this.$refs.wrap.offsetHeight;this.position=t>n?"content-bottom":t>e?"page-top":"content-top"},setNavBar:function(){var t=this;this.$nextTick(function(){if(t.$refs.tabs){var e=t.$refs.tabs[t.curActive];t.navBarStyle={width:(e.offsetWidth||0)+"px",transform:"translate("+(e.offsetLeft||0)+"px, 0)",transitionDuration:t.duration+"s"}}})},correctActive:function(t){t=+t;var e=this.tabs.some(function(e){return e.index===t}),n=(this.tabs[0]||{}).index||0;this.curActive=e?t:n},onClick:function(t){this.tabs[t].disabled?this.$emit("disabled",t):(this.$emit("click",t),this.curActive=t)},scrollIntoView:function(){if(this.scrollable&&this.$refs.tabs){var t=this.$refs.tabs[this.curActive],e=this.$refs.nav,n=e.scrollLeft,i=e.offsetWidth,s=t.offsetLeft,a=t.offsetWidth;this.scrollTo(e,n,s-(i-a)/2)}},scrollTo:function(t,e,n){var i=0,s=Math.round(1e3this.duration/16);!function a(){t.scrollLeft+=(n-e)/s,++i<s&&Object(It.b)(a)}()}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-tabs",class:"van-tabs--"+t.type},[n("div",{ref:"wrap",staticClass:"van-tabswrap",class:["van-tabswrap--"+t.position,{"van-tabs--scrollable":t.scrollable,"van-hairline--top-bottom":"line"===t.type}]},[n("div",{ref:"nav",staticClass:"van-tabsnav",class:"van-tabsnav--"+t.type},["line"===t.type?n("div",{staticClass:"van-tabsnav-bar",style:t.navBarStyle}):t._e(),t._l(t.tabs,function(e,i){return n("div",{key:i,ref:"tabs",refInFor:!0,staticClass:"van-tab",class:{"van-tab--active":i===t.curActive,"van-tab--disabled":e.disabled},on:{click:function(e){t.onClick(i)}}},[e.$slots.title?n("van-node",{attrs:{node:e.$slots.title}}):n("span",{staticClass:"van-ellipsis"},[t._v(t._s(e.title))])],1)})],2)]),n("div",{ref:"content",staticClass:"van-tabscontent"},[t.t("default")],2)])},[],!1,null,null,null).exports,Ye=(S({name:"tag",props:{type:String,mark:Boolean,plain:Boolean}}),function(){var t,e=this.$createElement;return(this._self._c||e)("span",{staticClass:"van-tag van-hairline--surround",class:(t={"van-tag--plain":this.plain,"van-tag--mark":this.mark},t["van-tag--"+this.type]=this.type,t)},[this.t("default")],2)},[],!1,null,null,null).exports,qe=(S({name:"tree-select",props:{items:{type:Array,default:function(){return[]}},mainActiveIndex:{type:Number,default:0},activeId:{type:Number,default:0},maxHeight:{type:Number,default:300}},computed:{subItems:function(){return(this.items[this.mainActiveIndex]||{}).children||[]},mainHeight:function(){var t=Math.max(44this.items.length,44this.subItems.length);return Math.min(t,this.maxHeight)},itemHeight:function(){return Math.min(44this.subItems.length,this.maxHeight)}},methods:{onItemSelect:function(t){this.$emit("itemclick",$()({},t))}}}),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-tree-select",style:{height:t.mainHeight+"px"}},[n("div",{staticClass:"van-tree-selectnav"},t._l(t.items,function(e,i){return n("div",{staticClass:"van-tree-selectnitem van-ellipsis",class:{"van-tree-selectnitem--active":t.mainActiveIndex===i},on:{click:function(e){t.$emit("navclick",i)}}},[t._v("\n "+t._s(e.text)+"\n ")])})),n("div",{staticClass:"van-tree-select__content",style:{height:t.itemHeight+"px"}},t._l(t.subItems,function(e){return n("div",{key:e.id,staticClass:"van-tree-selectitem van-ellipsis",class:{"van-tree-selectitem--active":t.activeId===e.id},on:{click:function(n){t.onItemSelect(e)}}},[t._v("\n "+t._s(e.text)+"\n "),t.activeId===e.id?n("icon",{staticClass:"van-tree-selectselected",attrs:{name:"success"}}):t._e()],1)}))])},[],!1,null,null,null).exports,We="@@Waterfall",Ge=300;function Ke(){var t=this;if(!this.el[We].binded){this.el[We].binded=!0,this.scrollEventListener=O.debounce(function(){var t=this.el,e=this.scrollEventTarget;if(this.disabled)return;var n=O.getScrollTop(e),i=O.getVisibleHeight(e),s=n+i;if(!i)return;var a=!1;if(t===e)a=e.scrollHeight-s<this.offset;else{var o=O.getElementTop(t)-O.getElementTop(e)+O.getVisibleHeight(t);a=o-i<this.offset}a&&this.cb.lower&&this.cb.lower({target:e,top:n});var r=!1;if(t===e)r=n<this.offset;else{var u=O.getElementTop(t)-O.getElementTop(e);r=u+this.offset>0}r&&this.cb.upper&&this.cb.upper({target:e,top:n})}.bind(this),200),this.scrollEventTarget=O.getScrollEventTarget(this.el);var e=this.el.getAttribute("waterfall-disabled"),n=!1;e&&(this.vm.$watch(e,function(e){t.disabled=e,t.scrollEventListener()}),n=Boolean(this.vm[e])),this.disabled=n;var i=this.el.getAttribute("waterfall-offset");this.offset=Number(i)||Ge,A(this.scrollEventTarget,"scroll",this.scrollEventListener,!0),this.scrollEventListener()}}function Xe(t){t[We].vm.$nextTick(function(){O.isAttached(t)&&Ke.call(t[We])})}var Ue=function(t){return{bind:function(e,n,i){e[We]||(e[We]={el:e,vm:i.context,cb:{}}),e[We].cb[t]=n.value,function(t){var e=t[We];e.vm._isMounted?Xe(t):e.vm.$on("hook:mounted",function(){Xe(t)})}(e)},update:function(t){var e=t[We];e.scrollEventListener&&e.scrollEventListener()},unbind:function(t){var e=t[We];e.scrollEventTarget&&M(e.scrollEventTarget,"scroll",e.scrollEventListener)}}};Ue.install=function(t){t.directive("WaterfallLower",Ue("lower")),t.directive("WaterfallUpper",Ue("upper"))};var Qe=Ue;n.d(e,"install",function(){return tn}),n.d(e,"version",function(){return Je}),n.d(e,"Actionsheet",function(){return D}),n.d(e,"AddressEdit",function(){return _t}),n.d(e,"AddressList",function(){return xt}),n.d(e,"Area",function(){return ht}),n.d(e,"Badge",function(){return Ct}),n.d(e,"BadgeGroup",function(){return St}),n.d(e,"Button",function(){return z}),n.d(e,"Card",function(){return wt}),n.d(e,"Cell",function(){return x}),n.d(e,"CellGroup",function(){return C}),n.d(e,"CellSwipe",function(){return Tt}),n.d(e,"Checkbox",function(){return Et}),n.d(e,"CheckboxGroup",function(){return Bt}),n.d(e,"Circle",function(){return Ot}),n.d(e,"Col",function(){return Nt}),n.d(e,"Collapse",function(){return Ft}),n.d(e,"CollapseItem",function(){return At}),n.d(e,"ContactCard",function(){return Mt}),n.d(e,"ContactEdit",function(){return Lt}),n.d(e,"ContactList",function(){return Dt}),n.d(e,"CouponCell",function(){return Pt}),n.d(e,"CouponList",function(){return Vt}),n.d(e,"DatetimePicker",function(){return Rt}),n.d(e,"Dialog",function(){return it}),n.d(e,"Field",function(){return V}),n.d(e,"GoodsAction",function(){return Yt}),n.d(e,"GoodsActionBigBtn",function(){return qt}),n.d(e,"GoodsActionMiniBtn",function(){return Wt}),n.d(e,"Icon",function(){return b}),n.d(e,"ImagePreview",function(){return Jt}),n.d(e,"Lazyload",function(){return te}),n.d(e,"List",function(){return ee}),n.d(e,"Loading",function(){return y}),n.d(e,"Locale",function(){return p}),n.d(e,"NavBar",function(){return ne}),n.d(e,"NoticeBar",function(){return ie}),n.d(e,"NumberKeyboard",function(){return se}),n.d(e,"Pagination",function(){return ae}),n.d(e,"Panel",function(){return oe}),n.d(e,"PasswordInput",function(){return re}),n.d(e,"Picker",function(){return dt}),n.d(e,"Popup",function(){return H}),n.d(e,"Progress",function(){return ue}),n.d(e,"PullRefresh",function(){return le}),n.d(e,"Radio",function(){return yt}),n.d(e,"RadioGroup",function(){return kt}),n.d(e,"Row",function(){return ce}),n.d(e,"Search",function(){return de}),n.d(e,"Sku",function(){return Le}),n.d(e,"Step",function(){return De}),n.d(e,"Stepper",function(){return we}),n.d(e,"Steps",function(){return Pe}),n.d(e,"SubmitBar",function(){return je}),n.d(e,"Swipe",function(){return Gt}),n.d(e,"SwipeItem",function(){return Kt}),n.d(e,"Switch",function(){return pt}),n.d(e,"SwitchCell",function(){return vt}),n.d(e,"Tab",function(){return Ve}),n.d(e,"Tabbar",function(){return ze}),n.d(e,"TabbarItem",function(){return He}),n.d(e,"Tabs",function(){return Re}),n.d(e,"Tag",function(){return Ye}),n.d(e,"Toast",function(){return Q}),n.d(e,"TreeSelect",function(){return qe}),n.d(e,"Uploader",function(){return Oe}),n.d(e,"Waterfall",function(){return Qe});var Je="1.0.2",Ze=[D,t,xt,ht,Ct,St,z,wt,x,C,Tt,Et,Bt,Ot,Nt,Ft,At,Mt,Lt,Dt,Pt,Vt,Rt,it,V,Yt,qt,Wt,b,Jt,ee,y,p,ne,ie,se,ae,oe,re,dt,H,ue,le,yt,kt,ce,de,Le,De,we,Pe,je,Gt,Kt,pt,vt,Ve,ze,He,Re,Ye,Q,qe,Oe],tn=function(t){Ze.forEach(function(e){t.use(e)})};"undefined"!=typeof window&&window.Vue&&tn(window.Vue);e.default={install:tn,version:Je}},function(t,e,n){var i=n(9);i(i.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){n(63),t.exports=n(5).Number.isNaN},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(5),s=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return s.stringify.apply(s,arguments)}},function(t,e,n){"use strict";var i=n(9),s=n(30),a=n(44);i(i.S,"Promise",{try:function(t){var e=s.f(this),n=a(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";var i=n(9),s=n(5),a=n(6),o=n(46),r=n(43);i(i.P+i.R,"Promise",{finally:function(t){var e=o(this,s.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return r(e,t()).then(function(){return n})}:t,n?function(n){return r(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){var i=n(4)("iterator"),s=!1;try{var a=[7][i]();a.return=function(){s=!0},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!s)return!1;var n=!1;try{var a=[7],o=a[i]();o.next=function(){return{done:n=!0}},a[i]=function(){return o},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var i=n(6),s=n(5),a=n(13),o=n(11),r=n(4)("species");t.exports=function(t){var e="function"==typeof s[t]?s[t]:i[t];o&&e&&!e[r]&&a.f(e,r,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(14);t.exports=function(t,e,n){for(var s in e)n&&t[s]?t[s]=e[s]:i(t,s,e[s]);return t}},function(t,e,n){var i=n(6),s=n(45).set,a=i.MutationObserver||i.WebKitMutationObserver,o=i.process,r=i.Promise,u="process"==n(20)(o);t.exports=function(){var t,e,n,l=function(){var i,s;for(u&&(i=o.domain)&&i.exit();t;){s=t.fn,t=t.next;try{s()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(u)n=function(){o.nextTick(l)};else if(!a||i.navigator&&i.navigator.standalone)if(r&&r.resolve){var c=r.resolve();n=function(){c.then(l)}}else n=function(){s.call(i,l)};else{var d=!0,h=document.createTextNode("");new a(l).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(i){var s={fn:i,next:void 0};e&&(e.next=s),t||(t=s,n()),e=s}}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var i=n(47),s=n(4)("iterator"),a=n(19);t.exports=n(5).getIteratorMethod=function(t){if(null!=t)return t[s]||t["@@iterator"]||a[i(t)]}},function(t,e,n){var i=n(19),s=n(4)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[s]===t)}},function(t,e,n){var i=n(8);t.exports=function(t,e,n,s){try{return s?e(i(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&i(a.call(t)),e}}},function(t,e,n){var i=n(28),s=n(76),a=n(75),o=n(8),r=n(56),u=n(74),l={},c={};(e=t.exports=function(t,e,n,d,h){var f,p,v,m,g=h?function(){return t}:u(t),=i(n,d,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(a(g)){for(f=r(t.length);f>b;b++)if((m=e?(o(p=t[b])[0],p[1]):(t[b]))===l||m===c)return m}else for(v=g.call(t);!(p=v.next()).done;)if((m=s(v,,p.value,e))===l||m===c)return m}).BREAK=l,e.RETURN=c},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var i,s,a,o,r=n(23),u=n(6),l=n(28),c=n(47),d=n(9),h=n(12),f=n(27),p=n(78),v=n(77),m=n(46),g=n(45).set,=n(72)(),b=n(30),y=n(44),k=n(43),x=u.TypeError,C=u.process,S=u.Promise,w="process"==c(C),$=function(){},T=s=b.f,E=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(4)("species")]=function(t){t($,$)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then($)instanceof e}catch(t){}}(),B=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t.c;(function(){for(var i=t._v,s=1==t._s,a=0,o=function(e){var n,a,o=s?e.ok:e.fail,r=e.resolve,u=e.reject,l=e.domain;try{o?(s||(2==t._h&&F(t),t._h=1),!0===o?n=i:(l&&l.enter(),n=o(i),l&&l.exit()),n===e.promise?u(x("Promise-chain cycle")):(a=B(n))?a.call(n,r,u):r(n)):u(i)}catch(t){u(t)}};n.length>a;)o(n[a++]);t._c=[],t._n=!1,e&&!t._h&&O(t)})}},O=function(t){g.call(u,function(){var e,n,i,s=t._v,a=N(t);if(a&&(e=y(function(){w?C.emit("unhandledRejection",s,t):(n=u.onunhandledrejection)?n({promise:t,reason:s}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",s)}),t._h=w||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){g.call(u,function(){var e;w?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},M=function(t){var e,n=this;if(!n._d){n._d=!0,n=n.w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=B(t))?(function(){var i={_w:n,_d:!1};try{e.call(t,l(M,i,1),l(A,i,1))}catch(t){A.call(i,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){A.call({_w:n,_d:!1},t)}}};E||(S=function(t){p(this,S,"Promise","_h"),f(t),i.call(this);try{t(l(M,this,1),l(A,this,1))}catch(t){A.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(71)(S.prototype,{then:function(t,e){var n=T(m(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=w?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this.s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=l(M,t,1),this.reject=l(A,t,1)},b.f=T=function(t){return t===S||t===o?new a(t):s(t)}),d(d.G+d.W+d.F!E,{Promise:S}),n(22)(S,"Promise"),n(70)("Promise"),o=n(5).Promise,d(d.S+d.F!E,"Promise",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F(r||!E),"Promise",{resolve:function(t){return k(r&&this===o?S:this,t)}}),d(d.S+d.F!(E&&n(69)(function(t){S.all(t).catch($)})),"Promise",{all:function(t){var e=this,n=T(e),i=n.resolve,s=n.reject,a=y(function(){var n=[],a=0,o=1;v(t,!1,function(t){var r=a++,u=!1;n.push(void 0),o++,e.resolve(t).then(function(t){u||(u=!0,n[r]=t,--o||i(n))},s)}),--o||i(n)});return a.e&&s(a.v),n.promise},race:function(t){var e=this,n=T(e),i=n.reject,s=y(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return s.e&&i(s.v),n.promise}})},function(t,e,n){n(48),n(55),n(50),n(79),n(68),n(67),t.exports=n(5).Promise},function(t,e,n){var i=n(9),s=n(5),a=n(17);t.exports=function(t,e){var n=(s.Object||{})[t]||Object[t],o={};o[t]=e(n),i(i.S+i.F*a(function(){n(1)}),"Object",o)}},function(t,e,n){var i=n(33),s=n(21);n(81)("keys",function(){return function(t){return s(i(t))}})},function(t,e,n){n(82),t.exports=n(5).Object.keys},function(t,e,n){n(31)("observable")},function(t,e,n){n(31)("asyncIterator")},function(t,e,n){var i=n(24),s=n(26),a=n(16),o=n(40),r=n(10),u=n(59),l=Object.getOwnPropertyDescriptor;e.f=n(11)?l:function(t,e){if(t=a(t),e=o(e,!0),u)try{return l(t,e)}catch(t){}if(r(t,e))return s(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(16),s=n(49).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return o&&"[object Window]"==a.call(t)?function(t){try{return s(t)}catch(t){return o.slice()}}(t):s(i(t))}},function(t,e,n){var i=n(20);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(21),s=n(34),a=n(24);t.exports=function(t){var e=i(t),n=s.f;if(n)for(var o,r=n(t),u=a.f,l=0;r.length>l;)u.call(t,o=r[l++])&&e.push(o);return e}},function(t,e,n){var i=n(25)("meta"),s=n(12),a=n(10),o=n(13).f,r=0,u=Object.isExtensible||function(){return!0},l=!n(17)(function(){return u(Object.preventExtensions({}))}),c=function(t){o(t,i,{value:{i:"O"+ ++r,w:{}}})},d=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[i].i},getWeak:function(t,e){if(!a(t,i)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[i].w},onFreeze:function(t){return l&&d.NEED&&u(t)&&!a(t,i)&&c(t),t}}},function(t,e,n){"use strict";var i=n(6),s=n(10),a=n(11),o=n(9),r=n(53),u=n(90).KEY,l=n(17),c=n(36),d=n(22),h=n(25),f=n(4),p=n(32),v=n(31),m=n(89),g=n(88),=n(8),b=n(12),y=n(16),k=n(40),x=n(26),C=n(52),S=n(87),w=n(86),$=n(13),T=n(21),E=w.f,B=$.f,I=S.f,O=i.Symbol,N=i.JSON,F=N&&N.stringify,A=f("_hidden"),M=f("toPrimitive"),L={}.propertyIsEnumerable,D=c("symbol-registry"),P=c("symbols"),j=c("op-symbols"),V=Object.prototype,z="function"==typeof O,H=i.QObject,R=!H||!H.prototype||!H.prototype.findChild,Y=a&&l(function(){return 7!=C(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=E(V,e);i&&delete V[e],B(t,e,n),i&&t!==V&&B(V,e,i)}:B,q=function(t){var e=P[t]=C(O.prototype);return e.k=t,e},W=z&&"symbol"==typeof O.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof O},G=function(t,e,n){return t===V&&G(j,e,n),(t),e=k(e,!0),(n),s(P,e)?(n.enumerable?(s(t,A)&&t[A][e]&&(t[A][e]=!1),n=C(n,{enumerable:x(0,!1)})):(s(t,A)||B(t,A,x(1,{})),t[A][e]=!0),Y(t,e,n)):B(t,e,n)},K=function(t,e){(t);for(var n,i=m(e=y(e)),s=0,a=i.length;a>s;)G(t,n=i[s++],e[n]);return t},X=function(t){var e=L.call(this,t=k(t,!0));return!(this===V&&s(P,t)&&!s(j,t))&&(!(e||!s(this,t)||!s(P,t)||s(this,A)&&this[A][t])||e)},U=function(t,e){if(t=y(t),e=k(e,!0),t!==V||!s(P,e)||s(j,e)){var n=E(t,e);return!n||!s(P,e)||s(t,A)&&t[A][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=I(y(t)),i=[],a=0;n.length>a;)s(P,e=n[a++])||e==A||e==u||i.push(e);return i},J=function(t){for(var e,n=t===V,i=I(n?j:y(t)),a=[],o=0;i.length>o;)!s(P,e=i[o++])||n&&!s(V,e)||a.push(P[e]);return a};z||(r((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call(j,n),s(this,A)&&s(this[A],t)&&(this[A][t]=!1),Y(this,t,x(1,n))};return a&&R&&Y(V,t,{configurable:!0,set:e}),q(t)}).prototype,"toString",function(){return this._k}),w.f=U,$.f=G,n(49).f=S.f=Q,n(24).f=X,n(34).f=J,a&&!n(23)&&r(V,"propertyIsEnumerable",X,!0),p.f=function(t){return q(f(t))}),o(o.G+o.W+o.F!z,{Symbol:O});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)f(Z[tt++]);for(var et=T(f.store),nt=0;et.length>nt;)v(et[nt++]);o(o.S+o.F!z,"Symbol",{for:function(t){return s(D,t+="")?D[t]:D[t]=O(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){R=!0},useSimple:function(){R=!1}}),o(o.S+o.F!z,"Object",{create:function(t,e){return void 0===e?C(t):K(C(t),e)},defineProperty:G,defineProperties:K,getOwnPropertyDescriptor:U,getOwnPropertyNames:Q,getOwnPropertySymbols:J}),N&&o(o.S+o.F(!z||l(function(){var t=O();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],s=1;arguments.length>s;)i.push(arguments[s++]);if(n=e=i[1],(b(e)||void 0!==t)&&!W(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!W(e))return e}),i[1]=e,F.apply(N,i)}}),O.prototype[M]||n(14)(O.prototype,M,O.prototype.valueOf),d(O,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(t,e,n){n(91),n(48),n(85),n(84),t.exports=n(5).Symbol},function(t,e,n){t.exports={default:n(92),esModule:!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var i=n(95),s=n(94),a=n(19),o=n(16);t.exports=n(54)(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,s(1)):s(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var i=n(10),s=n(33),a=n(37)("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=s(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},function(t,e,n){var i=n(13),s=n(8),a=n(21);t.exports=n(11)?Object.defineProperties:function(t,e){s(t);for(var n,o=a(e),r=o.length,u=0;r>u;)i.f(t,n=o[u++],e[n]);return t}},function(t,e,n){"use strict";var i=n(52),s=n(26),a=n(22),o={};n(14)(o,n(4)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(o,{next:s(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var i=n(38),s=n(39);t.exports=function(t){return function(e,n){var a,o,r=String(s(e)),u=i(n),l=r.length;return u<0||u>=l?t?"":void 0:(a=r.charCodeAt(u))<55296||a>56319||u+1===l||(o=r.charCodeAt(u+1))<56320||o>57343?t?r.charAt(u):a:t?r.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},function(t,e,n){n(55),n(50),t.exports=n(32).f("iterator")},function(t,e,n){t.exports={default:n(101),esModule:!0}},function(t,e,n){var i=n(38),s=Math.max,a=Math.min;t.exports=function(t,e){return(t=i(t))<0?s(t+e,0):a(t,e)}},function(t,e,n){var i=n(16),s=n(56),a=n(103);t.exports=function(t){return function(e,n,o){var r,u=i(e),l=s(u.length),c=a(o,l);if(t&&n!=n){for(;l>c;)if((r=u[c++])!=r)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){"use strict";var i=n(21),s=n(34),a=n(24),o=n(33),r=n(57),u=Object.assign;t.exports=!u||n(17)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=o(t),u=arguments.length,l=1,c=s.f,d=a.f;u>l;)for(var h,f=r(arguments[l++]),p=c?i(f).concat(c(f)):i(f),v=p.length,m=0;v>m;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:u},function(t,e,n){var i=n(9);i(i.S+i.F,"Object",{assign:n(105)})},function(t,e,n){n(106),t.exports=n(5).Object.assign}])});`

javascripet commented 6 years ago

我也遇到同样的问题了! npm装的 版本"vant": "^1.0.1",

chenjiahan commented 6 years ago

@javascripet 请升级到最新版再试

chen-can commented 5 years ago

我也遇到同样的问题 在ios10以下版本会出现

hnsxxscyx commented 5 years ago

回复一下前几位,这个问题有可能是因为vant使用了flex布局而iOS低版本不支持flex,所以需要加上对应的postcss

lost-xming commented 4 years ago

"vant": "^2.6.3",

eg:

<van-field name="alternate" class="alternateName" v-model="alternateName" :maxlength="8" label="备用联系人姓名:" label-class="owner_name" placeholder="请输入备用联系人姓名"

<template #button> <text class="owner_name_add" @click="pickerClickFun">+联系人

在页面初始化时 无法正常显示 button,但是刷新后 又能正常显示 button。

WangYuSuo commented 4 years ago

请贴一下完整的代码,这样无法定位问题

^2.10.0同样遇到这个问题,卸载了重新下载^2.9.0就又好了

smallke commented 3 years ago

只要加上 slot="button" 就好了