tida
Version:
tida
2 lines (1 loc) • 2.49 kB
JavaScript
module.exports=webpackJsonp([6],{53:function(e,t,o){"use strict";var n=o(54),i=function(e){return e&&e.__esModule?e:{default:e}}(n);e.exports=i.default},54:function(e,t,o){"use strict";function n(e){if(!u){u=document.createElement("div");for(var t in d.container)u.style[t]=d.container[t];document.body.appendChild(u)}u.style.transform="translateX(-50%)",u.style.webkitTransform="translateX(-50%)",u.innerHTML=e}function i(){u&&setTimeout(function(){u.style.transform="translateX(-50%) scale(0.8)",u.style.webkitTransform="translateX(-50%) scale(0.8)"},0)}Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),a=[],s=!1,u=void 0,f={push:function(e,t){a.push({message:e,duration:t}),this.show()},show:function(){var e=this;if(!a.length)return u&&u.parentNode.removeChild(u),void(u=null);if(!s){s=!0;var t=a.shift();n(t.message),setTimeout(function(){i(),s=!1,setTimeout(function(){return e.show()},600)},t.duration)}}},l={SHORT:2e3,LONG:3500,show:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;if(r.isWeex){var n=o(55);n.toast&&n.toast({message:e,duration:Number(t)/1e3})}else f.push(e,t)}},d={container:{backgroundColor:"rgba(0, 0, 0, 0.6)",boxSizing:"border-box",maxWidth:"80%",color:"#ffffff",padding:"8px 16px",position:"fixed",left:"50%",bottom:"50%",fontSize:"16px",lineHeight:"32px",fontWeight:"600",borderRadius:"4px",textAlign:"center",transition:"all 0.4s ease-in-out",webkitTransition:"all 0.4s ease-in-out",transform:"translateX(-50%)",webkitTransform:"translateX(-50%)",zIndex:9999}};t.default=l,e.exports=t.default},55:function(e,t){e.exports=require("@weex-module/modal")},8:function(e,t,o){"use strict";(function(e){var 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};Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)};t.isWeb="object"===("undefined"==typeof navigator?"undefined":n(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),t.isNode=void 0!==e&&!(!e.versions||!e.versions.node),t.isWeex="function"==typeof callNative,t.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig}).call(t,o(3))}},[53]);