Commit b5bc2234 authored by IvyXia123's avatar IvyXia123

支付宝

parent a351e4a9
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([59],{BEHY:function(e,s,i){(e.exports=i("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"guidelines.vue",sourceRoot:""}])},byph:function(e,s,i){var r=i("BEHY");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i("rjj0")("95469dd2",r,!1,{})},sDyh:function(e,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={name:"guidelines",data:function(){return{micromessenger:0}},methods:{isWeixinBrowser:function(){var e=navigator.userAgent.toLowerCase();return!!/micromessenger/.test(e)?0:1},micromessengerClick:function(){1==this.micromessenger&&(location.href=this.$route.query.url)}},mounted:function(){console.log(this.isWeixinBrowser()),this.micromessenger=this.isWeixinBrowser()}},n=function(){var e=this.$createElement,s=this._self._c||e;return s("div",{staticClass:"guidelines"},[s("div",{on:{click:this.micromessengerClick}},[this._v(this._s(0==this.micromessenger?"浏览器":"支付宝"))])])};n._withStripped=!0;var t={render:n,staticRenderFns:[]},o=t;var c=!1;var u=i("VU/8")(r,o,!1,function(e){c||i("byph")},"data-v-623750bc",null);u.options.__file="src/components/buy/guidelines.vue";s.default=u.exports}});
\ No newline at end of file
This diff is collapsed.
webpackJsonp([65],{"+N17":function(e,n,t){(e.exports=t("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"navShare.vue",sourceRoot:""}])},oB2U:function(e,n,t){var o=t("+N17");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);t("rjj0")("15ac934c",o,!1,{})},w9jd:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("CCn6"),r={name:"navShare",mounted:function(){var e=this;Object(o.N)().then(function(n){e.shopId=n.id,e.$router.push({name:"buyDetail",query:{invite_code:e.$route.query.invite_code,shopId:e.shopId}})})},data:function(){return{}}},s=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nofinish-block"})};s._withStripped=!0;var a={render:s,staticRenderFns:[]},i=a;var c=!1;var u=t("VU/8")(r,i,!1,function(e){c||t("oB2U")},"data-v-18aa337a",null);u.options.__file="src/components/newLesson/navShare.vue";n.default=u.exports}});
\ No newline at end of file
webpackJsonp([64],{"+N17":function(e,n,t){(e.exports=t("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"navShare.vue",sourceRoot:""}])},oB2U:function(e,n,t){var o=t("+N17");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);t("rjj0")("15ac934c",o,!1,{})},w9jd:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("CCn6"),r={name:"navShare",mounted:function(){var e=this;Object(o.N)().then(function(n){e.shopId=n.id,e.$router.push({name:"buyDetail",query:{invite_code:e.$route.query.invite_code,shopId:e.shopId}})})},data:function(){return{}}},s=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nofinish-block"})};s._withStripped=!0;var a={render:s,staticRenderFns:[]},i=a;var c=!1;var u=t("VU/8")(r,i,!1,function(e){c||t("oB2U")},"data-v-18aa337a",null);u.options.__file="src/components/newLesson/navShare.vue";n.default=u.exports}});
\ No newline at end of file
webpackJsonp([66],{"0RaN":function(t,e,n){var o=n("iOgL");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("d015fa66",o,!1,{})},SnBc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"ybNav",data:function(){return{noUrl:noUrl}},mounted:function(){window.location.href="https://sit.tohours.com/salesplus/goodstart/goodStartIndex.action?parentId="+this.$route.query.parentId+"&agentId="+this.$route.query.agentId}},a=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"noWechat-page"})};a._withStripped=!0;var r={render:a,staticRenderFns:[]},s=r;var i=!1;var u=n("VU/8")(o,s,!1,function(t){i||n("0RaN")},"data-v-0ca00e8b",null);u.options.__file="src/components/youbang/nav.vue";e.default=u.exports},iOgL:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"","",{version:3,sources:[],names:[],mappings:"",file:"nav.vue",sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([65],{"0RaN":function(t,e,n){var o=n("iOgL");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("d015fa66",o,!1,{})},SnBc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"ybNav",data:function(){return{noUrl:noUrl}},mounted:function(){window.location.href="https://sit.tohours.com/salesplus/goodstart/goodStartIndex.action?parentId="+this.$route.query.parentId+"&agentId="+this.$route.query.agentId}},a=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"noWechat-page"})};a._withStripped=!0;var r={render:a,staticRenderFns:[]},s=r;var i=!1;var u=n("VU/8")(o,s,!1,function(t){i||n("0RaN")},"data-v-0ca00e8b",null);u.options.__file="src/components/youbang/nav.vue";e.default=u.exports},iOgL:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"","",{version:3,sources:[],names:[],mappings:"",file:"nav.vue",sourceRoot:""}])}});
\ No newline at end of file
This diff is collapsed.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},a={69:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,n.crossOrigin="anonymous",d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"b3bc8f9f5447ad6c3f53",1:"36c3fbbdd1abfa0795f1",2:"b2308e3de2dec2c41dfc",3:"c0da7088c888c638d99a",4:"e036a40ec5493a2f1fe2",5:"d067c99fb3341c9f8fbf",6:"c38f2b63db9838696563",7:"ab7b22280e4c9b350c6e",8:"0034cdf6dcb7e5fdbe75",9:"72f50e7e8acc8e06c50a",10:"56f5b2c85ed51553385d",11:"1e0c903348e76b91d730",12:"c32793ec9c026ec4952c",13:"70e18470ba94e66ea636",14:"6f775b0f71ab907bf6c9",15:"aac97eac9185f386543e",16:"f41b28ff6bf3de8fc15a",17:"202ef012d70503034c38",18:"17bf5166834bef806a2a",19:"d817a9478a0f0f630c7c",20:"6b595c29e6aaaa7f14c1",21:"0c5886bf7427b7b183e7",22:"f68ea2c665fa37420ccb",23:"6027e15d466465201cf5",24:"66115b335ef36e664560",25:"386d0c50933db7378564",26:"926af732471739d5ee45",27:"8ee0be7fbb0fb087db54",28:"57ab508e80608a7ae6bf",29:"cb0ee5d9d72b28fe276f",30:"653c91ab86838e75b5e6",31:"496a4f1feee35020b28e",32:"d416f9c3eb225c407945",33:"ac86ed186ec22ef8a2f0",34:"f9100b504f7ad9f03fb7",35:"4c83dac57ccdccaca4a1",36:"d1457d79c6cca0e5dea3",37:"5f1924cd6103ee117c61",38:"e023144fad02fb9afd5b",39:"78faf4e875e58ebc2e45",40:"ff3778361e9c6e46fe3d",41:"5460cec8b4bef019ce1b",42:"98f43f4674c3dbc018a6",43:"141f3e876e053113ae40",44:"912133dc7b31ecc11d27",45:"ba6206c8ebb8afc0ddf2",46:"f34412903dee9d902d97",47:"7e2de6f7607c9787f0ba",48:"a0f24071ee52a1d66406",49:"27d4731c146b0a03ef7c",50:"6e6cb7cc07cab9d9a18f",51:"9f76654b0cf55d63f8f1",52:"8cb8dad12210101cff85",53:"61c7cab49a9aadefac52",54:"6b792ec4a32901312c88",55:"c9a9e874de578f6a5aea",56:"8845249be04a11188470",57:"b67ef26e643ad0236ccf",58:"28b8eef9ef51c988ac99",59:"7a2bfa03e6fa3d7678c8",60:"2ff38cdcb0c8d13b51a0",61:"4bbe8d73fb4886ec560b",62:"05895947738105c18151",63:"ff2ed96474562cd5e44b",64:"caf94f2c30470c5b5010",65:"2e668d5dbdd605394d27",66:"d29a08ade6bda9eed6a6"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,d,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(f,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var f={},a={68:0};function b(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,b),a.l=!0,a.exports}b.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,b){c=a[e]=[f,b]});c[2]=f;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,n.crossOrigin="anonymous",b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"b3bc8f9f5447ad6c3f53",1:"36c3fbbdd1abfa0795f1",2:"b2308e3de2dec2c41dfc",3:"b9c0d42bd435c526c071",4:"e036a40ec5493a2f1fe2",5:"d067c99fb3341c9f8fbf",6:"b05df5ee464cc60811b6",7:"5ea7c7fa901065ad18d3",8:"ee96fc24a4c22c866ef0",9:"f1f2f981808dac360043",10:"1e7620dd9d82ff53a48b",11:"ef24e0abaab858c7068c",12:"c32793ec9c026ec4952c",13:"70e18470ba94e66ea636",14:"6f775b0f71ab907bf6c9",15:"aac97eac9185f386543e",16:"f41b28ff6bf3de8fc15a",17:"202ef012d70503034c38",18:"17bf5166834bef806a2a",19:"d817a9478a0f0f630c7c",20:"6b595c29e6aaaa7f14c1",21:"0c5886bf7427b7b183e7",22:"f68ea2c665fa37420ccb",23:"6027e15d466465201cf5",24:"66115b335ef36e664560",25:"386d0c50933db7378564",26:"926af732471739d5ee45",27:"8ee0be7fbb0fb087db54",28:"57ab508e80608a7ae6bf",29:"cb0ee5d9d72b28fe276f",30:"653c91ab86838e75b5e6",31:"496a4f1feee35020b28e",32:"d416f9c3eb225c407945",33:"ac86ed186ec22ef8a2f0",34:"f9100b504f7ad9f03fb7",35:"4c83dac57ccdccaca4a1",36:"d1457d79c6cca0e5dea3",37:"5f1924cd6103ee117c61",38:"e023144fad02fb9afd5b",39:"78faf4e875e58ebc2e45",40:"ff3778361e9c6e46fe3d",41:"5460cec8b4bef019ce1b",42:"98f43f4674c3dbc018a6",43:"141f3e876e053113ae40",44:"912133dc7b31ecc11d27",45:"ba6206c8ebb8afc0ddf2",46:"f34412903dee9d902d97",47:"7e2de6f7607c9787f0ba",48:"a0f24071ee52a1d66406",49:"27d4731c146b0a03ef7c",50:"6e6cb7cc07cab9d9a18f",51:"9f76654b0cf55d63f8f1",52:"8cb8dad12210101cff85",53:"61c7cab49a9aadefac52",54:"6b792ec4a32901312c88",55:"c9a9e874de578f6a5aea",56:"8845249be04a11188470",57:"b67ef26e643ad0236ccf",58:"28b8eef9ef51c988ac99",59:"0c0875ae235771bd6f91",60:"cbff16b1e8215f0dc71f",61:"5bf1550de012273a6856",62:"e5f4debfb436a9993bf4",63:"557e137c7b8fe2ac6cd8",64:"db1a8a73dc6edb078ca7",65:"b743a3660298e39b9df2"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),f},b.m=e,b.c=f,b.d=function(e,c,f){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
webpackJsonp([67],{"+2ln":function(t,e,n){"use strict";var r=n("AA6R"),o=n.n(r),i=n("o69Z"),a=n("rhik"),s=Object(i.h)("info"),c=s[0],l=s[1];function u(t,e,n,r){if(Object(i.c)(e.info))return t("div",o()([{class:l()},Object(a.b)(r,!0)]),[e.info])}u.props={info:[String,Number]};var f=c(u);var d=Object(i.h)("icon")[0];function p(t,e,n,r){var i,s=(i=e.name,/^(https?:)?\/\/|data:image/.test(i));return t(e.tag,o()([{class:[e.classPrefix,s?"van-icon--image":e.classPrefix+"-"+e.name],style:{color:e.color,fontSize:e.size}},Object(a.b)(r,!0)]),[n.default&&n.default(),s&&t("img",{attrs:{src:e.name}}),t(f,{attrs:{info:e.info}})])}p.props={name:String,size:String,color:String,info:[String,Number],tag:{type:String,default:"i"},classPrefix:{type:String,default:"van-icon"}};e.a=d(p)},"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(t,e,n){var r=n("lOnJ");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"+tPU":function(t,e,n){n("xGkn");for(var r=n("7KvD"),o=n("hJx8"),i=n("/bQp"),a=n("dSzd")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=r[l],f=u&&u.prototype;f&&!f[a]&&o(f,a,l),i[l]=i.Array}},"//Fk":function(t,e,n){t.exports={default:n("U5ju"),__esModule:!0}},"/QYm":function(t,e,n){"use strict";var r=n("RfZZ"),o=n("7+uW"),i=n("o69Z"),a=n("CsZI"),s=n("+2ln"),c=n("pIDD"),l=Object(i.h)("toast"),u=l[0],f=l[1],d=["success","fail","loading"],p=u({mixins:[a.a],props:{className:null,forbidClick:Boolean,message:[String,Number],type:{type:String,default:"text"},loadingType:{type:String,default:"circular"},position:{type:String,default:"middle"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickale()},destroyed:function(){this.toggleClickale()},watch:{value:function(){this.toggleClickale()},forbidClick:function(){this.toggleClickale()}},methods:{toggleClickale:function(){var t=this.value&&this.forbidClick;if(this.clickable!==t){this.clickable=t;var e=t?"add":"remove";document.body.classList[e]("van-toast--unclickable")}}},render:function(t){var e=this,n=this.type,r=this.message,o=-1!==d.indexOf(n)?"default":n;return t("transition",{attrs:{name:"van-fade"}},[t("div",{directives:[{name:"show",value:this.value}],class:[f([o,this.position]),this.className]},[function(){switch(o){case"text":return t("div",[r]);case"html":return t("div",{domProps:{innerHTML:r}});default:return["loading"===n?t(c.a,{attrs:{color:"white",type:e.loadingType}}):t(s.a,{class:f("icon"),attrs:{name:n}}),Object(i.c)(r)&&t("div",{class:f("text")},[r])]}}()])])}}),h={type:"text",mask:!1,value:!0,message:"",className:"",onClose:null,duration:3e3,position:"middle",forbidClick:!1,loadingType:"circular",getContainer:"body",overlayStyle:null},v=function(t){return Object(i.d)(t)?t:{message:t}},m=[],g=!0,y=Object(r.a)({},h);function b(t){void 0===t&&(t={});var e=function(){if(i.e)return{};if(!m.length||!g){var t=new(o.default.extend(p))({el:document.createElement("div")});m.push(t)}return m[m.length-1]}();return t=Object(r.a)({},y,v(t),{clear:function(){if(e.value=!1,t.onClose&&t.onClose(),!g&&!i.e){clearTimeout(e.timer),m=m.filter(function(t){return t!==e});var n=e.$el.parentNode;n&&n.removeChild(e.$el),e.$destroy()}}}),Object(r.a)(e,function(t){return t.overlay=t.mask,t}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}["loading","success","fail"].forEach(function(t){var e;b[t]=(e=t,function(t){return b(Object(r.a)({type:e},v(t)))})}),b.clear=function(t){m.length&&(t?(m.forEach(function(t){t.clear()}),m=[]):g?m[0].clear():m.shift().clear())},b.setDefaultOptions=function(t){Object(r.a)(y,t)},b.resetDefaultOptions=function(){y=Object(r.a)({},h)},b.allowMultiple=function(t){void 0===t&&(t=!0),g=!t},b.install=function(){o.default.use(p)},o.default.prototype.$toast=b;e.a=b},"/bQp":function(t,e){t.exports={}},"/n6Q":function(t,e,n){n("zQR9"),n("+tPU"),t.exports=n("Kh4W").f("iterator")},"/ocq":function(t,e,n){"use strict";
webpackJsonp([66],{"+2ln":function(t,e,n){"use strict";var r=n("AA6R"),o=n.n(r),i=n("o69Z"),a=n("rhik"),s=Object(i.h)("info"),c=s[0],l=s[1];function u(t,e,n,r){if(Object(i.c)(e.info))return t("div",o()([{class:l()},Object(a.b)(r,!0)]),[e.info])}u.props={info:[String,Number]};var f=c(u);var d=Object(i.h)("icon")[0];function p(t,e,n,r){var i,s=(i=e.name,/^(https?:)?\/\/|data:image/.test(i));return t(e.tag,o()([{class:[e.classPrefix,s?"van-icon--image":e.classPrefix+"-"+e.name],style:{color:e.color,fontSize:e.size}},Object(a.b)(r,!0)]),[n.default&&n.default(),s&&t("img",{attrs:{src:e.name}}),t(f,{attrs:{info:e.info}})])}p.props={name:String,size:String,color:String,info:[String,Number],tag:{type:String,default:"i"},classPrefix:{type:String,default:"van-icon"}};e.a=d(p)},"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(t,e,n){var r=n("lOnJ");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"+tPU":function(t,e,n){n("xGkn");for(var r=n("7KvD"),o=n("hJx8"),i=n("/bQp"),a=n("dSzd")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=r[l],f=u&&u.prototype;f&&!f[a]&&o(f,a,l),i[l]=i.Array}},"//Fk":function(t,e,n){t.exports={default:n("U5ju"),__esModule:!0}},"/QYm":function(t,e,n){"use strict";var r=n("RfZZ"),o=n("7+uW"),i=n("o69Z"),a=n("CsZI"),s=n("+2ln"),c=n("pIDD"),l=Object(i.h)("toast"),u=l[0],f=l[1],d=["success","fail","loading"],p=u({mixins:[a.a],props:{className:null,forbidClick:Boolean,message:[String,Number],type:{type:String,default:"text"},loadingType:{type:String,default:"circular"},position:{type:String,default:"middle"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickale()},destroyed:function(){this.toggleClickale()},watch:{value:function(){this.toggleClickale()},forbidClick:function(){this.toggleClickale()}},methods:{toggleClickale:function(){var t=this.value&&this.forbidClick;if(this.clickable!==t){this.clickable=t;var e=t?"add":"remove";document.body.classList[e]("van-toast--unclickable")}}},render:function(t){var e=this,n=this.type,r=this.message,o=-1!==d.indexOf(n)?"default":n;return t("transition",{attrs:{name:"van-fade"}},[t("div",{directives:[{name:"show",value:this.value}],class:[f([o,this.position]),this.className]},[function(){switch(o){case"text":return t("div",[r]);case"html":return t("div",{domProps:{innerHTML:r}});default:return["loading"===n?t(c.a,{attrs:{color:"white",type:e.loadingType}}):t(s.a,{class:f("icon"),attrs:{name:n}}),Object(i.c)(r)&&t("div",{class:f("text")},[r])]}}()])])}}),h={type:"text",mask:!1,value:!0,message:"",className:"",onClose:null,duration:3e3,position:"middle",forbidClick:!1,loadingType:"circular",getContainer:"body",overlayStyle:null},v=function(t){return Object(i.d)(t)?t:{message:t}},m=[],g=!0,y=Object(r.a)({},h);function b(t){void 0===t&&(t={});var e=function(){if(i.e)return{};if(!m.length||!g){var t=new(o.default.extend(p))({el:document.createElement("div")});m.push(t)}return m[m.length-1]}();return t=Object(r.a)({},y,v(t),{clear:function(){if(e.value=!1,t.onClose&&t.onClose(),!g&&!i.e){clearTimeout(e.timer),m=m.filter(function(t){return t!==e});var n=e.$el.parentNode;n&&n.removeChild(e.$el),e.$destroy()}}}),Object(r.a)(e,function(t){return t.overlay=t.mask,t}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}["loading","success","fail"].forEach(function(t){var e;b[t]=(e=t,function(t){return b(Object(r.a)({type:e},v(t)))})}),b.clear=function(t){m.length&&(t?(m.forEach(function(t){t.clear()}),m=[]):g?m[0].clear():m.shift().clear())},b.setDefaultOptions=function(t){Object(r.a)(y,t)},b.resetDefaultOptions=function(){y=Object(r.a)({},h)},b.allowMultiple=function(t){void 0===t&&(t=!0),g=!t},b.install=function(){o.default.use(p)},o.default.prototype.$toast=b;e.a=b},"/bQp":function(t,e){t.exports={}},"/n6Q":function(t,e,n){n("zQR9"),n("+tPU"),t.exports=n("Kh4W").f("iterator")},"/ocq":function(t,e,n){"use strict";
/**
* vue-router v3.0.1
* (c) 2017 Evan You
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment