PaymentResult.0b32c64d.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PaymentResult"],{3354:function(e,t,r){},"3e17":function(e,t,r){e.exports=r.p+"img/pay_error.109ccf27.png"},"3ed2":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"paymentresult"},[e.headerStatus?n("m-header",{attrs:{isBack:e.isBack}}):e._e(),"on"==e.pageStatus?n("div",{staticClass:"payon"},[n("img",{attrs:{src:r("82aa"),alt:""}}),n("p",[e._v("支付成功")]),n("van-button",{attrs:{type:"info",round:""},on:{click:e.onAppBack}},[e._v("返回")])],1):e._e(),"error"==e.pageStatus?n("div",{staticClass:"payerror"},[n("img",{attrs:{src:r("3e17"),alt:""}}),n("p",[e._v("支付失败")]),n("van-button",{attrs:{type:"info",round:""},on:{click:e.onAppBack}},[e._v("返回")])],1):e._e(),"paying"==e.pageStatus?n("div",{staticClass:"paying"},[n("img",{attrs:{src:r("f620"),alt:""}}),n("p",[e._v("订单处理中")]),n("van-button",{attrs:{type:"info",round:""},on:{click:e.onAppBack}},[e._v("返回")]),n("p",{staticClass:"countdown"},[e._v("到计时"+e._s(e.smsText)+"秒刷新")])],1):e._e(),"success"==e.pageStatus?n("div",{staticClass:"paysuccess"},[n("div",{staticClass:"status"},[n("img",{attrs:{src:r("82aa"),alt:""}}),n("p",[e._v("支付成功")]),"PRACTICE"==e.groupType?n("p",{staticClass:"money"},[e._v("¥"+e._s(e.PRACTICEPRICE))]):n("p",{staticClass:"money"},[e._v("¥"+e._s(e.orderInfo.actualAmount))])]),n("div",{staticClass:"orderinfo"},[n("p",[n("span",[e._v("购买时间:")]),e._v("\n "+e._s(e.orderInfo.createTime)+"\n ")]),n("p",[n("span",[e._v("订单号:")]),e._v("\n "+e._s(e.orderInfo.orderNo)+"\n ")]),n("p",[n("span",[e._v("购买详情:")]),n("span",[e._v("购买:"+e._s(e._f("calcMinute")(e.orderInfo.transMinutes))+";")]),e.orderInfo.giveMinutes&&e.orderInfo.giveMinutes>0?n("span",[e._v("赠送:"+e._s(e._f("calcMinute")(e.orderInfo.giveMinutes))+";")]):e._e()])]),n("van-button",{attrs:{type:"info",round:""},on:{click:e.onAppBack}},[e._v("返回")])],1):e._e()],1)},o=[],a=r("6e6e"),i=r("ff51"),s=r("b562"),c={name:"paymentresult",components:{MHeader:a["a"]},data:function(){var e=this;return{headerStatus:!1,isBack:"off"!=e.$route.query.isBack,pageStatus:null,orderInfo:{},smsText:60,groupType:null,timer:null}},mounted:function(){Object(i["b"])().android||Object(i["b"])().iPhone||(this.headerStatus=!0),this.__init(),this.pushHistory(),window.addEventListener("popstate",function(e){Object(i["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):Object(i["b"])().iPhone?window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"})):window.location.replace(Object(i["g"])()+"/#/teacherDownload")},!1)},methods:{pushHistory:function(){var e={title:"title",url:"#"};window.history.pushState(e,"title","#")},__init:function(){var e=this,t=this.$route.query;t.orderNo?Object(s["i"])({orderNo:t.orderNo}).then(function(t){var r=t.data;if(200==r.code){var n=r.data;e.orderInfo=n,e.showStatus(n.status)}else e.pageStatus="paying",e.CountDown()}):t.type?this.pageStatus=t.type:(this.pageStatus="paying",this.CountDown())},getYMDToCn:function(e){"string"==typeof e&&(e=e.replace(/-/gi,"/"));var t=new Date(e);return t.getFullYear()+"年"+(t.getMonth()+1)+"月"+t.getDate()+"日"},splitStr:function(e){if(e){var t=e.split(":");return t[0]+":"+t[1]}return e},showStatus:function(e,t){"ING"==e?(this.pageStatus="paying",this.CountDown()):"SUCCESS"==e?this.pageStatus="success":"FAILED"==e&&(this.pageStatus="error")},onAppBack:function(){var e=window.localStorage.getItem("courseApply");clearInterval(this.timer);var t=window.history.length;Object(i["b"])().android||Object(i["b"])().iPhone?e?window.history.go(-(t-1)):window.history.go(-(t-2)):window.location.replace(Object(i["g"])()+"/#/teacherDownload")},CountDown:function(){var e=this,t=60;this.smsText=t,this.timer=setInterval(function(){t<=0?(window.location.reload(),clearInterval(e.timer)):(t--,e.smsText=t)},1e3)}}},l=c,u=(r("8027"),r("2877")),p=Object(u["a"])(l,n,o,!1,null,"9766c4f4",null);t["default"]=p.exports},4127:function(e,t,r){"use strict";var n=r("d2334"),o=r("b313"),a=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,p=o["default"],f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},d=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},y=function e(t,r,o,a,i,c,u,p,y,h,m,g,v){var b=t;if("function"===typeof u?b=u(r,b):b instanceof Date?b=h(b):"comma"===o&&s(b)&&(b=b.join(",")),null===b){if(a)return c&&!g?c(r,f.encoder,v):r;b=""}if(d(b)||n.isBuffer(b)){if(c){var w=g?r:c(r,f.encoder,v);return[m(w)+"="+m(c(b,f.encoder,v))]}return[m(r)+"="+m(String(b))]}var O,j=[];if("undefined"===typeof b)return j;if(s(u))O=u;else{var _=Object.keys(b);O=p?_.sort(p):_}for(var S=0;S<O.length;++S){var k=O[S];i&&null===b[k]||(s(b)?l(j,e(b[k],"function"===typeof o?o(r,k):r,o,a,i,c,u,p,y,h,m,g,v)):l(j,e(b[k],r+(y?"."+k:"["+k+"]"),o,a,i,c,u,p,y,h,m,g,v)))}return j},h=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o["default"];if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],i=f.filter;return("function"===typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var r,n,o=e,a=h(t);"function"===typeof a.filter?(n=a.filter,o=n("",o)):s(a.filter)&&(n=a.filter,r=n);var c,u=[];if("object"!==typeof o||null===o)return"";c=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=i[c];r||(r=Object.keys(o)),a.sort&&r.sort(a.sort);for(var f=0;f<r.length;++f){var d=r[f];a.skipNulls&&null===o[d]||l(u,y(o[d],d,p,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.formatter,a.encodeValuesOnly,a.charset))}var m=u.join(a.delimiter),g=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""}},4328:function(e,t,r){"use strict";var n=r("4127"),o=r("9e6a"),a=r("b313");e.exports={formats:a,parse:o,stringify:n}},5115:function(e,t,r){"use strict";var n=r("3354"),o=r.n(n);o.a},"6e6e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[e.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:e.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[e._t("default",[e._v(e._s(e.name?e.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[e._t("right")],2)])])},o=[],a={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var e=this.backUrl;"function"==typeof e.callBack?e.callBack():e.path?this.$router.push({path:e.path,query:e.params}):history.go(-1)}}},i=a,s=(r("5115"),r("2877")),c=Object(s["a"])(i,n,o,!1,null,"61d0e2e4",null);t["a"]=c.exports},8027:function(e,t,r){"use strict";var n=r("8165"),o=r.n(n);o.a},8165:function(e,t,r){},"82aa":function(e,t,r){e.exports=r.p+"img/pay_success.181846c1.png"},"9e6a":function(e,t,r){"use strict";var n=r("d2334"),o=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",l=function(e,t){var r,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,p),d=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&(f[r]===c?y="utf-8":f[r]===s&&(y="iso-8859-1"),d=r,r=f.length);for(r=0;r<f.length;++r)if(r!==d){var h,m,g=f[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(h=t.decoder(g,a.decoder,y),m=t.strictNullHandling?null:""):(h=t.decoder(g.slice(0,b),a.decoder,y),m=t.decoder(g.slice(b+1),a.decoder,y)),m&&t.interpretNumericEntities&&"iso-8859-1"===y&&(m=i(m)),m&&t.comma&&m.indexOf(",")>-1&&(m=m.split(",")),o.call(l,h)?l[h]=n.combine(l[h],m):l[h]=m}return l},u=function(e,t,r){for(var n=t,o=e.length-1;o>=0;--o){var a,i=e[o];if("[]"===i&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,c=parseInt(s,10);r.parseArrays||""!==s?!isNaN(c)&&i!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[],a[c]=n):a[s]=n:a={0:n}}n=a}return n},p=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(n),c=s?n.slice(0,s.index):n,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}var p=0;while(r.depth>0&&null!==(s=i.exec(n))&&p<r.depth){if(p+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+n.slice(s.index)+"]"),u(l,t,r)}},f=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=f(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var o="string"===typeof e?l(e,r):e,a=r.plainObjects?Object.create(null):{},i=Object.keys(o),s=0;s<i.length;++s){var c=i[s],u=p(c,o[c],r);a=n.merge(a,u,r)}return n.compact(a)}},b313:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,a=r("d2334"),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=a.assign({default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},i)},d2334:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],a=0;a<r.length;++a)"undefined"!==typeof r[a]&&n.push(r[a]);t.obj[t.prop]=n}}},s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},c=function e(t,r,a){if(!r)return t;if("object"!==typeof r){if(o(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(a&&(a.plainObjects||a.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var i=t;return o(t)&&!o(r)&&(i=s(t,a)),o(t)&&o(r)?(r.forEach(function(r,o){if(n.call(t,o)){var i=t[o];i&&"object"===typeof i&&r&&"object"===typeof r?t[o]=e(i,r,a):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var i=r[o];return n.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t},i)},l=function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},u=function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},p=function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"===typeof e?n=Symbol.prototype.toString.call(e):"string"!==typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var o="",i=0;i<n.length;++i){var s=n.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:l}),r.push(u))}return i(t),e},d=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},y=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},h=function(e,t){return[].concat(e,t)};e.exports={arrayToObject:s,assign:l,combine:h,compact:f,decode:u,encode:p,isBuffer:y,isRegExp:d,merge:c}},f620:function(e,t,r){e.exports=r.p+"img/pay_ing.2848bdf2.png"}}]);