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"),u={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)}}},c=u,l=(r("8027"),r("2877")),f=Object(l["a"])(c,n,o,!1,null,"9766c4f4",null);t["default"]=f.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,u=Array.prototype.push,c=function(e,t){u.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,f=o["default"],p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.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,u,l,f,y,h,m,g,v){var b=t;if("function"===typeof l?b=l(r,b):b instanceof Date?b=h(b):"comma"===o&&s(b)&&(b=n.maybeMap(b,(function(e){return e instanceof Date?h(e):e})).join(",")),null===b){if(a)return u&&!g?u(r,p.encoder,v,"key"):r;b=""}if(d(b)||n.isBuffer(b)){if(u){var w=g?r:u(r,p.encoder,v,"key");return[m(w)+"="+m(u(b,p.encoder,v,"value"))]}return[m(r)+"="+m(String(b))]}var O,j=[];if("undefined"===typeof b)return j;if(s(l))O=l;else{var _=Object.keys(b);O=f?_.sort(f):_}for(var S=0;S<O.length;++S){var C=O[S],k=b[C];if(!i||null!==k){var x=s(b)?"function"===typeof o?o(r,C):r:r+(y?"."+C:"["+C+"]");c(j,e(k,x,o,a,i,u,l,f,y,h,m,g,v))}}return j},h=function(e){if(!e)return p;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||p.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=p.filter;return("function"===typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.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 u,l=[];if("object"!==typeof o||null===o)return"";u=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=i[u];r||(r=Object.keys(o)),a.sort&&r.sort(a.sort);for(var p=0;p<r.length;++p){var d=r[p];a.skipNulls&&null===o[d]||c(l,y(o[d],d,f,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=l.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")),u=Object(s["a"])(i,n,o,!1,null,"61d0e2e4",null);t["a"]=u.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=Array.isArray,i={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},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=function(e,t){var r,f={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,y=p.split(t.delimiter,d),h=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<y.length;++r)0===y[r].indexOf("utf8=")&&(y[r]===l?m="utf-8":y[r]===c&&(m="iso-8859-1"),h=r,r=y.length);for(r=0;r<y.length;++r)if(r!==h){var g,v,b=y[r],w=b.indexOf("]="),O=-1===w?b.indexOf("="):w+1;-1===O?(g=t.decoder(b,i.decoder,m,"key"),v=t.strictNullHandling?null:""):(g=t.decoder(b.slice(0,O),i.decoder,m,"key"),v=n.maybeMap(u(b.slice(O+1),t),(function(e){return t.decoder(e,i.decoder,m,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===m&&(v=s(v)),b.indexOf("[]=")>-1&&(v=a(v)?[v]:v),o.call(f,g)?f[g]=n.combine(f[g],v):f[g]=v}return f},p=function(e,t,r,n){for(var o=n?t:u(t,r),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(i=[],i[l]=o):i[c]=o:i={0:o}}o=i}return o},d=function(e,t,r,n){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=r.depth>0&&i.exec(a),c=u?a.slice(0,u.index):a,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}var f=0;while(r.depth>0&&null!==(u=s.exec(a))&&f<r.depth){if(f+=1,!r.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+a.slice(u.index)+"]"),p(l,t,r,n)}},y=function(e){if(!e)return i;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 TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?i.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=y(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var o="string"===typeof e?f(e,r):e,a=r.plainObjects?Object.create(null):{},i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],c=d(u,o[u],r,"string"===typeof e);a=n.merge(a,c,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)},b562:function(e,t,r){"use strict";r.d(t,"s",(function(){return s})),r.d(t,"m",(function(){return u})),r.d(t,"n",(function(){return c})),r.d(t,"r",(function(){return l})),r.d(t,"e",(function(){return p})),r.d(t,"b",(function(){return d})),r.d(t,"c",(function(){return y})),r.d(t,"o",(function(){return h})),r.d(t,"j",(function(){return m})),r.d(t,"g",(function(){return O})),r.d(t,"h",(function(){return j})),r.d(t,"p",(function(){return g})),r.d(t,"q",(function(){return v})),r.d(t,"l",(function(){return _})),r.d(t,"d",(function(){return b})),r.d(t,"i",(function(){return w})),r.d(t,"f",(function(){return S})),r.d(t,"a",(function(){return C})),r.d(t,"k",(function(){return f}));var n=r("4328"),o=r.n(n),a=r("981f").default,i="/api-teacher",s=function(e){return a({url:"/api-auth/usernameLogin",method:"post",data:o.a.stringify(e)})},u=function(e){return a({url:"/api-student/code/sendSms",method:"post",data:o.a.stringify(e)})},c=function(e){return a({url:"/api-auth/smsLogin",method:"post",data:o.a.stringify(e)})},l=function(e){return a({url:"/api-auth/user/setPassword",method:"post",data:o.a.stringify(e)})},f=function(e){return a({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:e})},p=function(e){return a({url:"/api-student/courseGroup/getGroupDetail",method:"get",params:e})},d=function(e){return a({url:"/api-student/courseGroup/buyCourseGroup",method:"post",data:o.a.stringify(e)})},y=function(e){return a({url:i+"/courseGroup/createCourseGroup",method:"post",data:e})},h=function(e){return a({url:i+"/sysTenantAccount/get",method:"get",params:e})},m=function(e){return a({url:i+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})},g=function(e){return a({url:i+"/teacherCourseSchedule/teacherCourseMinutes",method:"get",params:e})},v=function(e){return a({url:i+"/tenantEntryActivities/queryPage",method:"get",params:e})},b=function(e){return a({url:i+"/tenantPaymentOrder/createOrder",method:"post",data:o.a.stringify(e)})},w=function(e){return a({url:i+"/teacherOrder/queryByOrderNo",method:"get",params:e})},O=function(e){return a({url:"/api-cms/helpCenterCatalog/list",method:"get",params:e})},j=function(e){return a({url:"/api-cms/helpCenterContent/list",method:"get",params:e})},_=function(e){return a({url:"/api-auth/queryUserInfo",method:"get",params:e})},S=function(e){return a({url:i+"/courseReview/getStuAndTeaReview",method:"get",params:e})},C=function(e){return a({url:i+"/courseReview/batchAdd",method:"post",data:e})}},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},u=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)},c=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},l=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}},f=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},p=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),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"===typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}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)},m=function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)};e.exports={arrayToObject:s,assign:c,combine:h,compact:p,decode:l,encode:f,isBuffer:y,isRegExp:d,maybeMap:m,merge:u}},f620:function(e,t,r){e.exports=r.p+"img/pay_ing.2848bdf2.png"}}]);
|