@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 342 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BankSelect=e():t.BankSelect=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=1931)}({0:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(t,e,n){"use strict";function i(t,e,n,i,o,r,s,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId=r);var u;if(s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(l.functional){l._injectStyles=u;var h=l.render;l.render=function(t,e){return u.call(e),h(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:l}}e.a=i},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,n){n(56),t.exports=n(0).Object.getOwnPropertySymbols},101:function(t,e,n){"use strict";function i(t){var e={},n={},i={};for(var c in t)if(t.hasOwnProperty(c))if(-1!==a.indexOf(c))e[c]=t[c];else if(s.test(c)){var l=s.exec(c)[1];l=Object(r.a)(l),i[l]=t[c]}else n[c]=t[c];return e.on=Object(o.a)(i,e.on),e.props=Object(o.a)(n,e.props),e}e.a=i;var o=n(62),r=n(102),s=new RegExp(/^on(.+)/),a=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},102:function(t,e,n){"use strict";function i(t,e){var n=c(t,e);return n.charAt(0).toLowerCase()+n.slice(1)}e.a=i;var o=n(28),r=n.n(o),s=n(4),a=function(t){for(var e=!1,n=!1,i=!1,o=0;o<t.length;o++){var r=t[o];e&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,i=n,n=!0,o++):n&&i&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(t=t.slice(0,o-1)+"-"+t.slice(o-1),i=n,n=!1,e=!0):(e=r.toLowerCase()===r&&r.toUpperCase()!==r,i=n,n=r.toUpperCase()===r&&r.toLowerCase()!==r)}return t},c=function(t,e){if("string"!=typeof t&&!Object(s.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=r()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=a(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},103:function(t,e,n){"use strict";function i(t,e,n,i){var r=void 0,s=void 0,a=new t({render:function(t){var n=s&&s(t);return n&&!Object(o.o)(n)&&(n=[n]),t(e,r,n||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return a.updateRenderData=function(t,e){r=t,s=e},a.updateRenderData(n,i),a.$mount(),a.init(),a.$children[0]}e.a=i;var o=n(4)},1031:function(t,e,n){"use strict";function i(t){a||n(1032)}var o=n(565),r=n(1033),s=n(1),a=!1,c=i,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-503eaf05",null);l.options.__file="src\\components\\Toast\\src\\index.vue",e.a=l.exports},1032:function(t,e){},1033:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{opacity:"0",pointerEvent:t.pointerEvents,zIndex:t.zIndex},scopedSlots:t._u([{key:"mask",fn:function(){return[n("div",{staticClass:"act-toast",style:{fontSize:t._fontSize}},[n("div",{class:{"act-toast-content":!0,icon:""!==t.iconObj,"icon-left":"left"===t.iconObj.align},style:{"text-align":t.align,background:"rgba(0,0,0,"+t.opacity+")"}},[t.iconObj?n("div",{staticClass:"icon-cont"},[n("Loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:t.iconObj.type,size:t.iconObj.size?t.iconObj.size:33,color:t.iconObj.color,bgcolor:t.iconObj.bgcolor,center:t.iconObj.center}})],1):t._e(),t._v(" "),n("div",{staticClass:"toast-txt"},[t._v("\n "+t._s(t.txt)+"\n ")])])])]},proxy:!0}])})},o=[];i._withStripped=!0},1037:function(t,e,n){"use strict";var i=n(41);e.a={name:"ActPanel",mixins:[i.a],props:{title:{type:String,default:""},borderRadius:{type:String,default:"10px"}}}},104:function(t,e,n){"use strict";var i=n(19),o=n(65);e.a={name:"ActPopup",mixins:[i.a,o.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},105:function(t,e,n){"use strict";e.__esModule=!0;var i=n(28),o=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=o.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}},106:function(t,e,n){var i=n(26),o=n(3)("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),o))?n:r?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},108:function(t,e,n){"use strict";function i(t){a||n(122)}var o=n(104),r=n(123),s=n(1),a=!1,c=i,l=Object(s.a)(o.a,r.a,r.b,!1,c,null,null);l.options.__file="src\\components\\common\\popup.vue",e.a=l.exports},109:function(t,e,n){"use strict";function i(t){a||n(221)}var o=n(163),r=n(241),s=n(1),a=!1,c=i,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-94daa448",null);l.options.__file="src\\components\\common\\svgicon.vue",e.a=l.exports},11:function(t,e,n){var i=n(46),o=n(29);t.exports=function(t){return i(o(t))}},110:function(t,e,n){var i=n(9),o=n(39),r=n(3)("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||void 0==(n=i(s)[r])?e:o(n)}},111:function(t,e,n){var i,o,r,s=n(38),a=n(146),c=n(60),l=n(40),u=n(2),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,v=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},i(v),v},f=function(t){delete g[t]},"process"==n(26)(h)?i=function(t){h.nextTick(s(y,t,1))}:m&&m.now?i=function(t){m.now(s(y,t,1))}:p?(o=new p,r=o.port2,o.port1.onmessage=b,i=s(r.postMessage,r,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:d,clear:f}},112:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},113:function(t,e,n){var i=n(9),o=n(10),r=n(68);t.exports=function(t,e){if(i(t),o(e)&&e.constructor===t)return e;var n=r.f(t);return(0,n.resolve)(e),n.promise}},114:function(t,e,n){"use strict";function i(t){t.interceptors.response.use(function(t){return t},function(t){var e={403:"请求被拒绝,请联系客服处理",404:"您访问的资源不可用,请联系客服处理",502:"服务器网关出错,请稍后重试",503:"服务器维护中,请稍后重试",504:"服务器请求超时,请稍后重试"},n="";return n=t&&t.response&&t.response.status?e[t.response.status]?e[t.response.status]+"("+t.response.status+")":"请求失败,请稍后重试("+t.response.status+")":t&&t.message&&/timeout/i.test(t.message)?"请求超时,请稍后重试":"请求失败,请稍后重试",a.a.reject(new Error(n))})}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new a.a(function(o,r){var s=l.a.create();i(s),s.request({method:"post",url:t,data:e,timeout:n,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){o(t)}).catch(function(t){r(t)})})}function r(t){return l.a.get(t).then(function(t){return a.a.resolve(t.data)})}e.a=i,e.d=o,e.c=r;var s=n(51),a=n.n(s),c=n(167),l=n.n(c);e.b=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new a.a(function(o,r){var s=l.a.create();i(s),s.request({method:"post",url:t,data:e,timeout:n,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(t){function e(t,e){var n=0,i=t.length;if(void 0===i||"[object Function]"===Object.prototype.toString.call(t)){for(var o in t)if(!1===e.call(t[o],o,t[o]))break}else for(var r=t[0];n<i&&!1!==e.call(r,n,r);r=t[++n]);return t}function n(t,i,o){var r=void 0,s="[object Array]"===Object.prototype.toString.call(i),a="[object Object]"===Object.prototype.toString.call(i);e(i,function(e,i){r=Object.prototype.toString.call(i),o&&(e=o+"["+(a||"[object Object]"===r||"[object Array]"===r?e:"")+"]"),!o&&s?t.add(i.name,i.value):"[object Array]"===r||"[object Object]"===r?n(t,i,e):t.add(e,i)})}if(t){return function(t){var e=[];return e.add=function(t,e){"[object Function]"===Object.prototype.toString.call(e)&&(e=e()),null==e&&(e=""),this.push(encodeURIComponent(t)+"="+encodeURIComponent(e))},n(e,t),e.join("&").replace(/%20/g,"+")}(t)}}]}).then(function(t){o(t)}).catch(function(t){r(t)})})}},115:function(t,e,n){var i=n(106),o=n(3)("iterator"),r=n(18);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[i(t)]}},116:function(t,e,n){"use strict";function i(t){t.preventDefault()}var o={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",i,{passive:!1}):document.body.removeEventListener("touchmove",i,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",i,{passive:!1})}};e.a=o},117: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},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},120:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(157);e.default=i.a},1207:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=n(1208);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createPanel=Object(i.a)(o.a,t)},e.default=o.a},1208:function(t,e,n){"use strict";function i(t){a||n(1209)}var o=n(1037),r=n(1210),s=n(1),a=!1,c=i,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-4d659c22",null);l.options.__file="src\\components\\Panel\\src\\index.vue",e.a=l.exports},1209:function(t,e){},121:function(t,e,n){"use strict";function i(t){a||n(201)}var o=n(153),r=n(202),s=n(1),a=!1,c=i,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-f3b563a0",null);l.options.__file="src\\components\\common\\goldlayer.vue",e.a=l.exports},1210:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"module"},[t.$slots.title?t._t("title"):t.title?n("h3",[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),n("article",{staticClass:"panel",style:{"border-radius":t.borderRadius}},[t.$slots.header?t._t("header"):t._e(),t._v(" "),t._t("default"),t._v(" "),t.$slots.footer?t._t("footer"):t._e()],2)],2)},o=[];i._withStripped=!0},122:function(t,e){},123:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),n("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?n("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):n("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},o=[];i._withStripped=!0},125:function(t,e,n){"use strict";function i(t){a||n(203)}var o=n(154),r=n(204),s=n(1),a=!1,c=i,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-3349a91e",null);l.options.__file="src\\components\\common\\scroll.vue",e.a=l.exports},126:function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},127:function(t,e,n){"use strict";function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(17);t.exports=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(o.isURLSearchParams(e))r=e.toString();else{var s=[];o.forEach(e,function(t,e){null!==t&&void 0!==t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))}))}),r=s.join("&")}if(r){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}},128:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},129:function(t,e,n){"use strict";(function(e){function i(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(17),r=n(173),s={"Content-Type":"application/x-www-form-urlencoded"},a={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(130):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=n(130)),t}(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){a.headers[t]={}}),o.forEach(["post","put","patch"],function(t){a.headers[t]=o.merge(s)}),t.exports=a}).call(e,n(152))},13:function(t,e,n){var i=n(2),o=n(0),r=n(38),s=n(8),a=n(6),c=function(t,e,n){var l,u,h,d=t&c.F,f=t&c.G,p=t&c.S,m=t&c.P,v=t&c.B,g=t&c.W,y=f?o:o[e]||(o[e]={}),b=y.prototype,x=f?i:p?i[e]:(i[e]||{}).prototype;f&&(n=e);for(l in n)(u=!d&&x&&void 0!==x[l])&&a(y,l)||(h=u?x[l]:n[l],y[l]=f&&"function"!=typeof x[l]?n[l]:v&&u?r(h,i):g&&x[l]==h?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}(h):m&&"function"==typeof h?r(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[l]=h,t&c.R&&b&&!b[l]&&s(b,l,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},130:function(t,e,n){"use strict";var i=n(17),o=n(174),r=n(127),s=n(176),a=n(179),c=n(180),l=n(131);t.exports=function(t){return new Promise(function(e,u){var h=t.data,d=t.headers;i.isFormData(h)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+m)}var v=s(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),r(v,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,i=t.responseType&&"text"!==t.responseType?f.response:f.responseText,r={data:i,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,u,r),f=null}},f.onabort=function(){f&&(u(l("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){u(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),u(l(e,t,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var g=n(181),y=(t.withCredentials||c(v))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(d[t.xsrfHeaderName]=y)}if("setRequestHeader"in f&&i.forEach(d,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)}),i.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),u(t),f=null)}),void 0===h&&(h=null),f.send(h)})}},1308:function(t,e,n){"use strict";var i=n(19);e.a={name:"ActIndexList",mixins:[i.a],props:{zIndex:{type:Number,default:200},brandColor:{type:String,default:"#8c7fee"},listData:{type:Array,default:function(){return[]}}},data:function(){return{currentIndex:0,moving:!1,currentIndicator:""}},watch:{isVisible:function(t){var e=this;t&&this.$nextTick(function(){e._calculateHeight()})},currentIndex:function(t){var e=this;clearTimeout(this.timer),this.currentIndicator=this.indexList[this.currentIndex],this.moving=!0,this.timer=setTimeout(function(){e.moving=!1},1e3)}},computed:{indexList:function(){return this.listData.map(function(t){return t.title.substring(0,1)})}},created:function(){this.listHeight=[],this.timer=null,this.scrollTimer=null},methods:{_calculateHeight:function(){this.listHeight=[];var t=this.$refs.indexGroup,e=0;if(this.listHeight.push(e),t.length)for(var n=0;n<t.length;n++){var i=t[n];e+=i.clientHeight,this.listHeight.push(e)}},_onTouchStartIndex:function(t){this.currentIndex=t,this.$refs.indexWrap.scrollTop=this.listHeight[t]},_onTouchMoveIndex:function(t){var e=t.targetTouches[0],n=document.elementFromPoint(e.pageX,e.pageY),i=n.dataset&&n.dataset.index||void 0;i&&(this.currentIndex=i,this.$refs.indexWrap.scrollTop=this.listHeight[i])},clickItem:function(t){this.$emit("choose",t),this.hide()},onListWrapScroll:function(t){var e=this;clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(function(){for(var t=e.$refs.indexWrap.scrollTop,n=e.listHeight,i=0;i<n.length-1;i++)if(t<=n[i+1]-30&&t>=n[i])return void(e.currentIndex=i)},20)}},destroyed:function(){clearTimeout(this.timer),clearTimeout(this.scrollTimer)}}},131:function(t,e,n){"use strict";var i=n(175);t.exports=function(t,e,n,o,r){var s=new Error(t);return i(s,e,n,o,r)}},132:function(t,e,n){"use strict";var i=n(17);t.exports=function(t,e){e=e||{};var n={},o=["url","method","params","data"],r=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];i.forEach(o,function(t){void 0!==e[t]&&(n[t]=e[t])}),i.forEach(r,function(o){i.isObject(e[o])?n[o]=i.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:i.isObject(t[o])?n[o]=i.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])}),i.forEach(s,function(i){void 0!==e[i]?n[i]=e[i]:void 0!==t[i]&&(n[i]=t[i])});var a=o.concat(r).concat(s),c=Object.keys(e).filter(function(t){return-1===a.indexOf(t)});return i.forEach(c,function(i){void 0!==e[i]?n[i]=e[i]:void 0!==t[i]&&(n[i]=t[i])}),n}},133:function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},135:function(t,e,n){var i=n(38),o=n(136),r=n(137),s=n(9),a=n(59),c=n(115),l={},u={},e=t.exports=function(t,e,n,h,d){var f,p,m,v,g=d?function(){return t}:c(t),y=i(n,h,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(r(g)){for(f=a(t.length);f>b;b++)if((v=e?y(s(p=t[b])[0],p[1]):y(t[b]))===l||v===u)return v}else for(m=g.call(t);!(p=m.next()).done;)if((v=o(m,y,p.value,e))===l||v===u)return v};e.BREAK=l,e.RETURN=u},136:function(t,e,n){var i=n(9);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&i(r.call(t)),e}}},137:function(t,e,n){var i=n(18),o=n(3)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||r[o]===t)}},1374:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=n(1375);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createIndexList=Object(i.a)(o.a,t)},e.default=o.a},1375:function(t,e,n){"use strict";function i(t){a||n(1376)}var o=n(1308),r=n(1377),s=n(1),a=!1,c=i,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-7b7684a4",null);l.options.__file="src\\components\\IndexList\\src\\index.vue",e.a=l.exports},1376:function(t,e){},1377:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"index-list",style:"z-index: "+t.zIndex},[n("ul",{ref:"indexWrap",staticClass:"index-list-wrap",on:{scroll:function(e){return e.preventDefault(),t.onListWrapScroll.apply(null,arguments)}}},t._l(t.listData,function(e,i){return n("li",{key:i,ref:"indexGroup",refInFor:!0,staticClass:"index-group"},[n("h3",{staticClass:"index-group-title"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),n("ul",t._l(e.items,function(e,i){return n("li",{key:i,staticClass:"index-group-item",on:{click:function(n){return t.clickItem(e)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:e.avatar,expression:"item.avatar"}],staticClass:"avatar",attrs:{src:e.avatar,alt:""}}),t._v(" "),n("span",{staticClass:"name"},[t._v("\n "+t._s(e.name)+"\n ")])])}),0)])}),0),t._v(" "),n("div",{staticClass:"index-nav",style:"z-index: "+(t.zIndex+1)},[n("ul",t._l(t.indexList,function(e,i){return n("li",{key:i,staticClass:"nav-item",class:{active:t.currentIndex===i},style:"background: "+(t.currentIndex===i?t.brandColor:""),attrs:{"data-index":i},on:{touchmove:function(e){return e.preventDefault(),t._onTouchMoveIndex.apply(null,arguments)},touchstart:function(e){return e.preventDefault(),t._onTouchStartIndex(i)}}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.moving,expression:"moving"}],staticClass:"index-indicator"},[t._v("\n "+t._s(t.currentIndicator)+"\n ")])])],1)},o=[];i._withStripped=!0},139:function(t,e,n){var i=n(3)("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},t(r)}catch(t){}return n}},14:function(t,e,n){"use strict";function i(t,e){return function(n,i){var s=this,a=Object(o.a)(n),c=Object(r.a)(e,t,a,i),l=c.$parent,u=c.remove,h=c.show,d=c.hide;return c.remove=function(){c.$removed=!0,u&&u.call(this),l.destroy()},c.show=function(){return h&&h.call.apply(h,[this].concat(Array.prototype.slice.call(arguments))),this},c.hide=function(){return d&&d.call.apply(d,[this].concat(Array.prototype.slice.call(arguments))),this},s&&s._isVue&&s.$once("hook:beforeDestroy",function(){c.$removed||c.remove()}),c}}e.a=i;var o=n(101),r=n(103)},140: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}},141:function(t,e,n){var i=n(8);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:i(t,o,e[o]);return t}},142:function(t,e,n){t.exports={default:n(189),__esModule:!0}},143:function(t,e,n){"use strict";var i=n(2),o=n(0),r=n(7),s=n(5),a=n(3)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:i[t];s&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},144:function(t,e,n){n(61),n(53),n(55),n(145),n(149),n(150),t.exports=n(0).Promise},145:function(t,e,n){"use strict";var i,o,r,s,a=n(16),c=n(2),l=n(38),u=n(106),h=n(13),d=n(10),f=n(39),p=n(140),m=n(135),v=n(110),g=n(111).set,y=n(147)(),b=n(68),x=n(112),w=n(148),A=n(113),k=c.TypeError,S=c.process,C=S&&S.versions,T=C&&C.v8||"",E=c.Promise,I="process"==u(S),O=function(){},j=o=b.f,M=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(3)("species")]=function(t){t(O,O)};return(I||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),B=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,o=1==t._s,r=0;n.length>r;)!function(e){var n,r,s,a=o?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{a?(o||(2==t._h&&N(t),t._h=1),!0===a?n=i:(u&&u.enter(),n=a(i),u&&(u.exit(),s=!0)),n===e.promise?l(k("Promise-chain cycle")):(r=B(n))?r.call(n,c,l):c(n)):l(i)}catch(t){u&&!s&&u.exit(),l(t)}}(n[r++]);t._c=[],t._n=!1,e&&!t._h&&L(t)})}},L=function(t){g.call(c,function(){var e,n,i,o=t._v,r=P(t);if(r&&(e=x(function(){I?S.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",o)}),t._h=I||P(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},P=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){g.call(c,function(){var e;I?S.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},z=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},W=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw k("Promise can't be resolved itself");(e=B(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,l(W,i,1),l(z,i,1))}catch(t){z.call(i,t)}}):(n._v=t,n._s=1,R(n,!1))}catch(t){z.call({_w:n,_d:!1},t)}}};M||(E=function(t){p(this,E,"Promise","_h"),f(t),i.call(this);try{t(l(W,this,1),l(z,this,1))}catch(t){z.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},i.prototype=n(141)(E.prototype,{then:function(t,e){var n=j(v(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=I?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new i;this.promise=t,this.resolve=l(W,t,1),this.reject=l(z,t,1)},b.f=j=function(t){return t===E||t===s?new r(t):o(t)}),h(h.G+h.W+h.F*!M,{Promise:E}),n(27)(E,"Promise"),n(143)("Promise"),s=n(0).Promise,h(h.S+h.F*!M,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!M),"Promise",{resolve:function(t){return A(a&&this===s?E:this,t)}}),h(h.S+h.F*!(M&&n(139)(function(t){E.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=j(e),i=n.resolve,o=n.reject,r=x(function(){var n=[],r=0,s=1;m(t,!1,function(t){var a=r++,c=!1;n.push(void 0),s++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--s||i(n))},o)}),--s||i(n)});return r.e&&o(r.v),n.promise},race:function(t){var e=this,n=j(e),i=n.reject,o=x(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return o.e&&i(o.v),n.promise}})},146: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)}},147:function(t,e,n){var i=n(2),o=n(111).set,r=i.MutationObserver||i.WebKitMutationObserver,s=i.process,a=i.Promise,c="process"==n(26)(s);t.exports=function(){var t,e,n,l=function(){var i,o;for(c&&(i=s.domain)&&i.exit();t;){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(c)n=function(){s.nextTick(l)};else if(!r||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(l)}}else n=function(){o.call(i,l)};else{var h=!0,d=document.createTextNode("");new r(l).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var o={fn:i,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},148:function(t,e,n){var i=n(2),o=i.navigator;t.exports=o&&o.userAgent||""},149:function(t,e,n){"use strict";var i=n(13),o=n(0),r=n(2),s=n(110),a=n(113);i(i.P+i.R,"Promise",{finally:function(t){var e=s(this,o.Promise||r.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},15:function(t,e,n){var i=n(50),o=n(33);t.exports=Object.keys||function(t){return i(t,o)}},150:function(t,e,n){"use strict";var i=n(13),o=n(68),r=n(112);i(i.S,"Promise",{try:function(t){var e=o.f(this),n=r(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},152:function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function r(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){m&&f&&(m=!1,f.length?p=f.concat(p):v=-1,p.length&&a())}function a(){if(!m){var t=o(s);m=!0;for(var e=p.length;e;){for(f=p,p=[];++v<e;)f&&f[v].run();v=-1,e=p.length}f=null,m=!1,r(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var u,h,d=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(t){h=i}}();var f,p=[],m=!1,v=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new c(t,e)),1!==p.length||m||o(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},153:function(t,e,n){"use strict";var i=n(108),o=n(65),r=n(19),s=n(116);e.a={name:"ActGoldLayer",mixins:[o.a,r.a,s.a],components:{ActPopup:i.a},props:{title:{type:String,default:""},mask:{type:Boolean,default:!0},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},noHeader:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},brandColor:{type:String,default:""}},methods:{close:function(){this.$emit("close")}}}},1538:function(t,e,n){"use strict";var i=n(64),o=n.n(i),r=n(212),s=n.n(r),a=n(213),c=n.n(a),l=n(105),u=n.n(l),h=n(1935),d=n(1940),f=n(108),p=n(65),m=n(19),v=n(125),g=n(948),y=n(266),b=n(114),x=n(218),w=n(1943),A=n(952),k=n(4);e.a={name:"ActBankSelect",mixins:[p.a,m.a],props:{appId:{type:String,default:""},brandColor:{type:String,default:"#8c7fee"},entryData:{type:Object,default:function(){}},exParams:{type:Object,default:function(){}},selectedBankCardId:{type:[String,Number],default:""}},data:function(){return{headerText:"选择银行卡",selIndex:-1,isEdit:!1,isAdd:!1,isShowBankBox:!1,hasInited:!1,bankInfo:{dataBase:"",bankNo:""},bankContentHeight:0,docmHeight:document.documentElement.clientHeight,loadingWrap:!1,isChooseBank:!1,bankChooseInfo:{bankName:"",bankCode:""},preOverflowValue:"",bankMsgInfo:null,userBankId:""}},computed:{supportList:function(){return this.entryData.supportList||[]},unSupportList:function(){return this.entryData.unSupportList||[]},selectBank:function(){return this.entryData.selectBank||[]},xysBankList:function(){return this.entryData.xysBankList||[]},editBankList:function(){return[].concat(this.supportList,this.unSupportList)},bankList:function(){return{selectBank:this.changItem(this.selectBank),xysBankList:this.changItem(this.xysBankList)}},titleGradualColor:function(){return this.brandColor&&"#8c7fee"!==this.brandColor.toLowerCase()?"linear-gradient(45deg, #FFF 50%, #FFF2F0 100%)":"linear-gradient(45deg, #FFF 50%, #F1F1FF 100%)"}},methods:{genRgba:function(t,e){var n=Object(k.n)(t||"#8c7fee",e||.1);return function(t){var e=t.replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n=parseFloat(e[3]||1),i=Math.floor(n*parseInt(e[0])+255*(1-n)),o=Math.floor(n*parseInt(e[1])+255*(1-n)),r=Math.floor(n*parseInt(e[2])+255*(1-n));return"#"+("0"+i.toString(16)).slice(-2)+("0"+o.toString(16)).slice(-2)+("0"+r.toString(16)).slice(-2)}(n)},init:function(){var t=this;this.refresh();var e=navigator.userAgent;(e.indexOf("Android")>-1||e.indexOf("Adr")>-1)&&window.addEventListener("resize",function(){if(0!==t.bankContentHeight){var e=document.body.clientHeight;t.docmHeight>e?t.$refs.bankSelectContent.style.height=t.docmHeight-e+30+"px":t.$refs.bankSelectContent.style.height=t.bankContentHeight+"px"}})},changItem:function(t){var e=t,n=[];return e.map(function(t){var e=t.title,i=[];t.list.map(function(t){i.push(u()({name:t.bank_name,avatar:t.logo},t))}),n.push({title:e,items:i})}),n},cancel:function(){this.back(),this.hide(),this.isChooseBank=!1,this.isAdd=!1},back:function(){this.isEdit=!1,this.isAdd&&!this.isChooseBank&&(this.isAdd=!1),this.bankInfo={dataBase:"",bankNo:""},this.headerText="选择银行卡",this.isChooseBank&&(this.headerText="添加银行卡",this.isAdd=!0,this.isChooseBank=!1,this.$refs.bankChooseBox.hide())},handleEdit:function(t){var e=t,n={userBankId:e.id,bankCode:e.bank_code,bankCardId:e.bank_card_id,cardholder:e.cardholder,cardholderCert:e.cardholder_cert,cardholderCertType:e.cardholder_cert_type||"0",isDefault:!!~~e.is_default,holderMobile:e.cardholder_mobile,subBankAddr:e.bank_sub_addr_name,subBankName:e.bank_sub_name};this.bankChooseInfo.bankName=e.bank_name,this.bankChooseInfo.bankCode=e.bank_code,this.bankChooseInfo.cardholderCertTypeName=e.cardholder_cert_type_desc,this.bankMsgInfo=n,this.headerText="编辑银行卡",this.refresh(),this.isEdit=!0},handleAdd:function(){this.headerText="添加银行卡",this.bankChooseInfo.bankName="",this.bankChooseInfo.bankCode="",this.bankMsgInfo=null,this.isAdd=!0,this.refresh()},chooseBank:function(t){this.headerText="添加银行卡",this.$refs.bankChooseBox.hide(),this.bankChooseInfo.bankName=t.bank_name,this.bankChooseInfo.bankCode=t.bank_code},handleSelBank:function(){this.headerText="选择开户行",this.isChooseBank=!0,this.$refs.bankChooseBox.show()},handleCamera:function(){var t=this;return c()(s.a.mark(function e(){var n,i,o,r,a,c,l,u,h;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.$refs.addOrEditBox.errMsgInfo.bankCardId.errmsg="",e.prev=1,e.next=4,x.default.ocr({url:"/file/bankOcr",appId:t.appId});case 4:if(n=e.sent,i=n||{},o=i.ret,r=i.data,a=void 0===r?{}:r,0!==Number(o)){e.next=14;break}c=a.bankNo,l=a.dataBase,u=a.url,h=a.localId,t.bankInfo.dataBase=u||l||h,t.bankInfo.bankNo=c,t.$refs.addOrEditBox.bankMsg.bankCardId=c,t.isShowBankBox=!0,e.next=19;break;case 14:if(167182641!==Number(o)){e.next=18;break}t.$refs.bankToast.show("没有识别到银行卡"),e.next=19;break;case 18:throw n;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(1),t.$refs.bankToast.show(Object(k.j)(e.t0));case 24:case"end":return e.stop()}},e,t,[[1,21]])}))()},closeCamera:function(t){t&&(this.bankInfo.bankNo=t),this.isShowBankBox=!1},refresh:function(){var t=this;this.$nextTick(function(){t.$refs.scroll.refresh()})},delBank:function(t){this.userBankId=t.userBankId,this.$refs.delDialog.show()},handleDelConfrim:function(){var t=this;Object(b.b)("/Home/UserBank/unBindUserBank",{userBankId:this.userBankId}).then(function(e){0==+e.data.ret?(t.$refs.bankToast.show("删除成功"),t.isEdit=!1,t.isAdd=!1,t.$emit("resetData",e),t.refresh()):t.$refs.bankToast.show(e.data.errmsg)})},setDefault:function(t){var e=this;Object(b.b)("/Home/UserBank/updateUserBankData",{userBankId:t.id,isDefault:1}).then(function(t){0==+t.data.ret?(e.$refs.bankToast.show("设置成功"),e.$emit("resetData",t),e.refresh()):e.$refs.bankToast.show(t.data.errmsg)})},handleSelect:function(t,e){this.selIndex!==e?this.selIndex=e:this.selIndex=-1},confirmSelBank:function(){var t=this.supportList[this.selIndex];if(!t)return void this.$refs.bankToast.show("请选择银行卡");this.$emit("confirm",t),this.hide()},handleConfirmAddOrEdit:function(){var t=this,e=this.$refs.addOrEditBox,n=!0;if(o()(e.errMsgInfo).map(function(t){""!==e.errMsgInfo[t].errmsg&&(n=!1)}),n)if(""===e.bankMsg.cardholderCertType)this.$refs.bankToast.show("请选择证件类型");else if(""===e.bankMsg.cardholder)this.$refs.bankToast.show("请填写持卡人");else if(""===e.bankMsg.cardholderCert)this.$refs.bankToast.show("请填写证件号码");else if(""===e.bankMsg.bankCardId)this.$refs.bankToast.show("请填写银行卡号");else if(""===e.bankName)this.$refs.bankToast.show("请选择开户银行");else{var i={};o()(e.bankMsg).map(function(t){i[t]="isDefault"===t?+e.bankMsg[t]:e.bankMsg[t]}),i.cardholderCert&&(i.cardholderCert=i.cardholderCert.toUpperCase()),this.isAdd&&delete i.userBankId,this.showLoading(),Object(b.b)(this.isAdd?"/Home/UserBank/addUserBank":"/Home/UserBank/updateUserBankData",i).then(function(e){t.hideLoading(),0==+e.data.ret?(t.$refs.bankToast.show(t.isAdd?"添加成功":"编辑成功"),setTimeout(function(){t.isAdd=!1,t.isEdit=!1,t.isChooseBank=!1,t.$emit("resetData"),t.refresh()},400)):t.$refs.bankToast.show(e.data.errmsg)}).catch(function(e){t.hideLoading(),console.log(e,"err data")})}else this.$refs.bankToast.show("请填写正确信息")},modifyBankNo:function(t){this.bankInfo||(this.bankInfo={}),this.bankInfo.bankNo=t},getPayRuleDesc:function(t){var e=t.realRule&&t.realRule.once&&Number(t.realRule.once/1e4),n=t.realRule&&t.realRule.day&&Number(t.realRule.day/1e4),i=t.batchRule&&t.batchRule.once&&Number(t.batchRule.once/1e4),o=t.batchRule&&t.batchRule.day&&Number(t.batchRule.day/1e4),r=e?e+"w":"无",s=n?n+"w":"无",a=i?i+"w":"无",c=o?o+"w":"无";return 1==~~t.canReal&&1==~~t.canBatch?["实时 单笔/单日 "+r+"/"+s,"非实时 单笔/单日 "+a+"/"+c]:1==~~t.canReal?["单笔/单日 "+r+"/"+s]:1==~~t.canBatch?["卡限额: 非实时 单笔/单日 "+a+"/"+c]:void 0},showLoading:function(){this.loadingWrap=!0,this.$refs.loading.show()},hideLoading:function(){this.loadingWrap=!1,this.$refs.loading.hide()}},components:{ActPopup:f.a,scroll:v.a,bankMsg:h.a,bankBox:d.a,Toast:g.default,Loading:y.default,bankChooseBox:w.a,ActGoldDialog:A.default},watch:{isVisible:{handler:function(t){var e=this;t?(this.preOverflowValue=document&&document.body&&document.body.style&&document.body.style.overflow,this.init(),this.selectedBankCardId&&(this.selIndex=this.supportList.findIndex(function(t){return+t.bank_card_id==+e.selectedBankCardId})),!this.bankContentHeight&&t&&this.$nextTick(function(){e.bankContentHeight=Object(k.D)(e.$refs.bankSelectContent)}),document.body.style.overflow="hidden"):document.body.style.overflow=this.preOverflowValue||""},immediate:!0}}}},1539:function(t,e,n){"use strict";var i=n(142),o=n.n(i),r=n(105),s=n.n(r),a=n(1207),c=n(545),l=n(498),u=n(549),h=n(621),d=n(494),f=n(4),p=n(1937);e.a={name:"AddBankBox",props:{brandColor:{type:String,default:"#8c7fee"},selectBank:{type:Array,default:function(){return[]}},isEdit:{type:Boolean,default:!1},isShowBankBox:{type:Boolean,default:!1},bankInfo:{type:Object,default:function(){}},exParams:{type:Object,default:null},bankChooseInfo:{type:Object,default:null},bankMsgInfo:{type:Object,default:null},titleGradualColor:{type:String,default:""}},data:function(){return{bankName:"",cardholderCertTypeName:"",bankMsgCopy:{userBankId:"",bankCode:"",bankCardId:"",cardholder:this.exParams&&this.exParams.cardholder||"",cardholderCert:this.exParams&&this.exParams.cardholderCert||"",cardholderCertType:this.exParams&&this.exParams.cardholderCertType||"0",isDefault:!1,holderMobile:this.exParams&&this.exParams.holderMobile||"",subBankAddr:"",subBankName:""},errMsgInfo:{cardholder:{errmsg:"",regexs:[p.b.isRequired,p.b.isLengthChina,p.b.hasNoSpecialCharacters,p.b.hasNoEnglishCharacters,p.b.isValidFormat]},cardholderCertType:{errmsg:"",regexs:[{regex:"\\S",errorRemind:"请选择证件类型"}]},cardholderCert:{errmsg:"",regexs:[p.a.isRequired,p.a.noSpace,p.a.idType]},bankCardId:{errmsg:"",regexs:[{regex:"\\S",errorRemind:"请输入银行卡号"},{regex:"^[0-9]{15,19}$",errorRemind:"请填写正确的银行卡号"}]},holderMobile:{errmsg:"",regexs:[{regex:"^[0-9]+$",errorRemind:"手机号不能存在英文或符号"},{regex:"^[0-9]{11}$",errorRemind:"请输入11位手机号"},{regex:"^[1]([3-9])[0-9]{9}$",errorRemind:"请输入正确的手机号"}]}},isAgree:!1,showExpanded:!0}},computed:{bankList:function(){return this.changItem()},bankMsg:function(){return this.bankMsgInfo?this.bankMsgInfo:this.bankMsgCopy},cardholderCertTypeOptions:function(){return[{text:"身份证",value:"0"},{text:"非中国大陆护照",value:"31"},{text:"外国人永久居留身份证",value:"20"},{text:"港澳居民来往内地通行证",value:"23"},{text:"台湾居民来往内地通行证",value:"24"}]},isForeignType:function(){return"31"===this.bankMsg.cardholderCertType||"20"===this.bankMsg.cardholderCertType}},mounted:function(){if(!this.isEdit&&this.bankMsg){var t=String(this.bankMsg.cardholderCertType);this.setCertTypeRules(t),this.validateRegexs("cardholder"),this.validateRegexs("cardholderCert")}},methods:{toRgb:function(t){var e=Object(f.n)(t,.1);return function(t){var e=t.replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n=parseFloat(e[3]||1),i=Math.floor(n*parseInt(e[0])+255*(1-n)),o=Math.floor(n*parseInt(e[1])+255*(1-n)),r=Math.floor(n*parseInt(e[2])+255*(1-n));return"#"+("0"+i.toString(16)).slice(-2)+("0"+o.toString(16)).slice(-2)+("0"+r.toString(16)).slice(-2)}(e)},toggle:function(){this.showExpanded=!this.showExpanded},changItem:function(){var t=this.selectBank,e=[];return t.map(function(t){var n=t.title,i=[];t.list.map(function(t){i.push(s()({name:t.bank_name,avatar:t.logo},t))}),e.push({title:n,items:i})}),e},handleSelBank:function(){this.isEdit||this.$emit("handleSelBank")},chooseBank:function(t){this.bankName=t.bank_name,this.bankMsg.bankCode=t.bank_code},input:function(t,e){this.bankMsg[t]=e},blur:function(t){if("holderMobile"===t&&""===this.bankMsg.holderMobile)return void(this.errMsgInfo.holderMobile.errmsg="");var e=this.errMsgInfo[t]&&this.errMsgInfo[t].regexs;if(e)for(var n=e,i=Array.isArray(n),r=0,n=i?n:o()(n);;){var s;if(i){if(r>=n.length)break;s=n[r++]}else{if(r=n.next(),r.done)break;s=r.value}var a=s;if(!new RegExp(a.regex).test(this.bankMsg[t])){this.errMsgInfo[t].errmsg=a.errorRemind;break}this.errMsgInfo[t].errmsg=""}},change:function(t,e){if(this.$set(this.bankMsg,t,e),"cardholderCertType"===t){var n=String(e);this.setCertTypeRules(n),this.validateRegexs("cardholder"),this.validateRegexs("cardholderCert")}},handleCamera:function(){this.$emit("handleCamera")},confirmAddOrEdit:function(){this.$emit("confirmAddOrEdit")},setCertTypeRules:function(t){var e=Object(p.d)(t),n=Object(p.c)(t);this.errMsgInfo.cardholder.regexs=e,this.errMsgInfo.cardholderCert.regexs=n},validateRegexs:function(t){var e=this.errMsgInfo[t].regexs;if(e)for(var n=e,i=Array.isArray(n),r=0,n=i?n:o()(n);;){var s;if(i){if(r>=n.length)break;s=n[r++]}else{if(r=n.next(),r.done)break;s=r.value}var a=s;if(!new RegExp(a.regex).test(this.bankMsg[t]))return void(this.errMsgInfo[t].errmsg=a.errorRemind);this.errMsgInfo[t].errmsg=""}}},watch:{bankInfo:{handler:function(t){t.bankNo&&(this.bankMsg.bankCardId=t.bankNo)},deep:!0},bankChooseInfo:{handler:function(t){this.bankName=t.bankName,this.cardholderCertTypeName=t.cardholderCertTypeName,this.bankMsg.bankCode=t.bankCode},immediate:!0,deep:!0}},components:{ActPanel:a.default,ActGoldInput:c.default,IconPhoto:h.a,ActSwitch:d.default,ActGoldText:l.default,ActGoldSelect:u.default},directives:{clickOnce:{inserted:function(t,e){t.addEventListener("click",function(n){n.stopPropagation(),t.isClickEnabled||(t.isClickEnabled=!0,setTimeout(function(){t.isClickEnabled=!1},~~e.arg||500),e.value())})}}}}},154:function(t,e,n){"use strict";var i=n(120),o=n(156);e.a={name:"ActScroll",props:{probeType:{type:Number,default:2},click:{type:Boolean,default:!0},listenScrollInit:{type:Boolean,default:!1},listenScroll:{type:Boolean,default:!1},listenBeforeScroll:{type:Boolean,default:!1},listenScrollEnd:{type:Boolean,default:!1},listenZoomEnd:{type:Boolean,default:!1},listenPullingUp:{type:Boolean,default:!1},direction:{type:String,default:"vertical"},scrollbar:{type:null,default:!1},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:!1},mouseWheel:{type:Boolean,default:!1},bounce:{type:[Boolean,Object],default:!0},zoom:{type:Boolean,default:!1},useTransition:{type:Boolean,default:!0}},data:function(){return{beforePullDown:!0,isRebounding:!1,pullUpDirty:!0,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:!1,startXd:0,startYd:0,endXd:0,endYd:0}},mounted:function(){var t=this;this.$nextTick(function(){t.initScroll()})},destroyed:function(){this.scroll&&this.scroll.destroy(),this.$emit("destroyed",this.scroll)},methods:{initScroll:function(){var t=this;if(this.$refs.wrapper){var e={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||"vertical"===this.direction,scrollX:this.freeScroll||"horizontal"===this.direction,scrollbar:this.scrollbar,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:o.a&&this.useTransition,pullUpLoad:{threshold:50}};this.scroll=new i.default(this.$refs.wrapper,e),this.listenScroll&&this.scroll.on("scroll",function(e){t.$emit("scroll",e)}),this.listenScrollEnd&&this.scroll.on("scrollEnd",function(e){t.$emit("scroll-end",e)}),this.listenBeforeScroll&&(this.scroll.on("beforeScrollStart",function(){t.$emit("beforeScrollStart")}),this.scroll.on("scrollStart",function(){t.$emit("scroll-start")})),this.listenZoomEnd&&this.scroll.on("zoomEnd",function(){t.$emit("zoomEnd",t.scroll)}),this.zoom&&(this.isDouble=!0),this.listenScrollInit&&this.$emit("scrollSuc",this.scroll),this.listenPullingUp&&this.scroll.on("pullingUp",function(){t.$emit("pullingUp")})}},disable:function(){this.scroll&&this.scroll.disable()},enable:function(){this.scroll&&this.scroll.enable()},refresh:function(){this.scroll&&this.scroll.refresh()},scrollTo:function(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function(t,e){this.$emit("click",e)},destroy:function(){this.scroll.destroy()},forceUpdate:function(t){this.refresh()}}}},1540:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAVBAMAAAC9EHPhAAAALVBMVEVHcEyvr6+zs7O0tLS2trazs7Ozs7Ozs7Ozs7O1tbWzs7O1tbW0tLSzs7Ozs7MdT37OAAAADnRSTlMACuwzI7bdeKdcrmi/vXUsHTQAAABZSURBVAjXY4hLYICAd+8cIAy7dy+gQnrvHkAY7O/ebYCw5N49gkrGvXsMYbC8e3cBwmJ7904Awpr37jmEwfjuHaoITA1Q1wEUc2Amw+3Se/cQ1T1wF8LcDADvNystsndMFQAAAABJRU5ErkJggg=="},1541:function(t,e,n){"use strict";var i=n(214);e.a={props:{brandColor:{type:String,default:"#8c7fee"},isShowBankBox:{type:Boolean,default:!1},bankInfo:{type:Object,default:function(){return{}}}},data:function(){return{bankNo:""}},methods:{closeCamera:function(){this.$emit("closeCamera",this.bankInfo.bankNo)},handleCamera:function(){this.$emit("handleCamera")},modifyBankNo:function(t){this.$emit("modifyBankNo",t)}},components:{BaseInput:i.default}}},1542:function(t,e,n){"use strict";var i=n(1374);e.a={props:{bankList:{type:Object,default:null},brandColor:{type:String,default:"#8c7fee"},exParams:{type:Object,default:null}},data:function(){return{visiable:!1,tabList:this.exParams&&this.exParams.tabList||["支持银行","全部银行"],selIndex:0}},methods:{show:function(){var t=this;this.visiable=!0,this.$nextTick(function(){t.$refs.supportBank.show()})},hide:function(){this.selIndex=0,this.visiable=!1},chooseBank:function(t){this.$emit("chooseBank",t)},change:function(t){this.selIndex=t,0===this.selIndex?(this.$refs.supportBank.show(),this.$refs.allBank.hide()):(this.$refs.supportBank.hide(),this.$refs.allBank.show())}},components:{IndexList:i.default}}},1543:function(t,e){t.exports="data