You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
31 KiB
1 lines
31 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-menu-address-addAddress-index~pages-menu-bankCard-addBankCard-index~pages-menu-re-add-index~pa~0dc23b95"],{"118f":function(e,t,r){"use strict";r.r(t);var n=r("e8c5"),i=r("2dc6");for(var a in i)"default"!==a&&function(e){r.d(t,e,(function(){return i[e]}))}(a);r("b1fe");var o,s=r("f0c5"),u=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"5c361d36",null,!1,n["a"],o);t["default"]=u.exports},"2dc6":function(e,t,r){"use strict";r.r(t);var n=r("619a"),i=r.n(n);for(var a in n)"default"!==a&&function(e){r.d(t,e,(function(){return n[e]}))}(a);t["default"]=i.a},"309f":function(e,t,r){"use strict";r.r(t);var n=r("bab2"),i=r("8331");for(var a in i)"default"!==a&&function(e){r.d(t,e,(function(){return i[e]}))}(a);r("ee94");var o,s=r("f0c5"),u=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"08a58aa2",null,!1,n["a"],o);t["default"]=u.exports},"4b77":function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-app.inapp uni-page-head[data-v-08a58aa2]{display:none}uni-input[data-v-08a58aa2]{height:50px}uni-page-head[data-v-08a58aa2]{display:none}.u-form-item[data-v-08a58aa2]{\r\ndisplay:flex;flex-direction:row;\r\npadding:%?20?% 0;font-size:%?28?%;color:#303133;box-sizing:border-box;line-height:%?70?%;flex-direction:column}.u-form-item__border-bottom--error[data-v-08a58aa2]:after{border-color:#fa3534}.u-form-item__body[data-v-08a58aa2]{\r\ndisplay:flex;flex-direction:row\n}.u-form-item--left[data-v-08a58aa2]{\r\ndisplay:flex;flex-direction:row;\r\nalign-items:center}.u-form-item--left__content[data-v-08a58aa2]{position:relative;\r\ndisplay:flex;flex-direction:row;\r\nalign-items:center;padding-right:%?10?%;flex:1}.u-form-item--left__content__icon[data-v-08a58aa2]{margin-right:%?8?%}.u-form-item--left__content--required[data-v-08a58aa2]{position:absolute;left:%?-16?%;vertical-align:middle;color:#fa3534;padding-top:%?6?%}.u-form-item--left__content__label[data-v-08a58aa2]{\r\ndisplay:flex;flex-direction:row;\r\nalign-items:center;flex:1}.u-form-item--right[data-v-08a58aa2]{flex:1}.u-form-item--right__content[data-v-08a58aa2]{\r\ndisplay:flex;flex-direction:row;\r\nalign-items:center;flex:1}.u-form-item--right__content__slot[data-v-08a58aa2]{flex:1;\r\ndisplay:flex;flex-direction:row;\r\nalign-items:center}.u-form-item--right__content__icon[data-v-08a58aa2]{margin-left:%?10?%;color:#c0c4cc;font-size:%?30?%}.u-form-item__message[data-v-08a58aa2]{font-size:%?24?%;line-height:%?24?%;color:#fa3534;margin-top:%?12?%}',""]),e.exports=t},"50ba":function(e,t,r){"use strict";(function(e){function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r("99af"),r("a623"),r("4160"),r("c975"),r("d81d"),r("fb6a"),r("a434"),r("a9e3"),r("b64b"),r("d3b7"),r("e25e"),r("4d63"),r("ac1f"),r("25f0"),r("466d"),r("5319"),r("159b"),r("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=/%[sdj%]/g,a=function(){};function o(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var r=e.field;t[r]=t[r]||[],t[r].push(e)})),t}function s(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=1,a=t[0],o=t.length;if("function"===typeof a)return a.apply(null,t.slice(1));if("string"===typeof a){for(var s=String(a).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(r){return"[Circular]"}break;default:return e}})),u=t[n];n<o;u=t[++n])s+=" "+u;return s}return a}function u(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function l(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!u(t)||"string"!==typeof e||e))}function f(e,t,r){var n=[],i=0,a=e.length;function o(e){n.push.apply(n,e),i++,i===a&&r(n)}e.forEach((function(e){t(e,o)}))}function d(e,t,r){var n=0,i=e.length;function a(o){if(o&&o.length)r(o);else{var s=n;n+=1,s<i?t(e[s],a):r([])}}a([])}function c(e){var t=[];return Object.keys(e).forEach((function(r){t.push.apply(t,e[r])})),t}function p(e,t,r,n){if(t.first){var i=new Promise((function(t,i){var a=function(e){return n(e),e.length?i({errors:e,fields:o(e)}):t()},s=c(e);d(s,r,a)}));return i["catch"]((function(e){return e})),i}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var s=Object.keys(e),u=s.length,l=0,p=[],h=new Promise((function(t,i){var c=function(e){if(p.push.apply(p,e),l++,l===u)return n(p),p.length?i({errors:p,fields:o(p)}):t()};s.length||(n(p),t()),s.forEach((function(t){var n=e[t];-1!==a.indexOf(t)?d(n,r,c):f(n,r,c)}))}));return h["catch"]((function(e){return e})),h}function h(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"===typeof t?t():t,field:t.field||e.fullField}}}function m(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];"object"===typeof i&&"object"===typeof e[r]?e[r]=n({},e[r],{},i):e[r]=i}return e}function g(e,t,r,n,i,a){!e.required||r.hasOwnProperty(e.field)&&!l(t,a||e.type)||n.push(s(i.messages.required,e.fullField))}function v(e,t,r,n,i){(/^\s+$/.test(t)||""===t)&&n.push(s(i.messages.whitespace,e.fullField))}"undefined"!==typeof e&&Object({VUE_APP_INDEX_CSS_HASH:"a5c69d49",VUE_APP_NAME:"Lucky Color",VUE_APP_PLATFORM:"h5",NODE_ENV:"production",BASE_URL:"/"});var y={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},b={integer:function(e){return b.number(e)&&parseInt(e,10)===e},float:function(e){return b.number(e)&&!b.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===typeof e&&!b.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(y.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(y.url)},hex:function(e){return"string"===typeof e&&!!e.match(y.hex)}};function _(e,t,r,n,i){if(e.required&&void 0===t)g(e,t,r,n,i);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?b[o](t)||n.push(s(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&n.push(s(i.messages.types[o],e.fullField,e.type))}}function w(e,t,r,n,i){var a="number"===typeof e.len,o="number"===typeof e.min,u="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=t,d=null,c="number"===typeof t,p="string"===typeof t,h=Array.isArray(t);if(c?d="number":p?d="string":h&&(d="array"),!d)return!1;h&&(f=t.length),p&&(f=t.replace(l,"_").length),a?f!==e.len&&n.push(s(i.messages[d].len,e.fullField,e.len)):o&&!u&&f<e.min?n.push(s(i.messages[d].min,e.fullField,e.min)):u&&!o&&f>e.max?n.push(s(i.messages[d].max,e.fullField,e.max)):o&&u&&(f<e.min||f>e.max)&&n.push(s(i.messages[d].range,e.fullField,e.min,e.max))}var x="enum";function S(e,t,r,n,i){e[x]=Array.isArray(e[x])?e[x]:[],-1===e[x].indexOf(t)&&n.push(s(i.messages[x],e.fullField,e[x].join(", ")))}function q(e,t,r,n,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||n.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var O={required:g,whitespace:v,type:_,range:w,enum:S,pattern:q};function E(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t,"string")&&!e.required)return r();O.required(e,t,n,a,i,"string"),l(t,"string")||(O.type(e,t,n,a,i),O.range(e,t,n,a,i),O.pattern(e,t,n,a,i),!0===e.whitespace&&O.whitespace(e,t,n,a,i))}r(a)}function P(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t)&&!e.required)return r();O.required(e,t,n,a,i),void 0!==t&&O.type(e,t,n,a,i)}r(a)}function A(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),l(t)&&!e.required)return r();O.required(e,t,n,a,i),void 0!==t&&(O.type(e,t,n,a,i),O.range(e,t,n,a,i))}r(a)}function C(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t)&&!e.required)return r();O.required(e,t,n,a,i),void 0!==t&&O.type(e,t,n,a,i)}r(a)}function F(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t)&&!e.required)return r();O.required(e,t,n,a,i),l(t)||O.type(e,t,n,a,i)}r(a)}function $(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t)&&!e.required)return r();O.required(e,t,n,a,i),void 0!==t&&(O.type(e,t,n,a,i),O.range(e,t,n,a,i))}r(a)}function j(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t)&&!e.required)return r();O.required(e,t,n,a,i),void 0!==t&&(O.type(e,t,n,a,i),O.range(e,t,n,a,i))}r(a)}function B(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t,"array")&&!e.required)return r();O.required(e,t,n,a,i,"array"),l(t,"array")||(O.type(e,t,n,a,i),O.range(e,t,n,a,i))}r(a)}function I(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t)&&!e.required)return r();O.required(e,t,n,a,i),void 0!==t&&O.type(e,t,n,a,i)}r(a)}var k="enum";function D(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t)&&!e.required)return r();O.required(e,t,n,a,i),void 0!==t&&O[k](e,t,n,a,i)}r(a)}function T(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t,"string")&&!e.required)return r();O.required(e,t,n,a,i),l(t,"string")||O.pattern(e,t,n,a,i)}r(a)}function V(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t)&&!e.required)return r();var s;if(O.required(e,t,n,a,i),!l(t))s="number"===typeof t?new Date(t):t,O.type(e,s,n,a,i),s&&O.range(e,s.getTime(),n,a,i)}r(a)}function L(e,t,r,n,i){var a=[],o=Array.isArray(t)?"array":typeof t;O.required(e,t,n,a,i,o),r(a)}function M(e,t,r,n,i){var a=e.type,o=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(l(t,a)&&!e.required)return r();O.required(e,t,n,o,i,a),l(t,a)||O.type(e,t,n,o,i)}r(o)}function N(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(l(t)&&!e.required)return r();O.required(e,t,n,a,i)}r(a)}var R={string:E,method:P,number:A,boolean:C,regexp:F,integer:$,float:j,array:B,object:I,enum:D,pattern:T,date:V,url:M,hex:M,email:M,required:L,any:N};function z(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var W=z();function H(e){this.rules=null,this._messages=W,this.define(e)}H.prototype={messages:function(e){return e&&(this._messages=m(z(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,r;for(t in this.rules={},e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=function(){});var a,u,l=e,f=t,d=r;if("function"===typeof f&&(d=f,f={}),!this.rules||0===Object.keys(this.rules).length)return d&&d(),Promise.resolve();function c(e){var t,r=[],n={};function i(e){var t;Array.isArray(e)?r=(t=r).concat.apply(t,e):r.push(e)}for(t=0;t<e.length;t++)i(e[t]);r.length?n=o(r):(r=null,n=null),d(r,n)}if(f.messages){var g=this.messages();g===W&&(g=z()),m(g,f.messages),f.messages=g}else f.messages=this.messages();var v={},y=f.keys||Object.keys(this.rules);y.forEach((function(t){a=i.rules[t],u=l[t],a.forEach((function(r){var a=r;"function"===typeof a.transform&&(l===e&&(l=n({},l)),u=l[t]=a.transform(u)),a="function"===typeof a?{validator:a}:n({},a),a.validator=i.getValidationMethod(a),a.field=t,a.fullField=a.fullField||t,a.type=i.getType(a),a.validator&&(v[t]=v[t]||[],v[t].push({rule:a,value:u,source:l,field:t}))}))}));var b={};return p(v,f,(function(e,t){var r,i=e.rule,a=("object"===i.type||"array"===i.type)&&("object"===typeof i.fields||"object"===typeof i.defaultField);function o(e,t){return n({},t,{fullField:i.fullField+"."+e})}function u(r){void 0===r&&(r=[]);var u=r;if(Array.isArray(u)||(u=[u]),!f.suppressWarning&&u.length&&H.warning("async-validator:",u),u.length&&i.message&&(u=[].concat(i.message)),u=u.map(h(i)),f.first&&u.length)return b[i.field]=1,t(u);if(a){if(i.required&&!e.value)return u=i.message?[].concat(i.message).map(h(i)):f.error?[f.error(i,s(f.messages.required,i.field))]:[],t(u);var l={};if(i.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(l[d]=i.defaultField);for(var c in l=n({},l,{},e.rule.fields),l)if(l.hasOwnProperty(c)){var p=Array.isArray(l[c])?l[c]:[l[c]];l[c]=p.map(o.bind(null,c))}var m=new H(l);m.messages(f.messages),e.rule.options&&(e.rule.options.messages=f.messages,e.rule.options.error=f.error),m.validate(e.value,e.rule.options||f,(function(e){var r=[];u&&u.length&&r.push.apply(r,u),e&&e.length&&r.push.apply(r,e),t(r.length?r:null)}))}else t(u)}a=a&&(i.required||!i.required&&e.value),i.field=e.field,i.asyncValidator?r=i.asyncValidator(i,e.value,u,e.source,f):i.validator&&(r=i.validator(i,e.value,u,e.source,f),!0===r?u():!1===r?u(i.message||i.field+" fails"):r instanceof Array?u(r):r instanceof Error&&u(r.message)),r&&r.then&&r.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){c(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!R.hasOwnProperty(e.type))throw new Error(s("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),r=t.indexOf("message");return-1!==r&&t.splice(r,1),1===t.length&&"required"===t[0]?R.required:R[this.getType(e)]||!1}},H.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");R[e]=t},H.warning=a,H.messages=W;var U=H;t.default=U}).call(this,r("4362"))},5610:function(e,t,r){var n=r("4b77");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("4f06").default;i("1c66f4cd",n,!0,{sourceMap:!1,shadowMode:!1})},"619a":function(e,t,r){"use strict";var n=r("4ea4");r("a9e3"),r("498a"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("c15d")),a={name:"u-input",mixins:[i.default],props:{value:{type:[String,Number],default:""},type:{type:String,default:"text"},inputAlign:{type:String,default:"left"},placeholder:{type:String,default:"请输入内容"},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},placeholderStyle:{type:String,default:"color: #c0c4cc;"},confirmType:{type:String,default:"done"},customStyle:{type:Object,default:function(){return{}}},fixed:{type:Boolean,default:!1},focus:{type:Boolean,default:!1},passwordIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#dcdfe6"},autoHeight:{type:Boolean,default:!0},selectOpen:{type:Boolean,default:!1},height:{type:[Number,String],default:""},clearable:{type:Boolean,default:!0},cursorSpacing:{type:[Number,String],default:0},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},trim:{type:Boolean,default:!0},showConfirmbar:{type:Boolean,default:!0}},data:function(){return{defaultValue:this.value,inputHeight:70,textareaHeight:100,validateState:!1,focused:!1,showPassword:!1,lastValue:""}},watch:{value:function(e,t){this.defaultValue=e,e!=t&&"select"==this.type&&this.handleInput({detail:{value:e}})}},computed:{inputMaxlength:function(){return Number(this.maxlength)},getStyle:function(){var e={};return e.minHeight=this.height?this.height+"rpx":"textarea"==this.type?this.textareaHeight+"rpx":this.inputHeight+"rpx",e=Object.assign(e,this.customStyle),e},getCursorSpacing:function(){return Number(this.cursorSpacing)},uSelectionStart:function(){return String(this.selectionStart)},uSelectionEnd:function(){return String(this.selectionEnd)}},created:function(){this.$on("on-form-item-error",this.onFormItemError)},methods:{handleInput:function(e){var t=this,r=e.detail.value;this.trim&&(r=this.$u.trim(r)),this.$emit("input",r),this.defaultValue=r,setTimeout((function(){t.dispatch("u-form-item","on-form-change",r)}),40)},handleBlur:function(e){var t=this;setTimeout((function(){t.focused=!1}),100),this.$emit("blur",e.detail.value),setTimeout((function(){t.dispatch("u-form-item","on-form-blur",e.detail.value)}),40)},onFormItemError:function(e){this.validateState=e},onFocus:function(e){this.focused=!0,this.$emit("focus")},onConfirm:function(e){this.$emit("confirm",e.detail.value)},onClear:function(e){this.$emit("input","")},inputClick:function(){this.$emit("click")}}};t.default=a},"7fd6":function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-app.inapp uni-page-head[data-v-5c361d36]{display:none}uni-input[data-v-5c361d36]{height:50px}uni-page-head[data-v-5c361d36]{display:none}.u-input[data-v-5c361d36]{position:relative;flex:1;\r\ndisplay:flex;flex-direction:row\n}.u-input__input[data-v-5c361d36]{font-size:%?28?%;color:#303133;flex:1}.u-input__textarea[data-v-5c361d36]{width:auto;font-size:%?28?%;color:#303133;padding:%?10?% 0;line-height:normal;flex:1}.u-input--border[data-v-5c361d36]{border-radius:%?6?%;border-radius:4px;border:1px solid #dcdfe6}.u-input--error[data-v-5c361d36]{border-color:#fa3534!important}.u-input__right-icon__item[data-v-5c361d36]{margin-left:%?10?%}.u-input__right-icon--select[data-v-5c361d36]{transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.u-input__right-icon--select--reverse[data-v-5c361d36]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),e.exports=t},8011:function(e,t,r){"use strict";var n=r("4ea4");r("99af"),r("4de4"),r("c975"),r("d81d"),r("a434"),r("a9e3"),r("b64b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("ade3")),a=n(r("c15d")),o=n(r("50ba"));o.default.warning=function(){};var s={name:"u-form-item",mixins:[a.default],inject:{uForm:{default:function(){return null}}},props:{label:{type:String,default:""},prop:{type:String,default:""},borderBottom:{type:[String,Boolean],default:""},labelPosition:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelStyle:{type:Object,default:function(){return{}}},labelAlign:{type:String,default:""},rightIcon:{type:String,default:""},leftIcon:{type:String,default:""},leftIconStyle:{type:Object,default:function(){return{}}},rightIconStyle:{type:Object,default:function(){return{}}},required:{type:Boolean,default:!1}},data:function(){return{initialValue:"",validateState:"",validateMessage:"",errorType:["message"],fieldValue:"",parentData:{borderBottom:!0,labelWidth:90,labelPosition:"left",labelStyle:{},labelAlign:"left"}}},watch:{validateState:function(e){this.broadcastInputError()},"uForm.errorType":function(e){this.errorType=e,this.broadcastInputError()}},computed:{uLabelWidth:function(){return"left"==this.elLabelPosition?"true"===this.label||""===this.label?"auto":this.$u.addUnit(this.elLabelWidth):"100%"},showError:function(){var e=this;return function(t){return!(e.errorType.indexOf("none")>=0)&&e.errorType.indexOf(t)>=0}},elLabelWidth:function(){return 0!=this.labelWidth||""!=this.labelWidth?this.labelWidth:this.parentData.labelWidth?this.parentData.labelWidth:90},elLabelStyle:function(){return Object.keys(this.labelStyle).length?this.labelStyle:this.parentData.labelStyle?this.parentData.labelStyle:{}},elLabelPosition:function(){return this.labelPosition?this.labelPosition:this.parentData.labelPosition?this.parentData.labelPosition:"left"},elLabelAlign:function(){return this.labelAlign?this.labelAlign:this.parentData.labelAlign?this.parentData.labelAlign:"left"},elBorderBottom:function(){return""!==this.borderBottom?this.borderBottom:!this.parentData.borderBottom||this.parentData.borderBottom}},methods:{broadcastInputError:function(){this.broadcast("u-input","on-form-item-error","error"===this.validateState&&this.showError("border"))},setRules:function(){var e=this;this.$on("on-form-blur",e.onFieldBlur),this.$on("on-form-change",e.onFieldChange)},getRules:function(){var e=this.parent.rules;return e=e?e[this.prop]:[],[].concat(e||[])},onFieldBlur:function(){this.validation("blur")},onFieldChange:function(){this.validation("change")},getFilteredRule:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getRules();return e?t.filter((function(t){return t.trigger&&-1!==t.trigger.indexOf(e)})):t},validation:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.fieldValue=this.parent.model[this.prop];var n=this.getFilteredRule(e);if(!n||0===n.length)return r("");this.validateState="validating";var a=new o.default((0,i.default)({},this.prop,n));a.validate((0,i.default)({},this.prop,this.fieldValue),{firstFields:!0},(function(e,n){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",r(t.validateMessage)}))},resetField:function(){this.parent.model[this.prop]=this.initialValue,this.validateState="success"}},mounted:function(){var e=this;this.parent=this.$u.$parent.call(this,"u-form"),this.parent&&(Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]})),this.prop&&(this.parent.fields.push(this),this.errorType=this.parent.errorType,this.initialValue=this.fieldValue,this.$nextTick((function(){e.setRules()}))))},beforeDestroy:function(){var e=this;this.parent&&this.prop&&this.parent.fields.map((function(t,r){t===e&&e.parent.fields.splice(r,1)}))}};t.default=s},8331:function(e,t,r){"use strict";r.r(t);var n=r("8011"),i=r.n(n);for(var a in n)"default"!==a&&function(e){r.d(t,e,(function(){return n[e]}))}(a);t["default"]=i.a},a623:function(e,t,r){"use strict";var n=r("23e7"),i=r("b727").every,a=r("a640"),o=r("ae40"),s=a("every"),u=o("every");n({target:"Array",proto:!0,forced:!s||!u},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},b1fe:function(e,t,r){"use strict";var n=r("e14c"),i=r.n(n);i.a},bab2:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return n}));var n={uIcon:r("4694").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"u-form-item",class:{"u-border-bottom":e.elBorderBottom,"u-form-item__border-bottom--error":"error"===e.validateState&&e.showError("border-bottom")}},[r("v-uni-view",{staticClass:"u-form-item__body",style:{flexDirection:"left"==e.elLabelPosition?"row":"column"}},[r("v-uni-view",{staticClass:"u-form-item--left",style:{width:e.uLabelWidth,flex:"0 0 "+e.uLabelWidth,marginBottom:"left"==e.elLabelPosition?0:"10rpx"}},[e.required||e.leftIcon||e.label?r("v-uni-view",{staticClass:"u-form-item--left__content"},[e.required?r("v-uni-text",{staticClass:"u-form-item--left__content--required"},[e._v("*")]):e._e(),e.leftIcon?r("v-uni-view",{staticClass:"u-form-item--left__content__icon"},[r("u-icon",{attrs:{name:e.leftIcon,"custom-style":e.leftIconStyle}})],1):e._e(),r("v-uni-view",{staticClass:"u-form-item--left__content__label",style:[e.elLabelStyle,{"justify-content":"left"==e.elLabelAlign?"flex-start":"center"==e.elLabelAlign?"center":"flex-end"}]},[e._v(e._s(e.label))])],1):e._e()],1),r("v-uni-view",{staticClass:"u-form-item--right u-flex"},[r("v-uni-view",{staticClass:"u-form-item--right__content"},[r("v-uni-view",{staticClass:"u-form-item--right__content__slot "},[e._t("default")],2),e.$slots.right||e.rightIcon?r("v-uni-view",{staticClass:"u-form-item--right__content__icon u-flex"},[e.rightIcon?r("u-icon",{attrs:{"custom-style":e.rightIconStyle,name:e.rightIcon}}):e._e(),e._t("right")],2):e._e()],1)],1)],1),"error"===e.validateState&&e.showError("message")?r("v-uni-view",{staticClass:"u-form-item__message",style:{paddingLeft:"left"==e.elLabelPosition?e.$u.addUnit(e.elLabelWidth):"0"}},[e._v(e._s(e.validateMessage))]):e._e()],1)},a=[]},c15d:function(e,t,r){"use strict";function n(e,t,r){this.$children.map((function(i){e===i.$options.name?i.$emit.apply(i,[t].concat(r)):n.apply(i,[e,t].concat(r))}))}r("99af"),r("d81d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={methods:{dispatch:function(e,t,r){var n=this.$parent||this.$root,i=n.$options.name;while(n&&(!i||i!==e))n=n.$parent,n&&(i=n.$options.name);n&&n.$emit.apply(n,[t].concat(r))},broadcast:function(e,t,r){n.call(this,e,t,r)}}};t.default=i},e14c:function(e,t,r){var n=r("7fd6");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("4f06").default;i("4dd2c6a8",n,!0,{sourceMap:!1,shadowMode:!1})},e8c5:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return n}));var n={uIcon:r("4694").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"u-input",class:{"u-input--border":e.border,"u-input--error":e.validateState},style:{padding:"0 "+(e.border?20:0)+"rpx",borderColor:e.borderColor,textAlign:e.inputAlign},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.inputClick.apply(void 0,arguments)}}},["textarea"==e.type?r("v-uni-textarea",{staticClass:"u-input__input u-input__textarea",style:[e.getStyle],attrs:{value:e.defaultValue,placeholder:e.placeholder,placeholderStyle:e.placeholderStyle,disabled:e.disabled,maxlength:e.inputMaxlength,fixed:e.fixed,focus:e.focus,autoHeight:e.autoHeight,"selection-end":e.uSelectionEnd,"selection-start":e.uSelectionStart,"cursor-spacing":e.getCursorSpacing,"show-confirm-bar":e.showConfirmbar},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.handleInput.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.handleBlur.apply(void 0,arguments)},focus:function(t){arguments[0]=t=e.$handleEvent(t),e.onFocus.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)}}}):r("v-uni-input",{staticClass:"u-input__input",style:[e.getStyle],attrs:{type:"password"==e.type?"text":e.type,value:e.defaultValue,password:"password"==e.type&&!e.showPassword,placeholder:e.placeholder,placeholderStyle:e.placeholderStyle,disabled:e.disabled||"select"===e.type,maxlength:e.inputMaxlength,focus:e.focus,confirmType:e.confirmType,"cursor-spacing":e.getCursorSpacing,"selection-end":e.uSelectionEnd,"selection-start":e.uSelectionStart,"show-confirm-bar":e.showConfirmbar},on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),e.onFocus.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.handleBlur.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),e.handleInput.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)}}}),r("v-uni-view",{staticClass:"u-input__right-icon u-flex"},[e.clearable&&""!=e.value&&e.focused?r("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClear.apply(void 0,arguments)}}},[r("u-icon",{attrs:{size:"32",name:"close-circle-fill",color:"#c0c4cc"}})],1):e._e(),e.passwordIcon&&"password"==e.type?r("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item"},[r("u-icon",{attrs:{size:"32",name:e.showPassword?"eye-fill":"eye",color:"#c0c4cc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showPassword=!e.showPassword}}})],1):e._e(),"select"==e.type?r("v-uni-view",{staticClass:"u-input__right-icon--select u-input__right-icon__item",class:{"u-input__right-icon--select--reverse":e.selectOpen}},[r("u-icon",{attrs:{name:"arrow-down-fill",size:"26",color:"#c0c4cc"}})],1):e._e()],1)],1)},a=[]},ee94:function(e,t,r){"use strict";var n=r("5610"),i=r.n(n);i.a}}]);
|