alipay-payui
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayCard",[],e):"object"==typeof exports?exports.PayCard=e():t.PayCard=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},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=81)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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)}}var r=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,r;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=r},1:function(t,e,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},i=[],o=0;o<t.length;o++){var r=t[o],c=e.base?r[0]+e.base:r[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var d=s(l),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:l,updater:b(f,e),references:1}),i.push(l)}return i}function u(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,d=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=d(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function p(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var h=null,v=0;function b(t,e){var n,i,o;if(e.singleton){var r=v++;n=h||(h=u(e)),i=f.bind(null,n,r,!1),o=f.bind(null,n,r,!0)}else n=u(e),i=p.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=c(t,e),u=0;u<n.length;u++){var l=s(n[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=r}}}},10:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options;return e+='<div class="base-button">\n <button class="base-button__tag" ',n.disabled&&(e+=' disabled="disabled" '),e+=">",e+=n.text,e+="</button>\n</div>\n"}},12:function(t,e,n){var i=n(1),o=n(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);t.exports=o.locals||{}},13:function(t,e,n){(e=n(2)(!1)).push([t.i,".base-button__tag{display:block;width:100%;height:50px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;font-size:18px;background-color:#1677ff;color:#fff;border-radius:4px}.base-button__tag:active{background-color:#0767ee}.base-button__tag--disabled{opacity:.6}",""]),t.exports=e},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(r).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=o.exec(e);if(!n)return t;var i="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<e.length;r++){switch(e.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(i+=e.substring(a,r)),a=r+1,i+=s}return a!==r?i+e.substring(a,r):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var o in t)e(t[o],o)},t.exports=i}).call(this,n(5))},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},72:function(t,e,n){var i=n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options,o=i.$each,r=(t.$value,t.$index,i.$escape),a=t.icons;return e+='<div class="PayCard">\n ',n.title&&(e+='\n <div class="PayCard__title">\n ',e+=n.title,e+="\n </div>\n "),e+='\n <div class="PayCard__list">\n ',o(n.data,(function(t,i){e+='\n <div class="PayCard__item ',n.defaultChecked===i&&(e+=" PayCard__item--checked "),e+='" data-key="',e+=r(t),e+='">\n <div class="PayCard__value">\n ',e+=r(t),e+='\n </div>\n <div class="PayCard__arrow">\n ',e+=a.checkMark,e+="\n </div>\n </div>\n "})),e+="\n </div>\n ",n.protocol&&(e+='\n <div class="PayCard__protocol">\n <div class="PayCard__checkbox"></div>\n <div class="PayCard__protocolText">',e+=n.protocol,e+="</div>\n </div>\n "),e+='\n <div class="PayCard__button"></div>\n</div>\n'}},78:function(t,e,n){var i=n(1),o=n(79);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);t.exports=o.locals||{}},79:function(t,e,n){(e=n(2)(!1)).push([t.i,'.PayCard{padding:8px 0}.PayCard__title{font-size:16px;color:#333;padding:16px 0;font-weight:700}.PayCard__list{margin-bottom:30px}.PayCard__list:before{content:"";display:block;width:100%;height:1px;background-color:#eee;transform:scaleY(.5)}.PayCard__item{padding:20px 10px 20px 0;display:flex;justify-content:space-between;align-items:center;position:relative}.PayCard__item--checked .PayCard__arrow{visibility:visible}.PayCard__item:after{content:"";display:block;width:100%;height:1px;background-color:#eee;transform:scaleY(.5);position:absolute;bottom:0;left:0}.PayCard__value{font-size:16px;color:#333;pointer-events:none}.PayCard__arrow{width:18px;visibility:hidden}.PayCard__checkbox{margin-right:8px;box-sizing:border-box;width:22px;height:22px;border-radius:50%;flex-shrink:0;border:1px solid #d8d8d8;background:#fff}.PayCard__checkbox.checked{border:none;background:url(https://gw.alipayobjects.com/mdn/rms_b05656/afts/img/A*jhPrT798EK8AAAAAAAAAAABkARQnAQ) no-repeat;background-size:contain}.PayCard__protocol{display:flex;align-items:center;margin-bottom:20px}.PayCard__protocolText{font-size:14px;color:#999}',""]),t.exports=e},8:function(t,e,n){"use strict";n(12);var i=n(10),o=n.n(i);function r(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)}}var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,getObject:function(t){return t}}),this.button=this.container.querySelector(".base-button__tag")}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),s=n(0);function c(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)}}var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("BaseButton")[0],text:t.text||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.template=new a({container:this.container,options:this.options}),this.events=new s.a(["submit"]),this.init()}var e,n,i;return e=t,i=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"init",value:function(){var t=this;this.template.button.addEventListener("click",(function(){t.events.trigger("submit")}))}},{key:"setDisabled",value:function(t){this.template.button.disabled=t,t?this.template.button.classList.add("base-button__tag--disabled"):this.template.button.classList.remove("base-button__tag--disabled")}}])&&c(e.prototype,n),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=u},81:function(t,e,n){"use strict";n.r(e);n(78);var i=n(72),o=n.n(i),r=n(9),a={checkMark:n.n(r).a};function s(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)}}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,icons:a,getObject:function(t){return t}}),this.title=this.container.querySelector(".PayCard__title"),this.items=this.container.querySelectorAll(".PayCard__item"),this.button=this.container.querySelector(".PayCard__button"),this.protocol=this.container.querySelector(".PayCard__protocol"),this.checkbox=this.container.querySelector(".PayCard__checkbox")}}])&&s(e.prototype,n),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),u=n(0),l=n(8);function d(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)}}var f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payCard")[0],title:t.title||"",data:t.data||[],protocol:t.protocol||"",defaultChecked:t.defaultChecked||0,buttonText:t.buttonText||"下一步"};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.checkedIndex=this.options.defaultChecked,this.item=this.options.data[0]||"",this.container=this.options.container,this.template=new c({container:this.container,options:this.options}),this.events=new u.a(["init","change","submit"]),this.bindEvents(),this.init()}var e,n,i;return e=t,i=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"bindEvents",value:function(){var t=this;this.on("change",(function(){t.toggleSubmitDisabled()}));for(var e=function(e){t.template.items[e].addEventListener("click",(function(n){t.checkedIndex!==e&&(t.template.items[t.checkedIndex].classList.remove("PayCard__item--checked"),t.template.items[e].classList.add("PayCard__item--checked"),t.checkedIndex=e,t._clickItem(n))}))},n=0;n<this.template.items.length;n++)e(n);this.template.protocol&&this.template.protocol.addEventListener("click",(function(){t.template.checkbox.classList.toggle("checked"),t.events.trigger("change")}))}},{key:"init",value:function(){var t=this;this.button=new l.a({container:this.template.button,text:this.options.buttonText}),this.button.on("submit",(function(){t.events.trigger("submit",{item:t.item})})),this.events.trigger("init"),this.events.trigger("change")}},{key:"toggleSubmitDisabled",value:function(){var t=!1;this.item||(t=!0),this.options.protocol&&!this.template.checkbox.classList.contains("checked")&&(t=!0),this.button.setDisabled(t)}},{key:"_clickItem",value:function(t){console.log(t),this.item=t.target.dataset.key,this.events.trigger("change")}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=f},9:function(t,e){t.exports='<svg viewBox="0 0 31 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M29.1589511,0.825223549 L29.1343417,0.800614145 C28.2694969,-0.0501680945 26.8808234,-0.0396212073 26.0300412,0.825223549 L11.605415,15.4818812 L11.5913525,15.4959437 C11.0604925,16.0162569 10.2097103,16.0092256 9.68939719,15.4818812 L4.47923487,10.1908594 L4.45462547,10.16625 C3.58978071,9.3154678 2.20110722,9.32601469 1.35032498,10.1908594 C0.481964596,11.0732823 0.481964596,12.4865652 1.35032498,13.3689881 L8.72611481,20.8502469 L8.75423985,20.8783719 C9.8124442,21.9225137 11.5175243,21.9084512 12.5616662,20.8502469 L29.1589511,4.00686788 C30.0273115,3.12092935 30.0273115,1.70764645 29.1589511,0.825223549 Z" fill="#1677FF" id="Path"></path></svg>'}}).default})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayCard",[],e):"object"==typeof exports?exports.PayCard=e():t.PayCard=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},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=47)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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)}}var r=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,r;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=r},1:function(t,e,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},i=[],o=0;o<t.length;o++){var r=t[o],c=e.base?r[0]+e.base:r[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var d=s(l),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:l,updater:b(f,e),references:1}),i.push(l)}return i}function u(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,d=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=d(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function p(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var h=null,v=0;function b(t,e){var n,i,o;if(e.singleton){var r=v++;n=h||(h=u(e)),i=f.bind(null,n,r,!1),o=f.bind(null,n,r,!0)}else n=u(e),i=p.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=c(t,e),u=0;u<n.length;u++){var l=s(n[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=r}}}},10:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options;return e+='<div class="base-button">\n <button class="base-button__tag" ',n.disabled&&(e+=' disabled="disabled" '),e+=">",e+=n.text,e+="</button>\n</div>\n"}},12:function(t,e,n){var i=n(1),o=n(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);t.exports=o.locals||{}},13:function(t,e,n){(e=n(2)(!1)).push([t.i,".base-button__tag{display:block;width:100%;height:50px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;font-size:18px;background-color:#1677ff;color:#fff;border-radius:4px}.base-button__tag:active{background-color:#0767ee}.base-button__tag--disabled{opacity:.6}",""]),t.exports=e},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(r).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},32:function(t,e,n){var i=n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options,o=i.$each,r=(t.$value,t.$index,i.$escape),a=t.icons;return e+='<div class="PayCard">\n ',n.title&&(e+='\n <div class="PayCard__title">\n ',e+=n.title,e+="\n </div>\n "),e+='\n <div class="PayCard__list">\n ',o(n.data,(function(t,i){e+='\n <div class="PayCard__item ',n.defaultChecked===i&&(e+=" PayCard__item--checked "),e+='" data-key="',e+=r(t),e+='">\n <div class="PayCard__value">\n ',e+=r(t),e+='\n </div>\n <div class="PayCard__arrow">\n ',e+=a.checkMark,e+="\n </div>\n </div>\n "})),e+="\n </div>\n ",n.protocol&&(e+='\n <div class="PayCard__protocol">\n <div class="PayCard__checkbox"></div>\n <div class="PayCard__protocolText">',e+=n.protocol,e+="</div>\n </div>\n "),e+='\n <div class="PayCard__button"></div>\n</div>\n'}},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=o.exec(e);if(!n)return t;var i="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<e.length;r++){switch(e.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(i+=e.substring(a,r)),a=r+1,i+=s}return a!==r?i+e.substring(a,r):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var o in t)e(t[o],o)},t.exports=i}).call(this,n(5))},47:function(t,e,n){"use strict";n.r(e);n(76);var i=n(32),o=n.n(i),r=n(9),a={checkMark:n.n(r).a};function s(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)}}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,icons:a,getObject:function(t){return t}}),this.title=this.container.querySelector(".PayCard__title"),this.items=this.container.querySelectorAll(".PayCard__item"),this.button=this.container.querySelector(".PayCard__button"),this.protocol=this.container.querySelector(".PayCard__protocol"),this.checkbox=this.container.querySelector(".PayCard__checkbox")}}])&&s(e.prototype,n),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),u=n(0),l=n(6);function d(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)}}var f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payCard")[0],title:t.title||"",data:t.data||[],protocol:t.protocol||"",defaultChecked:t.defaultChecked||0,buttonText:t.buttonText||"下一步"};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.checkedIndex=this.options.defaultChecked,this.item=this.options.data[0]||"",this.container=this.options.container,this.template=new c({container:this.container,options:this.options}),this.events=new u.a(["init","change","submit"]),this.bindEvents(),this.init()}var e,n,i;return e=t,i=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"bindEvents",value:function(){var t=this;this.on("change",(function(){t.toggleSubmitDisabled()}));for(var e=function(e){t.template.items[e].addEventListener("click",(function(n){t.checkedIndex!==e&&(t.template.items[t.checkedIndex].classList.remove("PayCard__item--checked"),t.template.items[e].classList.add("PayCard__item--checked"),t.checkedIndex=e,t._clickItem(n))}))},n=0;n<this.template.items.length;n++)e(n);this.template.protocol&&this.template.protocol.addEventListener("click",(function(){t.template.checkbox.classList.toggle("checked"),t.events.trigger("change")}))}},{key:"init",value:function(){var t=this;this.button=new l.a({container:this.template.button,text:this.options.buttonText}),this.button.on("submit",(function(){t.events.trigger("submit",{item:t.item})})),this.events.trigger("init"),this.events.trigger("change")}},{key:"toggleSubmitDisabled",value:function(){var t=!1;this.item||(t=!0),this.options.protocol&&!this.template.checkbox.classList.contains("checked")&&(t=!0),this.button.setDisabled(t)}},{key:"_clickItem",value:function(t){console.log(t),this.item=t.target.dataset.key,this.events.trigger("change")}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=f},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},6:function(t,e,n){"use strict";n(12);var i=n(10),o=n.n(i);function r(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)}}var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,getObject:function(t){return t}}),this.button=this.container.querySelector(".base-button__tag")}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),s=n(0);function c(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)}}var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("BaseButton")[0],text:t.text||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.template=new a({container:this.container,options:this.options}),this.events=new s.a(["submit"]),this.init()}var e,n,i;return e=t,i=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"init",value:function(){var t=this;this.template.button.addEventListener("click",(function(){t.events.trigger("submit")}))}},{key:"setDisabled",value:function(t){this.template.button.disabled=t,t?this.template.button.classList.add("base-button__tag--disabled"):this.template.button.classList.remove("base-button__tag--disabled")}}])&&c(e.prototype,n),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=u},76:function(t,e,n){var i=n(1),o=n(77);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);t.exports=o.locals||{}},77:function(t,e,n){(e=n(2)(!1)).push([t.i,'.PayCard{padding:8px 0}.PayCard__title{font-size:16px;color:#333;padding:16px 0;font-weight:700}.PayCard__list{margin-bottom:30px}.PayCard__list:before{content:"";display:block;width:100%;height:1px;background-color:#eee;transform:scaleY(.5)}.PayCard__item{padding:20px 10px 20px 0;display:flex;justify-content:space-between;align-items:center;position:relative}.PayCard__item--checked .PayCard__arrow{visibility:visible}.PayCard__item:after{content:"";display:block;width:100%;height:1px;background-color:#eee;transform:scaleY(.5);position:absolute;bottom:0;left:0}.PayCard__value{font-size:16px;color:#333;pointer-events:none}.PayCard__arrow{width:18px;visibility:hidden}.PayCard__checkbox{margin-right:8px;box-sizing:border-box;width:22px;height:22px;border-radius:50%;flex-shrink:0;border:1px solid #d8d8d8;background:#fff}.PayCard__checkbox.checked{border:none;background:url(https://gw.alipayobjects.com/mdn/rms_b05656/afts/img/A*jhPrT798EK8AAAAAAAAAAABkARQnAQ) no-repeat;background-size:contain}.PayCard__protocol{display:flex;align-items:center;margin-bottom:20px}.PayCard__protocolText{font-size:14px;color:#999}',""]),t.exports=e},9:function(t,e){t.exports='<svg viewBox="0 0 31 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M29.1589511,0.825223549 L29.1343417,0.800614145 C28.2694969,-0.0501680945 26.8808234,-0.0396212073 26.0300412,0.825223549 L11.605415,15.4818812 L11.5913525,15.4959437 C11.0604925,16.0162569 10.2097103,16.0092256 9.68939719,15.4818812 L4.47923487,10.1908594 L4.45462547,10.16625 C3.58978071,9.3154678 2.20110722,9.32601469 1.35032498,10.1908594 C0.481964596,11.0732823 0.481964596,12.4865652 1.35032498,13.3689881 L8.72611481,20.8502469 L8.75423985,20.8783719 C9.8124442,21.9225137 11.5175243,21.9084512 12.5616662,20.8502469 L29.1589511,4.00686788 C30.0273115,3.12092935 30.0273115,1.70764645 29.1589511,0.825223549 Z" fill="#1677FF" id="Path"></path></svg>'}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayCoupon",[],t):"object"==typeof exports?exports.PayCoupon=t():e.PayCoupon=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=34)}({0:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.events={},this.eventsList=t}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=r},1:function(e,t,n){"use strict";var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},o=[],i=0;i<e.length;i++){var r=e[i],c=t.base?r[0]+t.base:r[0],l=n[c]||0,p="".concat(c," ").concat(l);n[c]=l+1;var u=s(p),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(a[u].references++,a[u].updater(d)):a.push({identifier:p,updater:y(d,t),references:1}),o.push(p)}return o}function l(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var p,u=(p=[],function(e,t){return p[e]=t,p.filter(Boolean).join("\n")});function d(e,t,n,o){var i=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=u(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function f(e,t,n){var o=n.css,i=n.media,r=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var h=null,b=0;function y(e,t){var n,o,i;if(t.singleton){var r=b++;n=h||(h=l(t)),o=d.bind(null,n,r,!1),i=d.bind(null,n,r,!0)}else n=l(t),o=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var i=s(n[o]);a[i].references--}for(var r=c(e,t),l=0;l<n.length;l++){var p=s(n[l]);0===a[p].references&&(a[p].updater(),a.splice(p,1))}n=r}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=(a=o,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);o&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},25:function(e,t,n){n(3);e.exports=function(e){"use strict";e=e||{};return'<div class="payPopup">\n <div class="payPopup__box">\n <div class="payPopup__box--header">\n <span class="header-operator">关闭</span>\n 优惠\n </div>\n <div class="payPopup__box--body">\n <div class="payPopup__popup"></div>\n </div>\n <div class="payPopup__box--footer">\n <div class="footer-paybtn">确认</div>\n </div>\n <div class="payPopup__iphonex-bottom"></div>\n </div>\n</div>','<div class="payPopup">\n <div class="payPopup__box">\n <div class="payPopup__box--header">\n <span class="header-operator">关闭</span>\n 优惠\n </div>\n <div class="payPopup__box--body">\n <div class="payPopup__popup"></div>\n </div>\n <div class="payPopup__box--footer">\n <div class="footer-paybtn">确认</div>\n </div>\n <div class="payPopup__iphonex-bottom"></div>\n </div>\n</div>'}},26:function(e,t){e.exports='<svg viewBox="0 0 31 31" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>形状备份</title><g id="全新设计(以这个为准)" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="浮层" transform="translate(-688.000000, -340.000000)" fill-rule="nonzero" stroke="#CACACA"><path d="M703.586777,341 C695.530127,341 689,347.533519 689,355.586777 C689,363.640035 695.533519,370.173554 703.586777,370.173554 C711.640035,370.173554 718.173554,363.643427 718.173554,355.586777 C718.173554,347.530127 711.643427,341 703.586777,341 Z" id="形状备份"></path></g></g></svg>'},27:function(e,t){e.exports='<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>right备份 6</title><g id="全新设计(以这个为准)" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="浮层" transform="translate(-687.000000, -396.000000)" fill="#F2F2F2" fill-rule="nonzero" stroke="#CACACA"><g id="right备份-6" transform="translate(688.000000, 397.000000)"><path d="M15.0000202,0.413243368 C6.94337021,0.413243368 0.413243368,6.94676248 0.413243368,15.0000202 C0.413243368,23.0532779 6.94676248,29.5867971 15.0000202,29.5867971 C23.0532779,29.5867971 29.5867971,23.0566702 29.5867971,15.0000202 C29.5867971,6.94337021 23.0566702,0.413243368 15.0000202,0.413243368 Z" id="形状"></path></g></g></g></svg>'},3:function(e,t,n){"use strict";e.exports=n(4)},34:function(e,t,n){"use strict";n.r(t);n(59);var o="disabled",i=n(0),r=n(25),a=n.n(r),s=n(26),c=n.n(s),l=n(7),p=n.n(l),u=n(27),d=n.n(u),f={check:c.a,checked:p.a,disabled:d.a};function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,o;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=a()({options:this.options,icons:f,getObject:function(e){return e}}),this.wrapper=this.container.querySelector(".payPopup"),this.box=this.container.querySelector(".payPopup__box"),this.close=this.wrapper.querySelector(".header-operator"),this.popup=this.container.querySelector(".payPopup__popup"),this.paybtn=this.container.querySelector(".footer-paybtn")}}])&&h(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("payInput")[0]};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.checked=this.options.checked,this.selected=null,this.template=new b({container:this.container,options:this.options}),this.events=new i.a(["show","submit","close"]),this.bindEvents(),this.init()}var t,n,r;return t=e,r=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"init",value:function(){this.toggleSubmitDisabled(!0)}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"show",value:function(e,t){this.events.trigger("show",{couponOptions:e,defaultSelected:t}),this.template.wrapper.style.bottom="0px",this.template.box.style.bottom="0px"}},{key:"hide",value:function(){var e=this;this.template.box.style.bottom="-100%",setTimeout((function(){e.template.wrapper.style.bottom="-100%"}),300)}},{key:"bindEvents",value:function(){var e=this;this.template.close.addEventListener("click",(function(){e.events.trigger("close",{value:e.selected}),e.hide()})),this.template.paybtn.addEventListener("click",(function(){e._submit()})),this.on("show",(function(t){var n=t.couponOptions,o=t.defaultSelected;if(n&&0!==n.length){for(var i="",r=function(t){var r=n[t],a=r.couponDesc,s=r.couponId,c=r.endTimeDesc,l=r.couponTypeDesc,p=r.disable,u=l&&'<div class="body-item__block">'.concat(l,"</div>"),d=c&&'<div class="body-item__term">'.concat(c,"</div>"),h=a&&'<div class="body-item"><div class="body-item__tag">'.concat(u,'</div><div class="body-item__list"><div class="body-item__main"><div class="body-item__title">').concat(a,"</div>").concat(d,'</div><div class="body-item__radio">').concat(f.check,"</div></div></div>");i+=h;try{p?setTimeout((function(){document.querySelectorAll(".body-item__radio")[t].innerHTML=f.disabled}),0):e.selected&&JSON.stringify(n[t])===JSON.stringify(e.selected)||!e.selected&&o+""==s+""?setTimeout((function(){document.querySelectorAll(".body-item__radio")[t].innerHTML=f.checked,e.selected=n[t],e.toggleSubmitDisabled(!1)}),0):setTimeout((function(){document.querySelectorAll(".body-item__radio")[t].innerHTML=f.check}),0)}catch(e){console.error("传入对象有误: ".concat(n))}},a=0;a<n.length;a++)r(a);e.template.popup.innerHTML=i;for(var s=e.template.popup.getElementsByClassName("body-item__list"),c=function(t){s[t].addEventListener("click",(function(o){if(!n[t].disable){e.toggleSubmitDisabled(!1);var i=o.target;"body-item__list"!==o.target.className&&(i=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e;){if(n.call(e,t))return e;e=e.parentElement}return null}(o.target,".body-item__list")),y(s).forEach((function(e,t){n[t].disable||(e.querySelector(".body-item__radio").innerHTML=f.check)})),i.querySelector(".body-item__radio").innerHTML=f.checked,e.selected=n[t]}}),!1)},l=0;l<s.length;l++)c(l)}}))}},{key:"_submit",value:function(){var e=this;this.template.paybtn.classList.contains(o)||(this.toggleSubmitDisabled(!0),this.events.trigger("submit",{value:this.selected}),setTimeout((function(){e.hide(),e.toggleSubmitDisabled(!1)}),1e3))}},{key:"toggleSubmitDisabled",value:function(e){e?this.template.paybtn.classList.add(o):this.template.paybtn.classList.remove(o)}}])&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=g},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},o=Object.create(n),i=/["&'<>]/;o.$escape=function(e){return function(e){var t=""+e,n=i.exec(t);if(!n)return e;var o="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(o+=t.substring(a,r)),a=r+1,o+=s}return a!==r?o+t.substring(a,r):o}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},o.$each=function(e,t){if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t(e[n],n);else for(var i in e)t(e[i],i)},e.exports=o}).call(this,n(5))},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},59:function(e,t,n){var o=n(1),i=n(60);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},60:function(e,t,n){(t=n(2)(!1)).push([e.i,'.payPopup{position:fixed;bottom:-100%;left:0;width:100vw;height:100%;color:#333;background:rgba(0,0,0,.55);transition:bottom 0s linear;z-index:1000}.payPopup__box{position:absolute;bottom:-100%;width:100%;background:#fff;border-radius:8px 8px 0 0;transition:bottom .3s ease-in-out}.payPopup__box--header{position:relative;width:100%;height:49px;font-size:16px;line-height:49px;font-weight:500;text-align:center}.payPopup__box--header:after{content:"";display:block;height:1px;width:100%;transform:scaleY(.5);background:#eee}.payPopup__box--header .header-operator{position:absolute;display:inline-block;top:0;right:16px;height:49px;line-height:49px;font-size:14px;color:#999;font-weight:400}.payPopup__box--body{padding:16px 16px 0;max-height:300px;overflow-y:auto}.payPopup__box--body .body-item{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:18px}.payPopup__box--body .body-item:last-child{margin-bottom:0}.payPopup__box--body .body-item__tag{width:19px;height:19px;margin-right:7px}.payPopup__box--body .body-item__block{width:19px;height:19px;margin-right:5px;align-self:center;border:1px solid #ff6010;border-radius:2px;display:flex;justify-content:center;align-items:center;font-size:12px;color:#ff6010;font-weight:500;box-sizing:border-box}.payPopup__box--body .body-item__list{display:flex;flex:1}.payPopup__box--body .body-item__main{flex:1;font-size:14px;color:#333;width:calc(100% - 15px)}.payPopup__box--body .body-item__title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.payPopup__box--body .body-item__term{font-size:12px;color:#999;align-self:flex-end;margin-top:5px}.payPopup__box--body .body-item__radio{width:15px;height:15px;margin-left:5px;align-self:center}.payPopup__box--body .body-item__radio svg{width:15px;height:15px;vertical-align:top}.payPopup__box--footer .footer-paybtn{margin:12px;height:40px;font-size:18px;line-height:40px;text-align:center;color:#fff;background:#1677ff;border-radius:4px}.payPopup__box--footer .footer-paybtn.disabled{opacity:.5}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3){.payPopup .popup__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}',""]),e.exports=t},7:function(e,t){e.exports='<svg viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>right备份 12</title><defs><linearGradient x1="0.915857264%" y1="1.09287579e-14%" x2="100%" y2="99.0841427%" id="linearGradient-1"><stop stop-color="#168BFF" offset="0%"></stop><stop stop-color="#1664FF" offset="100%"></stop></linearGradient></defs><g id="全新设计(以这个为准)" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="浮层" transform="translate(-688.000000, -454.000000)" fill="url(#linearGradient-1)"><g id="right备份-12" transform="translate(688.000000, 454.000000)"><path d="M15.0000202,0.413243368 C6.94337021,0.413243368 0.413243368,6.94676248 0.413243368,15.0000202 C0.413243368,23.0532779 6.94676248,29.5867971 15.0000202,29.5867971 C23.0532779,29.5867971 29.5867971,23.0566702 29.5867971,15.0000202 C29.5867971,6.94337021 23.0566702,0.413243368 15.0000202,0.413243368 Z M22.0050654,11.4686633 L14.3894109,19.0843177 L14.1451672,19.3285614 C13.4667125,20.0070162 12.3676158,20.0070162 11.6891611,19.3285614 L8.49703156,16.1364319 C8.08995872,15.7293591 8.08995872,15.071258 8.49703156,14.6641851 C8.9041044,14.2571123 9.56220549,14.2571123 9.96927834,14.6641851 L12.3031626,16.9980694 C12.64239,17.3372968 13.1919383,17.3372968 13.5311657,16.9980694 L20.5294263,9.99641653 C20.9364992,9.58934368 21.5946003,9.58934368 22.0016731,9.99641653 C22.4087459,10.4034894 22.4087459,11.0615905 22.0050654,11.4686633 Z" id="形状"></path></g></g></g></svg>'}}).default})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayCoupon",[],t):"object"==typeof exports?exports.PayCoupon=t():e.PayCoupon=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=42)}({0:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.events={},this.eventsList=t}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=r},1:function(e,t,n){"use strict";var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},o=[],i=0;i<e.length;i++){var r=e[i],c=t.base?r[0]+t.base:r[0],l=n[c]||0,p="".concat(c," ").concat(l);n[c]=l+1;var u=s(p),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(a[u].references++,a[u].updater(d)):a.push({identifier:p,updater:y(d,t),references:1}),o.push(p)}return o}function l(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var p,u=(p=[],function(e,t){return p[e]=t,p.filter(Boolean).join("\n")});function d(e,t,n,o){var i=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=u(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function f(e,t,n){var o=n.css,i=n.media,r=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var h=null,b=0;function y(e,t){var n,o,i;if(t.singleton){var r=b++;n=h||(h=l(t)),o=d.bind(null,n,r,!1),i=d.bind(null,n,r,!0)}else n=l(t),o=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var i=s(n[o]);a[i].references--}for(var r=c(e,t),l=0;l<n.length;l++){var p=s(n[l]);0===a[p].references&&(a[p].updater(),a.splice(p,1))}n=r}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=(a=o,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);o&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},25:function(e,t,n){n(3);e.exports=function(e){"use strict";e=e||{};return'<div class="payPopup">\n <div class="payPopup__box">\n <div class="payPopup__box--header">\n <span class="header-operator">关闭</span>\n 优惠\n </div>\n <div class="payPopup__box--body">\n <div class="payPopup__popup"></div>\n </div>\n <div class="payPopup__box--footer">\n <div class="footer-paybtn">确认</div>\n </div>\n <div class="payPopup__iphonex-bottom"></div>\n </div>\n</div>','<div class="payPopup">\n <div class="payPopup__box">\n <div class="payPopup__box--header">\n <span class="header-operator">关闭</span>\n 优惠\n </div>\n <div class="payPopup__box--body">\n <div class="payPopup__popup"></div>\n </div>\n <div class="payPopup__box--footer">\n <div class="footer-paybtn">确认</div>\n </div>\n <div class="payPopup__iphonex-bottom"></div>\n </div>\n</div>'}},26:function(e,t){e.exports='<svg viewBox="0 0 31 31" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>形状备份</title><g id="全新设计(以这个为准)" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="浮层" transform="translate(-688.000000, -340.000000)" fill-rule="nonzero" stroke="#CACACA"><path d="M703.586777,341 C695.530127,341 689,347.533519 689,355.586777 C689,363.640035 695.533519,370.173554 703.586777,370.173554 C711.640035,370.173554 718.173554,363.643427 718.173554,355.586777 C718.173554,347.530127 711.643427,341 703.586777,341 Z" id="形状备份"></path></g></g></svg>'},27:function(e,t){e.exports='<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>right备份 6</title><g id="全新设计(以这个为准)" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="浮层" transform="translate(-687.000000, -396.000000)" fill="#F2F2F2" fill-rule="nonzero" stroke="#CACACA"><g id="right备份-6" transform="translate(688.000000, 397.000000)"><path d="M15.0000202,0.413243368 C6.94337021,0.413243368 0.413243368,6.94676248 0.413243368,15.0000202 C0.413243368,23.0532779 6.94676248,29.5867971 15.0000202,29.5867971 C23.0532779,29.5867971 29.5867971,23.0566702 29.5867971,15.0000202 C29.5867971,6.94337021 23.0566702,0.413243368 15.0000202,0.413243368 Z" id="形状"></path></g></g></g></svg>'},3:function(e,t,n){"use strict";e.exports=n(4)},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},o=Object.create(n),i=/["&'<>]/;o.$escape=function(e){return function(e){var t=""+e,n=i.exec(t);if(!n)return e;var o="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(o+=t.substring(a,r)),a=r+1,o+=s}return a!==r?o+t.substring(a,r):o}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},o.$each=function(e,t){if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t(e[n],n);else for(var i in e)t(e[i],i)},e.exports=o}).call(this,n(5))},42:function(e,t,n){"use strict";n.r(t);n(70);var o="disabled",i=n(0),r=n(25),a=n.n(r),s=n(26),c=n.n(s),l=n(8),p=n.n(l),u=n(27),d=n.n(u),f={check:c.a,checked:p.a,disabled:d.a};function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,o;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=a()({options:this.options,icons:f,getObject:function(e){return e}}),this.wrapper=this.container.querySelector(".payPopup"),this.box=this.container.querySelector(".payPopup__box"),this.close=this.wrapper.querySelector(".header-operator"),this.popup=this.container.querySelector(".payPopup__popup"),this.paybtn=this.container.querySelector(".footer-paybtn")}}])&&h(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("payInput")[0]};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.checked=this.options.checked,this.selected=null,this.template=new b({container:this.container,options:this.options}),this.events=new i.a(["show","submit","close"]),this.bindEvents(),this.init()}var t,n,r;return t=e,r=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"init",value:function(){this.toggleSubmitDisabled(!0)}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"show",value:function(e,t){this.events.trigger("show",{couponOptions:e,defaultSelected:t}),this.template.wrapper.style.bottom="0px",this.template.box.style.bottom="0px"}},{key:"hide",value:function(){var e=this;this.template.box.style.bottom="-100%",setTimeout((function(){e.template.wrapper.style.bottom="-100%"}),300)}},{key:"bindEvents",value:function(){var e=this;this.template.close.addEventListener("click",(function(){e.events.trigger("close",{value:e.selected}),e.hide()})),this.template.paybtn.addEventListener("click",(function(){e._submit()})),this.on("show",(function(t){var n=t.couponOptions,o=t.defaultSelected;if(n&&0!==n.length){for(var i="",r=function(t){var r=n[t],a=r.couponDesc,s=r.couponId,c=r.endTimeDesc,l=r.couponTypeDesc,p=r.disable,u=l&&'<div class="body-item__block">'.concat(l,"</div>"),d=c&&'<div class="body-item__term">'.concat(c,"</div>"),h=a&&'<div class="body-item"><div class="body-item__tag">'.concat(u,'</div><div class="body-item__list"><div class="body-item__main"><div class="body-item__title">').concat(a,"</div>").concat(d,'</div><div class="body-item__radio">').concat(f.check,"</div></div></div>");i+=h;try{p?setTimeout((function(){document.querySelectorAll(".body-item__radio")[t].innerHTML=f.disabled}),0):e.selected&&JSON.stringify(n[t])===JSON.stringify(e.selected)||!e.selected&&o+""==s+""?setTimeout((function(){document.querySelectorAll(".body-item__radio")[t].innerHTML=f.checked,e.selected=n[t],e.toggleSubmitDisabled(!1)}),0):setTimeout((function(){document.querySelectorAll(".body-item__radio")[t].innerHTML=f.check}),0)}catch(e){console.error("传入对象有误: ".concat(n))}},a=0;a<n.length;a++)r(a);e.template.popup.innerHTML=i;for(var s=e.template.popup.getElementsByClassName("body-item__list"),c=function(t){s[t].addEventListener("click",(function(o){if(!n[t].disable){e.toggleSubmitDisabled(!1);var i=o.target;"body-item__list"!==o.target.className&&(i=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e;){if(n.call(e,t))return e;e=e.parentElement}return null}(o.target,".body-item__list")),y(s).forEach((function(e,t){n[t].disable||(e.querySelector(".body-item__radio").innerHTML=f.check)})),i.querySelector(".body-item__radio").innerHTML=f.checked,e.selected=n[t]}}),!1)},l=0;l<s.length;l++)c(l)}}))}},{key:"_submit",value:function(){var e=this;this.template.paybtn.classList.contains(o)||(this.toggleSubmitDisabled(!0),this.events.trigger("submit",{value:this.selected}),setTimeout((function(){e.hide(),e.toggleSubmitDisabled(!1)}),1e3))}},{key:"toggleSubmitDisabled",value:function(e){e?this.template.paybtn.classList.add(o):this.template.paybtn.classList.remove(o)}}])&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=g},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},70:function(e,t,n){var o=n(1),i=n(71);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r);e.exports=i.locals||{}},71:function(e,t,n){(t=n(2)(!1)).push([e.i,'.payPopup{position:fixed;bottom:-100%;left:0;width:100vw;height:100%;color:#333;background:rgba(0,0,0,.55);transition:bottom 0s linear;z-index:1000}.payPopup__box{position:absolute;bottom:-100%;width:100%;background:#fff;border-radius:8px 8px 0 0;transition:bottom .3s ease-in-out}.payPopup__box--header{position:relative;width:100%;height:49px;font-size:16px;line-height:49px;font-weight:500;text-align:center}.payPopup__box--header:after{content:"";display:block;height:1px;width:100%;transform:scaleY(.5);background:#eee}.payPopup__box--header .header-operator{position:absolute;display:inline-block;top:0;right:16px;height:49px;line-height:49px;font-size:14px;color:#999;font-weight:400}.payPopup__box--body{padding:16px 16px 0;max-height:300px;overflow-y:auto}.payPopup__box--body .body-item{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:18px}.payPopup__box--body .body-item:last-child{margin-bottom:0}.payPopup__box--body .body-item__tag{width:19px;height:19px;margin-right:7px}.payPopup__box--body .body-item__block{width:19px;height:19px;margin-right:5px;align-self:center;border:1px solid #ff6010;border-radius:2px;display:flex;justify-content:center;align-items:center;font-size:12px;color:#ff6010;font-weight:500;box-sizing:border-box}.payPopup__box--body .body-item__list{display:flex;flex:1}.payPopup__box--body .body-item__main{flex:1;font-size:14px;color:#333;width:calc(100% - 15px)}.payPopup__box--body .body-item__title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.payPopup__box--body .body-item__term{font-size:12px;color:#999;align-self:flex-end;margin-top:5px}.payPopup__box--body .body-item__radio{width:15px;height:15px;margin-left:5px;align-self:center}.payPopup__box--body .body-item__radio svg{width:15px;height:15px;vertical-align:top}.payPopup__box--footer .footer-paybtn{margin:12px;height:40px;font-size:18px;line-height:40px;text-align:center;color:#fff;background:#1677ff;border-radius:4px}.payPopup__box--footer .footer-paybtn.disabled{opacity:.5}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3){.payPopup .popup__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}',""]),e.exports=t},8:function(e,t){e.exports='<svg viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>right备份 12</title><defs><linearGradient x1="0.915857264%" y1="1.09287579e-14%" x2="100%" y2="99.0841427%" id="linearGradient-1"><stop stop-color="#168BFF" offset="0%"></stop><stop stop-color="#1664FF" offset="100%"></stop></linearGradient></defs><g id="全新设计(以这个为准)" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="浮层" transform="translate(-688.000000, -454.000000)" fill="url(#linearGradient-1)"><g id="right备份-12" transform="translate(688.000000, 454.000000)"><path d="M15.0000202,0.413243368 C6.94337021,0.413243368 0.413243368,6.94676248 0.413243368,15.0000202 C0.413243368,23.0532779 6.94676248,29.5867971 15.0000202,29.5867971 C23.0532779,29.5867971 29.5867971,23.0566702 29.5867971,15.0000202 C29.5867971,6.94337021 23.0566702,0.413243368 15.0000202,0.413243368 Z M22.0050654,11.4686633 L14.3894109,19.0843177 L14.1451672,19.3285614 C13.4667125,20.0070162 12.3676158,20.0070162 11.6891611,19.3285614 L8.49703156,16.1364319 C8.08995872,15.7293591 8.08995872,15.071258 8.49703156,14.6641851 C8.9041044,14.2571123 9.56220549,14.2571123 9.96927834,14.6641851 L12.3031626,16.9980694 C12.64239,17.3372968 13.1919383,17.3372968 13.5311657,16.9980694 L20.5294263,9.99641653 C20.9364992,9.58934368 21.5946003,9.58934368 22.0016731,9.99641653 C22.4087459,10.4034894 22.4087459,11.0615905 22.0050654,11.4686633 Z" id="形状"></path></g></g></g></svg>'}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayFreeModal",[],t):"object"==typeof exports?exports.PayFreeModal=t():e.PayFreeModal=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=35)}({0:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r(this,e),this.events={},this.eventsList=t}var t,n,i;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=i},1:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],f=n[c]||0,l="".concat(c," ").concat(f);n[c]=f+1;var p=s(l),u={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(u)):a.push({identifier:l,updater:y(u,t),references:1}),r.push(l)}return r}function f(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function u(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var A=null,v=0;function y(e,t){var n,r,o;if(t.singleton){var i=v++;n=A||(A=f(t)),r=u.bind(null,n,i,!1),o=u.bind(null,n,i,!0)}else n=f(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=c(e,t),f=0;f<n.length;f++){var l=s(n[f]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},29:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).icons;return t+='<div class="payFreeModal">\n <div class="payFreeModal__mask"></div>\n <div class="payFreeModal__box">\n <div class="payFreeModal__box--header">\n <span class="header-bg">',t+=n.freeBg,t+='</span>\n <div class="payFreeModal__box--header--text">\n <span class="header-operator">',t+=n.operator,t+='</span>\n <div class="free-header-text-wrapper"></div>\n </div>\n </div>\n <div class="payFreeModal__box--body"></div>\n <div class="payFreeModal__box--footer"></div>\n <div class="payFreeModal__iphonex-bottom"></div>\n </div>\n</div>\n'}},3:function(e,t,n){"use strict";e.exports=n(4)},30:function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 27 24" enable-background="new 0 0 27 24" xml:space="preserve"><image id="image0" width="27" height="24" x="0" y="0" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAYCAQAAAChSU5wAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElN RQflDA0OMwqj57RpAAACVUlEQVQ4y42S7UvTYRSGr7OZpplopqZl4ktaklIEFYXV8gXMwiQxCitS t/1N23SiKEhEVJglvvymRBRGEJEhEQQSaFmaLXWb/k4fVMw5X86nh/u5L+5zOEdcndyWJW10trFt eYq1X1MYT8qzYJchteJ139kOaj6u/ZrCRFR5XVCgfc/Ccy3BlLuOzs0hb2HIIFUmxWb/BALwIH7m hZ6XJeodXZu0d0wNTeP7LlvDKIAFoM5vrZRXaqXDXRcJaikwBzVNflhLl6GVNICOhLlePcui5Zb9 4XrIna8+0pnisvPDqiZr3x0Jc316mkXLTfujNbX1SMinGfyMKm18v6Za1p71s1ohI0SZXa7rq5or N2hohvySsv+hdWkArYmhfj1FSGodT8GbE/KRyTRlznfrfWEYdCb5BzgpQW7IR9PHYZmxlje+DXdt wKB5nzmgJyTIlGbwW8odIxs9ETBoSw4MajEwS4XzTSSHJZK4FKfxAMRIIuwQ8xwKGeTgZ4wYHnvK d4S1ZKhBLn4qYy8wqrvNJ82l287mShef5stfy5WmYfCkmT6OMk+V09girfUAhuYzR1XTMIB9MtrG GLF0uy9uinnSggYFzHPVMbSq3Z/AxmfieOYpidhke+q8QSHz1mtNA2HrOBjwaR5+Kp0vw9K8KQuD FMqCpTocgnvfxMYX4qXHfW5dmms/gxQRkGpHb+Q9eTMXhzRb/kiF/fVKWluyDFBEQGo2g6BhXC/x Vfeava4zALJ6gVJj72HLas4yhzRr+UrF3adlBKTW0c225clWQ7OYjs75BzFA5tH/tWupAAAAJXRF WHRkYXRlOmNyZWF0ZQAyMDIxLTEyLTEzVDExOjUxOjEwKzAzOjAwpBoQywAAACV0RVh0ZGF0ZTpt b2RpZnkAMjAyMS0xMi0xM1QxMTo1MToxMCswMzowMNVHqHcAAAAASUVORK5CYII="></image></svg>'},31:function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1125 288" enable-background="new 0 0 1125 288" xml:space="preserve"><image id="image0" width="1125" height="288" x="0" y="0" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABGUAAAEgCAMAAAAqmT4UAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABJlBMVEUAAAD/+Oj/9OX+8d3/ 9OP98Nz98uH98uL359H97NT/7NH/7M/+6s7u06zoyp344L/858r02rf13bzrz6by2LP96cvx17H7 5sj23r3w1K7z2bX65MX548P13Lr44cH237/w1bHy2bby2rn+69Hx2LX55Mf66M3u1LD76tP86dD4 48Xw17P86c7/7dP44cP24ML/7tX669f55cn97dfy3Lz67drv17by38X979r038D/8Nnz3b7w2Lj/ 79f14MTx2rv35Mnw2br14sf45s366NHz3sLx3L//8dv/8t798N325c3z4cjv2r7/8+D048z46dT/ 8+Lw3cP77t7/9OT88eH/9eb/9uj/9+r/+O3/+e//+fD/+vL/+/T//Pb//Pj//fr//vz///9oKsan AAAACHRSTlMAFoTNnLszYk4Hq1gAAAABYktHRGGysEyGAAAAB3RJTUUH5QwNDiolkzYgKAAATAlJ REFUeNrtXQlDIkmWZnZmd8VCBTxAkTMBuZFTKJAbFSzFUqyq7p6emf3/f2Lfi8gjMsnkULP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CwF6QyBALBXpDKEAgEe0EqQyAQ 7AWpDIFAsBekMgQCwV6QyhAIBHtBKkMgEOwFqQyBQLAXpDIEAsFekMoQCAR7QSpDIBDsBakMgUCw F6QyBALBXpDKEAgEe0EqQyAQ7AWpDIFAsBekMgQCwV6QyhAIBHtBKkMgEOwFqQyBQLAXpDIEAsFe kMoQCAR7QSpDIBDsBakMgUCwF6QyBALBXvw/JCyWuYWxLp8AAAAldEVYdGRhdGU6Y3JlYXRlADIw MjEtMTItMTNUMTE6NDI6MzcrMDM6MDAJIU37AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEyLTEz VDExOjQyOjM3KzAzOjAweHz1RwAAAABJRU5ErkJggg=="></image></svg>'},35:function(e,t,n){"use strict";n.r(t);n(63);var r=n(0),o=window.AlipayJSBridge,i=void 0===o?{}:o;var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={operationType:e,requestData:[t],headers:n};return new Promise((function(e){i.call("rpc",r,(function(t){e(t)}))})).catch((function(e){console.log("调用h5页页面接口失败",e)}))},s={tagVos:[{sort:"0",title:"极速响应",tagName:"fastReply",tagId:"T001055967",extInfo:{},icon:"https://gw.alipayobjects.com/mdn/rms_6833dc/afts/img/A*Tmd8T50kLV4AAAAAAAAAAAAAARQnAQ",desc:"商家承诺24小时内极速响应处理交易投诉"},{sort:"1",title:"24小时退款",tagName:"fastRefund",tagId:"T001056143",extInfo:{},icon:"https://gw.alipayobjects.com/mdn/rms_6833dc/afts/img/A*Tmd8T50kLV4AAAAAAAAAAAAAARQnAQ",desc:"符合条件时,退款投诉可享受24小时极速退款保障"}],popUpIcon:"https://gw.alipayobjects.com/mdn/rms_6833dc/afts/img/A*d4m2SLvzWqcAAAAAAAAAAAAAARQnAQ",popUpLinkUrl:"https://render.alipay.com/p/c/18mpuyl81js0",brandName:"无忧服务",extInfo:{},popUpDesc:"商家承诺提供更好的服务保障体验",popUpLinkTip:"查看无忧服务详情规则"},c=n(29),f=n.n(c),l=n(30),p=n.n(l),u=n(31),d=n.n(u),A={operator:p.a,freeBg:d.a};function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=f()({options:this.options,icons:A,getObject:function(e){return e}}),this.wrapper=this.container.querySelector(".payFreeModal"),this.mask=this.container.querySelector(".payFreeModal__mask"),this.box=this.container.querySelector(".payFreeModal__box"),this.close=this.wrapper.querySelector(".header-operator"),this.headerText=this.container.querySelector(".free-header-text-wrapper"),this.body=this.container.querySelector(".payFreeModal__box--body"),this.footer=this.container.querySelector(".payFreeModal__box--footer")}}])&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var m=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("payInput")[0]};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.contentData=b({},s),this.template=new y({container:this.container,options:this.options}),this.events=new r.a(["show","close"]),this.bindEvents(),this.init(t.params)}var t,n,o;return t=e,o=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"init",value:function(e){var t=this;a("com.alipay.openpunish.worryfree.queryTradeServiceInfo",e).then((function(e){var n=e.success,r=e.data;n&&(t.contentData=b({},r))})).catch((function(e){console.log("调用接口失败",e)}))}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"show",value:function(){for(var e=this.contentData,t=e.popUpIcon,n=e.popUpDesc,r=e.tagVos,o=void 0===r?[]:r,i=e.popUpLinkUrl,a=e.popUpLinkTip,s="",c=0;c<o.length;c++){var f=o[c],l=f.title,p=f.icon,u=f.desc;s+='<div class="free-content-wrapper"><img class="free-content-cheek" src="'.concat(p,'" /><div class="free-content-text"><div class="free-content-text--title">').concat(l,'</div><div class="free-content-text--desc">').concat(u,"</div></div></div>")}this.template.headerText.innerHTML='<div><img class="free-header-icon-text" src="'.concat(t,'" /><div class="header-text">').concat(n,"</div></div>"),this.template.footer.innerHTML='<a href="'.concat(i,'" class="footer-link">').concat(a,'<img src="https://gw.alipayobjects.com/zos/bmw-prod/c964823d-a067-49a2-8159-b8ecbc00c5a3.svg" /></a>'),this.template.body.innerHTML=s,this.events.trigger("show"),this.template.wrapper.style.bottom="0px",this.template.box.style.bottom="0px"}},{key:"hide",value:function(){var e=this;this.template.box.style.bottom="-100%",setTimeout((function(){e.template.wrapper.style.bottom="-100%"}),300)}},{key:"bindEvents",value:function(){var e=this;this.template.close.addEventListener("click",(function(){e.events.trigger("close"),e.hide()})),this.template.mask.addEventListener("click",(function(){e.events.trigger("close"),e.hide()})),this.on("show")}}])&&w(t.prototype,n),o&&w(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=m},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=Object.create(n),o=/["&'<>]/;r.$escape=function(e){return function(e){var t=""+e,n=o.exec(t);if(!n)return e;var r="",i=void 0,a=void 0,s=void 0;for(i=n.index,a=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==i&&(r+=t.substring(a,i)),a=i+1,r+=s}return a!==i?r+t.substring(a,i):r}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},r.$each=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t(e[n],n);else for(var o in e)t(e[o],o)},e.exports=r}).call(this,n(5))},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},63:function(e,t,n){var r=n(1),o=n(64);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},64:function(e,t,n){(t=n(2)(!1)).push([e.i,".payFreeModal{position:fixed;bottom:-100%;left:0;width:100vw;height:100%;color:#333;background:rgba(0,0,0,.55);transition:bottom 0s linear;z-index:1000}.payFreeModal__mask{position:absolute;left:0;width:100vw;height:100vh}.payFreeModal__box{position:absolute;bottom:-100%;width:100%;background:#fff;border-radius:8px 8px 0 0;transition:bottom .3s ease-in-out}.payFreeModal__box--header{position:relative}.payFreeModal__box--header--text{position:absolute;top:24px;width:100%;text-align:center}.payFreeModal__box--header .header-operator{position:absolute;display:inline-block;line-height:6px;top:0;right:12px;width:14px;height:14px}.payFreeModal__box--header .free-header-icon-text{display:inline-block;width:111px}.payFreeModal__box--header .header-text{font-size:15px;opacity:.9;font-family:PingFangSC-Medium,sans-serif;color:#bd8c42}.payFreeModal__box--body{margin-left:26px}.payFreeModal__box--body .free-content-wrapper{display:flex;align-items:baseline}.payFreeModal__box--body .free-content-wrapper:last-child{margin-bottom:40px}.payFreeModal__box--body .free-content-wrapper:not(:first-child){margin-top:24px}.payFreeModal__box--body .free-content-cheek{width:14px;height:14px;margin-right:8px}.payFreeModal__box--body .free-content-text--title{font-family:PingFangSC-Medium,sans-serif;font-size:16px;color:#bd8c42}.payFreeModal__box--body .free-content-text--desc{margin-top:4px;font-size:13px;color:rgba(68,51,26,.47)}.payFreeModal__box--footer{margin-bottom:24px;font-size:14px;text-align:center}.payFreeModal__box--footer .footer-link{font-size:13px;text-decoration:none;color:rgba(68,51,26,.48)}.payFreeModal__box--footer .footer-link img{display:inline-block;margin-left:4px;width:5px;height:10px}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:390px) and (device-height:844px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:428px) and (device-height:926px) and (-webkit-device-pixel-ratio:3){.payFreeModal .payFreeModal__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}",""]),e.exports=t}}).default})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayFreeModal",[],t):"object"==typeof exports?exports.PayFreeModal=t():e.PayFreeModal=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=43)}({0:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r(this,e),this.events={},this.eventsList=t}var t,n,i;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=i},1:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],f=n[c]||0,l="".concat(c," ").concat(f);n[c]=f+1;var p=s(l),u={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(u)):a.push({identifier:l,updater:y(u,t),references:1}),r.push(l)}return r}function f(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function u(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var A=null,v=0;function y(e,t){var n,r,o;if(t.singleton){var i=v++;n=A||(A=f(t)),r=u.bind(null,n,i,!1),o=u.bind(null,n,i,!0)}else n=f(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=c(e,t),f=0;f<n.length;f++){var l=s(n[f]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},29:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).icons;return t+='<div class="payFreeModal">\n <div class="payFreeModal__mask"></div>\n <div class="payFreeModal__box">\n <div class="payFreeModal__box--header">\n <span class="header-bg">',t+=n.freeBg,t+='</span>\n <div class="payFreeModal__box--header--text">\n <span class="header-operator">',t+=n.operator,t+='</span>\n <div class="free-header-text-wrapper"></div>\n </div>\n </div>\n <div class="payFreeModal__box--body"></div>\n <div class="payFreeModal__box--footer"></div>\n <div class="payFreeModal__iphonex-bottom"></div>\n </div>\n</div>\n'}},3:function(e,t,n){"use strict";e.exports=n(4)},30:function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 27 24" enable-background="new 0 0 27 24" xml:space="preserve"><image id="image0" width="27" height="24" x="0" y="0" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAYCAQAAAChSU5wAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElN RQflDA0OMwqj57RpAAACVUlEQVQ4y42S7UvTYRSGr7OZpplopqZl4ktaklIEFYXV8gXMwiQxCitS t/1N23SiKEhEVJglvvymRBRGEJEhEQQSaFmaLXWb/k4fVMw5X86nh/u5L+5zOEdcndyWJW10trFt eYq1X1MYT8qzYJchteJ139kOaj6u/ZrCRFR5XVCgfc/Ccy3BlLuOzs0hb2HIIFUmxWb/BALwIH7m hZ6XJeodXZu0d0wNTeP7LlvDKIAFoM5vrZRXaqXDXRcJaikwBzVNflhLl6GVNICOhLlePcui5Zb9 4XrIna8+0pnisvPDqiZr3x0Jc316mkXLTfujNbX1SMinGfyMKm18v6Za1p71s1ohI0SZXa7rq5or N2hohvySsv+hdWkArYmhfj1FSGodT8GbE/KRyTRlznfrfWEYdCb5BzgpQW7IR9PHYZmxlje+DXdt wKB5nzmgJyTIlGbwW8odIxs9ETBoSw4MajEwS4XzTSSHJZK4FKfxAMRIIuwQ8xwKGeTgZ4wYHnvK d4S1ZKhBLn4qYy8wqrvNJ82l287mShef5stfy5WmYfCkmT6OMk+V09girfUAhuYzR1XTMIB9MtrG GLF0uy9uinnSggYFzHPVMbSq3Z/AxmfieOYpidhke+q8QSHz1mtNA2HrOBjwaR5+Kp0vw9K8KQuD FMqCpTocgnvfxMYX4qXHfW5dmms/gxQRkGpHb+Q9eTMXhzRb/kiF/fVKWluyDFBEQGo2g6BhXC/x Vfeava4zALJ6gVJj72HLas4yhzRr+UrF3adlBKTW0c225clWQ7OYjs75BzFA5tH/tWupAAAAJXRF WHRkYXRlOmNyZWF0ZQAyMDIxLTEyLTEzVDExOjUxOjEwKzAzOjAwpBoQywAAACV0RVh0ZGF0ZTpt b2RpZnkAMjAyMS0xMi0xM1QxMTo1MToxMCswMzowMNVHqHcAAAAASUVORK5CYII="></image></svg>'},31:function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1125 288" enable-background="new 0 0 1125 288" xml:space="preserve"><image id="image0" width="1125" height="288" x="0" y="0" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABGUAAAEgCAMAAAAqmT4UAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABJlBMVEUAAAD/+Oj/9OX+8d3/ 9OP98Nz98uH98uL359H97NT/7NH/7M/+6s7u06zoyp344L/858r02rf13bzrz6by2LP96cvx17H7 5sj23r3w1K7z2bX65MX548P13Lr44cH237/w1bHy2bby2rn+69Hx2LX55Mf66M3u1LD76tP86dD4 48Xw17P86c7/7dP44cP24ML/7tX669f55cn97dfy3Lz67drv17by38X979r038D/8Nnz3b7w2Lj/ 79f14MTx2rv35Mnw2br14sf45s366NHz3sLx3L//8dv/8t798N325c3z4cjv2r7/8+D048z46dT/ 8+Lw3cP77t7/9OT88eH/9eb/9uj/9+r/+O3/+e//+fD/+vL/+/T//Pb//Pj//fr//vz///9oKsan AAAACHRSTlMAFoTNnLszYk4Hq1gAAAABYktHRGGysEyGAAAAB3RJTUUH5QwNDiolkzYgKAAATAlJ REFUeNrtXQlDIkmWZnZmd8VCBTxAkTMBuZFTKJAbFSzFUqyq7p6emf3/f2Lfi8gjMsnkULPK6nrf WG0SGV9cGfHFey8Sx+Ew4m//9fct5/b2BxGund094aN716N98O5r154DLc/Ooco+8mk5tEu/muFw T7vU7h8efhDg2js+Cci/Mc/p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BakMgUCw F6QyBALBXpDKEAgEe0EqQyAQ7AWpDIFAsBekMgQCwV6QyhAIBHtBKkMgEOwFqQyBQLAXpDIEAsFe kMoQCAR7QSpDIBDsBakMgUCwF6QyBALBXvw/JCyWuYWxLp8AAAAldEVYdGRhdGU6Y3JlYXRlADIw MjEtMTItMTNUMTE6NDI6MzcrMDM6MDAJIU37AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEyLTEz VDExOjQyOjM3KzAzOjAweHz1RwAAAABJRU5ErkJggg=="></image></svg>'},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=Object.create(n),o=/["&'<>]/;r.$escape=function(e){return function(e){var t=""+e,n=o.exec(t);if(!n)return e;var r="",i=void 0,a=void 0,s=void 0;for(i=n.index,a=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==i&&(r+=t.substring(a,i)),a=i+1,r+=s}return a!==i?r+t.substring(a,i):r}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},r.$each=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t(e[n],n);else for(var o in e)t(e[o],o)},e.exports=r}).call(this,n(5))},43:function(e,t,n){"use strict";n.r(t);n(74);var r=n(0),o=window.AlipayJSBridge,i=void 0===o?{}:o;var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={operationType:e,requestData:[t],headers:n};return new Promise((function(e){i.call("rpc",r,(function(t){e(t)}))})).catch((function(e){console.log("调用h5页页面接口失败",e)}))},s={tagVos:[{sort:"0",title:"极速响应",tagName:"fastReply",tagId:"T001055967",extInfo:{},icon:"https://gw.alipayobjects.com/mdn/rms_6833dc/afts/img/A*Tmd8T50kLV4AAAAAAAAAAAAAARQnAQ",desc:"商家承诺24小时内极速响应处理交易投诉"},{sort:"1",title:"24小时退款",tagName:"fastRefund",tagId:"T001056143",extInfo:{},icon:"https://gw.alipayobjects.com/mdn/rms_6833dc/afts/img/A*Tmd8T50kLV4AAAAAAAAAAAAAARQnAQ",desc:"符合条件时,退款投诉可享受24小时极速退款保障"}],popUpIcon:"https://gw.alipayobjects.com/mdn/rms_6833dc/afts/img/A*d4m2SLvzWqcAAAAAAAAAAAAAARQnAQ",popUpLinkUrl:"https://render.alipay.com/p/c/18mpuyl81js0",brandName:"无忧服务",extInfo:{},popUpDesc:"商家承诺提供更好的服务保障体验",popUpLinkTip:"查看无忧服务详情规则"},c=n(29),f=n.n(c),l=n(30),p=n.n(l),u=n(31),d=n.n(u),A={operator:p.a,freeBg:d.a};function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=f()({options:this.options,icons:A,getObject:function(e){return e}}),this.wrapper=this.container.querySelector(".payFreeModal"),this.mask=this.container.querySelector(".payFreeModal__mask"),this.box=this.container.querySelector(".payFreeModal__box"),this.close=this.wrapper.querySelector(".header-operator"),this.headerText=this.container.querySelector(".free-header-text-wrapper"),this.body=this.container.querySelector(".payFreeModal__box--body"),this.footer=this.container.querySelector(".payFreeModal__box--footer")}}])&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var m=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("payInput")[0]};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.contentData=b({},s),this.template=new y({container:this.container,options:this.options}),this.events=new r.a(["show","close"]),this.bindEvents(),this.init(t.params)}var t,n,o;return t=e,o=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"init",value:function(e){var t=this;a("com.alipay.openpunish.worryfree.queryTradeServiceInfo",e).then((function(e){var n=e.success,r=e.data;n&&(t.contentData=b({},r))})).catch((function(e){console.log("调用接口失败",e)}))}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"show",value:function(){for(var e=this.contentData,t=e.popUpIcon,n=e.popUpDesc,r=e.tagVos,o=void 0===r?[]:r,i=e.popUpLinkUrl,a=e.popUpLinkTip,s="",c=0;c<o.length;c++){var f=o[c],l=f.title,p=f.icon,u=f.desc;s+='<div class="free-content-wrapper"><img class="free-content-cheek" src="'.concat(p,'" /><div class="free-content-text"><div class="free-content-text--title">').concat(l,'</div><div class="free-content-text--desc">').concat(u,"</div></div></div>")}this.template.headerText.innerHTML='<div><img class="free-header-icon-text" src="'.concat(t,'" /><div class="header-text">').concat(n,"</div></div>"),this.template.footer.innerHTML='<a href="'.concat(i,'" class="footer-link">').concat(a,'<img src="https://gw.alipayobjects.com/zos/bmw-prod/c964823d-a067-49a2-8159-b8ecbc00c5a3.svg" /></a>'),this.template.body.innerHTML=s,this.events.trigger("show"),this.template.wrapper.style.bottom="0px",this.template.box.style.bottom="0px"}},{key:"hide",value:function(){var e=this;this.template.box.style.bottom="-100%",setTimeout((function(){e.template.wrapper.style.bottom="-100%"}),300)}},{key:"bindEvents",value:function(){var e=this;this.template.close.addEventListener("click",(function(){e.events.trigger("close"),e.hide()})),this.template.mask.addEventListener("click",(function(){e.events.trigger("close"),e.hide()})),this.on("show")}}])&&w(t.prototype,n),o&&w(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=m},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},74:function(e,t,n){var r=n(1),o=n(75);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},75:function(e,t,n){(t=n(2)(!1)).push([e.i,".payFreeModal{position:fixed;bottom:-100%;left:0;width:100vw;height:100%;color:#333;background:rgba(0,0,0,.55);transition:bottom 0s linear;z-index:1000}.payFreeModal__mask{position:absolute;left:0;width:100vw;height:100vh}.payFreeModal__box{position:absolute;bottom:-100%;width:100%;background:#fff;border-radius:8px 8px 0 0;transition:bottom .3s ease-in-out}.payFreeModal__box--header{position:relative}.payFreeModal__box--header--text{position:absolute;top:24px;width:100%;text-align:center}.payFreeModal__box--header .header-operator{position:absolute;display:inline-block;line-height:6px;top:0;right:12px;width:14px;height:14px}.payFreeModal__box--header .free-header-icon-text{display:inline-block;width:111px}.payFreeModal__box--header .header-text{font-size:15px;opacity:.9;font-family:PingFangSC-Medium,sans-serif;color:#bd8c42}.payFreeModal__box--body{margin-left:26px}.payFreeModal__box--body .free-content-wrapper{display:flex;align-items:baseline}.payFreeModal__box--body .free-content-wrapper:last-child{margin-bottom:40px}.payFreeModal__box--body .free-content-wrapper:not(:first-child){margin-top:24px}.payFreeModal__box--body .free-content-cheek{width:14px;height:14px;margin-right:8px}.payFreeModal__box--body .free-content-text--title{font-family:PingFangSC-Medium,sans-serif;font-size:16px;color:#bd8c42}.payFreeModal__box--body .free-content-text--desc{margin-top:4px;font-size:13px;color:rgba(68,51,26,.47)}.payFreeModal__box--footer{margin-bottom:24px;font-size:14px;text-align:center}.payFreeModal__box--footer .footer-link{font-size:13px;text-decoration:none;color:rgba(68,51,26,.48)}.payFreeModal__box--footer .footer-link img{display:inline-block;margin-left:4px;width:5px;height:10px}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:390px) and (device-height:844px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:428px) and (device-height:926px) and (-webkit-device-pixel-ratio:3){.payFreeModal .payFreeModal__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}",""]),e.exports=t}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayHuabei",[],t):"object"==typeof exports?exports.PayHuabei=t():e.PayHuabei=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=40)}({0:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this.events={},this.eventsList=t}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=r},1:function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],u=t.base?r[0]+t.base:r[0],s=n[u]||0,f="".concat(u," ").concat(s);n[u]=s+1;var l=c(f),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==l?(a[l].references++,a[l].updater(d)):a.push({identifier:f,updater:y(d,t),references:1}),i.push(f)}return i}function s(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function h(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var p=null,b=0;function y(e,t){var n,i,o;if(t.singleton){var r=b++;n=p||(p=s(t)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=s(t),i=h.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=c(n[i]);a[o].references--}for(var r=u(e,t),s=0;s<n.length;s++){var f=c(n[s]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=r}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(a=i,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var a,c,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);i&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},21:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options;return t+=' <div class="PayHuabei">\n ',n.checked&&(t+='\n <div class="PayHuabei__checkbox checked"></div>\n '),t+="\n ",n.checked||(t+='\n <div class="PayHuabei__checkbox unchecked"></div>\n '),t+='\n <div class="PayHuabei__text">\n 使用花呗分期付款\n <span class="PayHuabei__slogan">分期付·更轻松</span>\n </div>\n</div>\n'}},3:function(e,t,n){"use strict";e.exports=n(4)},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(e){return function(e){var t=""+e,n=o.exec(t);if(!n)return e;var i="",r=void 0,a=void 0,c=void 0;for(r=n.index,a=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}a!==r&&(i+=t.substring(a,r)),a=r+1,i+=c}return a!==r?i+t.substring(a,r):i}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},i.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var o in e)t(e[o],o)},e.exports=i}).call(this,n(5))},40:function(e,t,n){"use strict";n.r(t);n(53);var i=n(21),o=n.n(i);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,i;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,getObject:function(e){return e}}),this.huabei=this.container.querySelector(".PayHuabei"),this.checkbox=this.container.querySelector(".PayHuabei__checkbox")}}])&&r(t.prototype,n),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),c=n(0);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("payInput")[0],checked:e.checked||!1};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.checked=this.options.checked,this.template=new a({container:this.container,options:this.options}),this.events=new c.a(["change"]),this.init()}var t,n,i;return t=e,i=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"init",value:function(){var e=this;this.template.checkbox.addEventListener("click",(function(){e.checked=!e.checked,e.events.trigger("change",e.checked),e.template.checkbox.className=e.checked?"PayHuabei__checkbox checked":"PayHuabei__checkbox unchecked"}),!1)}},{key:"show",value:function(){this.template.huabei.style.display="flex"}},{key:"hide",value:function(){this.template.huabei.style.display="none"}},{key:"setStatus",value:function(e){this.checked=!!e,this.events.trigger("change",this.checked),this.template.checkbox.className=this.checked?"PayHuabei__checkbox checked":"PayHuabei__checkbox unchecked"}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},53:function(e,t,n){var i=n(1),o=n(54);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},54:function(e,t,n){(t=n(2)(!1)).push([e.i,".PayHuabei{display:none;vertical-align:center;align-items:center}.PayHuabei__checkbox{box-sizing:border-box;width:22px;height:22px;border-radius:50%}.PayHuabei__checkbox.unchecked{border:1px solid #d8d8d8;background:#fff}.PayHuabei__checkbox.checked{background:url(https://gw.alipayobjects.com/mdn/rms_b05656/afts/img/A*jhPrT798EK8AAAAAAAAAAABkARQnAQ) no-repeat;background-size:contain}.PayHuabei__text{margin:0 6px;font-size:14px;line-height:20px}.PayHuabei__slogan{padding:0 4px;height:16px;font-size:11px;line-height:15px;color:#ff3b30;border:1px solid #ff3b30;border-radius:8px 8px 8px 0}",""]),e.exports=t}}).default})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayHuabei",[],t):"object"==typeof exports?exports.PayHuabei=t():e.PayHuabei=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=50)}({0:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this.events={},this.eventsList=t}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=r},1:function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],u=t.base?r[0]+t.base:r[0],s=n[u]||0,f="".concat(u," ").concat(s);n[u]=s+1;var l=c(f),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==l?(a[l].references++,a[l].updater(d)):a.push({identifier:f,updater:y(d,t),references:1}),i.push(f)}return i}function s(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function h(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var p=null,b=0;function y(e,t){var n,i,o;if(t.singleton){var r=b++;n=p||(p=s(t)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=s(t),i=h.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=c(n[i]);a[o].references--}for(var r=u(e,t),s=0;s<n.length;s++){var f=c(n[s]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=r}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(a=i,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var a,c,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);i&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},21:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options;return t+=' <div class="PayHuabei">\n ',n.checked&&(t+='\n <div class="PayHuabei__checkbox checked"></div>\n '),t+="\n ",n.checked||(t+='\n <div class="PayHuabei__checkbox unchecked"></div>\n '),t+='\n <div class="PayHuabei__text">\n 使用花呗分期付款\n <span class="PayHuabei__slogan">分期付·更轻松</span>\n </div>\n</div>\n'}},3:function(e,t,n){"use strict";e.exports=n(4)},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(e){return function(e){var t=""+e,n=o.exec(t);if(!n)return e;var i="",r=void 0,a=void 0,c=void 0;for(r=n.index,a=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}a!==r&&(i+=t.substring(a,r)),a=r+1,i+=c}return a!==r?i+t.substring(a,r):i}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},i.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var o in e)t(e[o],o)},e.exports=i}).call(this,n(5))},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},50:function(e,t,n){"use strict";n.r(t);n(64);var i=n(21),o=n.n(i);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,i;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,getObject:function(e){return e}}),this.huabei=this.container.querySelector(".PayHuabei"),this.checkbox=this.container.querySelector(".PayHuabei__checkbox")}}])&&r(t.prototype,n),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),c=n(0);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("payInput")[0],checked:e.checked||!1};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.checked=this.options.checked,this.template=new a({container:this.container,options:this.options}),this.events=new c.a(["change"]),this.init()}var t,n,i;return t=e,i=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"init",value:function(){var e=this;this.template.checkbox.addEventListener("click",(function(){e.checked=!e.checked,e.events.trigger("change",e.checked),e.template.checkbox.className=e.checked?"PayHuabei__checkbox checked":"PayHuabei__checkbox unchecked"}),!1)}},{key:"show",value:function(){this.template.huabei.style.display="flex"}},{key:"hide",value:function(){this.template.huabei.style.display="none"}},{key:"setStatus",value:function(e){this.checked=!!e,this.events.trigger("change",this.checked),this.template.checkbox.className=this.checked?"PayHuabei__checkbox checked":"PayHuabei__checkbox unchecked"}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},64:function(e,t,n){var i=n(1),o=n(65);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},65:function(e,t,n){(t=n(2)(!1)).push([e.i,".PayHuabei{display:none;vertical-align:center;align-items:center}.PayHuabei__checkbox{box-sizing:border-box;width:22px;height:22px;border-radius:50%}.PayHuabei__checkbox.unchecked{border:1px solid #d8d8d8;background:#fff}.PayHuabei__checkbox.checked{background:url(https://gw.alipayobjects.com/mdn/rms_b05656/afts/img/A*jhPrT798EK8AAAAAAAAAAABkARQnAQ) no-repeat;background-size:contain}.PayHuabei__text{margin:0 6px;font-size:14px;line-height:20px}.PayHuabei__slogan{padding:0 4px;height:16px;font-size:11px;line-height:15px;color:#ff3b30;border:1px solid #ff3b30;border-radius:8px 8px 8px 0}",""]),e.exports=t}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayInput",[],e):"object"==typeof exports?exports.PayInput=e():t.PayInput=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},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=36)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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)}}var r=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,r;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=r},1:function(t,e,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},i=[],o=0;o<t.length;o++){var r=t[o],u=e.base?r[0]+e.base:r[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var p=s(l),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:v(f,e),references:1}),i.push(l)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,p=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=p(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function h(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var d=null,y=0;function v(t,e){var n,i,o;if(e.singleton){var r=y++;n=d||(d=c(e)),i=f.bind(null,n,r,!1),o=f.bind(null,n,r,!0)}else n=c(e),i=h.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=u(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=u(t,e),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=r}}}},17:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="";return e+='<div class="payInput">\n <div class="payInput__currency">\n ',e+=(t=t||{}).options.currency,e+='\n </div>\n <div class="payInput__num"></div>\n <div class="payInput__cursor"></div>\n <div class="payInput__delete"></div>\n <div class="payInput__unit"></div>\n</div>\n'}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),r=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(r).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);i&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},36:function(t,e,n){"use strict";n.r(e);n(45);var i="payInput--mini",o=["","","","千","万","十万","百万","千万","亿","十亿"],r=n(0),a=n(6),s={deleteIcon:n.n(a).a},u=n(17),c=n.n(u);function l(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)}}var p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=c()({options:this.options,icons:s,getObject:function(t){return t}}),this.input=this.container.querySelector(".payInput"),this.num=this.container.querySelector(".payInput__num"),this.cursor=this.container.querySelector(".payInput__cursor"),this.unit=this.container.querySelector(".payInput__unit"),this.delete=this.container.querySelector(".payInput__delete")}}])&&l(e.prototype,n),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function f(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)}}var h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payInput")[0],value:t.value||"",max:t.max||1e9,currency:t.currency||"¥",color:t.color||"#1677FF",showUnit:t.showUnit||!0,autoFocus:t.autoFocus||!0};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t.max=parseFloat(t.max),t}(e),this.container=this.options.container,this.value=this.options.value,this.preValue=this.options.value,this.max=this.options.max,this.focusValue=this.options.autoFocus,this.template=new p({container:this.container,options:this.options}),this.events=new r.a(["init","change","focus","blur","max"]),this.bindEvents(),this.init()}var e,n,a;return e=t,a=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"bindEvents",value:function(){var t=this;this.on("change",(function(){t._setTemplateValue()}))}},{key:"init",value:function(){var t=this;this.options.showUnit&&this.template.input.classList.add("payInput--unit"),this.template.cursor.style.setProperty("--primary",this.options.color),this._setTemplateValue(),this.template.delete.addEventListener("click",(function(){t.clear()})),this.template.input.addEventListener("click",(function(){t.focus()})),this.events.trigger("init")}},{key:"reset",value:function(){this.value=this.options.value,this.preValue=this.options.value,this.max=this.options.max,this._setTemplateValue(),this._beforeChange()}},{key:"add",value:function(t){var e=this.value+t+"";parseFloat(e)>this.max?this.events.trigger("max",{value:e}):(this.value=e,this._beforeChange())}},{key:"update",value:function(t){this.value=t,this._beforeChange()}},{key:"del",value:function(){this.value=this.value.substr(0,this.value.length-1),this._beforeChange()}},{key:"clear",value:function(){this.value="",this._beforeChange()}},{key:"focus",value:function(){this.focusValue||(this.template.cursor.style.display="block",this.focusValue=!0,this.events.trigger("focus"))}},{key:"blur",value:function(){this.focusValue&&(this.template.cursor.style.display="none",this.focusValue=!1,this.events.trigger("blur"))}},{key:"setColor",value:function(t){this.template.cursor.style.setProperty("--primary",t)}},{key:"setMax",value:function(t){this.max=t}},{key:"_beforeChange",value:function(){console.log(this.value,this.max),parseFloat(this.value)>this.max&&(this.value=this.max+""),this.preValue!==this.value&&(this.events.trigger("change",{value:this.value}),this.preValue=this.value)}},{key:"_setTemplateValue",value:function(){this.template.num.innerText=this.value,this.value.length?this.template.delete.style.display="block":this.template.delete.style.display="none",this._updateUnitTip(),this.value.length>=8?this.template.input.classList.add(i):this.template.input.classList.remove(i)}},{key:"_updateUnitTip",value:function(){var t=parseFloat(this.value)||0,e=o[Math.floor(t/10).toString().length];e?(this.template.unit.innerText=e,this.template.unit.style.display="block"):this.template.unit.style.display="none"}}])&&f(e.prototype,n),a&&f(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=h},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=o.exec(e);if(!n)return t;var i="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<e.length;r++){switch(e.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(i+=e.substring(a,r)),a=r+1,i+=s}return a!==r?i+e.substring(a,r):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var o in t)e(t[o],o)},t.exports=i}).call(this,n(5))},45:function(t,e,n){var i=n(1),o=n(46);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);t.exports=o.locals||{}},46:function(t,e,n){(e=n(2)(!1)).push([t.i,'@font-face{font-family:AlipayNumber;src:url(https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/fonts/AlipayNumber-Regular.ttf) format("truetype")}.payInput{font-family:AlipayNumber,sans-serif;display:flex;align-items:flex-end;position:relative;padding-bottom:10px;height:62px;line-height:1;box-sizing:border-box}.payInput:after{content:"";display:block;position:absolute;left:0;bottom:0;right:0;height:1px;background-color:#eee;transform:scaleY(.5)}.payInput--mini .payInput__num{font-size:40px}.payInput--mini .payInput__cursor{height:32px}.payInput--blur .payInput__cursor{display:none}.payInput__currency{font-size:30px;margin-right:5px;padding-bottom:3px}.payInput__num{font-size:50px}.payInput__cursor{--primary:#1677ff;position:relative;top:-3px;width:2px;height:42px;-webkit-animation-duration:1.1s;animation-duration:1.1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:cursor;animation-name:cursor;background:var(--primary,"#1677FF");border-radius:1px;margin-left:5px}.payInput__delete{width:20px;height:20px;display:none;position:absolute;right:0;top:23px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAJKADAAQAAAABAAAAJAAAAAAqDuP8AAAD9UlEQVRYCe2YT0hUURTGnYkkSAJbCA2am6BNOzclBLWxTUFQGG0M0VGCqCQrsJYlVEYZbXQ0l5EUFEiRi9q1aqhtEEgqCm6sVYPoTL/vee9w73hfPI1CoQvPc+/5853vnftn7rOq6n/bYhVIrZdvqVRKDw8PNxN3MpVKNSEz6DLCYTyHmGOcR77s6ur6gK4oW9KWmNDY2NiOpaWliwBf4alLmGABv/vV1dWP2tvbC0liEhGiIqd46wcANlhQ3jyP7m06nf6GVGVUoUyxWGxEHkOn6tk2g66Hir2wijj5W0KApiBzi+A+AQCqt3yMHMxms7PSxbVcLldP/CXsF5A7jF8/pG4SX4qLiyVkyDwl8IwJnkRmu7u7p+PAQvqhoaG96HM8Lcb+DFJn40htC4FIl8lkbiPOG/vD2trac7TvZpxYTExM/Ghra3taKBR2EXSQ50A+n9+O/l0IJFghs2aem4CHVKUnFLxeHdXSOrysOCp0OrSm0pWg2k1MlwLVJqlM72r3z/8aLE19lXIoVyXqGkJmazfwBlrA2dbW1pXKoI2ODVbWYDeYXB6cN2Ww1qE3j0cdQQOU9KrrPTo6up9tvUc67LOdnZ1fXbvtj4yM7AOrXmOOhfmOjo4v1iZJjnvYVfkFcuwBq3x4ehXCsRmn6NDDaVDBblteXv4J0BNIvV9ZWfnE1j7s2tWXDvtn+chXMZU+DnadyVl28QihPSkLAfnQOaMtT5Ij2KdwqyHpa5eU+tjf8OyUj3xDx4SwlUO5aFHO1S4VtR1JnKLTFaC3rt7tx5FKSsZi2Rw2p9V7hFBmZNDPgXUIyRApVYskv62Mi+XkiHJam0cIwMiIjH6brFNIWlLYpnlqzBNNaWiaKjFsDpvT2j1CZWU67e0+q6+UvGUjut2OfrfROapwF78oB1Pm/a55hDBGlYF1tLXDUKtau2YY1RA3pUf9yoUeh+Hk0DFTbh4htBEhQPXmsc2SAbS8ZujH7r4QkJPDWx4eIUCjrcjbHguBSBciozVj11TSSjk5Prq5PEIYXsoIsSYSRyet6xxHxvokJSVs5TC5Xtl4SY8Qx/gHdLp2ipQuV15jIf7kzY4jjyIPhXaTdLLJh+eEYjwQBg62fjqUs9zW7CauCNew3gG0QOD+UNJy9AY6urCB/QVs/dJfB/+uC+NVSAZdyBEzJiA3Pj4ee4lzgZL0DVbOYM+YXF7oGkL6OuAN7IWsZXFxccCL+IOBwWoRhHKEvkTWTJnNR2l1he0zY11hezd6N1JlDJnotghmP1N1w+ZyZSwhyqovjn9+yY8lJNaG1Ob4DHLLSKU2x4eiS0oX8k3zKe0SYxr/6j8b3Fz/+1uiAr8A9QJ8IR8RWyMAAAAASUVORK5CYII=");background-size:20px 20px}.payInput__unit{display:none;position:absolute;top:-15px;left:20px;font-size:15px;text-align:center;color:#999;padding-left:4px}.payInput__unit:before{content:"";display:block;width:1px;height:30px;background:#999;position:absolute;bottom:-8px;transform:scale(.5);left:0}@keyframes cursor{0%{opacity:0}30%{opacity:1}50%{opacity:1}80%{opacity:0}to{opacity:0}}@-webkit-keyframes cursor{0%{opacity:0}30%{opacity:1}50%{opacity:1}80%{opacity:0}to{opacity:0}}',""]),t.exports=e},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},6:function(t,e){t.exports='<svg viewBox="0 0 52 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>插销</title><g id="输出" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="金额键盘带按钮" transform="translate(-630.000000, -119.000000)" fill="#333333" fill-rule="nonzero"><g id="编组-8" transform="translate(630.000000, 119.000000)"><path d="M45,0 C48.8659932,0 52,3.13400675 52,7 L52,7 L52,31 C52,34.8659932 48.8659932,38 45,38 L45,38 L16.3742656,38 C14.2113201,38 12.1698534,37.0001043 10.8438874,35.2912605 L10.8438874,35.2912605 L1.5325666,23.2912605 C-0.426929077,20.765953 -0.426929077,17.234047 1.5325666,14.7087395 L1.5325666,14.7087395 L10.8438874,2.70873952 C12.1698534,0.99989572 14.2113201,0 16.3742656,0 L16.3742656,0 Z M45,3 L16.3742656,3 L16.1434178,3.00665514 C14.9940748,3.0730036 13.9243884,3.63239912 13.2140495,4.54785116 L13.2140495,4.54785116 L3.9027287,16.5478512 L3.7737379,16.7237024 C2.78480843,18.1514223 2.82780536,20.0668373 3.9027287,21.4521488 L3.9027287,21.4521488 L13.2140495,33.4521488 L13.3608257,33.6304512 C14.1178346,34.4978202 15.2155448,35 16.3742656,35 L16.3742656,35 L45,35 L45.1996403,34.9951047 C47.3160315,34.8910789 49,33.1421954 49,31 L49,31 L49,7 L48.9951047,6.80035966 C48.8910789,4.68396847 47.1421954,3 45,3 L45,3 Z M25.502,13.001 L29.7565729,17.208 L34.01,13.001 L38.232,13.001 L38.2422424,13.0113777 L31.8775729,19.306 L38.524,25.881 L34.282,25.881 L29.7565729,21.404 L25.23,25.881 L20.99,25.881 L27.6355729,19.306 L21.2716797,13.0113777 L21.281,13.001 L25.502,13.001 Z" id="形状结合"></path></g></g></g></svg>'}}).default})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayInput",[],e):"object"==typeof exports?exports.PayInput=e():t.PayInput=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},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=44)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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)}}var r=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,r;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=r},1:function(t,e,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},i=[],o=0;o<t.length;o++){var r=t[o],u=e.base?r[0]+e.base:r[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var p=s(l),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:v(f,e),references:1}),i.push(l)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,p=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=p(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function h(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var d=null,y=0;function v(t,e){var n,i,o;if(e.singleton){var r=y++;n=d||(d=c(e)),i=f.bind(null,n,r,!1),o=f.bind(null,n,r,!0)}else n=c(e),i=h.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=u(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=u(t,e),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=r}}}},17:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="";return e+='<div class="payInput">\n <div class="payInput__currency">\n ',e+=(t=t||{}).options.currency,e+='\n </div>\n <div class="payInput__num"></div>\n <div class="payInput__cursor"></div>\n <div class="payInput__delete"></div>\n <div class="payInput__unit"></div>\n</div>\n'}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),r=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(r).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);i&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=o.exec(e);if(!n)return t;var i="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<e.length;r++){switch(e.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(i+=e.substring(a,r)),a=r+1,i+=s}return a!==r?i+e.substring(a,r):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var o in t)e(t[o],o)},t.exports=i}).call(this,n(5))},44:function(t,e,n){"use strict";n.r(e);n(56);var i="payInput--mini",o=["","","","千","万","十万","百万","千万","亿","十亿"],r=n(0),a=n(7),s={deleteIcon:n.n(a).a},u=n(17),c=n.n(u);function l(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)}}var p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=c()({options:this.options,icons:s,getObject:function(t){return t}}),this.input=this.container.querySelector(".payInput"),this.num=this.container.querySelector(".payInput__num"),this.cursor=this.container.querySelector(".payInput__cursor"),this.unit=this.container.querySelector(".payInput__unit"),this.delete=this.container.querySelector(".payInput__delete")}}])&&l(e.prototype,n),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function f(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)}}var h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payInput")[0],value:t.value||"",max:t.max||1e9,currency:t.currency||"¥",color:t.color||"#1677FF",showUnit:t.showUnit||!0,autoFocus:t.autoFocus||!0};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t.max=parseFloat(t.max),t}(e),this.container=this.options.container,this.value=this.options.value,this.preValue=this.options.value,this.max=this.options.max,this.focusValue=this.options.autoFocus,this.template=new p({container:this.container,options:this.options}),this.events=new r.a(["init","change","focus","blur","max"]),this.bindEvents(),this.init()}var e,n,a;return e=t,a=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"bindEvents",value:function(){var t=this;this.on("change",(function(){t._setTemplateValue()}))}},{key:"init",value:function(){var t=this;this.options.showUnit&&this.template.input.classList.add("payInput--unit"),this.template.cursor.style.setProperty("--primary",this.options.color),this._setTemplateValue(),this.template.delete.addEventListener("click",(function(){t.clear()})),this.template.input.addEventListener("click",(function(){t.focus()})),this.events.trigger("init")}},{key:"reset",value:function(){this.value=this.options.value,this.preValue=this.options.value,this.max=this.options.max,this._setTemplateValue(),this._beforeChange()}},{key:"add",value:function(t){var e=this.value+t+"";parseFloat(e)>this.max?this.events.trigger("max",{value:e}):(this.value=e,this._beforeChange())}},{key:"update",value:function(t){this.value=t,this._beforeChange()}},{key:"del",value:function(){this.value=this.value.substr(0,this.value.length-1),this._beforeChange()}},{key:"clear",value:function(){this.value="",this._beforeChange()}},{key:"focus",value:function(){this.focusValue||(this.template.cursor.style.display="block",this.focusValue=!0,this.events.trigger("focus"))}},{key:"blur",value:function(){this.focusValue&&(this.template.cursor.style.display="none",this.focusValue=!1,this.events.trigger("blur"))}},{key:"setColor",value:function(t){this.template.cursor.style.setProperty("--primary",t)}},{key:"setMax",value:function(t){this.max=t}},{key:"_beforeChange",value:function(){console.log(this.value,this.max),parseFloat(this.value)>this.max&&(this.value=this.max+""),this.preValue!==this.value&&(this.events.trigger("change",{value:this.value}),this.preValue=this.value)}},{key:"_setTemplateValue",value:function(){this.template.num.innerText=this.value,this.value.length?this.template.delete.style.display="block":this.template.delete.style.display="none",this._updateUnitTip(),this.value.length>=8?this.template.input.classList.add(i):this.template.input.classList.remove(i)}},{key:"_updateUnitTip",value:function(){var t=parseFloat(this.value)||0,e=o[Math.floor(t/10).toString().length];e?(this.template.unit.innerText=e,this.template.unit.style.display="block"):this.template.unit.style.display="none"}}])&&f(e.prototype,n),a&&f(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=h},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},56:function(t,e,n){var i=n(1),o=n(57);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);t.exports=o.locals||{}},57:function(t,e,n){(e=n(2)(!1)).push([t.i,'@font-face{font-family:AlipayNumber;src:url(https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/fonts/AlipayNumber-Regular.ttf) format("truetype")}.payInput{font-family:AlipayNumber,sans-serif;display:flex;align-items:flex-end;position:relative;padding-bottom:10px;height:62px;line-height:1;box-sizing:border-box}.payInput:after{content:"";display:block;position:absolute;left:0;bottom:0;right:0;height:1px;background-color:#eee;transform:scaleY(.5)}.payInput--mini .payInput__num{font-size:40px}.payInput--mini .payInput__cursor{height:32px}.payInput--blur .payInput__cursor{display:none}.payInput__currency{font-size:30px;margin-right:5px;padding-bottom:3px}.payInput__num{font-size:50px}.payInput__cursor{--primary:#1677ff;position:relative;top:-3px;width:2px;height:42px;-webkit-animation-duration:1.1s;animation-duration:1.1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:cursor;animation-name:cursor;background:var(--primary,"#1677FF");border-radius:1px;margin-left:5px}.payInput__delete{width:20px;height:20px;display:none;position:absolute;right:0;top:23px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAJKADAAQAAAABAAAAJAAAAAAqDuP8AAAD9UlEQVRYCe2YT0hUURTGnYkkSAJbCA2am6BNOzclBLWxTUFQGG0M0VGCqCQrsJYlVEYZbXQ0l5EUFEiRi9q1aqhtEEgqCm6sVYPoTL/vee9w73hfPI1CoQvPc+/5853vnftn7rOq6n/bYhVIrZdvqVRKDw8PNxN3MpVKNSEz6DLCYTyHmGOcR77s6ur6gK4oW9KWmNDY2NiOpaWliwBf4alLmGABv/vV1dWP2tvbC0liEhGiIqd46wcANlhQ3jyP7m06nf6GVGVUoUyxWGxEHkOn6tk2g66Hir2wijj5W0KApiBzi+A+AQCqt3yMHMxms7PSxbVcLldP/CXsF5A7jF8/pG4SX4qLiyVkyDwl8IwJnkRmu7u7p+PAQvqhoaG96HM8Lcb+DFJn40htC4FIl8lkbiPOG/vD2trac7TvZpxYTExM/Ghra3taKBR2EXSQ50A+n9+O/l0IJFghs2aem4CHVKUnFLxeHdXSOrysOCp0OrSm0pWg2k1MlwLVJqlM72r3z/8aLE19lXIoVyXqGkJmazfwBlrA2dbW1pXKoI2ODVbWYDeYXB6cN2Ww1qE3j0cdQQOU9KrrPTo6up9tvUc67LOdnZ1fXbvtj4yM7AOrXmOOhfmOjo4v1iZJjnvYVfkFcuwBq3x4ehXCsRmn6NDDaVDBblteXv4J0BNIvV9ZWfnE1j7s2tWXDvtn+chXMZU+DnadyVl28QihPSkLAfnQOaMtT5Ij2KdwqyHpa5eU+tjf8OyUj3xDx4SwlUO5aFHO1S4VtR1JnKLTFaC3rt7tx5FKSsZi2Rw2p9V7hFBmZNDPgXUIyRApVYskv62Mi+XkiHJam0cIwMiIjH6brFNIWlLYpnlqzBNNaWiaKjFsDpvT2j1CZWU67e0+q6+UvGUjut2OfrfROapwF78oB1Pm/a55hDBGlYF1tLXDUKtau2YY1RA3pUf9yoUeh+Hk0DFTbh4htBEhQPXmsc2SAbS8ZujH7r4QkJPDWx4eIUCjrcjbHguBSBciozVj11TSSjk5Prq5PEIYXsoIsSYSRyet6xxHxvokJSVs5TC5Xtl4SY8Qx/gHdLp2ipQuV15jIf7kzY4jjyIPhXaTdLLJh+eEYjwQBg62fjqUs9zW7CauCNew3gG0QOD+UNJy9AY6urCB/QVs/dJfB/+uC+NVSAZdyBEzJiA3Pj4ee4lzgZL0DVbOYM+YXF7oGkL6OuAN7IWsZXFxccCL+IOBwWoRhHKEvkTWTJnNR2l1he0zY11hezd6N1JlDJnotghmP1N1w+ZyZSwhyqovjn9+yY8lJNaG1Ob4DHLLSKU2x4eiS0oX8k3zKe0SYxr/6j8b3Fz/+1uiAr8A9QJ8IR8RWyMAAAAASUVORK5CYII=");background-size:20px 20px}.payInput__unit{display:none;position:absolute;top:-15px;left:20px;font-size:15px;text-align:center;color:#999;padding-left:4px}.payInput__unit:before{content:"";display:block;width:1px;height:30px;background:#999;position:absolute;bottom:-8px;transform:scale(.5);left:0}@keyframes cursor{0%{opacity:0}30%{opacity:1}50%{opacity:1}80%{opacity:0}to{opacity:0}}@-webkit-keyframes cursor{0%{opacity:0}30%{opacity:1}50%{opacity:1}80%{opacity:0}to{opacity:0}}',""]),t.exports=e},7:function(t,e){t.exports='<svg viewBox="0 0 52 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>插销</title><g id="输出" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="金额键盘带按钮" transform="translate(-630.000000, -119.000000)" fill="#333333" fill-rule="nonzero"><g id="编组-8" transform="translate(630.000000, 119.000000)"><path d="M45,0 C48.8659932,0 52,3.13400675 52,7 L52,7 L52,31 C52,34.8659932 48.8659932,38 45,38 L45,38 L16.3742656,38 C14.2113201,38 12.1698534,37.0001043 10.8438874,35.2912605 L10.8438874,35.2912605 L1.5325666,23.2912605 C-0.426929077,20.765953 -0.426929077,17.234047 1.5325666,14.7087395 L1.5325666,14.7087395 L10.8438874,2.70873952 C12.1698534,0.99989572 14.2113201,0 16.3742656,0 L16.3742656,0 Z M45,3 L16.3742656,3 L16.1434178,3.00665514 C14.9940748,3.0730036 13.9243884,3.63239912 13.2140495,4.54785116 L13.2140495,4.54785116 L3.9027287,16.5478512 L3.7737379,16.7237024 C2.78480843,18.1514223 2.82780536,20.0668373 3.9027287,21.4521488 L3.9027287,21.4521488 L13.2140495,33.4521488 L13.3608257,33.6304512 C14.1178346,34.4978202 15.2155448,35 16.3742656,35 L16.3742656,35 L45,35 L45.1996403,34.9951047 C47.3160315,34.8910789 49,33.1421954 49,31 L49,31 L49,7 L48.9951047,6.80035966 C48.8910789,4.68396847 47.1421954,3 45,3 L45,3 Z M25.502,13.001 L29.7565729,17.208 L34.01,13.001 L38.232,13.001 L38.2422424,13.0113777 L31.8775729,19.306 L38.524,25.881 L34.282,25.881 L29.7565729,21.404 L25.23,25.881 L20.99,25.881 L27.6355729,19.306 L21.2716797,13.0113777 L21.281,13.001 L25.502,13.001 Z" id="形状结合"></path></g></g></g></svg>'}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayInstallment",[],e):"object"==typeof exports?exports.PayInstallment=e():t.PayInstallment=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},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=33)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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)}}var a=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,a;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&o(e.prototype,n),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=a},1:function(t,e,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),l=[];function r(t){for(var e=-1,n=0;n<l.length;n++)if(l[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},i=[],o=0;o<t.length;o++){var a=t[o],s=e.base?a[0]+e.base:a[0],c=n[s]||0,p="".concat(s," ").concat(c);n[s]=c+1;var u=r(p),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==u?(l[u].references++,l[u].updater(d)):l.push({identifier:p,updater:m(d,e),references:1}),i.push(p)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var l=a(t.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(e)}return e}var p,u=(p=[],function(t,e){return p[t]=e,p.filter(Boolean).join("\n")});function d(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=u(e,o);else{var a=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(a,l[e]):t.appendChild(a)}}function f(t,e,n){var i=n.css,o=n.media,a=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var y=null,h=0;function m(t,e){var n,i,o;if(e.singleton){var a=h++;n=y||(y=c(e)),i=d.bind(null,n,a,!1),o=d.bind(null,n,a,!0)}else n=c(e),i=f.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=r(n[i]);l[o].references--}for(var a=s(t,e),c=0;c<n.length;c++){var p=r(n[c]);0===l[p].references&&(l[p].updater(),l.splice(p,1))}n=a}}}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(l=i,r=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(s," */")),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([o]).join("\n")}var l,r,s;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(o[l]=!0)}for(var r=0;r<t.length;r++){var s=[].concat(t[r]);i&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),e.push(s))}},e}},22:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).icons,i=t.options;return e+='<div class="payInstallment">\n <div class="payInstallment__box">\n <div class="payInstallment__box--header">\n <span class="header-operator">',e+=n.operator,e+='</span>\n 选择分期期数\n </div>\n <div class="payInstallment__box--body">\n ',i.showAlipay&&(e+='\n <div class="payInstallment__alipay">\n <div class="payInstallment__alipay--logo"></div>\n <div class="payInstallment__alipay--text">支付宝支付</div>\n <div class="payInstallment__alipay--check">',e+=n.checkMark,e+="</div>\n </div>\n "),e+='\n <div class="payInstallment__huabei">\n <div class="payInstallment__huabei--logo"></div>\n <div class="payInstallment__huabei--text">花呗分期</div>\n <div class="payInstallment__huabei--slogan">分期付·更轻松</div>\n </div>\n <div class="payInstallment__installment"></div>\n </div>\n <div class="payInstallment__box--footer">\n <div class="footer-tips">花呗分期由蚂蚁小微小贷在线审核</div>\n <div class="footer-paybtn">确认付款</div>\n <div class="footer-paybtn__loading"></div>\n </div>\n <div class="payInstallment__iphonex-bottom"></div>\n </div>\n</div>\n'}},23:function(t,e){t.exports='<svg viewBox="0 0 32 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M29.7895765,2.61916744 L29.4377909,2.85601147 L2.83937323,29.4544721 C2.22728268,30.0665197 1.10639856,29.938043 0.494350975,29.3259524 C-0.0817746957,28.7498697 -0.179915435,27.7726303 0.328405469,27.1569733 L0.430026681,27.0452115 L12.8979826,14.7020799 L0.995796871,2.80002312 C0.4196712,2.22394042 0.296393713,1.27540416 0.804714617,0.659661257 L0.906335829,0.547942377 C1.4824615,-0.0282262624 2.42751729,-0.0941833704 3.04317425,0.414094565 L3.15497907,0.515801714 L15.0572507,12.4177726 L27.0284873,0.446707884 C27.6405779,-0.165382672 28.761419,-0.0368629912 29.3735525,0.575184596 C29.9496782,1.15131027 30.2978974,2.00346751 29.7895765,2.61916744 Z M29.721299,27.1463171 C30.3334326,27.7584506 30.5475031,28.7868229 29.8909828,29.4433432 C29.2730915,30.0612345 28.3257584,30.129469 27.7061483,29.6251012 L27.5939997,29.5237808 L23.7101788,25.6399599 L18.9494935,20.8792746 C18.337446,20.267227 18.1233324,19.2388118 18.7798098,18.5823345 C19.3977011,17.9644001 20.3450772,17.8961227 20.9646443,18.4005764 L21.0768359,18.5018969 L29.721299,27.14636 L29.721299,27.1463171 Z" id="形状" fill="#999999"></path></svg>'},3:function(t,e,n){"use strict";t.exports=n(4)},33:function(t,e,n){"use strict";n.r(e);n(55);var i="disabled",o=n(0),a=n(22),l=n.n(a),r=n(23),s=n.n(r),c=n(9),p=n.n(c),u={operator:s.a,checkMark:p.a};function d(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)}}var f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=l()({options:this.options,icons:u,getObject:function(t){return t}}),this.wrapper=this.container.querySelector(".payInstallment"),this.box=this.container.querySelector(".payInstallment__box"),this.close=this.wrapper.querySelector(".header-operator"),this.installment=this.container.querySelector(".payInstallment__installment"),this.paybtn=this.container.querySelector(".footer-paybtn"),this.loading=this.container.querySelector(".footer-paybtn__loading"),this.alipay=this.container.querySelector(".payInstallment__alipay")}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function y(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function m(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)}}var b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payInput")[0],showAlipay:!1};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.checked=this.options.checked,this.selected=null,this.template=new f({container:this.container,options:this.options}),this.events=new o.a(["show","submit","close"]),this.bindEvents(),this.init()}var e,n,a;return e=t,a=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"init",value:function(){this.toggleSubmitDisabled(!0)}},{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"show",value:function(t,e){this.events.trigger("show",{installmentOptions:t,defaultSelected:e}),this.template.wrapper.style.bottom="0px",this.template.box.style.bottom="0px"}},{key:"hide",value:function(){var t=this;this.template.box.style.bottom="-100%",setTimeout((function(){t.template.wrapper.style.bottom="-100%"}),300)}},{key:"bindEvents",value:function(){var t=this;this.template.close.addEventListener("click",(function(){t.events.trigger("close",{value:t.selected}),t.hide()})),this.template.paybtn.addEventListener("click",(function(){t._submit()})),this.options.showAlipay&&this.template.alipay.addEventListener("click",(function(){t._alipay()})),this.on("show",(function(e){var n=e.installmentOptions,i=e.defaultSelected;if(n&&0!==n.length){for(var o="",a=function(e){var a=n[e],l=a.monthlyPay,r=a.totalMonth,s=a.transactionFee,c=s?"手续费¥".concat(s,"/期"):"免手续费",p='<div class="installment-option"><div class="installment-option__pay">¥ '.concat(l," × ").concat(r,' 期</div><div class="installment-option__fee">').concat(c,'</div><div class="installment-option__check">').concat(u.checkMark,"</div></div>");o+=p;try{"ALIPAY"!==t.selected&&"ALIPAY"!==i||(document.querySelector(".payInstallment__alipay--check").style.display="block",t.selected="ALIPAY",t.toggleSubmitDisabled(!1)),t.selected&&JSON.stringify(n[e])===JSON.stringify(t.selected)||!t.selected&&i+""==r+""?setTimeout((function(){document.querySelectorAll(".installment-option__check")[e].style.display="block",t.selected=n[e],t.toggleSubmitDisabled(!1)}),0):setTimeout((function(){document.querySelectorAll(".installment-option__check")[e].style.display="none"}),0)}catch(t){console.error("传入对象有误: ".concat(n))}},l=0;l<n.length;l++)a(l);t.template.installment.innerHTML=o;for(var r=t.template.installment.getElementsByClassName("installment-option"),s=function(e){r[e].addEventListener("click",(function(i){t.toggleSubmitDisabled(!1);var o=i.target;"installment-option"!==i.target.className&&(o=function(t,e){for(var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(n.call(t,e))return t;t=t.parentElement}return null}(i.target,".installment-option")),t.options.showAlipay&&(document.querySelector(".payInstallment__alipay--check").style.display="none"),y(r).forEach((function(t){t.querySelector(".installment-option__check").style.display="none"})),o.querySelector(".installment-option__check").style.display="block",t.selected=n[e]}),!1)},c=0;c<r.length;c++)s(c)}}))}},{key:"_alipay",value:function(){this.toggleSubmitDisabled(!1),document.querySelector(".payInstallment__alipay--check").style.display="block",document.querySelectorAll(".installment-option__check").forEach((function(t){t.style.display="none"})),this.selected="ALIPAY"}},{key:"_submit",value:function(){var t=this;this.template.paybtn.classList.contains(i)||(this.toggleSubmitLoading(!0),this.toggleSubmitDisabled(!0),this.events.trigger("submit",{value:this.selected}),setTimeout((function(){t.hide(),t.toggleSubmitLoading(!1),t.toggleSubmitDisabled(!1)}),1e3))}},{key:"toggleSubmitDisabled",value:function(t){t?(this.template.paybtn.classList.add(i),this.template.loading.classList.add(i)):(this.template.paybtn.classList.remove(i),this.template.loading.classList.remove(i))}},{key:"toggleSubmitLoading",value:function(t){t?(this.template.paybtn.style.display="none",this.template.loading.style.display="block"):(this.template.paybtn.style.display="block",this.template.loading.style.display="none")}}])&&m(e.prototype,n),a&&m(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=b},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=o.exec(e);if(!n)return t;var i="",a=void 0,l=void 0,r=void 0;for(a=n.index,l=0;a<e.length;a++){switch(e.charCodeAt(a)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}l!==a&&(i+=e.substring(l,a)),l=a+1,i+=r}return l!==a?i+e.substring(l,a):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var o in t)e(t[o],o)},t.exports=i}).call(this,n(5))},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},55:function(t,e,n){var i=n(1),o=n(56);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var a={insert:"head",singleton:!1};i(o,a);t.exports=o.locals||{}},56:function(t,e,n){(e=n(2)(!1)).push([t.i,'.payInstallment{position:fixed;bottom:-100%;left:0;width:100vw;height:100%;color:#333;background:rgba(0,0,0,.55);transition:bottom 0s linear;z-index:1000}.payInstallment__box{position:absolute;bottom:-100%;width:100%;background:#fff;border-radius:8px 8px 0 0;transition:bottom .3s ease-in-out}.payInstallment__box--header{position:relative;width:100%;height:49px;font-size:16px;line-height:49px;text-align:center}.payInstallment__box--header:after{content:"";display:block;height:1px;width:100%;transform:scaleY(.5);background:#eee}.payInstallment__box--header .header-operator{position:absolute;display:inline-block;top:6px;left:12px;width:22px;height:22px}.payInstallment__box--body .payInstallment__alipay{display:flex;margin:20px 12px;height:24px;align-items:center;position:relative}.payInstallment__box--body .payInstallment__alipay--logo{width:24px;height:24px;background:url(https://gw.alipayobjects.com/mdn/rms_349abe/afts/img/A*h_2IRrm-02MAAAAAAAAAAABkARQnAQ) no-repeat;background-size:contain}.payInstallment__box--body .payInstallment__alipay--text{margin:0 10px;font-size:15px;line-height:24px}.payInstallment__box--body .payInstallment__alipay--check{position:absolute;top:50%;right:0;width:18px;height:18px;transform:translateY(-50%);color:#1677ff;display:none}.payInstallment__box--body .payInstallment__huabei{display:flex;margin:20px 12px;height:24px;align-items:center}.payInstallment__box--body .payInstallment__huabei--logo{width:24px;height:24px;background:url(https://gw.alipayobjects.com/mdn/rms_b05656/afts/img/A*K7KwTL4Jgo8AAAAAAAAAAABkARQnAQ) no-repeat;background-size:contain}.payInstallment__box--body .payInstallment__huabei--text{margin:0 10px;font-size:15px;line-height:24px}.payInstallment__box--body .payInstallment__huabei--slogan{padding:0 4px;height:16px;font-size:11px;line-height:15px;color:#ff3b30;border:1px solid #ff3b30;border-radius:8px 8px 8px 0}.payInstallment__box--body .payInstallment__installment{display:flex;flex-direction:column;margin:20px 0}.payInstallment__box--body .payInstallment__installment .installment-option{box-sizing:border-box;position:relative;height:66px;margin:0 0 0 44px;text-align:left}.payInstallment__box--body .payInstallment__installment .installment-option:after,.payInstallment__box--body .payInstallment__installment .installment-option:first-child:before{content:"";display:block;height:1px;width:100%;transform:scaleY(.5);background:#eee}.payInstallment__box--body .payInstallment__installment .installment-option__pay{margin-top:12px;font-size:15px;line-height:21px}.payInstallment__box--body .payInstallment__installment .installment-option__fee{margin-bottom:12px;color:#999;font-size:13px;line-height:19px}.payInstallment__box--body .payInstallment__installment .installment-option__check{display:none;position:absolute;top:50%;right:12px;width:18px;height:18px;transform:translateY(-50%);color:#1677ff}.payInstallment__box--footer .footer-tips{color:#999;font-size:13px;line-height:18px;text-align:center}.payInstallment__box--footer .footer-paybtn{margin:12px;height:40px;font-size:18px;line-height:40px;text-align:center;color:#fff;background:#1677ff;border-radius:4px}.payInstallment__box--footer .footer-paybtn.disabled{opacity:.5}.payInstallment__box--footer .footer-paybtn__loading{display:none;margin:12px;height:40px;text-align:center;background-size:35px;background:#1677ff;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgd2lkdGg9IjcxIiBoZWlnaHQ9IjcxIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCI+PGc+PHBhdGggZD0iTTY0IDkuNzVBNTQuMjUgNTQuMjUgMCAwMDkuNzUgNjRIMGE2NCA2NCAwIDAxMTI4IDBoLTkuNzVBNTQuMjUgNTQuMjUgMCAwMDY0IDkuNzV6IiBmaWxsPSIjZmZmIi8+PGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgNjQgNjQiIHRvPSIzNjAgNjQgNjQiIGR1cj0iMTIwMG1zIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPjwvZz48L3N2Zz4=");background-repeat:no-repeat;background-position:50%;background-size:20px;border-radius:4px}.payInstallment__box--footer .footer-paybtn__loading.disabled{opacity:.5}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3){.payInstallment .payInstallment__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}',""]),t.exports=e},9:function(t,e){t.exports='<svg viewBox="0 0 31 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M29.1589511,0.825223549 L29.1343417,0.800614145 C28.2694969,-0.0501680945 26.8808234,-0.0396212073 26.0300412,0.825223549 L11.605415,15.4818812 L11.5913525,15.4959437 C11.0604925,16.0162569 10.2097103,16.0092256 9.68939719,15.4818812 L4.47923487,10.1908594 L4.45462547,10.16625 C3.58978071,9.3154678 2.20110722,9.32601469 1.35032498,10.1908594 C0.481964596,11.0732823 0.481964596,12.4865652 1.35032498,13.3689881 L8.72611481,20.8502469 L8.75423985,20.8783719 C9.8124442,21.9225137 11.5175243,21.9084512 12.5616662,20.8502469 L29.1589511,4.00686788 C30.0273115,3.12092935 30.0273115,1.70764645 29.1589511,0.825223549 Z" fill="#1677FF" id="Path"></path></svg>'}}).default})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayInstallment",[],e):"object"==typeof exports?exports.PayInstallment=e():t.PayInstallment=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},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=41)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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)}}var a=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,a;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&o(e.prototype,n),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=a},1:function(t,e,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),l=[];function r(t){for(var e=-1,n=0;n<l.length;n++)if(l[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},i=[],o=0;o<t.length;o++){var a=t[o],s=e.base?a[0]+e.base:a[0],c=n[s]||0,p="".concat(s," ").concat(c);n[s]=c+1;var u=r(p),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==u?(l[u].references++,l[u].updater(d)):l.push({identifier:p,updater:m(d,e),references:1}),i.push(p)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var l=a(t.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(e)}return e}var p,u=(p=[],function(t,e){return p[t]=e,p.filter(Boolean).join("\n")});function d(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=u(e,o);else{var a=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(a,l[e]):t.appendChild(a)}}function f(t,e,n){var i=n.css,o=n.media,a=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var y=null,h=0;function m(t,e){var n,i,o;if(e.singleton){var a=h++;n=y||(y=c(e)),i=d.bind(null,n,a,!1),o=d.bind(null,n,a,!0)}else n=c(e),i=f.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=r(n[i]);l[o].references--}for(var a=s(t,e),c=0;c<n.length;c++){var p=r(n[c]);0===l[p].references&&(l[p].updater(),l.splice(p,1))}n=a}}}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(l=i,r=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(s," */")),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([o]).join("\n")}var l,r,s;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(o[l]=!0)}for(var r=0;r<t.length;r++){var s=[].concat(t[r]);i&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),e.push(s))}},e}},22:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).icons,i=t.options;return e+='<div class="payInstallment">\n <div class="payInstallment__box">\n <div class="payInstallment__box--header">\n <span class="header-operator">',e+=n.operator,e+='</span>\n 选择分期期数\n </div>\n <div class="payInstallment__box--body">\n ',i.showAlipay&&(e+='\n <div class="payInstallment__alipay">\n <div class="payInstallment__alipay--logo"></div>\n <div class="payInstallment__alipay--text">支付宝支付</div>\n <div class="payInstallment__alipay--check">',e+=n.checkMark,e+="</div>\n </div>\n "),e+='\n <div class="payInstallment__huabei">\n <div class="payInstallment__huabei--logo"></div>\n <div class="payInstallment__huabei--text">花呗分期</div>\n <div class="payInstallment__huabei--slogan">分期付·更轻松</div>\n </div>\n <div class="payInstallment__installment"></div>\n </div>\n <div class="payInstallment__box--footer">\n <div class="footer-tips">花呗分期由蚂蚁小微小贷在线审核</div>\n <div class="footer-paybtn">确认付款</div>\n <div class="footer-paybtn__loading"></div>\n </div>\n <div class="payInstallment__iphonex-bottom"></div>\n </div>\n</div>\n'}},23:function(t,e){t.exports='<svg viewBox="0 0 32 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M29.7895765,2.61916744 L29.4377909,2.85601147 L2.83937323,29.4544721 C2.22728268,30.0665197 1.10639856,29.938043 0.494350975,29.3259524 C-0.0817746957,28.7498697 -0.179915435,27.7726303 0.328405469,27.1569733 L0.430026681,27.0452115 L12.8979826,14.7020799 L0.995796871,2.80002312 C0.4196712,2.22394042 0.296393713,1.27540416 0.804714617,0.659661257 L0.906335829,0.547942377 C1.4824615,-0.0282262624 2.42751729,-0.0941833704 3.04317425,0.414094565 L3.15497907,0.515801714 L15.0572507,12.4177726 L27.0284873,0.446707884 C27.6405779,-0.165382672 28.761419,-0.0368629912 29.3735525,0.575184596 C29.9496782,1.15131027 30.2978974,2.00346751 29.7895765,2.61916744 Z M29.721299,27.1463171 C30.3334326,27.7584506 30.5475031,28.7868229 29.8909828,29.4433432 C29.2730915,30.0612345 28.3257584,30.129469 27.7061483,29.6251012 L27.5939997,29.5237808 L23.7101788,25.6399599 L18.9494935,20.8792746 C18.337446,20.267227 18.1233324,19.2388118 18.7798098,18.5823345 C19.3977011,17.9644001 20.3450772,17.8961227 20.9646443,18.4005764 L21.0768359,18.5018969 L29.721299,27.14636 L29.721299,27.1463171 Z" id="形状" fill="#999999"></path></svg>'},3:function(t,e,n){"use strict";t.exports=n(4)},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=o.exec(e);if(!n)return t;var i="",a=void 0,l=void 0,r=void 0;for(a=n.index,l=0;a<e.length;a++){switch(e.charCodeAt(a)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}l!==a&&(i+=e.substring(l,a)),l=a+1,i+=r}return l!==a?i+e.substring(l,a):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var o in t)e(t[o],o)},t.exports=i}).call(this,n(5))},41:function(t,e,n){"use strict";n.r(e);n(66);var i="disabled",o=n(0),a=n(22),l=n.n(a),r=n(23),s=n.n(r),c=n(9),p=n.n(c),u={operator:s.a,checkMark:p.a};function d(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)}}var f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=l()({options:this.options,icons:u,getObject:function(t){return t}}),this.wrapper=this.container.querySelector(".payInstallment"),this.box=this.container.querySelector(".payInstallment__box"),this.close=this.wrapper.querySelector(".header-operator"),this.installment=this.container.querySelector(".payInstallment__installment"),this.paybtn=this.container.querySelector(".footer-paybtn"),this.loading=this.container.querySelector(".footer-paybtn__loading"),this.alipay=this.container.querySelector(".payInstallment__alipay")}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function y(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function m(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)}}var b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payInput")[0],showAlipay:!1};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.checked=this.options.checked,this.selected=null,this.template=new f({container:this.container,options:this.options}),this.events=new o.a(["show","submit","close"]),this.bindEvents(),this.init()}var e,n,a;return e=t,a=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"init",value:function(){this.toggleSubmitDisabled(!0)}},{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"show",value:function(t,e){this.events.trigger("show",{installmentOptions:t,defaultSelected:e}),this.template.wrapper.style.bottom="0px",this.template.box.style.bottom="0px"}},{key:"hide",value:function(){var t=this;this.template.box.style.bottom="-100%",setTimeout((function(){t.template.wrapper.style.bottom="-100%"}),300)}},{key:"bindEvents",value:function(){var t=this;this.template.close.addEventListener("click",(function(){t.events.trigger("close",{value:t.selected}),t.hide()})),this.template.paybtn.addEventListener("click",(function(){t._submit()})),this.options.showAlipay&&this.template.alipay.addEventListener("click",(function(){t._alipay()})),this.on("show",(function(e){var n=e.installmentOptions,i=e.defaultSelected;if(n&&0!==n.length){for(var o="",a=function(e){var a=n[e],l=a.monthlyPay,r=a.totalMonth,s=a.transactionFee,c=s?"手续费¥".concat(s,"/期"):"免手续费",p='<div class="installment-option"><div class="installment-option__pay">¥ '.concat(l," × ").concat(r,' 期</div><div class="installment-option__fee">').concat(c,'</div><div class="installment-option__check">').concat(u.checkMark,"</div></div>");o+=p;try{"ALIPAY"!==t.selected&&"ALIPAY"!==i||(document.querySelector(".payInstallment__alipay--check").style.display="block",t.selected="ALIPAY",t.toggleSubmitDisabled(!1)),t.selected&&JSON.stringify(n[e])===JSON.stringify(t.selected)||!t.selected&&i+""==r+""?setTimeout((function(){document.querySelectorAll(".installment-option__check")[e].style.display="block",t.selected=n[e],t.toggleSubmitDisabled(!1)}),0):setTimeout((function(){document.querySelectorAll(".installment-option__check")[e].style.display="none"}),0)}catch(t){console.error("传入对象有误: ".concat(n))}},l=0;l<n.length;l++)a(l);t.template.installment.innerHTML=o;for(var r=t.template.installment.getElementsByClassName("installment-option"),s=function(e){r[e].addEventListener("click",(function(i){t.toggleSubmitDisabled(!1);var o=i.target;"installment-option"!==i.target.className&&(o=function(t,e){for(var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(n.call(t,e))return t;t=t.parentElement}return null}(i.target,".installment-option")),t.options.showAlipay&&(document.querySelector(".payInstallment__alipay--check").style.display="none"),y(r).forEach((function(t){t.querySelector(".installment-option__check").style.display="none"})),o.querySelector(".installment-option__check").style.display="block",t.selected=n[e]}),!1)},c=0;c<r.length;c++)s(c)}}))}},{key:"_alipay",value:function(){this.toggleSubmitDisabled(!1),document.querySelector(".payInstallment__alipay--check").style.display="block",document.querySelectorAll(".installment-option__check").forEach((function(t){t.style.display="none"})),this.selected="ALIPAY"}},{key:"_submit",value:function(){var t=this;this.template.paybtn.classList.contains(i)||(this.toggleSubmitLoading(!0),this.toggleSubmitDisabled(!0),this.events.trigger("submit",{value:this.selected}),setTimeout((function(){t.hide(),t.toggleSubmitLoading(!1),t.toggleSubmitDisabled(!1)}),1e3))}},{key:"toggleSubmitDisabled",value:function(t){t?(this.template.paybtn.classList.add(i),this.template.loading.classList.add(i)):(this.template.paybtn.classList.remove(i),this.template.loading.classList.remove(i))}},{key:"toggleSubmitLoading",value:function(t){t?(this.template.paybtn.style.display="none",this.template.loading.style.display="block"):(this.template.paybtn.style.display="block",this.template.loading.style.display="none")}}])&&m(e.prototype,n),a&&m(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=b},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},66:function(t,e,n){var i=n(1),o=n(67);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var a={insert:"head",singleton:!1};i(o,a);t.exports=o.locals||{}},67:function(t,e,n){(e=n(2)(!1)).push([t.i,'.payInstallment{position:fixed;bottom:-100%;left:0;width:100vw;height:100%;color:#333;background:rgba(0,0,0,.55);transition:bottom 0s linear;z-index:1000}.payInstallment__box{position:absolute;bottom:-100%;width:100%;background:#fff;border-radius:8px 8px 0 0;transition:bottom .3s ease-in-out}.payInstallment__box--header{position:relative;width:100%;height:49px;font-size:16px;line-height:49px;text-align:center}.payInstallment__box--header:after{content:"";display:block;height:1px;width:100%;transform:scaleY(.5);background:#eee}.payInstallment__box--header .header-operator{position:absolute;display:inline-block;top:6px;left:12px;width:22px;height:22px}.payInstallment__box--body .payInstallment__alipay{display:flex;margin:20px 12px;height:24px;align-items:center;position:relative}.payInstallment__box--body .payInstallment__alipay--logo{width:24px;height:24px;background:url(https://gw.alipayobjects.com/mdn/rms_349abe/afts/img/A*h_2IRrm-02MAAAAAAAAAAABkARQnAQ) no-repeat;background-size:contain}.payInstallment__box--body .payInstallment__alipay--text{margin:0 10px;font-size:15px;line-height:24px}.payInstallment__box--body .payInstallment__alipay--check{position:absolute;top:50%;right:0;width:18px;height:18px;transform:translateY(-50%);color:#1677ff;display:none}.payInstallment__box--body .payInstallment__huabei{display:flex;margin:20px 12px;height:24px;align-items:center}.payInstallment__box--body .payInstallment__huabei--logo{width:24px;height:24px;background:url(https://gw.alipayobjects.com/mdn/rms_b05656/afts/img/A*K7KwTL4Jgo8AAAAAAAAAAABkARQnAQ) no-repeat;background-size:contain}.payInstallment__box--body .payInstallment__huabei--text{margin:0 10px;font-size:15px;line-height:24px}.payInstallment__box--body .payInstallment__huabei--slogan{padding:0 4px;height:16px;font-size:11px;line-height:15px;color:#ff3b30;border:1px solid #ff3b30;border-radius:8px 8px 8px 0}.payInstallment__box--body .payInstallment__installment{display:flex;flex-direction:column;margin:20px 0}.payInstallment__box--body .payInstallment__installment .installment-option{box-sizing:border-box;position:relative;height:66px;margin:0 0 0 44px;text-align:left}.payInstallment__box--body .payInstallment__installment .installment-option:after,.payInstallment__box--body .payInstallment__installment .installment-option:first-child:before{content:"";display:block;height:1px;width:100%;transform:scaleY(.5);background:#eee}.payInstallment__box--body .payInstallment__installment .installment-option__pay{margin-top:12px;font-size:15px;line-height:21px}.payInstallment__box--body .payInstallment__installment .installment-option__fee{margin-bottom:12px;color:#999;font-size:13px;line-height:19px}.payInstallment__box--body .payInstallment__installment .installment-option__check{display:none;position:absolute;top:50%;right:12px;width:18px;height:18px;transform:translateY(-50%);color:#1677ff}.payInstallment__box--footer .footer-tips{color:#999;font-size:13px;line-height:18px;text-align:center}.payInstallment__box--footer .footer-paybtn{margin:12px;height:40px;font-size:18px;line-height:40px;text-align:center;color:#fff;background:#1677ff;border-radius:4px}.payInstallment__box--footer .footer-paybtn.disabled{opacity:.5}.payInstallment__box--footer .footer-paybtn__loading{display:none;margin:12px;height:40px;text-align:center;background-size:35px;background:#1677ff;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgd2lkdGg9IjcxIiBoZWlnaHQ9IjcxIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCI+PGc+PHBhdGggZD0iTTY0IDkuNzVBNTQuMjUgNTQuMjUgMCAwMDkuNzUgNjRIMGE2NCA2NCAwIDAxMTI4IDBoLTkuNzVBNTQuMjUgNTQuMjUgMCAwMDY0IDkuNzV6IiBmaWxsPSIjZmZmIi8+PGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgNjQgNjQiIHRvPSIzNjAgNjQgNjQiIGR1cj0iMTIwMG1zIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPjwvZz48L3N2Zz4=");background-repeat:no-repeat;background-position:50%;background-size:20px;border-radius:4px}.payInstallment__box--footer .footer-paybtn__loading.disabled{opacity:.5}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3){.payInstallment .payInstallment__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}',""]),t.exports=e},9:function(t,e){t.exports='<svg viewBox="0 0 31 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M29.1589511,0.825223549 L29.1343417,0.800614145 C28.2694969,-0.0501680945 26.8808234,-0.0396212073 26.0300412,0.825223549 L11.605415,15.4818812 L11.5913525,15.4959437 C11.0604925,16.0162569 10.2097103,16.0092256 9.68939719,15.4818812 L4.47923487,10.1908594 L4.45462547,10.16625 C3.58978071,9.3154678 2.20110722,9.32601469 1.35032498,10.1908594 C0.481964596,11.0732823 0.481964596,12.4865652 1.35032498,13.3689881 L8.72611481,20.8502469 L8.75423985,20.8783719 C9.8124442,21.9225137 11.5175243,21.9084512 12.5616662,20.8502469 L29.1589511,4.00686788 C30.0273115,3.12092935 30.0273115,1.70764645 29.1589511,0.825223549 Z" fill="#1677FF" id="Path"></path></svg>'}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayKeyboard",[],t):"object"==typeof exports?exports.PayKeyboard=t():e.PayKeyboard=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=32)}([function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this.events={},this.eventsList=t}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=r},function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],l=n[c]||0,d="".concat(c," ").concat(l);n[c]=l+1;var u=s(d),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(a[u].references++,a[u].updater(p)):a.push({identifier:d,updater:v(p,t),references:1}),i.push(d)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var d,u=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function p(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function y(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,f=0;function v(e,t){var n,i,o;if(t.singleton){var r=f++;n=h||(h=l(t)),i=p.bind(null,n,r,!1),o=p.bind(null,n,r,!0)}else n=l(t),i=y.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=c(e,t),l=0;l<n.length;l++){var d=s(n[l]);0===a[d].references&&(a[d].updater(),a.splice(d,1))}n=r}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){"use strict";e.exports=n(4)},function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(e){return function(e){var t=""+e,n=o.exec(t);if(!n)return e;var i="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(i+=t.substring(a,r)),a=r+1,i+=s}return a!==r?i+t.substring(a,r):i}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},i.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var o in e)t(e[o],o)},e.exports=i}).call(this,n(5))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},function(e,t){e.exports='<svg viewBox="0 0 52 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>插销</title><g id="输出" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="金额键盘带按钮" transform="translate(-630.000000, -119.000000)" fill="#333333" fill-rule="nonzero"><g id="编组-8" transform="translate(630.000000, 119.000000)"><path d="M45,0 C48.8659932,0 52,3.13400675 52,7 L52,7 L52,31 C52,34.8659932 48.8659932,38 45,38 L45,38 L16.3742656,38 C14.2113201,38 12.1698534,37.0001043 10.8438874,35.2912605 L10.8438874,35.2912605 L1.5325666,23.2912605 C-0.426929077,20.765953 -0.426929077,17.234047 1.5325666,14.7087395 L1.5325666,14.7087395 L10.8438874,2.70873952 C12.1698534,0.99989572 14.2113201,0 16.3742656,0 L16.3742656,0 Z M45,3 L16.3742656,3 L16.1434178,3.00665514 C14.9940748,3.0730036 13.9243884,3.63239912 13.2140495,4.54785116 L13.2140495,4.54785116 L3.9027287,16.5478512 L3.7737379,16.7237024 C2.78480843,18.1514223 2.82780536,20.0668373 3.9027287,21.4521488 L3.9027287,21.4521488 L13.2140495,33.4521488 L13.3608257,33.6304512 C14.1178346,34.4978202 15.2155448,35 16.3742656,35 L16.3742656,35 L45,35 L45.1996403,34.9951047 C47.3160315,34.8910789 49,33.1421954 49,31 L49,31 L49,7 L48.9951047,6.80035966 C48.8910789,4.68396847 47.1421954,3 45,3 L45,3 Z M25.502,13.001 L29.7565729,17.208 L34.01,13.001 L38.232,13.001 L38.2422424,13.0113777 L31.8775729,19.306 L38.524,25.881 L34.282,25.881 L29.7565729,21.404 L25.23,25.881 L20.99,25.881 L27.6355729,19.306 L21.2716797,13.0113777 L21.281,13.001 L25.502,13.001 Z" id="形状结合"></path></g></g></g></svg>'},,,,,function(e,t){(function(t){e.exports=t}).call(this,{})},,,function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 26 28" fill="#999999"><path d="M25.8547832,4.24799388 C25.8547832,3.80481366 25.5641197,3.50930444 25.1286113,3.36146623 L13.6538851,0.110877693 C13.2178893,-0.0369592309 12.6370472,-0.0369592309 12.3465456,0.110877693 L0.871503338,3.36146623 C0.435668699,3.50913852 0.290338857,3.80464645 0.14533143,4.24799388 C0.14533143,4.39583081 -0.43583305,8.97632143 0.726173496,14.1477971 C1.4523454,17.2508914 2.61451632,19.9104583 4.35753878,22.1263916 C6.39121144,24.7861385 9.15104969,26.7070353 12.4917363,27.8892458 C12.7823998,28.0369181 13.0729008,28.0369181 13.5085742,27.8892458 C16.8494189,26.7073729 19.609096,24.7861514 21.6427718,22.1263916 C23.240613,19.910484 24.5477882,17.2508946 25.2739474,14.1477971 C26.4356315,8.97596774 25.8547895,4.39567775 25.8547895,4.24799388 L25.8547832,4.24799388 Z M23.2402684,13.7041345 C21.787599,19.9098152 18.3018923,24.0472787 12.9273718,25.8203533 C7.55300937,23.8992958 4.06698341,19.9098474 2.61447523,13.7041345 C1.74297032,9.86252111 1.88830332,6.46424871 2.03347195,4.98654185 L12.9273782,1.88377866 L23.8214424,4.98654185 C23.9664505,6.46425192 24.1117822,10.0105265 23.2402779,13.7041345 L23.2402684,13.7041345 Z M11.1843747,17.9889281 L7.55300937,14.4429719 C7.11717473,13.9997916 7.11717473,13.408606 7.55300937,12.9654258 C7.98867964,12.5220784 8.56984728,12.5220784 9.00567876,12.9654258 L11.9105339,15.7726797 L17.865906,10.1579917 C18.3019018,9.71464432 18.8827439,9.71464432 19.3187366,10.1579917 C19.7544068,10.601172 19.7544068,11.1923576 19.3187366,11.6355378 L12.6370472,17.9889024 C12.4917155,18.1365747 12.2013769,18.2845763 11.9108753,18.2845763 C11.6202118,18.2845763 11.3295496,18.1367393 11.1843778,17.9889024 L11.1843747,17.9889281 Z" id="形状"></path></svg>'},function(e,t,n){var i=n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options,o=e.icons,r=i.$escape;return t+='<div class="payKeyboard">\n <div class="payKeyboard__hd" ',(n.tip||n.arrow)&&(t+=' style="min-height: 30px;padding: 4px;" '),t+=">\n ",n.tip&&(t+='\n <div class="payKeyboard__intro">\n ',n.showIcon&&(t+="\n <span>",t+=o.logo,t+="</span>\n "),t+="\n ",t+=n.tip,t+="\n ",n.logo&&(t+="\n <img src=",t+=r(n.logo),t+=' class="payKeyboard__logo"/>\n '),t+="\n </div>\n "),t+="\n ",n.arrow&&(t+='\n <div class="payKeyboard__arrow"></div>\n '),t+='\n </div>\n <div class="payKeyboard__bd">\n <div class="payKeyboard__keys">\n <div class="payKeyboard__row">\n <div class="payKeyboard__key payKeyboard__number" data-key="1">1</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="2">2</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="3">3</div>\n </div>\n <div class="payKeyboard__row">\n <div class="payKeyboard__key payKeyboard__number" data-key="4">4</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="5">5</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="6">6</div>\n </div>\n <div class="payKeyboard__row">\n <div class="payKeyboard__key payKeyboard__number" data-key="7">7</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="8">8</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="9">9</div>\n </div>\n <div class="payKeyboard__row">\n <div class="payKeyboard__key payKeyboard__zero payKeyboard__number" data-key="0">0</div>\n\n <div class="payKeyboard__key payKeyboard__point ',n.showDot&&(t+=" payKeyboard__point--display "),t+='" data-key=".">.</div>\n\n </div>\n </div>\n <div class="payKeyboard__function">\n <div class="payKeyboard__key payKeyboard__del" data-key="del">',t+=o.del,t+='</div>\n <div class="payKeyboard__key payKeyboard__enter payKeyboard__enter--disabled" id="submit" data-key="enter">\n <div class="payKeyboard__text">',t+=r(n.text),t+='</div>\n <div class="payKeyboard__loading"></div>\n </div>\n </div>\n </div>\n <div class="payKeyboard__iphonex-bottom"></div>\n</div>\n\n'}},function(e,t,n){var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){"use strict";function r(e,t){var n;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=e,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!r.notNeeded(e)){for(var i=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],o=0,a=i.length;o<a;o++)this[i[o]]=c(this[i[o]],this);s&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,i){var o=Node.prototype.removeEventListener;"click"===t?o.call(e,t,n.hijacked||n,i):o.call(e,t,n,i)},e.addEventListener=function(t,n,i){var o=Node.prototype.addEventListener;"click"===t?o.call(e,t,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),i):o.call(e,t,n,i)}),"function"==typeof e.onclick&&(n=e.onclick,e.addEventListener("click",(function(e){n(e)}),!1),e.onclick=null)}function c(e,t){return function(){return e.apply(t,arguments)}}}var a=navigator.userAgent.indexOf("Windows Phone")>=0,s=navigator.userAgent.indexOf("Android")>0&&!a,c=/iP(ad|hone|od)/.test(navigator.userAgent)&&!a,l=c&&/OS 4_\d(_\d)?/.test(navigator.userAgent),d=c&&/OS [6-7]_\d/.test(navigator.userAgent),u=navigator.userAgent.indexOf("BB10")>0;r.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(c&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},r.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},r.prototype.sendClick=function(e,t){document.activeElement&&document.activeElement!==e&&document.activeElement.blur();var n=t.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent(this.determineEventType(e),!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,e.dispatchEvent(i)},r.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},r.prototype.focus=function(e){var t;c&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type&&"email"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},r.prototype.updateScrollParent=function(e){var t,n;if(!(t=e.fastClickScrollParent)||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},r.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},r.prototype.onTouchStart=function(e){var t;if(e.targetTouches.length>1)return!0;var n=this.getTargetElementFromEventTarget(e.target),i=e.targetTouches[0];if(c){if((t=window.getSelection()).rangeCount&&!t.isCollapsed)return!0;if(!l){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(n)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=n,this.touchStartX=i.pageX,this.touchStartY=i.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},r.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},r.prototype.onTouchMove=function(e){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0)},r.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},r.prototype.onTouchEnd=function(e){var t,n,i,o,r,a=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,d&&(r=e.changedTouches[0],(a=document.elementFromPoint(r.pageX-window.pageXOffset,r.pageY-window.pageYOffset)||a).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=a.tagName.toLowerCase())){if(t=this.findControl(a)){if(this.focus(a),s)return!1;a=t}}else if(this.needsFocus(a))return e.timeStamp-n>100||c&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(a),this.sendClick(a,e),c&&"select"===i||(this.targetElement=null,e.preventDefault()),!1);return!(!c||l||!(o=a.fastClickScrollParent)||o.fastClickLastScrollTop===o.scrollTop)||(this.needsClick(a)||(e.preventDefault(),this.sendClick(a,e)),!1)},r.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},r.prototype.onMouse=function(e){return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},r.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail||((t=this.onMouse(e))||(this.targetElement=null),t)},r.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},r.notNeeded=function(e){var t,n,i;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(u&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===e.style.touchAction||"manipulation"===e.style.touchAction))},r.attach=function(e,t){return new r(e,t)},"object"===o(n(11))&&n(11)?void 0===(i=function(){return r}.call(t,n,t,e))||(e.exports=i):e.exports?(e.exports=r.attach,e.exports.FastClick=r):window.FastClick=r}()},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(43);var i="payKeyboard__enter--disabled",o="payKeyboard--hide",r=n(0),a=n(14),s=n.n(a),c=n(6),l=n.n(c),d={logo:s.a,del:l.a},u=n(15),p=n.n(u);function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,i;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=p()({options:this.options,icons:d,getObject:function(e){return e}}),this.numbers=this.container.querySelectorAll(".payKeyboard__number"),this.keyboard=this.container.querySelector(".payKeyboard"),this.point=this.container.querySelector(".payKeyboard__point"),this.del=this.container.querySelector(".payKeyboard__del"),this.enter=this.container.querySelector(".payKeyboard__enter"),this.text=this.container.querySelector(".payKeyboard__text"),this.loading=this.container.querySelector(".payKeyboard__loading"),this.arrow=this.container.querySelector(".payKeyboard__arrow")}}])&&y(t.prototype,n),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),f=n(16),v=n.n(f),b={isMobile:/mobile/i.test(window.navigator.userAgent),isAlipay:"alipayclient"===window.navigator.userAgent.match(/AlipayClient/i),isWechat:"micromessenger"===window.navigator.userAgent.match(/MicroMessenger/i),alipayReady:function(e){window.AlipayJSBridge?e&&e():document.addEventListener("AlipayJSBridgeReady",e,!1)},vibrate:function(){this.isAlipay?this.alipayReady((function(){window.AlipayJSBridge.call("vibrateShort")})):"vibrate"in window.navigator?window.navigator.vibrate(65):console.log("浏览器不支持震动")},storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}}};function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.keyboard=t,this.options=this.keyboard.options,this.numbers=this.keyboard.template.numbers,this.point=this.keyboard.template.point,this.del=this.keyboard.template.del,this.enter=this.keyboard.template.enter,this.bindEvents(),v.a.attach(document.body)}var t,n,o;return t=e,(n=[{key:"bindEvents",value:function(){for(var e=this,t=0;t<this.numbers.length;t++)this.numbers[t].addEventListener("click",(function(t){e._click(t)}));this.point.addEventListener("click",(function(t){e._click(t)})),this.del.addEventListener("click",(function(t){e._click(t)})),this.enter.addEventListener("click",(function(t){e._click(t),e._submit()}))}},{key:"_click",value:function(e){var t=e.target.dataset.key;this.keyboard.events.trigger("click",{key:t}),b.vibrate();var n=this.keyboard.value,i=this.keyboard.value.indexOf(".")>-1;if("del"===t&&(this.keyboard.value=this.keyboard.value.substr(0,this.keyboard.value.length-1),"0"===this.keyboard.value&&(this.keyboard.value="")),"."===t){if(i)return;this.keyboard.value+=t,"."===this.keyboard.value&&(this.keyboard.value="0.")}if(/[0-9]/.test(t)){if(parseFloat(this.keyboard.value+t)>this.options.max)return void this.keyboard.events.trigger("max",{value:this.keyboard.value+t});if(i&&this.keyboard.value.split(".")[1].length>=2)return;this.keyboard.value+=t,"0"===this.keyboard.value&&(this.keyboard.value="0.")}n!==this.keyboard.value&&this.keyboard.events.trigger("change",{value:this.keyboard.value})}},{key:"_submit",value:function(){this.enter.classList.contains(i)||(this.keyboard.toggleSubmitLoading(!0),this.keyboard.toggleSubmitDisabled(!0),this.keyboard.events.trigger("submit",{value:this.keyboard.value}))}}])&&g(t.prototype,n),o&&g(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function k(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var w=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){e.text&&e.text.length>6&&(e.text=e.text.substr(0,6));var t={container:e.element||document.getElementsByClassName("payKeyboard")[0],value:e.value||"",max:e.max||1e9,arrow:e.arrow||!1,tip:e.tip||"",color:e.color||"#1677FF",showIcon:e.showIcon||!0,showDot:e.showDot||!0,logo:e.logo||"",text:e.text||"付款"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e.max=parseFloat(e.max),e.max>1e9&&(e.max=1e9),e}(t),this.container=this.options.container,this.value=this.options.value,this.template=new h({container:this.container,options:this.options}),this.events=new r.a(["init","change","click","submit","hide","show","max"]),this.buttons=new m(this),this.bindEvents(),this.init()}var t,n,a;return t=e,a=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"bindEvents",value:function(){var e=this;this.on("change",(function(){e.toggleSubmitDisabled(!parseFloat(e.value)>0)}))}},{key:"init",value:function(){var e=this;this.template.enter.style.setProperty("--primary",this.options.color),this.container.style.overflow="hidden",this.template.arrow&&this.template.arrow.addEventListener("click",(function(){e.hide()})),this.events.trigger("init")}},{key:"toggleSubmitDisabled",value:function(e){e?this.template.enter.classList.add(i):this.template.enter.classList.remove(i)}},{key:"toggleSubmitLoading",value:function(e){e?(this.template.text.style.display="none",this.template.loading.style.display="block"):(this.template.text.style.display="block",this.template.loading.style.display="none")}},{key:"reset",value:function(){var e=this.value;this.value=this.options.value,this.toggleSubmitLoading(!1),this.toggleSubmitDisabled(!parseFloat(this.value)>0),this.setColor(this.options.color),this.value!==e&&this.events.trigger("change",{value:this.value})}},{key:"hide",value:function(){this.template.keyboard.classList.add(o),this.events.trigger("hide")}},{key:"show",value:function(){this.template.keyboard.classList.remove(o),this.events.trigger("show")}},{key:"setColor",value:function(e){this.template.enter.style.setProperty("--primary",e)}}])&&k(t.prototype,n),a&&k(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=w},,,,,,,,,,,function(e,t,n){var i=n(1),o=n(44);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){(t=n(2)(!1)).push([e.i,'@font-face{font-family:AlipayNumber;src:url(https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/fonts/AlipayNumber-Regular.ttf) format("truetype")}.alipaynumber{font-family:AlipayNumber,sans-serif}.payKeyboard{background:#fff;max-height:600px;min-width:250px;overflow:hidden;position:relative;transition:all .2s ease-in}.payKeyboard--hide{transform:translateY(100%);max-height:0}.payKeyboard:after{content:"";display:block;position:absolute;left:0;top:0;right:0;height:1px;background-color:#ddd;transform:scaleY(.5)}.payKeyboard__hd{position:relative}.payKeyboard__intro{display:flex;align-items:center;justify-content:center;font-size:13px;min-height:30px;color:#999}.payKeyboard__intro span{margin-right:5px;width:13px}.payKeyboard__intro span *{display:block}.payKeyboard__arrow{position:absolute;width:28px;height:26px;right:8px;top:7px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAYAAABIB77kAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAHKADAAQAAAABAAAAEgAAAADbjUrDAAABTElEQVQ4Eb3UP06EQBQGcGYMmZrWQKOnsNNOaYxrQmNHAafYxltACFdQi9VYaWw9gzaeYiUEv4/NbFaWP0MEXzLszM7M++VNGKw0TS+sf4okSW5lVVV3WZadz20Sg7GUeKiyLO/nRDXGoggyanSO493FCBH8YgeheLxTok0Mxkratn2KzuRoG+Y4zkIAs/I8PyqK4hVdj2PEWghxFUXR02Y47tmFBUHwXYNMNxXah9HZglOgQ9ge+BfUBGN+fS3YryMMw090ztCMXyRTjMCvI+UfOpDkGP0XtN4XaQzG3J0gJ4fQNszzvGvf99fc3xa9IDd0ofhInGB6uZN0NYRx7SDIRU0Ud7QEeMA5BsaPrusu+irbrDQEubiJbhOMwLjHqEKdnCiqeUN1h/VmIZ5R2aVJZTrH3rXQE22/cRx/SCkDoO9oD0qpmzEYc/4ApjHAh9OIbCUAAAAASUVORK5CYII=");background-size:14px 8px;background-repeat:no-repeat;background-position:50%}.payKeyboard__bd{display:flex}.payKeyboard__keys{flex:3}.payKeyboard__function{flex:1;display:flex;flex-direction:column}.payKeyboard__logo{height:16px;margin-left:5px;padding-left:5px;border-left:1px solid #999}.payKeyboard__key{font-family:AlipayNumber,sans-serif;flex:1;height:7.14286vh;text-align:center;font-size:25px;color:#333;background:#fff;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-right:1px solid #f5f5f5;border-top:1px solid #f5f5f5}.payKeyboard__key:active{background-color:#f5f5f5;color:#333}.payKeyboard__del{position:relative;flex:none;border-right:0;border-bottom:1px solid #f5f5f5}.payKeyboard__del svg{width:25px}.payKeyboard__del:before{display:block;position:absolute;top:0;right:0;bottom:0;left:0;content:""}.payKeyboard__point{display:none}.payKeyboard__point--display{display:flex}.payKeyboard__enter{--primary:#1677ff;flex:3;display:flex;justify-content:center;align-items:center;background-color:var(--primary,"#1677FF");font-size:18px;color:#fff;border-right:0;border-top:0}.payKeyboard__enter--disabled{background-color:#f5f5f5;color:#999}.payKeyboard__enter:active{color:#fff;background-color:var(--primary,"#1677FF")}.payKeyboard__row{display:flex}.payKeyboard__zero{flex:2}.payKeyboard__loading{display:none;width:35px;height:35px;background-size:35px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgd2lkdGg9IjcxIiBoZWlnaHQ9IjcxIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCI+PGc+PHBhdGggZD0iTTY0IDkuNzVBNTQuMjUgNTQuMjUgMCAwMDkuNzUgNjRIMGE2NCA2NCAwIDAxMTI4IDBoLTkuNzVBNTQuMjUgNTQuMjUgMCAwMDY0IDkuNzV6IiBmaWxsPSIjZmZmIi8+PGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgNjQgNjQiIHRvPSIzNjAgNjQgNjQiIGR1cj0iMTIwMG1zIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPjwvZz48L3N2Zz4=")}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3){.payKeyboard__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}',""]),e.exports=t}]).default})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayKeyboard",[],t):"object"==typeof exports?exports.PayKeyboard=t():e.PayKeyboard=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=40)}({0:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this.events={},this.eventsList=t}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=r},1:function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],l=n[c]||0,d="".concat(c," ").concat(l);n[c]=l+1;var u=s(d),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(a[u].references++,a[u].updater(p)):a.push({identifier:d,updater:v(p,t),references:1}),i.push(d)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var d,u=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function p(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function y(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,f=0;function v(e,t){var n,i,o;if(t.singleton){var r=f++;n=h||(h=l(t)),i=p.bind(null,n,r,!1),o=p.bind(null,n,r,!0)}else n=l(t),i=y.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=c(e,t),l=0;l<n.length;l++){var d=s(n[l]);0===a[d].references&&(a[d].updater(),a.splice(d,1))}n=r}}}},11:function(e,t){(function(t){e.exports=t}).call(this,{})},14:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 26 28" fill="#999999"><path d="M25.8547832,4.24799388 C25.8547832,3.80481366 25.5641197,3.50930444 25.1286113,3.36146623 L13.6538851,0.110877693 C13.2178893,-0.0369592309 12.6370472,-0.0369592309 12.3465456,0.110877693 L0.871503338,3.36146623 C0.435668699,3.50913852 0.290338857,3.80464645 0.14533143,4.24799388 C0.14533143,4.39583081 -0.43583305,8.97632143 0.726173496,14.1477971 C1.4523454,17.2508914 2.61451632,19.9104583 4.35753878,22.1263916 C6.39121144,24.7861385 9.15104969,26.7070353 12.4917363,27.8892458 C12.7823998,28.0369181 13.0729008,28.0369181 13.5085742,27.8892458 C16.8494189,26.7073729 19.609096,24.7861514 21.6427718,22.1263916 C23.240613,19.910484 24.5477882,17.2508946 25.2739474,14.1477971 C26.4356315,8.97596774 25.8547895,4.39567775 25.8547895,4.24799388 L25.8547832,4.24799388 Z M23.2402684,13.7041345 C21.787599,19.9098152 18.3018923,24.0472787 12.9273718,25.8203533 C7.55300937,23.8992958 4.06698341,19.9098474 2.61447523,13.7041345 C1.74297032,9.86252111 1.88830332,6.46424871 2.03347195,4.98654185 L12.9273782,1.88377866 L23.8214424,4.98654185 C23.9664505,6.46425192 24.1117822,10.0105265 23.2402779,13.7041345 L23.2402684,13.7041345 Z M11.1843747,17.9889281 L7.55300937,14.4429719 C7.11717473,13.9997916 7.11717473,13.408606 7.55300937,12.9654258 C7.98867964,12.5220784 8.56984728,12.5220784 9.00567876,12.9654258 L11.9105339,15.7726797 L17.865906,10.1579917 C18.3019018,9.71464432 18.8827439,9.71464432 19.3187366,10.1579917 C19.7544068,10.601172 19.7544068,11.1923576 19.3187366,11.6355378 L12.6370472,17.9889024 C12.4917155,18.1365747 12.2013769,18.2845763 11.9108753,18.2845763 C11.6202118,18.2845763 11.3295496,18.1367393 11.1843778,17.9889024 L11.1843747,17.9889281 Z" id="形状"></path></svg>'},15:function(e,t,n){var i=n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options,o=e.icons,r=i.$escape;return t+='<div class="payKeyboard">\n <div class="payKeyboard__hd" ',(n.tip||n.arrow)&&(t+=' style="min-height: 30px;padding: 4px;" '),t+=">\n ",n.tip&&(t+='\n <div class="payKeyboard__intro">\n ',n.showIcon&&(t+="\n <span>",t+=o.logo,t+="</span>\n "),t+="\n ",t+=n.tip,t+="\n ",n.logo&&(t+="\n <img src=",t+=r(n.logo),t+=' class="payKeyboard__logo"/>\n '),t+="\n </div>\n "),t+="\n ",n.arrow&&(t+='\n <div class="payKeyboard__arrow"></div>\n '),t+='\n </div>\n <div class="payKeyboard__bd">\n <div class="payKeyboard__keys">\n <div class="payKeyboard__row">\n <div class="payKeyboard__key payKeyboard__number" data-key="1">1</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="2">2</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="3">3</div>\n </div>\n <div class="payKeyboard__row">\n <div class="payKeyboard__key payKeyboard__number" data-key="4">4</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="5">5</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="6">6</div>\n </div>\n <div class="payKeyboard__row">\n <div class="payKeyboard__key payKeyboard__number" data-key="7">7</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="8">8</div>\n <div class="payKeyboard__key payKeyboard__number" data-key="9">9</div>\n </div>\n <div class="payKeyboard__row">\n <div class="payKeyboard__key payKeyboard__zero payKeyboard__number" data-key="0">0</div>\n\n <div class="payKeyboard__key payKeyboard__point ',n.showDot&&(t+=" payKeyboard__point--display "),t+='" data-key=".">.</div>\n\n </div>\n </div>\n <div class="payKeyboard__function">\n <div class="payKeyboard__key payKeyboard__del" data-key="del">',t+=o.del,t+='</div>\n <div class="payKeyboard__key payKeyboard__enter payKeyboard__enter--disabled" id="submit" data-key="enter">\n <div class="payKeyboard__text">',t+=r(n.text),t+='</div>\n <div class="payKeyboard__loading"></div>\n </div>\n </div>\n </div>\n <div class="payKeyboard__iphonex-bottom"></div>\n</div>\n\n'}},16:function(e,t,n){var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){"use strict";function r(e,t){var n;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=e,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!r.notNeeded(e)){for(var i=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],o=0,a=i.length;o<a;o++)this[i[o]]=c(this[i[o]],this);s&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,i){var o=Node.prototype.removeEventListener;"click"===t?o.call(e,t,n.hijacked||n,i):o.call(e,t,n,i)},e.addEventListener=function(t,n,i){var o=Node.prototype.addEventListener;"click"===t?o.call(e,t,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),i):o.call(e,t,n,i)}),"function"==typeof e.onclick&&(n=e.onclick,e.addEventListener("click",(function(e){n(e)}),!1),e.onclick=null)}function c(e,t){return function(){return e.apply(t,arguments)}}}var a=navigator.userAgent.indexOf("Windows Phone")>=0,s=navigator.userAgent.indexOf("Android")>0&&!a,c=/iP(ad|hone|od)/.test(navigator.userAgent)&&!a,l=c&&/OS 4_\d(_\d)?/.test(navigator.userAgent),d=c&&/OS [6-7]_\d/.test(navigator.userAgent),u=navigator.userAgent.indexOf("BB10")>0;r.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(c&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},r.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},r.prototype.sendClick=function(e,t){document.activeElement&&document.activeElement!==e&&document.activeElement.blur();var n=t.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent(this.determineEventType(e),!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,e.dispatchEvent(i)},r.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},r.prototype.focus=function(e){var t;c&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type&&"email"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},r.prototype.updateScrollParent=function(e){var t,n;if(!(t=e.fastClickScrollParent)||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},r.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},r.prototype.onTouchStart=function(e){var t;if(e.targetTouches.length>1)return!0;var n=this.getTargetElementFromEventTarget(e.target),i=e.targetTouches[0];if(c){if((t=window.getSelection()).rangeCount&&!t.isCollapsed)return!0;if(!l){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(n)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=n,this.touchStartX=i.pageX,this.touchStartY=i.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},r.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},r.prototype.onTouchMove=function(e){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0)},r.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},r.prototype.onTouchEnd=function(e){var t,n,i,o,r,a=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,d&&(r=e.changedTouches[0],(a=document.elementFromPoint(r.pageX-window.pageXOffset,r.pageY-window.pageYOffset)||a).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=a.tagName.toLowerCase())){if(t=this.findControl(a)){if(this.focus(a),s)return!1;a=t}}else if(this.needsFocus(a))return e.timeStamp-n>100||c&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(a),this.sendClick(a,e),c&&"select"===i||(this.targetElement=null,e.preventDefault()),!1);return!(!c||l||!(o=a.fastClickScrollParent)||o.fastClickLastScrollTop===o.scrollTop)||(this.needsClick(a)||(e.preventDefault(),this.sendClick(a,e)),!1)},r.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},r.prototype.onMouse=function(e){return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},r.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail||((t=this.onMouse(e))||(this.targetElement=null),t)},r.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},r.notNeeded=function(e){var t,n,i;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(u&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===e.style.touchAction||"manipulation"===e.style.touchAction))},r.attach=function(e,t){return new r(e,t)},"object"===o(n(11))&&n(11)?void 0===(i=function(){return r}.call(t,n,t,e))||(e.exports=i):e.exports?(e.exports=r.attach,e.exports.FastClick=r):window.FastClick=r}()},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},3:function(e,t,n){"use strict";e.exports=n(4)},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(e){return function(e){var t=""+e,n=o.exec(t);if(!n)return e;var i="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(i+=t.substring(a,r)),a=r+1,i+=s}return a!==r?i+t.substring(a,r):i}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},i.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var o in e)t(e[o],o)},e.exports=i}).call(this,n(5))},40:function(e,t,n){"use strict";n.r(t);n(54);var i="payKeyboard__enter--disabled",o="payKeyboard--hide",r=n(0),a=n(14),s=n.n(a),c=n(7),l=n.n(c),d={logo:s.a,del:l.a},u=n(15),p=n.n(u);function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,i;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=p()({options:this.options,icons:d,getObject:function(e){return e}}),this.numbers=this.container.querySelectorAll(".payKeyboard__number"),this.keyboard=this.container.querySelector(".payKeyboard"),this.point=this.container.querySelector(".payKeyboard__point"),this.del=this.container.querySelector(".payKeyboard__del"),this.enter=this.container.querySelector(".payKeyboard__enter"),this.text=this.container.querySelector(".payKeyboard__text"),this.loading=this.container.querySelector(".payKeyboard__loading"),this.arrow=this.container.querySelector(".payKeyboard__arrow")}}])&&y(t.prototype,n),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),f=n(16),v=n.n(f),b={isMobile:/mobile/i.test(window.navigator.userAgent),isAlipay:"alipayclient"===window.navigator.userAgent.match(/AlipayClient/i),isWechat:"micromessenger"===window.navigator.userAgent.match(/MicroMessenger/i),alipayReady:function(e){window.AlipayJSBridge?e&&e():document.addEventListener("AlipayJSBridgeReady",e,!1)},vibrate:function(){this.isAlipay?this.alipayReady((function(){window.AlipayJSBridge.call("vibrateShort")})):"vibrate"in window.navigator?window.navigator.vibrate(65):console.log("浏览器不支持震动")},storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}}};function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.keyboard=t,this.options=this.keyboard.options,this.numbers=this.keyboard.template.numbers,this.point=this.keyboard.template.point,this.del=this.keyboard.template.del,this.enter=this.keyboard.template.enter,this.bindEvents(),v.a.attach(document.body)}var t,n,o;return t=e,(n=[{key:"bindEvents",value:function(){for(var e=this,t=0;t<this.numbers.length;t++)this.numbers[t].addEventListener("click",(function(t){e._click(t)}));this.point.addEventListener("click",(function(t){e._click(t)})),this.del.addEventListener("click",(function(t){e._click(t)})),this.enter.addEventListener("click",(function(t){e._click(t),e._submit()}))}},{key:"_click",value:function(e){var t=e.target.dataset.key;this.keyboard.events.trigger("click",{key:t}),b.vibrate();var n=this.keyboard.value,i=this.keyboard.value.indexOf(".")>-1;if("del"===t&&(this.keyboard.value=this.keyboard.value.substr(0,this.keyboard.value.length-1),"0"===this.keyboard.value&&(this.keyboard.value="")),"."===t){if(i)return;this.keyboard.value+=t,"."===this.keyboard.value&&(this.keyboard.value="0.")}if(/[0-9]/.test(t)){if(parseFloat(this.keyboard.value+t)>this.options.max)return void this.keyboard.events.trigger("max",{value:this.keyboard.value+t});if(i&&this.keyboard.value.split(".")[1].length>=2)return;this.keyboard.value+=t,"0"===this.keyboard.value&&(this.keyboard.value="0.")}n!==this.keyboard.value&&this.keyboard.events.trigger("change",{value:this.keyboard.value})}},{key:"_submit",value:function(){this.enter.classList.contains(i)||(this.keyboard.toggleSubmitLoading(!0),this.keyboard.toggleSubmitDisabled(!0),this.keyboard.events.trigger("submit",{value:this.keyboard.value}))}}])&&g(t.prototype,n),o&&g(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function k(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var w=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){e.text&&e.text.length>6&&(e.text=e.text.substr(0,6));var t={container:e.element||document.getElementsByClassName("payKeyboard")[0],value:e.value||"",max:e.max||1e9,arrow:e.arrow||!1,tip:e.tip||"",color:e.color||"#1677FF",showIcon:e.showIcon||!0,showDot:e.showDot||!0,logo:e.logo||"",text:e.text||"付款"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e.max=parseFloat(e.max),e.max>1e9&&(e.max=1e9),e}(t),this.container=this.options.container,this.value=this.options.value,this.template=new h({container:this.container,options:this.options}),this.events=new r.a(["init","change","click","submit","hide","show","max"]),this.buttons=new m(this),this.bindEvents(),this.init()}var t,n,a;return t=e,a=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"bindEvents",value:function(){var e=this;this.on("change",(function(){e.toggleSubmitDisabled(!parseFloat(e.value)>0)}))}},{key:"init",value:function(){var e=this;this.template.enter.style.setProperty("--primary",this.options.color),this.container.style.overflow="hidden",this.template.arrow&&this.template.arrow.addEventListener("click",(function(){e.hide()})),this.events.trigger("init")}},{key:"toggleSubmitDisabled",value:function(e){e?this.template.enter.classList.add(i):this.template.enter.classList.remove(i)}},{key:"toggleSubmitLoading",value:function(e){e?(this.template.text.style.display="none",this.template.loading.style.display="block"):(this.template.text.style.display="block",this.template.loading.style.display="none")}},{key:"reset",value:function(){var e=this.value;this.value=this.options.value,this.toggleSubmitLoading(!1),this.toggleSubmitDisabled(!parseFloat(this.value)>0),this.setColor(this.options.color),this.value!==e&&this.events.trigger("change",{value:this.value})}},{key:"hide",value:function(){this.template.keyboard.classList.add(o),this.events.trigger("hide")}},{key:"show",value:function(){this.template.keyboard.classList.remove(o),this.events.trigger("show")}},{key:"setColor",value:function(e){this.template.enter.style.setProperty("--primary",e)}}])&&k(t.prototype,n),a&&k(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=w},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},54:function(e,t,n){var i=n(1),o=n(55);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},55:function(e,t,n){(t=n(2)(!1)).push([e.i,'@font-face{font-family:AlipayNumber;src:url(https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/fonts/AlipayNumber-Regular.ttf) format("truetype")}.alipaynumber{font-family:AlipayNumber,sans-serif}.payKeyboard{background:#fff;max-height:600px;min-width:250px;overflow:hidden;position:relative;transition:all .2s ease-in}.payKeyboard--hide{transform:translateY(100%);max-height:0}.payKeyboard:after{content:"";display:block;position:absolute;left:0;top:0;right:0;height:1px;background-color:#ddd;transform:scaleY(.5)}.payKeyboard__hd{position:relative}.payKeyboard__intro{display:flex;align-items:center;justify-content:center;font-size:13px;min-height:30px;color:#999}.payKeyboard__intro span{margin-right:5px;width:13px}.payKeyboard__intro span *{display:block}.payKeyboard__arrow{position:absolute;width:28px;height:26px;right:8px;top:7px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAYAAABIB77kAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAHKADAAQAAAABAAAAEgAAAADbjUrDAAABTElEQVQ4Eb3UP06EQBQGcGYMmZrWQKOnsNNOaYxrQmNHAafYxltACFdQi9VYaWw9gzaeYiUEv4/NbFaWP0MEXzLszM7M++VNGKw0TS+sf4okSW5lVVV3WZadz20Sg7GUeKiyLO/nRDXGoggyanSO493FCBH8YgeheLxTok0Mxkratn2KzuRoG+Y4zkIAs/I8PyqK4hVdj2PEWghxFUXR02Y47tmFBUHwXYNMNxXah9HZglOgQ9ge+BfUBGN+fS3YryMMw090ztCMXyRTjMCvI+UfOpDkGP0XtN4XaQzG3J0gJ4fQNszzvGvf99fc3xa9IDd0ofhInGB6uZN0NYRx7SDIRU0Ud7QEeMA5BsaPrusu+irbrDQEubiJbhOMwLjHqEKdnCiqeUN1h/VmIZ5R2aVJZTrH3rXQE22/cRx/SCkDoO9oD0qpmzEYc/4ApjHAh9OIbCUAAAAASUVORK5CYII=");background-size:14px 8px;background-repeat:no-repeat;background-position:50%}.payKeyboard__bd{display:flex}.payKeyboard__keys{flex:3}.payKeyboard__function{flex:1;display:flex;flex-direction:column}.payKeyboard__logo{height:16px;margin-left:5px;padding-left:5px;border-left:1px solid #999}.payKeyboard__key{font-family:AlipayNumber,sans-serif;flex:1;height:7.14286vh;text-align:center;font-size:25px;color:#333;background:#fff;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-right:1px solid #f5f5f5;border-top:1px solid #f5f5f5}.payKeyboard__key:active{background-color:#f5f5f5;color:#333}.payKeyboard__del{position:relative;flex:none;border-right:0;border-bottom:1px solid #f5f5f5}.payKeyboard__del svg{width:25px}.payKeyboard__del:before{display:block;position:absolute;top:0;right:0;bottom:0;left:0;content:""}.payKeyboard__point{display:none}.payKeyboard__point--display{display:flex}.payKeyboard__enter{--primary:#1677ff;flex:3;display:flex;justify-content:center;align-items:center;background-color:var(--primary,"#1677FF");font-size:18px;color:#fff;border-right:0;border-top:0}.payKeyboard__enter--disabled{background-color:#f5f5f5;color:#999}.payKeyboard__enter:active{color:#fff;background-color:var(--primary,"#1677FF")}.payKeyboard__row{display:flex}.payKeyboard__zero{flex:2}.payKeyboard__loading{display:none;width:35px;height:35px;background-size:35px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgd2lkdGg9IjcxIiBoZWlnaHQ9IjcxIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCI+PGc+PHBhdGggZD0iTTY0IDkuNzVBNTQuMjUgNTQuMjUgMCAwMDkuNzUgNjRIMGE2NCA2NCAwIDAxMTI4IDBoLTkuNzVBNTQuMjUgNTQuMjUgMCAwMDY0IDkuNzV6IiBmaWxsPSIjZmZmIi8+PGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgNjQgNjQiIHRvPSIzNjAgNjQgNjQiIGR1cj0iMTIwMG1zIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIvPjwvZz48L3N2Zz4=")}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3){.payKeyboard__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}',""]),e.exports=t},7:function(e,t){e.exports='<svg viewBox="0 0 52 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>插销</title><g id="输出" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="金额键盘带按钮" transform="translate(-630.000000, -119.000000)" fill="#333333" fill-rule="nonzero"><g id="编组-8" transform="translate(630.000000, 119.000000)"><path d="M45,0 C48.8659932,0 52,3.13400675 52,7 L52,7 L52,31 C52,34.8659932 48.8659932,38 45,38 L45,38 L16.3742656,38 C14.2113201,38 12.1698534,37.0001043 10.8438874,35.2912605 L10.8438874,35.2912605 L1.5325666,23.2912605 C-0.426929077,20.765953 -0.426929077,17.234047 1.5325666,14.7087395 L1.5325666,14.7087395 L10.8438874,2.70873952 C12.1698534,0.99989572 14.2113201,0 16.3742656,0 L16.3742656,0 Z M45,3 L16.3742656,3 L16.1434178,3.00665514 C14.9940748,3.0730036 13.9243884,3.63239912 13.2140495,4.54785116 L13.2140495,4.54785116 L3.9027287,16.5478512 L3.7737379,16.7237024 C2.78480843,18.1514223 2.82780536,20.0668373 3.9027287,21.4521488 L3.9027287,21.4521488 L13.2140495,33.4521488 L13.3608257,33.6304512 C14.1178346,34.4978202 15.2155448,35 16.3742656,35 L16.3742656,35 L45,35 L45.1996403,34.9951047 C47.3160315,34.8910789 49,33.1421954 49,31 L49,31 L49,7 L48.9951047,6.80035966 C48.8910789,4.68396847 47.1421954,3 45,3 L45,3 Z M25.502,13.001 L29.7565729,17.208 L34.01,13.001 L38.232,13.001 L38.2422424,13.0113777 L31.8775729,19.306 L38.524,25.881 L34.282,25.881 L29.7565729,21.404 L25.23,25.881 L20.99,25.881 L27.6355729,19.306 L21.2716797,13.0113777 L21.281,13.001 L25.502,13.001 Z" id="形状结合"></path></g></g></g></svg>'}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayMerchant",[],e):"object"==typeof exports?exports.PayMerchant=e():t.PayMerchant=e()}(window,(function(){return function(t){var e={};function n(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},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=37)}({0:function(t,e,n){"use strict";function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var i=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(this,t),this.events={},this.eventsList=e}var e,n,i;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=i},1:function(t,e,n){"use strict";var a,r=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function s(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},a=[],r=0;r<t.length;r++){var i=t[r],c=e.base?i[0]+e.base:i[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var f=s(l),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(o[f].references++,o[f].updater(h)):o.push({identifier:l,updater:y(h,e),references:1}),a.push(l)}return a}function u(t){var e=document.createElement("style"),a=t.attributes||{};if(void 0===a.nonce){var r=n.nc;r&&(a.nonce=r)}if(Object.keys(a).forEach((function(t){e.setAttribute(t,a[t])})),"function"==typeof t.insert)t.insert(e);else{var o=i(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var l,f=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function h(t,e,n,a){var r=n?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(t.styleSheet)t.styleSheet.cssText=f(e,r);else{var i=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(i,o[e]):t.appendChild(i)}}function p(t,e,n){var a=n.css,r=n.media,i=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var d=null,v=0;function y(t,e){var n,a,r;if(e.singleton){var i=v++;n=d||(d=u(e)),a=h.bind(null,n,i,!1),r=h.bind(null,n,i,!0)}else n=u(e),a=p.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var a=0;a<n.length;a++){var r=s(n[a]);o[r].references--}for(var i=c(t,e),u=0;u<n.length;u++){var l=s(n[u]);0===o[l].references&&(o[l].updater(),o.splice(l,1))}n=i}}}},18:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options,a=t.icons;return e+=' <div class="PayMerchant">\n ',n.avatar&&(e+='\n <div class="PayMerchant__avatar">\n <img src="',e+=n.avatar,e+='" alt="avatar">\n </div>\n '),e+="\n ",n.name&&(e+='\n <div class="PayMerchant__name">\n ',e+=n.name,e+="\n </div>\n "),e+='\n <div class="PayMerchant__tag">\n <span class="PayMerchant__tag--icon">\n ',e+=a.checked,e+='\n </span>\n <span class="PayMerchant__tag--text">\n ',e+=n.tag,e+="\n </span>\n </div>\n</div>\n"}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var r=(o=a,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([r]).join("\n")}var o,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,a){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(a)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);a&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},37:function(t,e,n){"use strict";n.r(e);n(47);var a=n(7),r={checked:n.n(a).a},i=n(18),o=n.n(i);function s(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,a;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,icons:r,getObject:function(t){return t}}),this.avatar=this.container.querySelector(".PayMerchant__avatar"),this.name=this.container.querySelector(".PayMerchant__name"),this.tag=this.container.querySelector(".PayMerchant__tag")}}])&&s(e.prototype,n),a&&s(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}(),u=n(0);function l(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payMerchant")[0],avatar:t.avatar||"",name:t.name||"商户",tag:t.tag||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.avatar=this.options.avatar,this.name=this.options.name,this.tag=this.options.tag,this.template=new c({container:this.container,options:this.options}),this.events=new u.a(["init","change"]),this.init()}var e,n,a;return e=t,a=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"init",value:function(){this._initTag(),this.events.trigger("init")}},{key:"setAvatar",value:function(t){t!==this.avatar&&(this.avatar=t,this.events.trigger("change",{avatar:this.avatar,name:this.name,tag:this.tag})),this.template.avatar.querySelector("img").src=t}},{key:"setName",value:function(t){t!==this.name&&(this.name=t,this.events.trigger("change",{avatar:this.avatar,name:this.name,tag:this.tag})),this.template.name.innerText=t}},{key:"setTag",value:function(t){t!==this.tag&&(this.tag=t,this.events.trigger("change",{avatar:this.avatar,name:this.name,tag:this.tag})),this.template.tag.querySelector(".PayMerchant__tag--text").innerText=t,this.template.tag.style.display="inline-flex"}},{key:"hideTag",value:function(){this.template.tag.querySelector(".PayMerchant__tag--text").innerText="",this.template.tag.style.display="none"}},{key:"reset",value:function(){this.avatar=this.options.avatar,this.name=this.options.name,this.template.avatar.querySelector("img").src=this.options.avatar,this.template.name.innerText=this.options.name,this._initTag()}},{key:"_initTag",value:function(){this.options.tag?(this.template.tag.querySelector(".PayMerchant__tag--text").innerText=this.options.tag,this.template.tag.style.display="inline-flex"):this.template.tag.style.display="none"}}])&&l(e.prototype,n),a&&l(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=f},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},a=Object.create(n),r=/["&'<>]/;a.$escape=function(t){return function(t){var e=""+t,n=r.exec(e);if(!n)return t;var a="",i=void 0,o=void 0,s=void 0;for(i=n.index,o=0;i<e.length;i++){switch(e.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(a+=e.substring(o,i)),o=i+1,a+=s}return o!==i?a+e.substring(o,i):a}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},a.$each=function(t,e){if(Array.isArray(t))for(var n=0,a=t.length;n<a;n++)e(t[n],n);else for(var r in t)e(t[r],r)},t.exports=a}).call(this,n(5))},47:function(t,e,n){var a=n(1),r=n(48);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};a(r,i);t.exports=r.locals||{}},48:function(t,e,n){(e=n(2)(!1)).push([t.i,".PayMerchant{display:flex;align-items:center}.PayMerchant__avatar{width:40px;height:40px;overflow:hidden;border-radius:2px;margin-right:8px}.PayMerchant__avatar img{display:block;width:100%;height:100%}.PayMerchant__name{font-size:16px;color:#000;margin-right:8px}.PayMerchant__tag{display:inline-flex;align-items:center;padding:0 1px;font-size:12px;color:#1677ff;border:1px solid #1677ff;border-radius:2px}.PayMerchant__tag--icon{display:inline-flex;margin-right:2px}.PayMerchant__tag--icon svg{width:1em;height:1em}.PayMerchant__tag--text{display:inline-flex;max-width:80px;white-space:nowrap;overflow:hidden}",""]),t.exports=e},5:function(t,e){function n(t){return(n="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})(t)}var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(a=window)}t.exports=a},7:function(t,e){t.exports='<svg viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>right备份 12</title><defs><linearGradient x1="0.915857264%" y1="1.09287579e-14%" x2="100%" y2="99.0841427%" id="linearGradient-1"><stop stop-color="#168BFF" offset="0%"></stop><stop stop-color="#1664FF" offset="100%"></stop></linearGradient></defs><g id="全新设计(以这个为准)" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="浮层" transform="translate(-688.000000, -454.000000)" fill="url(#linearGradient-1)"><g id="right备份-12" transform="translate(688.000000, 454.000000)"><path d="M15.0000202,0.413243368 C6.94337021,0.413243368 0.413243368,6.94676248 0.413243368,15.0000202 C0.413243368,23.0532779 6.94676248,29.5867971 15.0000202,29.5867971 C23.0532779,29.5867971 29.5867971,23.0566702 29.5867971,15.0000202 C29.5867971,6.94337021 23.0566702,0.413243368 15.0000202,0.413243368 Z M22.0050654,11.4686633 L14.3894109,19.0843177 L14.1451672,19.3285614 C13.4667125,20.0070162 12.3676158,20.0070162 11.6891611,19.3285614 L8.49703156,16.1364319 C8.08995872,15.7293591 8.08995872,15.071258 8.49703156,14.6641851 C8.9041044,14.2571123 9.56220549,14.2571123 9.96927834,14.6641851 L12.3031626,16.9980694 C12.64239,17.3372968 13.1919383,17.3372968 13.5311657,16.9980694 L20.5294263,9.99641653 C20.9364992,9.58934368 21.5946003,9.58934368 22.0016731,9.99641653 C22.4087459,10.4034894 22.4087459,11.0615905 22.0050654,11.4686633 Z" id="形状"></path></g></g></g></svg>'}}).default})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayMerchant",[],e):"object"==typeof exports?exports.PayMerchant=e():t.PayMerchant=e()}(window,(function(){return function(t){var e={};function n(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},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=46)}({0:function(t,e,n){"use strict";function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var i=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(this,t),this.events={},this.eventsList=e}var e,n,i;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=i},1:function(t,e,n){"use strict";var a,r=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function s(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},a=[],r=0;r<t.length;r++){var i=t[r],c=e.base?i[0]+e.base:i[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var f=s(l),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(o[f].references++,o[f].updater(h)):o.push({identifier:l,updater:y(h,e),references:1}),a.push(l)}return a}function u(t){var e=document.createElement("style"),a=t.attributes||{};if(void 0===a.nonce){var r=n.nc;r&&(a.nonce=r)}if(Object.keys(a).forEach((function(t){e.setAttribute(t,a[t])})),"function"==typeof t.insert)t.insert(e);else{var o=i(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var l,f=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function h(t,e,n,a){var r=n?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(t.styleSheet)t.styleSheet.cssText=f(e,r);else{var i=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(i,o[e]):t.appendChild(i)}}function p(t,e,n){var a=n.css,r=n.media,i=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var d=null,v=0;function y(t,e){var n,a,r;if(e.singleton){var i=v++;n=d||(d=u(e)),a=h.bind(null,n,i,!1),r=h.bind(null,n,i,!0)}else n=u(e),a=p.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var a=0;a<n.length;a++){var r=s(n[a]);o[r].references--}for(var i=c(t,e),u=0;u<n.length;u++){var l=s(n[u]);0===o[l].references&&(o[l].updater(),o.splice(l,1))}n=i}}}},18:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options,a=t.icons;return e+=' <div class="PayMerchant">\n ',n.avatar&&(e+='\n <div class="PayMerchant__avatar">\n <img src="',e+=n.avatar,e+='" alt="avatar">\n </div>\n '),e+="\n ",n.name&&(e+='\n <div class="PayMerchant__name">\n ',e+=n.name,e+="\n </div>\n "),e+='\n <div class="PayMerchant__tag">\n <span class="PayMerchant__tag--icon">\n ',e+=a.checked,e+='\n </span>\n <span class="PayMerchant__tag--text">\n ',e+=n.tag,e+="\n </span>\n </div>\n</div>\n"}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var r=(o=a,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([r]).join("\n")}var o,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,a){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(a)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);a&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},a=Object.create(n),r=/["&'<>]/;a.$escape=function(t){return function(t){var e=""+t,n=r.exec(e);if(!n)return t;var a="",i=void 0,o=void 0,s=void 0;for(i=n.index,o=0;i<e.length;i++){switch(e.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(a+=e.substring(o,i)),o=i+1,a+=s}return o!==i?a+e.substring(o,i):a}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},a.$each=function(t,e){if(Array.isArray(t))for(var n=0,a=t.length;n<a;n++)e(t[n],n);else for(var r in t)e(t[r],r)},t.exports=a}).call(this,n(5))},46:function(t,e,n){"use strict";n.r(e);n(58);var a=n(8),r={checked:n.n(a).a},i=n(18),o=n.n(i);function s(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,a;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,icons:r,getObject:function(t){return t}}),this.avatar=this.container.querySelector(".PayMerchant__avatar"),this.name=this.container.querySelector(".PayMerchant__name"),this.tag=this.container.querySelector(".PayMerchant__tag")}}])&&s(e.prototype,n),a&&s(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}(),u=n(0);function l(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payMerchant")[0],avatar:t.avatar||"",name:t.name||"商户",tag:t.tag||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.avatar=this.options.avatar,this.name=this.options.name,this.tag=this.options.tag,this.template=new c({container:this.container,options:this.options}),this.events=new u.a(["init","change"]),this.init()}var e,n,a;return e=t,a=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"init",value:function(){this._initTag(),this.events.trigger("init")}},{key:"setAvatar",value:function(t){t!==this.avatar&&(this.avatar=t,this.events.trigger("change",{avatar:this.avatar,name:this.name,tag:this.tag})),this.template.avatar.querySelector("img").src=t}},{key:"setName",value:function(t){t!==this.name&&(this.name=t,this.events.trigger("change",{avatar:this.avatar,name:this.name,tag:this.tag})),this.template.name.innerText=t}},{key:"setTag",value:function(t){t!==this.tag&&(this.tag=t,this.events.trigger("change",{avatar:this.avatar,name:this.name,tag:this.tag})),this.template.tag.querySelector(".PayMerchant__tag--text").innerText=t,this.template.tag.style.display="inline-flex"}},{key:"hideTag",value:function(){this.template.tag.querySelector(".PayMerchant__tag--text").innerText="",this.template.tag.style.display="none"}},{key:"reset",value:function(){this.avatar=this.options.avatar,this.name=this.options.name,this.template.avatar.querySelector("img").src=this.options.avatar,this.template.name.innerText=this.options.name,this._initTag()}},{key:"_initTag",value:function(){this.options.tag?(this.template.tag.querySelector(".PayMerchant__tag--text").innerText=this.options.tag,this.template.tag.style.display="inline-flex"):this.template.tag.style.display="none"}}])&&l(e.prototype,n),a&&l(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=f},5:function(t,e){function n(t){return(n="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})(t)}var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(a=window)}t.exports=a},58:function(t,e,n){var a=n(1),r=n(59);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1};a(r,i);t.exports=r.locals||{}},59:function(t,e,n){(e=n(2)(!1)).push([t.i,".PayMerchant{display:flex;align-items:center}.PayMerchant__avatar{width:40px;height:40px;overflow:hidden;border-radius:2px;margin-right:8px}.PayMerchant__avatar img{display:block;width:100%;height:100%}.PayMerchant__name{font-size:16px;color:#000;margin-right:8px}.PayMerchant__tag{display:inline-flex;align-items:center;padding:0 1px;font-size:12px;color:#1677ff;border:1px solid #1677ff;border-radius:2px}.PayMerchant__tag--icon{display:inline-flex;margin-right:2px}.PayMerchant__tag--icon svg{width:1em;height:1em}.PayMerchant__tag--text{display:inline-flex;max-width:80px;white-space:nowrap;overflow:hidden}",""]),t.exports=e},8:function(t,e){t.exports='<svg viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>right备份 12</title><defs><linearGradient x1="0.915857264%" y1="1.09287579e-14%" x2="100%" y2="99.0841427%" id="linearGradient-1"><stop stop-color="#168BFF" offset="0%"></stop><stop stop-color="#1664FF" offset="100%"></stop></linearGradient></defs><g id="全新设计(以这个为准)" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="浮层" transform="translate(-688.000000, -454.000000)" fill="url(#linearGradient-1)"><g id="right备份-12" transform="translate(688.000000, 454.000000)"><path d="M15.0000202,0.413243368 C6.94337021,0.413243368 0.413243368,6.94676248 0.413243368,15.0000202 C0.413243368,23.0532779 6.94676248,29.5867971 15.0000202,29.5867971 C23.0532779,29.5867971 29.5867971,23.0566702 29.5867971,15.0000202 C29.5867971,6.94337021 23.0566702,0.413243368 15.0000202,0.413243368 Z M22.0050654,11.4686633 L14.3894109,19.0843177 L14.1451672,19.3285614 C13.4667125,20.0070162 12.3676158,20.0070162 11.6891611,19.3285614 L8.49703156,16.1364319 C8.08995872,15.7293591 8.08995872,15.071258 8.49703156,14.6641851 C8.9041044,14.2571123 9.56220549,14.2571123 9.96927834,14.6641851 L12.3031626,16.9980694 C12.64239,17.3372968 13.1919383,17.3372968 13.5311657,16.9980694 L20.5294263,9.99641653 C20.9364992,9.58934368 21.5946003,9.58934368 22.0016731,9.99641653 C22.4087459,10.4034894 22.4087459,11.0615905 22.0050654,11.4686633 Z" id="形状"></path></g></g></g></svg>'}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayMessage",[],t):"object"==typeof exports?exports.PayMessage=t():e.PayMessage=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=41)}({1:function(e,t,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],s=t.base?i[0]+t.base:i[0],u=n[s]||0,f="".concat(s," ").concat(u);n[s]=u+1;var l=c(f),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(a[l].references++,a[l].updater(d)):a.push({identifier:f,updater:b(d,t),references:1}),o.push(f)}return o}function u(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=l(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var y=null,v=0;function b(e,t){var n,o,r;if(t.singleton){var i=v++;n=y||(y=u(t)),o=d.bind(null,n,i,!1),r=d.bind(null,n,i,!0)}else n=u(t),o=p.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=c(n[o]);a[r].references--}for(var i=s(e,t),u=0;u<n.length;u++){var f=c(n[u]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=i}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),i=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([r]).join("\n")}var a,c,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);o&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},24:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options;return n.type?(t+='\n<div class="PayMessage PayMessage--',t+=n.type,t+='">\n'):t+='\n<div class="PayMessage PayMessage--activity">\n',t+="\n ",n.title&&(t+='\n <div class="PayMessage__title">\n <span>',t+=n.title,t+=" </span>\n </div>\n "),t+="\n ",n.content&&(t+='\n <div class="PayMessage__content">\n <p>',t+=n.content,t+="</p>\n </div>\n "),t+="\n</div>\n"}},3:function(e,t,n){"use strict";e.exports=n(4)},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},o=Object.create(n),r=/["&'<>]/;o.$escape=function(e){return function(e){var t=""+e,n=r.exec(t);if(!n)return e;var o="",i=void 0,a=void 0,c=void 0;for(i=n.index,a=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=c}return a!==i?o+t.substring(a,i):o}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},o.$each=function(e,t){if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t(e[n],n);else for(var r in e)t(e[r],r)},e.exports=o}).call(this,n(5))},41:function(e,t,n){"use strict";n.r(t);n(57);var o=n(24),r=n.n(o);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,o;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=r()({options:this.options,getObject:function(e){return e}})}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("toast")[0],title:e.title||"",content:e.content||"",type:e.type||""};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.template=new a({container:this.container,options:this.options})}var t,n,o;return t=e,o=[{key:"version",get:function(){return"0.0.19"}}],(n=null)&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},57:function(e,t,n){var o=n(1),r=n(58);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},58:function(e,t,n){(t=n(2)(!1)).push([e.i,".PayMessage{width:100%;padding:10px;margin:0;box-sizing:border-box;border-radius:4px;position:relative;background-color:#fff;overflow:hidden;opacity:1;display:flex;align-items:flex-start;transition:opacity .2s}.PayMessage--discount{justify-content:space-between;background-color:#fff}.PayMessage--discount .PayMessage__title{background-color:#fff;color:#666;font-size:14px;padding:0}.PayMessage--discount .PayMessage__content{color:#ff934b}.PayMessage--activity{background-color:#f9f9f9}.PayMessage--activity .PayMessage__content{flex:1}.PayMessage__title{height:20px;line-height:20px;background-color:#ff934b;border-radius:4px;padding:0 5px;margin-right:6px;font-size:12px;color:#fff}.PayMessage__content{color:#666;font-size:14px}.PayMessage__content p{line-height:20px;max-height:40px;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;word-break:break-all}",""]),e.exports=t}}).default})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayMessage",[],t):"object"==typeof exports?exports.PayMessage=t():e.PayMessage=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=51)}({1:function(e,t,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],s=t.base?i[0]+t.base:i[0],u=n[s]||0,f="".concat(s," ").concat(u);n[s]=u+1;var l=c(f),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(a[l].references++,a[l].updater(d)):a.push({identifier:f,updater:b(d,t),references:1}),o.push(f)}return o}function u(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=l(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var y=null,v=0;function b(e,t){var n,o,r;if(t.singleton){var i=v++;n=y||(y=u(t)),o=d.bind(null,n,i,!1),r=d.bind(null,n,i,!0)}else n=u(t),o=p.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=c(n[o]);a[r].references--}for(var i=s(e,t),u=0;u<n.length;u++){var f=c(n[u]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=i}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),i=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([r]).join("\n")}var a,c,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);o&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},24:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options;return n.type?(t+='\n<div class="PayMessage PayMessage--',t+=n.type,t+='">\n'):t+='\n<div class="PayMessage PayMessage--activity">\n',t+="\n ",n.title&&(t+='\n <div class="PayMessage__title">\n <span>',t+=n.title,t+=" </span>\n </div>\n "),t+="\n ",n.content&&(t+='\n <div class="PayMessage__content">\n <p>',t+=n.content,t+="</p>\n </div>\n "),t+="\n</div>\n"}},3:function(e,t,n){"use strict";e.exports=n(4)},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},o=Object.create(n),r=/["&'<>]/;o.$escape=function(e){return function(e){var t=""+e,n=r.exec(t);if(!n)return e;var o="",i=void 0,a=void 0,c=void 0;for(i=n.index,a=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=c}return a!==i?o+t.substring(a,i):o}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},o.$each=function(e,t){if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t(e[n],n);else for(var r in e)t(e[r],r)},e.exports=o}).call(this,n(5))},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},51:function(e,t,n){"use strict";n.r(t);n(68);var o=n(24),r=n.n(o);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,o;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=r()({options:this.options,getObject:function(e){return e}})}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("toast")[0],title:e.title||"",content:e.content||"",type:e.type||""};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.template=new a({container:this.container,options:this.options})}var t,n,o;return t=e,o=[{key:"version",get:function(){return"0.0.20"}}],(n=null)&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},68:function(e,t,n){var o=n(1),r=n(69);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},69:function(e,t,n){(t=n(2)(!1)).push([e.i,".PayMessage{width:100%;padding:10px;margin:0;box-sizing:border-box;border-radius:4px;position:relative;background-color:#fff;overflow:hidden;opacity:1;display:flex;align-items:flex-start;transition:opacity .2s}.PayMessage--discount{justify-content:space-between;background-color:#fff}.PayMessage--discount .PayMessage__title{background-color:#fff;color:#666;font-size:14px;padding:0}.PayMessage--discount .PayMessage__content{color:#ff934b}.PayMessage--activity{background-color:#f9f9f9}.PayMessage--activity .PayMessage__content{flex:1}.PayMessage__title{height:20px;line-height:20px;background-color:#ff934b;border-radius:4px;padding:0 5px;margin-right:6px;font-size:12px;color:#fff}.PayMessage__content{color:#666;font-size:14px}.PayMessage__content p{line-height:20px;max-height:40px;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;word-break:break-all}",""]),e.exports=t}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayProvider",[],t):"object"==typeof exports?exports.PayProvider=t():e.PayProvider=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=82)}({0:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.events={},this.eventsList=t}var t,n,i;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&r(t.prototype,n),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=i},1:function(e,t,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],s=t.base?i[0]+t.base:i[0],u=n[s]||0,f="".concat(s," ").concat(u);n[s]=u+1;var l=c(f),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(a[l].references++,a[l].updater(d)):a.push({identifier:f,updater:y(d,t),references:1}),o.push(f)}return o}function u(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=l(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var h=null,v=0;function y(e,t){var n,o,r;if(t.singleton){var i=v++;n=h||(h=u(t)),o=d.bind(null,n,i,!1),r=d.bind(null,n,i,!0)}else n=u(t),o=p.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=c(n[o]);a[r].references--}for(var i=s(e,t),u=0;u<n.length;u++){var f=c(n[u]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=i}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),i=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([r]).join("\n")}var a,c,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);o&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},3:function(e,t,n){"use strict";e.exports=n(4)},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},o=Object.create(n),r=/["&'<>]/;o.$escape=function(e){return function(e){var t=""+e,n=r.exec(t);if(!n)return e;var o="",i=void 0,a=void 0,c=void 0;for(i=n.index,a=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=c}return a!==i?o+t.substring(a,i):o}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},o.$each=function(e,t){if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t(e[n],n);else for(var r in e)t(e[r],r)},e.exports=o}).call(this,n(5))},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},71:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options;return t+=' <div class="PayProvider" style="\n ',n.height&&(t+=" height : ",t+=n.height,t+=" ;"),t+="\n ",n.background&&(t+=" background : ",t+=n.background,t+=" ;"),t+='\n ">\n ',n.logo&&(t+='\n <div class="PayProvider__logo">\n <img src="',t+=n.logo,t+='" alt="logo">\n </div>\n '),t+="\n ",n.name&&(t+='\n <div class="PayProvider__name">\n ',t+=n.name,t+="\n </div>\n "),t+="\n</div>\n"}},76:function(e,t,n){var o=n(1),r=n(77);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},77:function(e,t,n){(t=n(2)(!1)).push([e.i,".PayProvider{display:flex;align-items:center;flex-direction:column;justify-content:space-between;padding:24px}.PayProvider__logo{margin-bottom:8px}.PayProvider__logo img{width:40px;height:40px;display:block;border-radius:20px}.PayProvider__name{color:#fff;font-size:16px}",""]),e.exports=t},82:function(e,t,n){"use strict";n.r(t);n(76);var o=n(71),r=n.n(o);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,o;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=r()({options:this.options,getObject:function(e){return e}}),this.wrapper=this.container.querySelector(".PayProvider"),this.logo=this.container.querySelector(".PayProvider__logo"),this.name=this.container.querySelector(".PayProvider__name")}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),c=n(0);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("payProvider")[0],height:e.height||"",background:e.background||"",logo:e.logo||"",name:e.name||"商户"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.logo=this.options.logo,this.name=this.options.name,this.background=this.options.background,this.template=new a({container:this.container,options:this.options}),this.events=new c.a(["init","change"]),this.init()}var t,n,o;return t=e,o=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"init",value:function(){this.events.trigger("init")}},{key:"setLogo",value:function(e){e!==this.logo&&(this.logo=e,this.events.trigger("change",{logo:this.logo})),this.template.logo.querySelector("img").src=e}},{key:"setName",value:function(e){e!==this.name&&(this.name=e,this.events.trigger("change",{name:this.name})),this.template.name.innerText=e}},{key:"setBackground",value:function(e){e!==this.background&&(this.background=e,this.events.trigger("change",{background:this.background})),this.template.wrapper.style.background=e}},{key:"reset",value:function(){this.template.logo.querySelector("img").src=this.options.logo,this.template.name.innerText=this.options.name,this.template.wrapper.style.background=this.options.background}}])&&s(t.prototype,n),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u}}).default})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayProvider",[],t):"object"==typeof exports?exports.PayProvider=t():e.PayProvider=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=53)}({0:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.events={},this.eventsList=t}var t,n,i;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&r(t.prototype,n),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=i},1:function(e,t,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],s=t.base?i[0]+t.base:i[0],u=n[s]||0,f="".concat(s," ").concat(u);n[s]=u+1;var l=c(f),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(a[l].references++,a[l].updater(d)):a.push({identifier:f,updater:y(d,t),references:1}),o.push(f)}return o}function u(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=l(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var h=null,v=0;function y(e,t){var n,o,r;if(t.singleton){var i=v++;n=h||(h=u(t)),o=d.bind(null,n,i,!1),r=d.bind(null,n,i,!0)}else n=u(t),o=p.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=c(n[o]);a[r].references--}for(var i=s(e,t),u=0;u<n.length;u++){var f=c(n[u]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=i}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),i=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([r]).join("\n")}var a,c,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);o&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},3:function(e,t,n){"use strict";e.exports=n(4)},33:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options;return t+=' <div class="PayProvider" style="\n ',n.height&&(t+=" height : ",t+=n.height,t+=" ;"),t+="\n ",n.background&&(t+=" background : ",t+=n.background,t+=" ;"),t+='\n ">\n ',n.logo&&(t+='\n <div class="PayProvider__logo">\n <img src="',t+=n.logo,t+='" alt="logo">\n </div>\n '),t+="\n ",n.name&&(t+='\n <div class="PayProvider__name">\n ',t+=n.name,t+="\n </div>\n "),t+="\n</div>\n"}},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},o=Object.create(n),r=/["&'<>]/;o.$escape=function(e){return function(e){var t=""+e,n=r.exec(t);if(!n)return e;var o="",i=void 0,a=void 0,c=void 0;for(i=n.index,a=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=c}return a!==i?o+t.substring(a,i):o}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},o.$each=function(e,t){if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t(e[n],n);else for(var r in e)t(e[r],r)},e.exports=o}).call(this,n(5))},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},53:function(e,t,n){"use strict";n.r(t);n(78);var o=n(33),r=n.n(o);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,o;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=r()({options:this.options,getObject:function(e){return e}}),this.wrapper=this.container.querySelector(".PayProvider"),this.logo=this.container.querySelector(".PayProvider__logo"),this.name=this.container.querySelector(".PayProvider__name")}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),c=n(0);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("payProvider")[0],height:e.height||"",background:e.background||"",logo:e.logo||"",name:e.name||"商户"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.logo=this.options.logo,this.name=this.options.name,this.background=this.options.background,this.template=new a({container:this.container,options:this.options}),this.events=new c.a(["init","change"]),this.init()}var t,n,o;return t=e,o=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"init",value:function(){this.events.trigger("init")}},{key:"setLogo",value:function(e){e!==this.logo&&(this.logo=e,this.events.trigger("change",{logo:this.logo})),this.template.logo.querySelector("img").src=e}},{key:"setName",value:function(e){e!==this.name&&(this.name=e,this.events.trigger("change",{name:this.name})),this.template.name.innerText=e}},{key:"setBackground",value:function(e){e!==this.background&&(this.background=e,this.events.trigger("change",{background:this.background})),this.template.wrapper.style.background=e}},{key:"reset",value:function(){this.template.logo.querySelector("img").src=this.options.logo,this.template.name.innerText=this.options.name,this.template.wrapper.style.background=this.options.background}}])&&s(t.prototype,n),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u},78:function(e,t,n){var o=n(1),r=n(79);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},79:function(e,t,n){(t=n(2)(!1)).push([e.i,".PayProvider{display:flex;align-items:center;flex-direction:column;justify-content:space-between;padding:24px}.PayProvider__logo{margin-bottom:8px}.PayProvider__logo img{width:40px;height:40px;display:block;border-radius:20px}.PayProvider__name{color:#fff;font-size:16px}",""]),e.exports=t}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayRemark",[],t):"object"==typeof exports?exports.PayRemark=t():e.PayRemark=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=39)}({0:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r(this,e),this.events={},this.eventsList=t}var t,n,i;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=i},1:function(e,t,n){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],a=0;a<e.length;a++){var i=e[a],c=t.base?i[0]+t.base:i[0],p=n[c]||0,l="".concat(c," ").concat(p);n[c]=p+1;var u=s(l),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==u?(o[u].references++,o[u].updater(d)):o.push({identifier:l,updater:m(d,t),references:1}),r.push(l)}return r}function p(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=i(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function f(e,t,n){var r=n.css,a=n.media,i=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,y=0;function m(e,t){var n,r,a;if(t.singleton){var i=y++;n=h||(h=p(t)),r=d.bind(null,n,i,!1),a=d.bind(null,n,i,!0)}else n=p(t),r=f.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var a=s(n[r]);o[a].references--}for(var i=c(e,t),p=0;p<n.length;p++){var l=s(n[p]);0===o[l].references&&(o[l].updater(),o.splice(l,1))}n=i}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=(o=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([a]).join("\n")}var o,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&a[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},20:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options;return t+='<div class="payRemark">\n <div class="payRemark__add">',t+=n.addText,t+='</div>\n <div class="payRemark__contentWrapper">\n <div class="payRemark__content"></div>\n <div class="payRemark__change">修改</div>\n </div>\n <div class="payRemark__wrapper">\n <div class="payRemark__box">\n <div class="payRemark__box--header">添加备注</div>\n <div class="payRemark__box--input">\n <input placeholder=',t+=n.placeholder,t+=" autofocus maxlength=",t+=n.maxInputLength,t+=' />\n </div>\n <div class="payRemark__box--footer">\n <div class="payRemark__box--button cancel">取消</div>\n <div class="payRemark__box--button confirm">确定</div>\n </div>\n </div>\n </div>\n</div>\n'}},3:function(e,t,n){"use strict";e.exports=n(4)},39:function(e,t,n){"use strict";n.r(t);n(51);var r=n(20),a=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=a()({options:this.options,getObject:function(e){return e}}),this.input=this.container.getElementsByTagName("input")[0],this.header=this.container.getElementsByClassName("payRemark__box--header")[0],this.remarkWindow=this.container.getElementsByClassName("payRemark__wrapper")[0],this.add=this.container.getElementsByClassName("payRemark__add")[0],this.contentWrapper=this.container.getElementsByClassName("payRemark__contentWrapper")[0],this.content=this.container.getElementsByClassName("payRemark__content")[0],this.btn=this.container.getElementsByClassName("payRemark__box--footer")[0]}}])&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),s=n(0);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("remark")[0],placeholder:e.placeholder||"请输入备注",zIndex:e.zIndex||1e3,addText:e.addText||"添加备注",addTitle:e.addTitle||"添加备注",changeTitle:e.changeTitle||"修改备注",maxInputLength:e.maxInputLength||20,maxRemarkLength:e.maxRemarkLength||"200px"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.template=new o({container:this.container,options:this.options}),this.events=new s.a(["open","close","change"]),this.content="",this.handleBtnClick(),this.init()}var t,n,r;return t=e,r=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"init",value:function(){this.setMaxWidth(),this.setZIndex()}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"setMaxWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"200px";"number"==typeof e&&(e+="px"),this.template.contentWrapper.style.setProperty("--contentMaxWidth",e)}},{key:"setZIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.template.remarkWindow.style.setProperty("--userSetZIndex",e)}},{key:"handleBtnClick",value:function(){var e=this;this.container.addEventListener("click",(function(t){switch(t.target.className){case"payRemark__change":case"payRemark__add":e.events.trigger("open"),e._openRemarkWindow(t.target.className);break;case"payRemark__box--button confirm":e.events.trigger("change",{value:e._confirmValue()}),e.events.trigger("close"),e._confirmInput();break;case"payRemark__box--button cancel":e.events.trigger("close"),e._cancelInput()}}))}},{key:"_openRemarkWindow",value:function(e){e.indexOf("change")>-1&&(this.template.header.innerHTML=this.options.changeTitle),e.indexOf("add")>-1&&(this.template.header.innerHTML=this.options.addTitle),this.template.remarkWindow.style.display="block",this.template.input.focus()}},{key:"_confirmValue",value:function(){return this.content=this.template.input.value,this.content}},{key:"_confirmInput",value:function(){this.content=this.template.input.value,this.content?(this.template.add.style.display="none",this.template.contentWrapper.style.display="block",this.template.content.innerHTML=this.content,this.template.remarkWindow.style.display="none"):this._cancelInput()}},{key:"_cancelInput",value:function(){this.template.content.innerHTML=this.content,this.template.input.value=this.content,this.content?(this.template.add.style.display="none",this.template.contentWrapper.style.display="block"):(this.template.add.style.display="block",this.template.contentWrapper.style.display="none"),this.template.remarkWindow.style.display="none"}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=p},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=Object.create(n),a=/["&'<>]/;r.$escape=function(e){return function(e){var t=""+e,n=a.exec(t);if(!n)return e;var r="",i=void 0,o=void 0,s=void 0;for(i=n.index,o=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(r+=t.substring(o,i)),o=i+1,r+=s}return o!==i?r+t.substring(o,i):r}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},r.$each=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t(e[n],n);else for(var a in e)t(e[a],a)},e.exports=r}).call(this,n(5))},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},51:function(e,t,n){var r=n(1),a=n(52);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var i={insert:"head",singleton:!1};r(a,i);e.exports=a.locals||{}},52:function(e,t,n){(t=n(2)(!1)).push([e.i,'.payRemark{--primary:#1677ff;--contentMaxWidth:200px}.payRemark__add{font-size:14px;color:var(--primary,"#1677FF")}.payRemark__contentWrapper{display:none}.payRemark__content{display:inline-block;font-size:14px;text-align:left;max-width:var(--contentMaxWidth,200px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.payRemark__change{float:right;font-size:14px;color:var(--primary,"#1677FF");text-align:right}.payRemark__wrapper{--userSetZIndex:1000;display:none;position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.55);z-index:var(--userSetZIndex,1000)}.payRemark__wrapper .payRemark__box{position:absolute;top:154.5px;left:50%;transform:translateX(-50%);width:70%;min-width:250px;max-width:450px;height:160px;border-radius:8px;text-align:center;background:#fff}.payRemark__wrapper .payRemark__box--header{margin-top:20px;font-size:18px;line-height:25px;color:#333}.payRemark__wrapper .payRemark__box--input{margin:16px 16px 20px}.payRemark__wrapper .payRemark__box--input input{padding:0 10px;width:calc(100% - 20px);height:36px;font-size:14px;line-height:20px;background:hsla(0,0%,85.5%,.3);border:0;border-radius:2px;caret-color:var(--primary,"#1677FF");color:#adadad;letter-spacing:.45px}.payRemark__wrapper .payRemark__box--input input:focus{outline:none}.payRemark__wrapper .payRemark__box--footer{display:flex;border-top:1px solid #e5e5e5}.payRemark__wrapper .payRemark__box--button{flex:1;padding:8px 0 9px;color:var(--primary,"#1677FF");font-size:18px;line-height:25px}.payRemark__wrapper .payRemark__box--button.confirm{border-left:1px solid #e5e5e5;font-weight:500}.payRemark__wrapper .payRemark__box--button:active{background-color:#d3d3d3;opacity:.5}',""]),e.exports=t}}).default})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("PayRemark",[],t):"object"==typeof exports?exports.PayRemark=t():e.PayRemark=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=49)}({0:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r(this,e),this.events={},this.eventsList=t}var t,n,i;return t=e,(n=[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.eventsList.indexOf(e)||(console.error("Unknown event name: ".concat(e)),null)}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=i},1:function(e,t,n){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],a=0;a<e.length;a++){var i=e[a],c=t.base?i[0]+t.base:i[0],p=n[c]||0,l="".concat(c," ").concat(p);n[c]=p+1;var u=s(l),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==u?(o[u].references++,o[u].updater(d)):o.push({identifier:l,updater:m(d,t),references:1}),r.push(l)}return r}function p(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=i(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function f(e,t,n){var r=n.css,a=n.media,i=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,y=0;function m(e,t){var n,r,a;if(t.singleton){var i=y++;n=h||(h=p(t)),r=d.bind(null,n,i,!1),a=d.bind(null,n,i,!0)}else n=p(t),r=f.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var a=s(n[r]);o[a].references--}for(var i=c(e,t),p=0;p<n.length;p++){var l=s(n[p]);0===o[l].references&&(o[l].updater(),o.splice(l,1))}n=i}}}},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=(o=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([a]).join("\n")}var o,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&a[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},20:function(e,t,n){n(3);e.exports=function(e){"use strict";var t="",n=(e=e||{}).options;return t+='<div class="payRemark">\n <div class="payRemark__add">',t+=n.addText,t+='</div>\n <div class="payRemark__contentWrapper">\n <div class="payRemark__content"></div>\n <div class="payRemark__change">修改</div>\n </div>\n <div class="payRemark__wrapper">\n <div class="payRemark__box">\n <div class="payRemark__box--header">添加备注</div>\n <div class="payRemark__box--input">\n <input placeholder=',t+=n.placeholder,t+=" autofocus maxlength=",t+=n.maxInputLength,t+=' />\n </div>\n <div class="payRemark__box--footer">\n <div class="payRemark__box--button cancel">取消</div>\n <div class="payRemark__box--button confirm">确定</div>\n </div>\n </div>\n </div>\n</div>\n'}},3:function(e,t,n){"use strict";e.exports=n(4)},4:function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=Object.create(n),a=/["&'<>]/;r.$escape=function(e){return function(e){var t=""+e,n=a.exec(t);if(!n)return e;var r="",i=void 0,o=void 0,s=void 0;for(i=n.index,o=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(r+=t.substring(o,i)),o=i+1,r+=s}return o!==i?r+t.substring(o,i):r}(function e(t){"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},r.$each=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t(e[n],n);else for(var a in e)t(e[a],a)},e.exports=r}).call(this,n(5))},49:function(e,t,n){"use strict";n.r(t);n(62);var r=n(20),a=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.init()}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.container.innerHTML=a()({options:this.options,getObject:function(e){return e}}),this.input=this.container.getElementsByTagName("input")[0],this.header=this.container.getElementsByClassName("payRemark__box--header")[0],this.remarkWindow=this.container.getElementsByClassName("payRemark__wrapper")[0],this.add=this.container.getElementsByClassName("payRemark__add")[0],this.contentWrapper=this.container.getElementsByClassName("payRemark__contentWrapper")[0],this.content=this.container.getElementsByClassName("payRemark__content")[0],this.btn=this.container.getElementsByClassName("payRemark__box--footer")[0]}}])&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),s=n(0);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){var t={container:e.element||document.getElementsByClassName("remark")[0],placeholder:e.placeholder||"请输入备注",zIndex:e.zIndex||1e3,addText:e.addText||"添加备注",addTitle:e.addTitle||"添加备注",changeTitle:e.changeTitle||"修改备注",maxInputLength:e.maxInputLength||20,maxRemarkLength:e.maxRemarkLength||"200px"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t),this.container=this.options.container,this.template=new o({container:this.container,options:this.options}),this.events=new s.a(["open","close","change"]),this.content="",this.handleBtnClick(),this.init()}var t,n,r;return t=e,r=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"init",value:function(){this.setMaxWidth(),this.setZIndex()}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"setMaxWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"200px";"number"==typeof e&&(e+="px"),this.template.contentWrapper.style.setProperty("--contentMaxWidth",e)}},{key:"setZIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.template.remarkWindow.style.setProperty("--userSetZIndex",e)}},{key:"handleBtnClick",value:function(){var e=this;this.container.addEventListener("click",(function(t){switch(t.target.className){case"payRemark__change":case"payRemark__add":e.events.trigger("open"),e._openRemarkWindow(t.target.className);break;case"payRemark__box--button confirm":e.events.trigger("change",{value:e._confirmValue()}),e.events.trigger("close"),e._confirmInput();break;case"payRemark__box--button cancel":e.events.trigger("close"),e._cancelInput()}}))}},{key:"_openRemarkWindow",value:function(e){e.indexOf("change")>-1&&(this.template.header.innerHTML=this.options.changeTitle),e.indexOf("add")>-1&&(this.template.header.innerHTML=this.options.addTitle),this.template.remarkWindow.style.display="block",this.template.input.focus()}},{key:"_confirmValue",value:function(){return this.content=this.template.input.value,this.content}},{key:"_confirmInput",value:function(){this.content=this.template.input.value,this.content?(this.template.add.style.display="none",this.template.contentWrapper.style.display="block",this.template.content.innerHTML=this.content,this.template.remarkWindow.style.display="none"):this._cancelInput()}},{key:"_cancelInput",value:function(){this.template.content.innerHTML=this.content,this.template.input.value=this.content,this.content?(this.template.add.style.display="none",this.template.contentWrapper.style.display="block"):(this.template.add.style.display="block",this.template.contentWrapper.style.display="none"),this.template.remarkWindow.style.display="none"}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=p},5:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},62:function(e,t,n){var r=n(1),a=n(63);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var i={insert:"head",singleton:!1};r(a,i);e.exports=a.locals||{}},63:function(e,t,n){(t=n(2)(!1)).push([e.i,'.payRemark{--primary:#1677ff;--contentMaxWidth:200px}.payRemark__add{font-size:14px;color:var(--primary,"#1677FF")}.payRemark__contentWrapper{display:none}.payRemark__content{display:inline-block;font-size:14px;text-align:left;max-width:var(--contentMaxWidth,200px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.payRemark__change{float:right;font-size:14px;color:var(--primary,"#1677FF");text-align:right}.payRemark__wrapper{--userSetZIndex:1000;display:none;position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.55);z-index:var(--userSetZIndex,1000)}.payRemark__wrapper .payRemark__box{position:absolute;top:154.5px;left:50%;transform:translateX(-50%);width:70%;min-width:250px;max-width:450px;height:160px;border-radius:8px;text-align:center;background:#fff}.payRemark__wrapper .payRemark__box--header{margin-top:20px;font-size:18px;line-height:25px;color:#333}.payRemark__wrapper .payRemark__box--input{margin:16px 16px 20px}.payRemark__wrapper .payRemark__box--input input{padding:0 10px;width:calc(100% - 20px);height:36px;font-size:14px;line-height:20px;background:hsla(0,0%,85.5%,.3);border:0;border-radius:2px;caret-color:var(--primary,"#1677FF");color:#adadad;letter-spacing:.45px}.payRemark__wrapper .payRemark__box--input input:focus{outline:none}.payRemark__wrapper .payRemark__box--footer{display:flex;border-top:1px solid #e5e5e5}.payRemark__wrapper .payRemark__box--button{flex:1;padding:8px 0 9px;color:var(--primary,"#1677FF");font-size:18px;line-height:25px}.payRemark__wrapper .payRemark__box--button.confirm{border-left:1px solid #e5e5e5;font-weight:500}.payRemark__wrapper .payRemark__box--button:active{background-color:#d3d3d3;opacity:.5}',""]),e.exports=t}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayResult",[],e):"object"==typeof exports?exports.PayResult=e():t.PayResult=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},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=80)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(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)}}var o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,o;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&r(e.prototype,n),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=o},1:function(t,e,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],r=0;r<t.length;r++){var o=t[r],l=e.base?o[0]+e.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var f=a(u),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(s[f].references++,s[f].updater(p)):s.push({identifier:u,updater:y(p,e),references:1}),i.push(u)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,f=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function p(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=f(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function d(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var h=null,v=0;function y(t,e){var n,i,r;if(e.singleton){var o=v++;n=h||(h=c(e)),i=p.bind(null,n,o,!1),r=p.bind(null,n,o,!0)}else n=c(e),i=d.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=a(n[i]);s[r].references--}for(var o=l(t,e),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=o}}}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}var s,a,l;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),r=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=r.exec(e);if(!n)return t;var i="",o=void 0,s=void 0,a=void 0;for(o=n.index,s=0;o<e.length;o++){switch(e.charCodeAt(o)){case 34:a=""";break;case 38:a="&";break;case 39:a="'";break;case 60:a="<";break;case 62:a=">";break;default:continue}s!==o&&(i+=e.substring(s,o)),s=o+1,i+=a}return s!==o?i+e.substring(s,o):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var r in t)e(t[r],r)},t.exports=i}).call(this,n(5))},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},65:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options,i=t.icons;return e+=' <div class="PayResult">\n ',n.status&&(e+='\n <div class="PayResult__status">\n ',e+=i[n.status],e+="\n </div>\n "),e+="\n ",n.title&&(e+='\n <div class="PayResult__title">\n ',e+=n.title,e+="\n </div>\n "),e+="\n ",n.content&&(e+='\n <div class="PayResult__content">\n ',e+=n.content,e+="\n </div>\n "),e+='\n <div class="PayResult__line"></div>\n <div class="PayResult__items"></div>\n <div class="PayResult__banner"></div>\n</div>\n'}},66:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="付款页体验升级" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="画板" transform="translate(-310.000000, -188.000000)" fill="#1677FF" fill-rule="nonzero"><path d="M352.857813,246.946205 L340.233259,234.321652 L335.182478,239.372433 L352.860156,257.05 L357.910937,251.99933 L357.908594,251.996987 L386.531362,223.374219 L381.48058,218.323438 L352.857813,246.946205 Z M360,188 C387.617746,188 410,210.382254 410,238 C410,265.617746 387.606696,288 360,288 C332.393304,288 310,265.606696 310,238 C310,210.393304 332.382254,188 360,188 Z" id="Shape"></path></g></g></svg>'},67:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="#00B578" fill-rule="nonzero" d="M50,0 C22.4186047,0 0,22.4186047 0,50 C0,77.5813953 22.4186047,100 50,100 C77.5813953,100 100,77.5813953 100,50 C100,22.4186047 77.5813953,0 50,0 Z M70.8372093,70.5465116 C69.4418605,71.9418605 67.1860465,71.9418605 65.7906977,70.5465116 L47.3488372,52.1046512 C46.755814,51.5116279 46.4302326,50.7209302 46.4302326,49.8837209 L46.4302326,23.8139535 C46.4302326,21.8372093 48.0348837,20.244186 50,20.244186 C51.9651163,20.244186 53.5697674,21.8488372 53.5697674,23.8139535 L53.5697674,46.9418605 C53.5697674,47.7674419 53.8953488,48.5697674 54.4883721,49.1627907 L70.8372093,65.5116279 C72.2325581,66.8953488 72.2325581,69.1511628 70.8372093,70.5465116 L70.8372093,70.5465116 Z" id="形状"></path></svg>'},68:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="#FF8F1F" d="M50,0 C22.4186047,0 0,22.4186047 0,50 C0,77.5813953 22.4186047,100 50,100 C77.5813953,100 100,77.5813953 100,50 C100,22.4186047 77.5813953,0 50,0 Z M50,77.3837209 C48.0232558,77.3837209 46.4302326,75.7790698 46.4302326,73.8139535 C46.4302326,71.8488372 48.0232558,70.2325581 50,70.2325581 C51.9767442,70.2325581 53.5697674,71.8372093 53.5697674,73.8023256 C53.5697674,75.7674419 51.9767442,77.3837209 50,77.3837209 Z M53.5697674,59.5232558 C53.5697674,61.5 51.9651163,63.0930233 50,63.0930233 C48.0348837,63.0930233 46.4302326,61.4883721 46.4302326,59.5232558 L46.4302326,26.1860465 C46.4302326,24.2093023 48.0348837,22.6162791 50,22.6162791 C51.9651163,22.6162791 53.5697674,24.2209302 53.5697674,26.1860465 L53.5697674,59.5232558 Z" id="形状"></path></svg>'},69:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="#FF3B30" d="M50,0 C22.4186047,0 0,22.4186047 0,50 C0,77.5813953 22.4186047,100 50,100 C77.5813953,100 100,77.5813953 100,50 C100,22.4186047 77.5813953,0 50,0 Z M67.6744186,62.5930233 C69.0697674,63.9883721 69.0697674,66.255814 67.6744186,67.6511628 C66.2790698,69.0465116 64.0232558,69.0465116 62.627907,67.6511628 L50,55.0116279 L37.3604651,67.6395349 C35.9651163,69.0348837 33.7093023,69.0348837 32.3139535,67.6395349 C30.9186047,66.244186 30.9186047,63.9883721 32.3139535,62.5930233 L44.9534884,49.9534884 L32.3255814,37.3372093 C30.9302326,35.9418605 30.9302326,33.6744186 32.3255814,32.2790698 C33.7209302,30.8837209 35.9883721,30.8837209 37.3837209,32.2790698 L50,44.9069767 L62.627907,32.2790698 C64.0232558,30.8837209 66.2906977,30.8837209 67.6860465,32.2790698 C69.0813953,33.6744186 69.0813953,35.9418605 67.6860465,37.3372093 L55.0581395,49.9651163 L67.6744186,62.5930233 Z" id="形状"></path></svg>'},70:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="#1677FF" d="M83.9865234,0 C92.8351562,0 100,7.17050781 100,16.0209961 L100,83.9825195 C100,92.8273438 92.8358398,100 83.9865234,100 L16.0192383,100 C7.16767578,100 0,92.8273438 0,83.9825195 L0,16.0209961 C0,7.17050781 7.16777344,0 16.0192383,0 L83.9865234,0 Z M55.6652344,13.3333008 L45.8206055,13.3333008 C44.1113281,13.3333008 44.0942383,14.9979492 44.094043,15.03125 L44.094043,25.1142578 L19.6985352,25.1142578 L19.6985352,29.0587891 L44.094043,29.0587891 L44.094043,36.1250977 L23.9521484,36.1250977 L23.9521484,40.0695313 L63.015918,40.0695313 C61.5864258,44.9762695 59.6669922,49.5838867 57.3888672,53.7693359 C44.7138672,49.6016602 31.1879883,46.2240234 22.6914063,48.3035156 C17.2579102,49.6384766 13.7573242,52.0191406 11.7003906,54.5132812 C2.26289063,65.9548828 9.03085938,83.3333008 28.9623047,83.3333008 C40.7459961,83.3333008 52.0979492,76.7856445 60.8972656,65.9973633 C74.0182617,72.2834961 100,83.0761719 100,83.0761719 L100,67.6950195 L99.9960937,67.6947266 C99.8650391,67.6828125 96.4492187,67.3397461 82.353125,62.6353516 C78.3569336,61.3025391 72.9921875,59.2619141 67.018457,57.1086914 C70.6077148,50.8932617 73.471582,43.8157227 75.3547852,36.1250977 L55.6651367,36.1250977 L55.6651367,29.0586914 L79.7856445,29.0586914 L79.7856445,25.1143555 L55.6651367,25.1143555 L55.6651367,13.3333008 L55.6652344,13.3333008 Z M51.6666992,61.7754883 C44.6479492,70.9416992 35.7117188,76.6666992 26.7712891,76.6666992 C11.3883789,76.6666992 6.83955078,64.5322266 14.4421875,57.8944336 C16.9788086,55.6508789 21.6160156,54.5555664 24.0867188,54.3094727 C33.225,53.4058594 41.6825195,56.8963867 51.6666992,61.7754883 L51.6666992,61.7754883 Z" id="形状"></path></svg>'},74:function(t,e,n){var i=n(1),r=n(75);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);t.exports=r.locals||{}},75:function(t,e,n){(e=n(2)(!1)).push([t.i,'.PayResult__status{width:50px;margin:0 auto 15px}.PayResult__title{color:#333;font-size:20px;text-align:center}.PayResult__content{color:#999;font-size:14px;text-align:center;margin-top:10px;margin-bottom:15px}.PayResult__line{content:"";display:block;height:1px;width:100%;transform:scaleY(.5);background:#eee;top:0}.PayResult__items{margin-top:15px}.PayResult__item{display:flex;color:#333;font-size:14px;line-height:1.4;padding:0 16px;min-height:37px}.PayResult__tit{min-width:68px;padding:8px 0}.PayResult__extra,.PayResult__tit{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PayResult__extra{color:#888;min-width:100px;font-size:14px;text-align:right;padding:8px 0 8px 11px;letter-spacing:.58px}.PayResult__banner{margin-top:15px;width:100%;height:auto}.PayResult__banner a,.PayResult__banner img{display:block;width:100%;height:100%}',""]),t.exports=e},80:function(t,e,n){"use strict";n.r(e);n(74);var i=["zhi","success","pending","warning","error"],r=n(65),o=n.n(r),s=n(66),a=n.n(s),l=n(67),c=n.n(l),u=n(68),f=n.n(u),p=n(69),d=n.n(p),h=n(70),v=n.n(h),y={success:a.a,pending:c.a,warning:f.a,error:d.a,zhi:v.a};function m(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)}}var g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,icons:y,getObject:function(t){return t}}),this.status=this.container.querySelector(".PayResult__status"),this.title=this.container.querySelector(".PayResult__title"),this.content=this.container.querySelector(".PayResult__content"),this.items=this.container.querySelector(".PayResult__items"),this.banner=this.container.querySelector(".PayResult__banner"),this.line=this.container.querySelector(".PayResult__line")}}])&&m(e.prototype,n),i&&m(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),b=n(0);function w(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)}}var x=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payInput")[0],status:t.status||"zhi",title:t.title||"",content:t.content||"",items:t.items||[],banner:t.banner||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return i.includes(t.status)||(t.status="zhi"),t}(e),this.container=this.options.container,this.template=new g({container:this.container,options:this.options}),this.events=new b.a(["init","change"]),this.init(),this.setCondition(e)}var e,n,r;return e=t,r=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"init",value:function(){this.events.trigger("init")}},{key:"hideItems",value:function(){this.template.items.innerHTML="",this.template.items.style.display="none",this.hideLine()}},{key:"hideBanner",value:function(){this.template.banner.innerHTML="",this.template.banner.style.display="none",this.hideLine()}},{key:"hideLine",value:function(){var t="none"===this.template.items.style.display&&"none"===this.template.banner.style.display;this.template.line.style.display=t?"none":"block"}},{key:"set",value:function(t){if("[object Object]"!==Object.prototype.toString.call(t))throw new Error('"set" function can only receive one "object"');t.status&&(i.includes(t.status)?this.template.status.innerHTML=y[t.status]:t.status="zhi"),t.title?this.template.title.innerHTML=t.title:this.template.title.innerHTML="",t.content?this.template.content.innerHTML=t.content:this.template.content.innerHTML="",this.setCondition(t)}},{key:"setCondition",value:function(t){var e=t.items&&Array.isArray(t.items)&&t.items.length>0;if(e){for(var n="",i=0;i<t.items.length;i++){var r=t.items[i],o=r.title,s=r.content;n+='<div class="PayResult__item"><div class="PayResult__tit">'.concat(o,'</div><div class="PayResult__extra">').concat(s,"</div></div>")}this.template.items.innerHTML=n,this.template.items.style.display="block"}else this.template.items.innerHTML="",this.template.items.style.display="none";if(t.banner){var a=t.banner||{},l=a.url,c=a.src,u="";u=c?l?'<a href="'.concat(l,'"><img src="').concat(c,'" /></a>'):'<img src="'.concat(c,'" />'):"",this.template.banner.innerHTML=u,this.template.banner.style.display="block"}else this.template.banner.innerHTML="",this.template.banner.style.display="none";t.banner||e?this.template.line.style.display="block":this.template.line.style.display="none"}}])&&w(e.prototype,n),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=x}}).default})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayResult",[],e):"object"==typeof exports?exports.PayResult=e():t.PayResult=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},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=45)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(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)}}var o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,o;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&r(e.prototype,n),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=o},1:function(t,e,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],r=0;r<t.length;r++){var o=t[r],l=e.base?o[0]+e.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var f=a(u),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(s[f].references++,s[f].updater(p)):s.push({identifier:u,updater:y(p,e),references:1}),i.push(u)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,f=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function p(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=f(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function d(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var h=null,v=0;function y(t,e){var n,i,r;if(e.singleton){var o=v++;n=h||(h=c(e)),i=p.bind(null,n,o,!1),r=p.bind(null,n,o,!0)}else n=c(e),i=d.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=a(n[i]);s[r].references--}for(var o=l(t,e),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=o}}}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}var s,a,l;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},34:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options,i=t.icons;return e+=' <div class="PayResult">\n ',n.status&&(e+='\n <div class="PayResult__status">\n ',e+=i[n.status],e+="\n </div>\n "),e+="\n ",n.title&&(e+='\n <div class="PayResult__title">\n ',e+=n.title,e+="\n </div>\n "),e+="\n ",n.content&&(e+='\n <div class="PayResult__content">\n ',e+=n.content,e+="\n </div>\n "),e+='\n <div class="PayResult__line"></div>\n <div class="PayResult__items"></div>\n <div class="PayResult__banner"></div>\n</div>\n'}},35:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="付款页体验升级" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="画板" transform="translate(-310.000000, -188.000000)" fill="#1677FF" fill-rule="nonzero"><path d="M352.857813,246.946205 L340.233259,234.321652 L335.182478,239.372433 L352.860156,257.05 L357.910937,251.99933 L357.908594,251.996987 L386.531362,223.374219 L381.48058,218.323438 L352.857813,246.946205 Z M360,188 C387.617746,188 410,210.382254 410,238 C410,265.617746 387.606696,288 360,288 C332.393304,288 310,265.606696 310,238 C310,210.393304 332.382254,188 360,188 Z" id="Shape"></path></g></g></svg>'},36:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="#00B578" fill-rule="nonzero" d="M50,0 C22.4186047,0 0,22.4186047 0,50 C0,77.5813953 22.4186047,100 50,100 C77.5813953,100 100,77.5813953 100,50 C100,22.4186047 77.5813953,0 50,0 Z M70.8372093,70.5465116 C69.4418605,71.9418605 67.1860465,71.9418605 65.7906977,70.5465116 L47.3488372,52.1046512 C46.755814,51.5116279 46.4302326,50.7209302 46.4302326,49.8837209 L46.4302326,23.8139535 C46.4302326,21.8372093 48.0348837,20.244186 50,20.244186 C51.9651163,20.244186 53.5697674,21.8488372 53.5697674,23.8139535 L53.5697674,46.9418605 C53.5697674,47.7674419 53.8953488,48.5697674 54.4883721,49.1627907 L70.8372093,65.5116279 C72.2325581,66.8953488 72.2325581,69.1511628 70.8372093,70.5465116 L70.8372093,70.5465116 Z" id="形状"></path></svg>'},37:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="#FF8F1F" d="M50,0 C22.4186047,0 0,22.4186047 0,50 C0,77.5813953 22.4186047,100 50,100 C77.5813953,100 100,77.5813953 100,50 C100,22.4186047 77.5813953,0 50,0 Z M50,77.3837209 C48.0232558,77.3837209 46.4302326,75.7790698 46.4302326,73.8139535 C46.4302326,71.8488372 48.0232558,70.2325581 50,70.2325581 C51.9767442,70.2325581 53.5697674,71.8372093 53.5697674,73.8023256 C53.5697674,75.7674419 51.9767442,77.3837209 50,77.3837209 Z M53.5697674,59.5232558 C53.5697674,61.5 51.9651163,63.0930233 50,63.0930233 C48.0348837,63.0930233 46.4302326,61.4883721 46.4302326,59.5232558 L46.4302326,26.1860465 C46.4302326,24.2093023 48.0348837,22.6162791 50,22.6162791 C51.9651163,22.6162791 53.5697674,24.2209302 53.5697674,26.1860465 L53.5697674,59.5232558 Z" id="形状"></path></svg>'},38:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="#FF3B30" d="M50,0 C22.4186047,0 0,22.4186047 0,50 C0,77.5813953 22.4186047,100 50,100 C77.5813953,100 100,77.5813953 100,50 C100,22.4186047 77.5813953,0 50,0 Z M67.6744186,62.5930233 C69.0697674,63.9883721 69.0697674,66.255814 67.6744186,67.6511628 C66.2790698,69.0465116 64.0232558,69.0465116 62.627907,67.6511628 L50,55.0116279 L37.3604651,67.6395349 C35.9651163,69.0348837 33.7093023,69.0348837 32.3139535,67.6395349 C30.9186047,66.244186 30.9186047,63.9883721 32.3139535,62.5930233 L44.9534884,49.9534884 L32.3255814,37.3372093 C30.9302326,35.9418605 30.9302326,33.6744186 32.3255814,32.2790698 C33.7209302,30.8837209 35.9883721,30.8837209 37.3837209,32.2790698 L50,44.9069767 L62.627907,32.2790698 C64.0232558,30.8837209 66.2906977,30.8837209 67.6860465,32.2790698 C69.0813953,33.6744186 69.0813953,35.9418605 67.6860465,37.3372093 L55.0581395,49.9651163 L67.6744186,62.5930233 Z" id="形状"></path></svg>'},39:function(t,e){t.exports='<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill="#1677FF" d="M83.9865234,0 C92.8351562,0 100,7.17050781 100,16.0209961 L100,83.9825195 C100,92.8273438 92.8358398,100 83.9865234,100 L16.0192383,100 C7.16767578,100 0,92.8273438 0,83.9825195 L0,16.0209961 C0,7.17050781 7.16777344,0 16.0192383,0 L83.9865234,0 Z M55.6652344,13.3333008 L45.8206055,13.3333008 C44.1113281,13.3333008 44.0942383,14.9979492 44.094043,15.03125 L44.094043,25.1142578 L19.6985352,25.1142578 L19.6985352,29.0587891 L44.094043,29.0587891 L44.094043,36.1250977 L23.9521484,36.1250977 L23.9521484,40.0695313 L63.015918,40.0695313 C61.5864258,44.9762695 59.6669922,49.5838867 57.3888672,53.7693359 C44.7138672,49.6016602 31.1879883,46.2240234 22.6914063,48.3035156 C17.2579102,49.6384766 13.7573242,52.0191406 11.7003906,54.5132812 C2.26289063,65.9548828 9.03085938,83.3333008 28.9623047,83.3333008 C40.7459961,83.3333008 52.0979492,76.7856445 60.8972656,65.9973633 C74.0182617,72.2834961 100,83.0761719 100,83.0761719 L100,67.6950195 L99.9960937,67.6947266 C99.8650391,67.6828125 96.4492187,67.3397461 82.353125,62.6353516 C78.3569336,61.3025391 72.9921875,59.2619141 67.018457,57.1086914 C70.6077148,50.8932617 73.471582,43.8157227 75.3547852,36.1250977 L55.6651367,36.1250977 L55.6651367,29.0586914 L79.7856445,29.0586914 L79.7856445,25.1143555 L55.6651367,25.1143555 L55.6651367,13.3333008 L55.6652344,13.3333008 Z M51.6666992,61.7754883 C44.6479492,70.9416992 35.7117188,76.6666992 26.7712891,76.6666992 C11.3883789,76.6666992 6.83955078,64.5322266 14.4421875,57.8944336 C16.9788086,55.6508789 21.6160156,54.5555664 24.0867188,54.3094727 C33.225,53.4058594 41.6825195,56.8963867 51.6666992,61.7754883 L51.6666992,61.7754883 Z" id="形状"></path></svg>'},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),r=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=r.exec(e);if(!n)return t;var i="",o=void 0,s=void 0,a=void 0;for(o=n.index,s=0;o<e.length;o++){switch(e.charCodeAt(o)){case 34:a=""";break;case 38:a="&";break;case 39:a="'";break;case 60:a="<";break;case 62:a=">";break;default:continue}s!==o&&(i+=e.substring(s,o)),s=o+1,i+=a}return s!==o?i+e.substring(s,o):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var r in t)e(t[r],r)},t.exports=i}).call(this,n(5))},45:function(t,e,n){"use strict";n.r(e);n(80);var i=["zhi","success","pending","warning","error"],r=n(34),o=n.n(r),s=n(35),a=n.n(s),l=n(36),c=n.n(l),u=n(37),f=n.n(u),p=n(38),d=n.n(p),h=n(39),v=n.n(h),y={success:a.a,pending:c.a,warning:f.a,error:d.a,zhi:v.a};function m(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)}}var g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,icons:y,getObject:function(t){return t}}),this.status=this.container.querySelector(".PayResult__status"),this.title=this.container.querySelector(".PayResult__title"),this.content=this.container.querySelector(".PayResult__content"),this.items=this.container.querySelector(".PayResult__items"),this.banner=this.container.querySelector(".PayResult__banner"),this.line=this.container.querySelector(".PayResult__line")}}])&&m(e.prototype,n),i&&m(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),b=n(0);function w(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)}}var x=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("payInput")[0],status:t.status||"zhi",title:t.title||"",content:t.content||"",items:t.items||[],banner:t.banner||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return i.includes(t.status)||(t.status="zhi"),t}(e),this.container=this.options.container,this.template=new g({container:this.container,options:this.options}),this.events=new b.a(["init","change"]),this.init(),this.setCondition(e)}var e,n,r;return e=t,r=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"init",value:function(){this.events.trigger("init")}},{key:"hideItems",value:function(){this.template.items.innerHTML="",this.template.items.style.display="none",this.hideLine()}},{key:"hideBanner",value:function(){this.template.banner.innerHTML="",this.template.banner.style.display="none",this.hideLine()}},{key:"hideLine",value:function(){var t="none"===this.template.items.style.display&&"none"===this.template.banner.style.display;this.template.line.style.display=t?"none":"block"}},{key:"set",value:function(t){if("[object Object]"!==Object.prototype.toString.call(t))throw new Error('"set" function can only receive one "object"');t.status&&(i.includes(t.status)?this.template.status.innerHTML=y[t.status]:t.status="zhi"),t.title?this.template.title.innerHTML=t.title:this.template.title.innerHTML="",t.content?this.template.content.innerHTML=t.content:this.template.content.innerHTML="",this.setCondition(t)}},{key:"setCondition",value:function(t){var e=t.items&&Array.isArray(t.items)&&t.items.length>0;if(e){for(var n="",i=0;i<t.items.length;i++){var r=t.items[i],o=r.title,s=r.content;n+='<div class="PayResult__item"><div class="PayResult__tit">'.concat(o,'</div><div class="PayResult__extra">').concat(s,"</div></div>")}this.template.items.innerHTML=n,this.template.items.style.display="block"}else this.template.items.innerHTML="",this.template.items.style.display="none";if(t.banner){var a=t.banner||{},l=a.url,c=a.src,u="";u=c?l?'<a href="'.concat(l,'"><img src="').concat(c,'" /></a>'):'<img src="'.concat(c,'" />'):"",this.template.banner.innerHTML=u,this.template.banner.style.display="block"}else this.template.banner.innerHTML="",this.template.banner.style.display="none";t.banner||e?this.template.line.style.display="block":this.template.line.style.display="none"}}])&&w(e.prototype,n),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=x},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},80:function(t,e,n){var i=n(1),r=n(81);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o);t.exports=r.locals||{}},81:function(t,e,n){(e=n(2)(!1)).push([t.i,'.PayResult__status{width:50px;margin:0 auto 15px}.PayResult__title{color:#333;font-size:20px;text-align:center}.PayResult__content{color:#999;font-size:14px;text-align:center;margin-top:10px;margin-bottom:15px}.PayResult__line{content:"";display:block;height:1px;width:100%;transform:scaleY(.5);background:#eee;top:0}.PayResult__items{margin-top:15px}.PayResult__item{display:flex;color:#333;font-size:14px;line-height:1.4;padding:0 16px;min-height:37px}.PayResult__tit{min-width:68px;padding:8px 0}.PayResult__extra,.PayResult__tit{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PayResult__extra{color:#888;min-width:100px;font-size:14px;text-align:right;padding:8px 0 8px 11px;letter-spacing:.58px}.PayResult__banner{margin-top:15px;width:100%;height:auto}.PayResult__banner a,.PayResult__banner img{display:block;width:100%;height:100%}',""]),t.exports=e}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayToast",[],e):"object"==typeof exports?exports.PayToast=e():t.PayToast=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},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=38)}({1:function(t,e,n){"use strict";var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},o=[],i=0;i<t.length;i++){var r=t[i],c=e.base?r[0]+e.base:r[0],u=n[c]||0,f="".concat(c," ").concat(u);n[c]=u+1;var l=s(f),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==l?(a[l].references++,a[l].updater(p)):a.push({identifier:f,updater:v(p,e),references:1}),o.push(f)}return o}function u(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var f,l=(f=[],function(t,e){return f[t]=e,f.filter(Boolean).join("\n")});function p(t,e,n,o){var i=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=l(e,i);else{var r=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function d(t,e,n){var o=n.css,i=n.media,r=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var h=null,y=0;function v(t,e){var n,o,i;if(e.singleton){var r=y++;n=h||(h=u(e)),o=p.bind(null,n,r,!1),i=p.bind(null,n,r,!0)}else n=u(e),o=d.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var i=s(n[o]);a[i].references--}for(var r=c(t,e),u=0;u<n.length;u++){var f=s(n[u]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=r}}}},19:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options;return e+=' <div class="toast">\n ',n.tips&&(e+="\n ",n.offset?e+='\n <div class="toast__container toast__container--offset">\n ':e+='\n <div class="toast__container">\n ',e+='\n <div class="toast__content">\n <div class="toast__tips">\n ',e+=n.tips,e+=" \n </div>\n </div>\n </div>\n "),e+="\n</div>\n"}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var i=(a=o,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[n].concat(r).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);o&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},38:function(t,e,n){"use strict";n.r(e);n(49);var o=n(19),i=n.n(o);function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,o;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=i()({options:this.options,getObject:function(t){return t}}),this.toast=this.container.querySelector(".toast"),this.content=this.container.querySelector(".toast__tips"),this.offset=this.container.querySelector(".toast__content")}}])&&r(e.prototype,n),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("toast")[0],tips:t.tips||"",duration:t.duration||3e3,zIndex:t.zIndex||"100",offset:t.offset||null};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.template=new a({container:this.container,options:this.options}),this.init()}var e,n,o;return e=t,o=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"init",value:function(){this.template.toast.style.setProperty("z-index",this.options.zIndex)}},{key:"show",value:function(t){var e=this;this.timer&&clearTimeout(this.timer),this.hideTimer&&clearTimeout(this.timer),this.template.content.innerHTML=t||this.options.tips,this.options.offset&&(this.template.offset.style.top=this.options.offset),this.template.toast.classList.remove("toast--out"),this.template.toast.style.display="block",this.template.toast.classList.add("toast--in"),this.options.duration>0&&(this.timer=setTimeout((function(){e.hide()}),this.options.duration))}},{key:"hide",value:function(){var t=this;this.template.toast.classList.remove("toast--in"),this.template.toast.classList.add("toast--out"),this.hideTimer=setTimeout((function(){t.template.toast.style.display="none"}),300)}},{key:"setZIndex",value:function(t){this.template.toast.style.setProperty("z-index",t)}}])&&s(e.prototype,n),o&&s(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=c},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},o=Object.create(n),i=/["&'<>]/;o.$escape=function(t){return function(t){var e=""+t,n=i.exec(e);if(!n)return t;var o="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<e.length;r++){switch(e.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(o+=e.substring(a,r)),a=r+1,o+=s}return a!==r?o+e.substring(a,r):o}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},o.$each=function(t,e){if(Array.isArray(t))for(var n=0,o=t.length;n<o;n++)e(t[n],n);else for(var i in t)e(t[i],i)},t.exports=o}).call(this,n(5))},49:function(t,e,n){var o=n(1),i=n(50);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r);t.exports=i.locals||{}},5:function(t,e){function n(t){return(n="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})(t)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}t.exports=o},50:function(t,e,n){(e=n(2)(!1)).push([t.i,".toast{position:fixed;display:none;left:0;right:0;top:0;bottom:0;z-index:100;pointer-events:none}.toast--in{-webkit-animation:toast-in .2s both;animation:toast-in .2s both}.toast--out{-webkit-animation:toast-out .2s both;animation:toast-out .2s both}.toast__container{position:absolute;width:100%;height:100%;transform:translate(100%,100%)}.toast__container--offset{transform:translate(0)}.toast__container--offset .toast__content{left:50%;transform:translate(-50%)}.toast__container--offset .toast__content,.toast__content{position:absolute;top:-50%;width:auto;max-width:100%;box-sizing:border-box;pointer-events:auto;display:flex;align-items:center;padding:13px 16px;color:#ccc;background-color:rgba(37,38,45,.9);border-radius:2px}.toast__content{left:-50%;transform:translate(-50%,-50%)}.toast__tips{line-height:20px;font-size:14px;max-width:80vw;max-height:40px;overflow:hidden}@-webkit-keyframes toast-in{0%{opacity:0}to{opacity:1}}@keyframes toast-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes toast-out{0%{opacity:1}to{opacity:0}}@keyframes toast-out{0%{opacity:1}to{opacity:0}}",""]),t.exports=e}}).default})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayToast",[],e):"object"==typeof exports?exports.PayToast=e():t.PayToast=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},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=48)}({1:function(t,e,n){"use strict";var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},o=[],i=0;i<t.length;i++){var r=t[i],c=e.base?r[0]+e.base:r[0],u=n[c]||0,f="".concat(c," ").concat(u);n[c]=u+1;var l=s(f),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==l?(a[l].references++,a[l].updater(p)):a.push({identifier:f,updater:v(p,e),references:1}),o.push(f)}return o}function u(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var f,l=(f=[],function(t,e){return f[t]=e,f.filter(Boolean).join("\n")});function p(t,e,n,o){var i=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=l(e,i);else{var r=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function d(t,e,n){var o=n.css,i=n.media,r=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var h=null,y=0;function v(t,e){var n,o,i;if(e.singleton){var r=y++;n=h||(h=u(e)),o=p.bind(null,n,r,!1),i=p.bind(null,n,r,!0)}else n=u(e),o=d.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var i=s(n[o]);a[i].references--}for(var r=c(t,e),u=0;u<n.length;u++){var f=s(n[u]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=r}}}},19:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options;return e+=' <div class="toast">\n ',n.tips&&(e+="\n ",n.offset?e+='\n <div class="toast__container toast__container--offset">\n ':e+='\n <div class="toast__container">\n ',e+='\n <div class="toast__content">\n <div class="toast__tips">\n ',e+=n.tips,e+=" \n </div>\n </div>\n </div>\n "),e+="\n</div>\n"}},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var i=(a=o,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[n].concat(r).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);o&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},3:function(t,e,n){"use strict";t.exports=n(4)},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},o=Object.create(n),i=/["&'<>]/;o.$escape=function(t){return function(t){var e=""+t,n=i.exec(e);if(!n)return t;var o="",r=void 0,a=void 0,s=void 0;for(r=n.index,a=0;r<e.length;r++){switch(e.charCodeAt(r)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==r&&(o+=e.substring(a,r)),a=r+1,o+=s}return a!==r?o+e.substring(a,r):o}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},o.$each=function(t,e){if(Array.isArray(t))for(var n=0,o=t.length;n<o;n++)e(t[n],n);else for(var i in t)e(t[i],i)},t.exports=o}).call(this,n(5))},48:function(t,e,n){"use strict";n.r(e);n(60);var o=n(19),i=n.n(o);function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,o;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=i()({options:this.options,getObject:function(t){return t}}),this.toast=this.container.querySelector(".toast"),this.content=this.container.querySelector(".toast__tips"),this.offset=this.container.querySelector(".toast__content")}}])&&r(e.prototype,n),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("toast")[0],tips:t.tips||"",duration:t.duration||3e3,zIndex:t.zIndex||"100",offset:t.offset||null};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.template=new a({container:this.container,options:this.options}),this.init()}var e,n,o;return e=t,o=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"init",value:function(){this.template.toast.style.setProperty("z-index",this.options.zIndex)}},{key:"show",value:function(t){var e=this;this.timer&&clearTimeout(this.timer),this.hideTimer&&clearTimeout(this.timer),this.template.content.innerHTML=t||this.options.tips,this.options.offset&&(this.template.offset.style.top=this.options.offset),this.template.toast.classList.remove("toast--out"),this.template.toast.style.display="block",this.template.toast.classList.add("toast--in"),this.options.duration>0&&(this.timer=setTimeout((function(){e.hide()}),this.options.duration))}},{key:"hide",value:function(){var t=this;this.template.toast.classList.remove("toast--in"),this.template.toast.classList.add("toast--out"),this.hideTimer=setTimeout((function(){t.template.toast.style.display="none"}),300)}},{key:"setZIndex",value:function(t){this.template.toast.style.setProperty("z-index",t)}}])&&s(e.prototype,n),o&&s(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=c},5:function(t,e){function n(t){return(n="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})(t)}var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}t.exports=o},60:function(t,e,n){var o=n(1),i=n(61);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r);t.exports=i.locals||{}},61:function(t,e,n){(e=n(2)(!1)).push([t.i,".toast{position:fixed;display:none;left:0;right:0;top:0;bottom:0;z-index:100;pointer-events:none}.toast--in{-webkit-animation:toast-in .2s both;animation:toast-in .2s both}.toast--out{-webkit-animation:toast-out .2s both;animation:toast-out .2s both}.toast__container{position:absolute;width:100%;height:100%;transform:translate(100%,100%)}.toast__container--offset{transform:translate(0)}.toast__container--offset .toast__content{left:50%;transform:translate(-50%)}.toast__container--offset .toast__content,.toast__content{position:absolute;top:-50%;width:auto;max-width:100%;box-sizing:border-box;pointer-events:auto;display:flex;align-items:center;padding:13px 16px;color:#ccc;background-color:rgba(37,38,45,.9);border-radius:2px}.toast__content{left:-50%;transform:translate(-50%,-50%)}.toast__tips{line-height:20px;font-size:14px;max-width:80vw;max-height:40px;overflow:hidden}@-webkit-keyframes toast-in{0%{opacity:0}to{opacity:1}}@keyframes toast-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes toast-out{0%{opacity:1}to{opacity:0}}@keyframes toast-out{0%{opacity:1}to{opacity:0}}",""]),t.exports=e}}).default})); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayVerify",[],e):"object"==typeof exports?exports.PayVerify=e():t.PayVerify=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},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=42)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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)}}var a=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,a;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&o(e.prototype,n),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=a},1:function(t,e,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),r=[];function s(t){for(var e=-1,n=0;n<r.length;n++)if(r[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},i=[],o=0;o<t.length;o++){var a=t[o],c=e.base?a[0]+e.base:a[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var p=s(l),f={css:a[1],media:a[2],sourceMap:a[3]};-1!==p?(r[p].references++,r[p].updater(f)):r.push({identifier:l,updater:v(f,e),references:1}),i.push(l)}return i}function u(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var r=a(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}return e}var l,p=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=p(e,o);else{var a=document.createTextNode(o),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function d(t,e,n){var i=n.css,o=n.media,a=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var h=null,y=0;function v(t,e){var n,i,o;if(e.singleton){var a=y++;n=h||(h=u(e)),i=f.bind(null,n,a,!1),o=f.bind(null,n,a,!0)}else n=u(e),i=d.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=s(n[i]);r[o].references--}for(var a=c(t,e),u=0;u<n.length;u++){var l=s(n[u]);0===r[l].references&&(r[l].updater(),r.splice(l,1))}n=a}}}},10:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options;return e+='<div class="base-button">\n <button class="base-button__tag" ',n.disabled&&(e+=' disabled="disabled" '),e+=">",e+=n.text,e+="</button>\n</div>\n"}},12:function(t,e,n){var i=n(1),o=n(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var a={insert:"head",singleton:!1};i(o,a);t.exports=o.locals||{}},13:function(t,e,n){(e=n(2)(!1)).push([t.i,".base-button__tag{display:block;width:100%;height:50px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;font-size:18px;background-color:#1677ff;color:#fff;border-radius:4px}.base-button__tag:active{background-color:#0767ee}.base-button__tag--disabled{opacity:.6}",""]),t.exports=e},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(r=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([o]).join("\n")}var r,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var a=0;a<this.length;a++){var r=this[a][0];null!=r&&(o[r]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},28:function(t,e,n){var i=n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options,o=i.$each,a=(t.$value,t.$index,i.$escape);return e+=' <div class="PayVerify">\n <div class="PayVerify__title">',e+=n.title,e+='</div>\n <div class="PayVerify__form">\n <div class="PayVerify__item">\n <div class="PayVerify__label">手机号</div>\n <div class="PayVerify__field">\n ',n.data.length>0?(e+='\n <span class="PayVerify__tel">',e+=n.phone,e+="</span>\n "):0===n.data.length&&(e+='\n <input class="PayVerify__telInput" maxlength="11" type="tel" placeholder="请输入手机号">\n '),e+="\n </div>\n ",n.data.length>1&&(e+='\n <div class="PayVerify__change">更改</div>\n '),e+='\n </div>\n <div class="g-1px-horz-line"></div>\n <div class="PayVerify__item">\n <div class="PayVerify__label">验证码</div>\n <div class="PayVerify__field">\n <input class="PayVerify__input" maxlength="',e+=n.length,e+='" placeholder="填写验证码" />\n </div>\n <div class="PayVerify__countDown">\n <div class="PayVerify__countDownButton"></div>\n </div>\n </div>\n <div class="g-1px-horz-line"></div>\n <div class="PayVerify__btn">\n <div class="PayVerify__button"></div>\n </div>\n </div>\n <div class="PayPopup animation">\n <div class="PayPopup__mask"></div>\n <div class="PayPopup__content PayPopup__bottom">\n <div class="PayPopup__main">\n ',o(n.data,(function(t,n){e+='\n <div class="PayPopup__item" data-key="',e+=a(t),e+='">\n ',e+=a(t),e+='\n </div>\n <div class="g-1px-horz-line"></div>\n '})),e+='\n <div class="PayPopup__other"></div>\n <div class="PayPopup__item--cancel">\n 取消\n </div>\n </div>\n <div class="PayPopup__iphonex-bottom"></div>\n </div>\n </div>\n </div>\n'}},3:function(t,e,n){"use strict";t.exports=n(4)},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=o.exec(e);if(!n)return t;var i="",a=void 0,r=void 0,s=void 0;for(a=n.index,r=0;a<e.length;a++){switch(e.charCodeAt(a)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}r!==a&&(i+=e.substring(r,a)),r=a+1,i+=s}return r!==a?i+e.substring(r,a):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var o in t)e(t[o],o)},t.exports=i}).call(this,n(5))},42:function(t,e,n){"use strict";n.r(e);n(61);var i=n(28),o=n.n(i);function a(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)}}var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,getObject:function(t){return t}}),this.button=this.container.querySelector(".PayVerify__button"),this.input=this.container.querySelector(".PayVerify__input"),this.telInput=this.container.querySelector(".PayVerify__telInput"),this.countDownBtn=this.container.querySelector(".PayVerify__countDownButton"),this.change=this.container.querySelector(".PayVerify__change"),this.popup=this.container.querySelector(".PayPopup"),this.close=this.container.querySelector(".PayPopup__item--cancel"),this.items=this.container.querySelectorAll(".PayPopup__item"),this.tel=this.container.querySelector(".PayVerify__tel")}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),s=n(0),c=n(8);function u(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)}}var l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("PayVerify")[0],data:t.data||[],time:t.time||60,length:t.length||4,buttonText:t.buttonText||"下一步",title:t.title||"验证银行预留手机号",phone:t.data&&t.data[0]||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.length=this.options.length,this.code="",this.time=this.options.time,this._time=this.options.time,this.phone=this.options.data[0]||"",this.template=new r({container:this.container,options:this.options}),this.events=new s.a(["init","change","submit","getCode"]),this.bindEvents(),this.init()}var e,n,i;return e=t,i=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"bindEvents",value:function(){var t=this;this.on("change",(function(){t.toggleSubmitDisabled()})),this.template.countDownBtn.addEventListener("click",(function(){t.events.trigger("getCode",{phone:t.phone})})),this.template.change&&this.template.change.addEventListener("click",(function(){t.show()})),this.template.telInput&&this.template.telInput.addEventListener("input",(function(e){t.phone=e.target.value}));for(var e=0;e<this.template.items.length;e++)this.template.items[e].addEventListener("click",(function(e){var n=e.target.dataset.key||"";t.phone!==n&&(t.template.tel.innerHTML=n,t.phone=n),t.hide()}))}},{key:"init",value:function(){var t=this;this.button=new c.a({container:this.template.button,text:this.options.buttonText}),this.countDownBtn=new c.a({container:this.template.countDownBtn,text:"获取验证码"}),this.button.on("submit",(function(){t.events.trigger("submit",{code:t.code,phone:t.phone})})),this.template.input.addEventListener("input",(function(e){t.code=e.target.value,t.events.trigger("change")}),!1),this.template.close.addEventListener("click",(function(){t.hide()}),!1),this.events.trigger("init"),this.events.trigger("change")}},{key:"show",value:function(){this.template.popup.classList.add("PayPopup__show")}},{key:"hide",value:function(){this.template.popup.classList.remove("PayPopup__show")}},{key:"countDown",value:function(){this.time=this._time,this.countDownBtn.setDisabled(!0),this.template.countDownBtn.querySelector(".base-button__tag").innerHTML="".concat(this.time,"秒后重试"),this._countDown()}},{key:"resetCountDown",value:function(){this.timer&&clearTimeout(this.timer),this.countDownBtn.setDisabled(!1),this.template.countDownBtn.querySelector(".base-button__tag").innerHTML="获取验证码"}},{key:"_countDown",value:function(){var t=this;this.timer=setTimeout((function(){if(t.time<=0)return clearTimeout(t.timer),t.countDownBtn.setDisabled(!1),void(t.template.countDownBtn.querySelector(".base-button__tag").innerHTML="获取验证码");t._time===t.time&&t.countDownBtn.setDisabled(!0),t.time--,t.template.countDownBtn.querySelector(".base-button__tag").innerHTML="".concat(t.time,"秒后重试"),t._countDown()}),1e3)}},{key:"toggleSubmitDisabled",value:function(){var t=!1;this.code&&this.code.length===this.length||(t=!0),this.button.setDisabled(t)}}])&&u(e.prototype,n),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=l},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},61:function(t,e,n){var i=n(1),o=n(62);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var a={insert:"head",singleton:!1};i(o,a);t.exports=o.locals||{}},62:function(t,e,n){(e=n(2)(!1)).push([t.i,".PayVerify{padding-top:40px}.PayVerify__title{color:#333;font-size:24px;width:100%;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.PayVerify__form{padding:40px 20px}.PayVerify__item{display:flex;align-items:center;padding:10px 0}.PayVerify__btn{margin-top:40px}.PayVerify__label{margin-right:8px;font-size:16px}.PayVerify__field{flex:1;height:22px;line-height:22px;color:#999}.PayVerify__telInput{color:#333;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:2px 0;height:25px;line-height:25px;border:0;background-color:transparent;line-height:1;box-sizing:border-box}.PayVerify__telInput:focus{outline:none}.PayVerify__countDown{display:flex;justify-content:flex-end;margin-left:5px}.PayVerify__countDown .base-button__tag{width:auto;height:auto;font-size:12px;padding:4px 12px;border-radius:4px}.PayVerify__countDown .base-button__tag:focus{outline:none}.PayVerify__change{display:flex;justify-content:flex-end;font-size:16px;color:#4b6b99;margin-left:20px}.PayVerify__input{color:#333;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:2px 0;height:25px;line-height:25px;border:0;background-color:transparent;line-height:1;box-sizing:border-box}.PayVerify__input:focus{outline:none}.PayPopup{position:relative}.PayPopup__content{position:fixed}.PayPopup__mask{visibility:hidden;position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);opacity:0}.PayPopup__bottom{left:0;bottom:0;width:100vw;transform:translateY(100%)}.PayPopup__show .PayPopup__content{transform:none}.PayPopup__show .PayPopup__mask{visibility:visible;opacity:1}.PayPopup.animation .PayPopup-mask,.PayPopup.animation .PayPopup__content{transition:all .2s linear}.PayPopup__main{background:#fff;padding-top:12px;border-top-left-radius:8px;border-top-right-radius:8px}.PayPopup__item,.PayPopup__item--cancel{width:100%;padding:16px 0;color:#333;background:#fff;font-size:18px;text-align:center}.PayPopup__item--cancel{border-bottom:none}.PayPopup__other{background-color:#f5f5f5;height:8px;width:100%}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3){.PayPopup__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}.g-1px-horz-line{height:1px;transform:scaleY(.5);flex:0 0 auto;background-color:#e5e5e5}",""]),t.exports=e},8:function(t,e,n){"use strict";n(12);var i=n(10),o=n.n(i);function a(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)}}var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,getObject:function(t){return t}}),this.button=this.container.querySelector(".base-button__tag")}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),s=n(0);function c(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)}}var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("BaseButton")[0],text:t.text||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.template=new r({container:this.container,options:this.options}),this.events=new s.a(["submit"]),this.init()}var e,n,i;return e=t,i=[{key:"version",get:function(){return"0.0.19"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"init",value:function(){var t=this;this.template.button.addEventListener("click",(function(){t.events.trigger("submit")}))}},{key:"setDisabled",value:function(t){this.template.button.disabled=t,t?this.template.button.classList.add("base-button__tag--disabled"):this.template.button.classList.remove("base-button__tag--disabled")}}])&&c(e.prototype,n),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=u}}).default})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PayVerify",[],e):"object"==typeof exports?exports.PayVerify=e():t.PayVerify=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},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=52)}({0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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)}}var a=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this.events={},this.eventsList=e}var e,n,a;return e=t,(n=[{key:"on",value:function(t,e){this.type(t)&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))}},{key:"trigger",value:function(t,e){if(this.events[t]&&this.events[t].length)for(var n=0;n<this.events[t].length;n++)this.events[t][n](e)}},{key:"type",value:function(t){return-1!==this.eventsList.indexOf(t)||(console.error("Unknown event name: ".concat(t)),null)}}])&&o(e.prototype,n),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=a},1:function(t,e,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),r=[];function s(t){for(var e=-1,n=0;n<r.length;n++)if(r[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},i=[],o=0;o<t.length;o++){var a=t[o],c=e.base?a[0]+e.base:a[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var p=s(l),f={css:a[1],media:a[2],sourceMap:a[3]};-1!==p?(r[p].references++,r[p].updater(f)):r.push({identifier:l,updater:v(f,e),references:1}),i.push(l)}return i}function u(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var r=a(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}return e}var l,p=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=p(e,o);else{var a=document.createTextNode(o),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function d(t,e,n){var i=n.css,o=n.media,a=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var h=null,y=0;function v(t,e){var n,i,o;if(e.singleton){var a=y++;n=h||(h=u(e)),i=f.bind(null,n,a,!1),o=f.bind(null,n,a,!0)}else n=u(e),i=d.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=s(n[i]);r[o].references--}for(var a=c(t,e),u=0;u<n.length;u++){var l=s(n[u]);0===r[l].references&&(r[l].updater(),r.splice(l,1))}n=a}}}},10:function(t,e,n){n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options;return e+='<div class="base-button">\n <button class="base-button__tag" ',n.disabled&&(e+=' disabled="disabled" '),e+=">",e+=n.text,e+="</button>\n</div>\n"}},12:function(t,e,n){var i=n(1),o=n(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var a={insert:"head",singleton:!1};i(o,a);t.exports=o.locals||{}},13:function(t,e,n){(e=n(2)(!1)).push([t.i,".base-button__tag{display:block;width:100%;height:50px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;font-size:18px;background-color:#1677ff;color:#fff;border-radius:4px}.base-button__tag:active{background-color:#0767ee}.base-button__tag--disabled{opacity:.6}",""]),t.exports=e},2:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(r=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([o]).join("\n")}var r,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var a=0;a<this.length;a++){var r=this[a][0];null!=r&&(o[r]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},28:function(t,e,n){var i=n(3);t.exports=function(t){"use strict";var e="",n=(t=t||{}).options,o=i.$each,a=(t.$value,t.$index,i.$escape);return e+=' <div class="PayVerify">\n <div class="PayVerify__title">',e+=n.title,e+='</div>\n <div class="PayVerify__form">\n <div class="PayVerify__item">\n <div class="PayVerify__label">手机号</div>\n <div class="PayVerify__field">\n ',n.data.length>0?(e+='\n <span class="PayVerify__tel">',e+=n.phone,e+="</span>\n "):0===n.data.length&&(e+='\n <input class="PayVerify__telInput" maxlength="11" type="tel" placeholder="请输入手机号">\n '),e+="\n </div>\n ",n.data.length>1&&(e+='\n <div class="PayVerify__change">更改</div>\n '),e+='\n </div>\n <div class="g-1px-horz-line"></div>\n <div class="PayVerify__item">\n <div class="PayVerify__label">验证码</div>\n <div class="PayVerify__field">\n <input class="PayVerify__input" maxlength="',e+=n.length,e+='" placeholder="填写验证码" />\n </div>\n <div class="PayVerify__countDown">\n <div class="PayVerify__countDownButton"></div>\n </div>\n </div>\n <div class="g-1px-horz-line"></div>\n <div class="PayVerify__btn">\n <div class="PayVerify__button"></div>\n </div>\n </div>\n <div class="PayPopup animation">\n <div class="PayPopup__mask"></div>\n <div class="PayPopup__content PayPopup__bottom">\n <div class="PayPopup__main">\n ',o(n.data,(function(t,n){e+='\n <div class="PayPopup__item" data-key="',e+=a(t),e+='">\n ',e+=a(t),e+='\n </div>\n <div class="g-1px-horz-line"></div>\n '})),e+='\n <div class="PayPopup__other"></div>\n <div class="PayPopup__item--cancel">\n 取消\n </div>\n </div>\n <div class="PayPopup__iphonex-bottom"></div>\n </div>\n </div>\n </div>\n'}},3:function(t,e,n){"use strict";t.exports=n(4)},4:function(t,e,n){"use strict";(function(e){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},i=Object.create(n),o=/["&'<>]/;i.$escape=function(t){return function(t){var e=""+t,n=o.exec(e);if(!n)return t;var i="",a=void 0,r=void 0,s=void 0;for(a=n.index,r=0;a<e.length;a++){switch(e.charCodeAt(a)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}r!==a&&(i+=e.substring(r,a)),r=a+1,i+=s}return r!==a?i+e.substring(r,a):i}(function t(e){"string"!=typeof e&&(e=null==e?"":"function"==typeof e?t(e.call(e)):JSON.stringify(e));return e}(t))},i.$each=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e(t[n],n);else for(var o in t)e(t[o],o)},t.exports=i}).call(this,n(5))},5:function(t,e){function n(t){return(n="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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},52:function(t,e,n){"use strict";n.r(e);n(72);var i=n(28),o=n.n(i);function a(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)}}var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,getObject:function(t){return t}}),this.button=this.container.querySelector(".PayVerify__button"),this.input=this.container.querySelector(".PayVerify__input"),this.telInput=this.container.querySelector(".PayVerify__telInput"),this.countDownBtn=this.container.querySelector(".PayVerify__countDownButton"),this.change=this.container.querySelector(".PayVerify__change"),this.popup=this.container.querySelector(".PayPopup"),this.close=this.container.querySelector(".PayPopup__item--cancel"),this.items=this.container.querySelectorAll(".PayPopup__item"),this.tel=this.container.querySelector(".PayVerify__tel")}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),s=n(0),c=n(6);function u(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)}}var l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("PayVerify")[0],data:t.data||[],time:t.time||60,length:t.length||4,buttonText:t.buttonText||"下一步",title:t.title||"验证银行预留手机号",phone:t.data&&t.data[0]||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.length=this.options.length,this.code="",this.time=this.options.time,this._time=this.options.time,this.phone=this.options.data[0]||"",this.template=new r({container:this.container,options:this.options}),this.events=new s.a(["init","change","submit","getCode"]),this.bindEvents(),this.init()}var e,n,i;return e=t,i=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"bindEvents",value:function(){var t=this;this.on("change",(function(){t.toggleSubmitDisabled()})),this.template.countDownBtn.addEventListener("click",(function(){t.events.trigger("getCode",{phone:t.phone})})),this.template.change&&this.template.change.addEventListener("click",(function(){t.show()})),this.template.telInput&&this.template.telInput.addEventListener("input",(function(e){t.phone=e.target.value}));for(var e=0;e<this.template.items.length;e++)this.template.items[e].addEventListener("click",(function(e){var n=e.target.dataset.key||"";t.phone!==n&&(t.template.tel.innerHTML=n,t.phone=n),t.hide()}))}},{key:"init",value:function(){var t=this;this.button=new c.a({container:this.template.button,text:this.options.buttonText}),this.countDownBtn=new c.a({container:this.template.countDownBtn,text:"获取验证码"}),this.button.on("submit",(function(){t.events.trigger("submit",{code:t.code,phone:t.phone})})),this.template.input.addEventListener("input",(function(e){t.code=e.target.value,t.events.trigger("change")}),!1),this.template.close.addEventListener("click",(function(){t.hide()}),!1),this.events.trigger("init"),this.events.trigger("change")}},{key:"show",value:function(){this.template.popup.classList.add("PayPopup__show")}},{key:"hide",value:function(){this.template.popup.classList.remove("PayPopup__show")}},{key:"countDown",value:function(){this.time=this._time,this.countDownBtn.setDisabled(!0),this.template.countDownBtn.querySelector(".base-button__tag").innerHTML="".concat(this.time,"秒后重试"),this._countDown()}},{key:"resetCountDown",value:function(){this.timer&&clearTimeout(this.timer),this.countDownBtn.setDisabled(!1),this.template.countDownBtn.querySelector(".base-button__tag").innerHTML="获取验证码"}},{key:"_countDown",value:function(){var t=this;this.timer=setTimeout((function(){if(t.time<=0)return clearTimeout(t.timer),t.countDownBtn.setDisabled(!1),void(t.template.countDownBtn.querySelector(".base-button__tag").innerHTML="获取验证码");t._time===t.time&&t.countDownBtn.setDisabled(!0),t.time--,t.template.countDownBtn.querySelector(".base-button__tag").innerHTML="".concat(t.time,"秒后重试"),t._countDown()}),1e3)}},{key:"toggleSubmitDisabled",value:function(){var t=!1;this.code&&this.code.length===this.length||(t=!0),this.button.setDisabled(t)}}])&&u(e.prototype,n),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=l},6:function(t,e,n){"use strict";n(12);var i=n(10),o=n.n(i);function a(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)}}var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e.container,this.options=e.options,this.init()}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.container.innerHTML=o()({options:this.options,getObject:function(t){return t}}),this.button=this.container.querySelector(".base-button__tag")}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),s=n(0);function c(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)}}var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=function(t){var e={container:t.element||document.getElementsByClassName("BaseButton")[0],text:t.text||""};for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e),this.container=this.options.container,this.template=new r({container:this.container,options:this.options}),this.events=new s.a(["submit"]),this.init()}var e,n,i;return e=t,i=[{key:"version",get:function(){return"0.0.20"}}],(n=[{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"init",value:function(){var t=this;this.template.button.addEventListener("click",(function(){t.events.trigger("submit")}))}},{key:"setDisabled",value:function(t){this.template.button.disabled=t,t?this.template.button.classList.add("base-button__tag--disabled"):this.template.button.classList.remove("base-button__tag--disabled")}}])&&c(e.prototype,n),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=u},72:function(t,e,n){var i=n(1),o=n(73);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var a={insert:"head",singleton:!1};i(o,a);t.exports=o.locals||{}},73:function(t,e,n){(e=n(2)(!1)).push([t.i,".PayVerify{padding-top:40px}.PayVerify__title{color:#333;font-size:24px;width:100%;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.PayVerify__form{padding:40px 20px}.PayVerify__item{display:flex;align-items:center;padding:10px 0}.PayVerify__btn{margin-top:40px}.PayVerify__label{margin-right:8px;font-size:16px}.PayVerify__field{flex:1;height:22px;line-height:22px;color:#999}.PayVerify__telInput{color:#333;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:2px 0;height:25px;line-height:25px;border:0;background-color:transparent;line-height:1;box-sizing:border-box}.PayVerify__telInput:focus{outline:none}.PayVerify__countDown{display:flex;justify-content:flex-end;margin-left:5px}.PayVerify__countDown .base-button__tag{width:auto;height:auto;font-size:12px;padding:4px 12px;border-radius:4px}.PayVerify__countDown .base-button__tag:focus{outline:none}.PayVerify__change{display:flex;justify-content:flex-end;font-size:16px;color:#4b6b99;margin-left:20px}.PayVerify__input{color:#333;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:2px 0;height:25px;line-height:25px;border:0;background-color:transparent;line-height:1;box-sizing:border-box}.PayVerify__input:focus{outline:none}.PayPopup{position:relative}.PayPopup__content{position:fixed}.PayPopup__mask{visibility:hidden;position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);opacity:0}.PayPopup__bottom{left:0;bottom:0;width:100vw;transform:translateY(100%)}.PayPopup__show .PayPopup__content{transform:none}.PayPopup__show .PayPopup__mask{visibility:visible;opacity:1}.PayPopup.animation .PayPopup-mask,.PayPopup.animation .PayPopup__content{transition:all .2s linear}.PayPopup__main{background:#fff;padding-top:12px;border-top-left-radius:8px;border-top-right-radius:8px}.PayPopup__item,.PayPopup__item--cancel{width:100%;padding:16px 0;color:#333;background:#fff;font-size:18px;text-align:center}.PayPopup__item--cancel{border-bottom:none}.PayPopup__other{background-color:#f5f5f5;height:8px;width:100%}@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:2),only screen and (device-width:414px) and (device-height:896px) and (-webkit-device-pixel-ratio:3){.PayPopup__iphonex-bottom{visibility:hidden;min-height:34px;height:env(safe-area-inset-bottom);width:100%}}.g-1px-horz-line{height:1px;transform:scaleY(.5);flex:0 0 auto;background-color:#e5e5e5}",""]),t.exports=e}}).default})); |
{ | ||
"name": "alipay-payui", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"docVersion": "0.0.152", | ||
@@ -5,0 +5,0 @@ "description": "Wow, such a beautiful html5 pay components", |
@@ -17,2 +17,3 @@ # Pay UI | ||
[tnpm-image]: https://npm.alibaba-inc.com/badge/v/alipay-payui.svg | ||
@@ -22,2 +23,13 @@ [tnpm-url]: https://npm.alibaba-inc.com/package/alipay-payui | ||
-------------------- | ||
## Badges | ||
[![TNPM version][tnpm-image]][tnpm-url] | ||
[![TNPM downloads][tnpm-downloads-image]][tnpm-url] | ||
[tnpm-image]: https://npm.alibaba-inc.com/badge/v/alipay-payui.svg | ||
[tnpm-url]: https://npm.alibaba-inc.com/package/alipay-payui | ||
[tnpm-downloads-image]: https://npm.alibaba-inc.com/badge/d/alipay-payui.svg | ||
--- | ||
@@ -43,3 +55,3 @@ | ||
<!--键盘--> | ||
<script src="https://gw.alipayobjects.com/as/g/PayTM-Core/pay-ui/0.0.19/PayKeyboard.js"></script> | ||
<script src="https://gw.alipayobjects.com/as/g/PayTM-Core/pay-ui/0.0.20/PayKeyboard.js"></script> | ||
``` | ||
@@ -46,0 +58,0 @@ |
Sorry, the diff of this file is too big to display
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
92
421463
18
0