Files
live-hub-py/services/yyb-worker/runtime/replay/goods.js
T

10 lines
311 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
webpackJsonp([10,20],{"0":function(e,t,n){var i=n(99039043),o=n(1),s=n(12),a=n(4),r=n(19),c=n(112745811),l=n(72876602);r.set("type",c.GOODS),l.setType(c.GOODS);var u=function(){i.call(this),this.orderHeight=157};a.inherits(u,i),u.prototype.loadVMConfig=function(){var e=u._super.prototype.loadVMConfig.call(this);return o.mix({},e,{"$id":"root"})};var d=new u;d.render();var h={"order":n(122749947)(d),"subChannel":n(118694872)(d),"result":n(122487386)(d)},p=function(e,t){return"result"==e&&(t.ResultClass=n(114110149)),t};for(var f in h)!function(e){s.add(e,function(e,t,n){l.setPage(e),d.currentPage=e,i.loadVM(h[e],t,p(e,n)),d.changePage(e)})}(f);o.ready(function(){d.run()}),window._jsTime=(new Date).getTime()},"1":function(e,t,n){e.exports=n(2)(80667616)},"2":function(e,t){e.exports=vendor_lib},"3":function(e,t,n){e.exports=n(2)(78057199)},"4":function(e,t,n){e.exports=n(2)(88981800)},"5":function(e,t,n){e.exports=n(2)(115781265)},"7":function(e,t,n){e.exports=n(8)(78082052)},"8":function(e,t){e.exports=cgiVendor_lib},"9":function(e,t,n){e.exports=n(2)(113677689)},"10":function(e,t,n){e.exports=n(2)(99817079)},"11":function(e,t,n){e.exports=n(2)(56034868)},"12":function(e,t,n){e.exports=n(2)(91187074)},"13":function(e,t,n){e.exports=n(2)(70901372)},"14":function(e,t,n){e.exports=n(2)(43759118)},"15":function(e,t,n){e.exports=n(2)(99505187)},"16":function(e,t,n){e.exports=n(2)(89045516)},"17":function(e,t,n){e.exports=n(2)(74520267)},"18":function(e,t,n){e.exports=n(2)(85151090)},"19":function(e,t,n){e.exports=n(2)(52137608)},"20":function(e,t,n){e.exports=n(2)(98480501)},"21":function(e,t,n){e.exports=n(2)(43866881)},"22":function(e,t,n){function i(e){return n(o(e))}function o(e){return s[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var s={"./abstractChannel.js":100835382,"./bank.js":108535814,"./cft_b2b.js":48800002,"./friendpay.js":104708884,"./hfpay.js":50980797,"./kj.js":123135374,"./mcard.js":111578709,"./qb.js":79091806,"./qcard.js":43820868,"./qqwallet.js":89561790,"./remitpay.js":54142212,"./wechat.js":79488087,"./wechat_deposit.js":81807273};i.keys=function(){return Object.keys(s)},i.resolve=o,e.exports=i,i.id=22},"23":function(e,t,n){e.exports=n(2)(98911480)},"24":function(e,t,n){e.exports=n(2)(55191419)},"25":function(e,t,n){e.exports=n(2)(48205781)},"26":function(e,t,n){e.exports=n(2)(66841171)},"43511251":function(e,t){e.exports=function(e){var t=!0,n="";return"undefined"==typeof e.appid&&(t=!1,n="appid should not empty"),{"isPass":t,"errMsg":n}}},"43820868":function(e,t,n){var i=n(4),o=n(1);n(66520979),n(89500152);var s=n(117821206),a=n(112745811),r=(n(10),n(70508452)),c=n(43847285),l=n(100835382),u=n(66520979),d=n(84811753),h=n(75748174),p=function(e,t,n){l.apply(this,arguments),this.verifyCode=null,this.numVm=null,this.passVm=null,this.initVm(),this.qcardVm.amount=this.store.getAmount()};i.inherits(p,l),p.prototype.onChange=function(){if(this.qcardVm){this.qcardVm.hideBalanceNotEnough();var e=this.store.getPrice().price;e!=this.qcardVm.price,this.qcardVm.amount=this.store.getAmount(),this.qcardVm.price=e}},i.fn.extend(p.prototype,{"lock":function(){l.prototype.lock.call(this),this.qcardVm.disableSubmit=!0,this.numVm.disable(),this.passVm.disable()},"unlock":function(){l.prototype.unlock.call(this),this.qcardVm.disableSubmit=!1,this.numVm.enable(),this.passVm.enable()},"onDestroy":function(){l.prototype.removeListener.call(this),this.verifyCode&&!this.verifyCode.isClose()&&this.verifyCode.close(),l.prototype.destroy.call(this)},"initVmConfig":function(){var e=this;return this.vmConfig=i.fn.extend({"$id":"qcard-controller-"+function(){return e.mode==l.MODE.COMPLETE?"complete":e.mode==l.MODE.SIMPLE?"simple":void 0}(),"$skipArray":[],"showVerify":!1,"verifyUrl":"","amount":this.store.getAmount(),"cardNum":"","passNum":"","cardNumMsg":"","cardPassMsg":"","cardNumValidatePass":!1,"cardPassValidatePass":!1,"price":this.store.getPrice().price,"qcardBalanceNotEnough":!1,"showBalance":!1,"balance":null,"disableSubmit":!1,"$computed":{"isSimpleMode":{"set":o.noop,"get":function(){return e.mode==l.MODE.SIMPLE}},"isCompleteMode":{"set":o.noop,"get":function(){return e.mode==l.MODE.COMPLETE}}},"getNumVm":function(t){e.numVm=t},"getPassVm":function(t){e.passVm=t},"cardNumberConfig":{"filters":["number|*"],"validations":[{"name":"maxlen","params":[10],"msg":"卡号为9位或10位"},{"name":"minlen","params":[9],"msg":"卡号为9位或10位"}],"maskcfg":u.masks.space},"cardPassConfig":{"filters":["number|*"],"validations":[{"name":"len","params":[12],"msg":"QQ卡密码为12位"}],"maskcfg":u.masks.space},"pay":function(t){if(t.stopPropagation(),t.preventDefault(),!e.isLocked()&&0!=e.store.getAmount()){if(e.store.isInterfaceDisabled())return void e.store.emit("channelDataChange",new d(h));if(e.qcardVm.isCompleteMode){if(e.qcardVm.cardNum=e.numVm.getValue(),e.qcardVm.passNum=e.passVm.getValue(),!e.qcardVm.cardNumValidatePass||!e.qcardVm.cardPassValidatePass)return;if(e.verifyCode&&!e.verifyCode.isClose())return void e.verifyCode.verifyDone();e.buy()}else e.qcardVm.isSimpleMode&&e.store.changePage("subPage",{"channelObj":e.channelObj,"mode":l.MODE.COMPLETE})}},"onCardNumValidate":function(t){e.qcardVm.cardNumMsg=t.validation.msg,e.qcardVm.cardNumValidatePass=t.passed},"onCardPassValidate":function(t){e.qcardVm.cardPassMsg=t.validation.msg,e.qcardVm.cardPassValidatePass=t.passed},"onQcardNumChange":function(t){e.qcardVm.cardNumMsg="",e.qcardVm.cardNumValidatePass=!0},"onQcardPassChange":function(t){e.qcardVm.cardPassMsg="",e.qcardVm.cardPassValidatePass=!0},"showBalanceNotEnough":function(){e.qcardVm.qcardBalanceNotEnough=!0},"hideBalanceNotEnough":function(){e.qcardVm.qcardBalanceNotEnough=!1,e.qcardVm.balance=null},"queryBalance":function(){e.qcardVm.cardNum=e.numVm.getValue(),e.qcardVm.passNum=e.passVm.getValue(),e.qcardVm.cardNumValidatePass&&e.qcardVm.cardPassValidatePass&&(e.reportUser("surplus.click"),e.store.cgi.mobileGetBalance({"cmd":"1"},function(t){~~t.ret||(e.qcardVm.showBalance=!0,e.qcardVm.balance=i.math.div(~~t.balance,100))}))}},this.getTermsVmConfig()),this.vmConfig},"buy":function(e){if(e=e||{},!this.isLocked()){this.lock(),this.qcardVm.hideBalanceNotEnough(),this.showMask(),this.reportUser("pay.click");var t={"pay_id":this.qcardVm.cardNum,"auth_key":this.qcardVm.passNum,"pay_method":this.channelObj.channel};i.fn.extend(t,e),this.store.buy(t,function(e){return this.hideMask(),this.handlerBuy(e,t)}.bind(this))}},"handlerBuy":function(e,t){var n,o=this,a=~~e.ret;return this.verifyCode&&!this.verifyCode.isClose()&&(this.verifyCode.close(),this.verifyCode=null),a?(n=new s({"errCode":a,"errMsg":e.msg,"oriParams":t,"10006":function(){this.opt["10002"].apply(this,arguments),o.verifyCode&&o.verifyCode.setFailMsg(r.TEXT.REINPUTVERIFY)},"10002":function(){o.verifyCode=new r({"el":document.getElementById("qcardVerifyContainer"),"isNested":!0,"limitLen":4,"session":e.info.verifysession,"verifyCodePic":e.info.verifycode?e.info.verifycode.replace(/http\:/g,""):"","onFullfill":function(){o.unlock()},"onReject":function(){o.unlock()},"onConfirm":function(e,t){var n={};i.fn.extend(n,{"verify_code":e,"verify_session":t}),o.buy(n)},"onChangeVerifyCode":function(e){o.store.getCgi().mobileGetImage({"type":"url","pay_method":"qqcard"},function(t){e(~~t.ret?!1:{"url":t.url?t.url.replace(/http\:/g,""):"","verifySession":t.verify_session})})},"onDestroy":function(){o.unlock()}})},"1014":function(){o.qcardVm.showBalanceNotEnough(),o.unlock()},"2022":function(){var t=o.store.getCgi().sessionObj.getSessionParam(),n=e.info;new c({"url":n.verify_url,"fk_info":n.fk_info,"fk_amt":n.fk_amt,"jiazhang_url":n.jiazhang_url,"veri_url":n.veri_url,"qrcode_url":n.qrcode_url,"cgi":o.store.getCgi(),"accountType":"wc_actoken"===t.session_type?"wx":"qq","onLoad":function(){o.unlock()},"onRcRestrict":function(e,t){e=e||{},o.store.rcRestrict(e,t)},"onVerifyDone":function(e){e=e||{},o.buy(e)}})}}),n.canHandle()?(n.exec(),!0):(o.unlock(),!1)):(this.unlock(!1),this.store.onSuccess({"portalNo":e.info.portal_serial_no}),!0)}}),p.prototype.initVm=function(){this.qcardVm=o.define(this.initVmConfig())},p.create=function(e,t,n){return new p(e,t,n)},p.getTemplate=function(e){return e=e||{"mode":l.MODE.COMPLETE},n(110138172)({"mode":function(){return e.mode==l.MODE.COMPLETE?"complete":e.mode==l.MODE.SIMPLE?"simple":void 0}(),"type":e.type===a.QB?n(118085477)():void 0})},e.exports=p},"43847285":function(e,t,n){function i(){var e=/Chrome\/([0-9a-z]+)/.exec(y);return e?1*e[1]:null}var o=n(4),s=n(1),a=n(112211847),r=n(51748615),c=n(119561448),l=(n(101127449),n(53578085)),u=n(83058212),d=(n(66520979),n(11)),h=n(87998867),p=n(100216969),f=n(10),m={"pic":"2","face":"3","sms":"4","identity":"9"},g={"pic":1,"sms":3,"url":4,"token":5,"face":6,"identity":7},v=0,y=navigator.userAgent,_=i(),b=y.indexOf("MSIE")>-1||!window.Proxy||!window.fetch||!Object.entries||_&&_<55,w=function(e){e=e||{},this.opts=e,this.cgi=e.cgi,this.el=e.el||document.body,this.container=document.createElement("div"),this.controller="riskVcode_"+v++,this.el.appendChild(this.container),this.vms={},this.renderType=null,this.params={},this.checkVerType(),null!=this.renderType&&this.init()};o.fn.extend(w.prototype,{"checkVerType":function(){if(this.opts.fk_info&&o.lang.isString(this.opts.fk_info)){var e=this.opts.fk_info.replace(/,/g,"&"),e=o.fn.getParams(e),t=e.veri_type,n=e.auth_type;t==m.pic?this.renderType=g.pic:t==m.sms?"1"==n||"4"==n?this.renderType=g.sms:"2"!=n&&"3"!=n||(this.renderType=g.url):t==m.face?this.renderType=g.face:t==m.identity&&(this.renderType=g.identity),o.fn.extend(this.params,e)}f("riskvcode.checktype",{"resultinfo":{"type":this.renderType}})},"init":function(){switch(this.renderType){case g.url:this.initUrlVerify();break;case g.pic:this.initPicVerify();break;case g.sms:this.initSmsVerify();break;case g.face:this.initFaceVerify();break;case g.identity:this.initIdentityVerify()}},"initSmsVerify":function(){var e,t=this,n="riskVcode_sms_"+v++;this.refVm={},f("riskvcode.smsverify.begin");var i=this.params.verify_reasonid;try{var c="";__midasStaticConfig_rc.sms_reason_desc.forEach(function(e){e.reasonid===i&&(c=e.desc)})}catch(l){}t.params.sub_auth_type=2;var u="";if(this.params.mobile_no&&this.params.flex_extend)try{var h=decodeURIComponent(this.params.flex_extend),p=o.fn.getParam("verify_uin",h);p&&/^[0-9]+$/.test(p)&&(u=o.blurQQ(p))}catch(l){}var m=!1;this.vms["smsVm"]=s.define({"$id":n,"$skipArray":["phoneNoPass","veriCodePass","token"],"token":"","mobileNo":this.params.mobile_no,"mobileNoUin":u,"url":this.params.url,"toastContent":"","toastOffset":"","reasonMsg":c,"phoneNoPass":!1,"veriCodePass":!1,"verifyCodeCountDown":"","phoneNoMsg":"","veriCodeMsg":"","isLoading":!1,"phoneNoConfig":{"filters":["number|*"],"maxlength":11,"validations":[{"name":"minlen","params":[11],"msg":"请输入正确的手机号"},{"func":function(e){return e=e||"",/^1.+/.test(e)},"params":[],"msg":"手机号码非法"}],"value":t.opts.phoneNum||"","onInit":function(e){t.refVm["phoneNo"]=e},"onChange":function(e){var n=t.vms["smsVm"];n.phoneNoMsg="",n.phoneNoPass=!0},"onValidate":function(e){e=e||{};var n=t.vms["smsVm"];n.phoneNoPass=e.passed,n.phoneNoMsg=e.validation.msg}},"veriCodeConfig":{"filters":["number|*"],"maxlength":8,"validations":[{"func":function(e){return e=e||"",""!=e},"params":[],"msg":"请输入验证码"}],"_disable":!0,"onInit":function(e){t.refVm["veriCode"]=e},"onChange":function(e){var n=t.vms["smsVm"];n.veriCodeMsg="",n.veriCodePass=!0},"onValidate":function(e){e=e||{};var n=t.vms["smsVm"];n.veriCodePass=e.passed,n.veriCodeMsg=e.validation.msg}},"close":function(){e?e.close():t.close()},"getVerifyCode":function(){var e=t.vms["smsVm"];if(!e.verifyCodeCountDown){var n;if(t.params.mobile_no)n=t.params.mobile_no;else try{n=t.refVm["phoneNo"].getValue()}catch(i){}if(n){t.refVm["veriCode"].enable();var o={"action":"send","mobile":n,"flex_extend":t.params.flex_extend||"","query_sig":t.params.query_sig||""};e.isLoading=!0,f("riskvcode.smsverify.sendsms"),t.sendSms(o,function(n){if(f("riskvcode.smsverify.getsms",{"resultcode":n.ret,"resultinfo":{"err_code":n.err_code||"","msg":n.msg||""}}),e.isLoading=!1,~~n.ret)if(1018==~~n.ret)e.showToast("登录过期,请重新登录");else{var i="系统繁忙,请稍候再试";n.msg?i=n.msg:n.err_code&&(i=i+""+n.err_code+""),e.showToast(i)}else t.verifyCodeTimer=new d.CountDown({"time":60,"beforeCount":function(){},"counting":function(t){e.verifyCodeCountDown=String.format("{time} S",{"time":t})},"countEnd":function(){e.verifyCodeCountDown=""}})})}}},"showToast":function(e){if(e){var n=t.vms["smsVm"];n.toastContent=e,n.toastOffset="-"+(24+12*e.length)/2+"px",setTimeout(function(){n.toastContent=""},2e3)}},"onConfirm":function(n){n&&n.preventDefault();var i;i=t.params.mobile_no?t.params.mobile_no:t.refVm["phoneNo"].getValue();var o=t.refVm["veriCode"].getValue();if(i&&o){var s={"mobile":i,"verify_code":o,"flex_extend":t.params.flex_extend||"","query_sig":t.params.query_sig||""},a=t.vms["smsVm"];a.isLoading=!0,f("riskvcode.smsverify.confirm.begin"),t.checkVerify(s,function(n){if(f("riskvcode.smsverify.checkresp",{"resultcode":n.ret,"resultinfo":{"err_code":n.err_code||"","msg":n.msg||""}}),a.isLoading=!1,~~n.ret)if(1018==~~n.ret)a.showToast("登录过期,请重新登录");else{var o="系统繁忙,请稍候再试";n.msg?o=n.msg:n.err_code&&(o=o+""+n.err_code+""),a.showToast(o)}else t.triggerVerifyDone({"rc_token":n["rc_token"],"mobile_no":i},!0),e?e.close():t.close()})}},"onCancel":function(n){o.lang.isFunction(t.opts.onCancel)&&t.opts.onCancel(),f("riskvcode.smsverify.cancel"),e?e.close():t.close()},"onSwitch":function(n){n&&n.preventDefault(),m=!0,e&&e.close(),t.params.sub_auth_type=1,t.params.auth_type=2,t.renderType=g.url,t.initUrlVerify()},"onChangePhone":function(){o.openWindow("https://kf.qq.com/faq/230223i63uAv230223yiaeIn.html")}}),r.create({"size":{"w":348,"h":292},"title":"短信验证","hideHeader":!0,"onReady":function(n){o.lang.isFunction(t.opts.onLoad)&&t.opts.onLoad(),e=n,s.scan(document.getElementById(n.getDisplayHtmlId()),t.vms["smsVm"]),f("riskvcode.smsverify.dialog.show")},"maskConfig":{"onMaskClick":o.fn.emptyFunc},"onClose":function(){m||t.close()},"displayHtml":a({"id":n})})},"initPicVerify":function(){var e=this,t="3"==this.params.auth_type?"2083754301":"2000000034";f("riskvcode.picverify.begin"),new Promise(function(e){"function"==typeof window.TencentCaptcha?e(!0):s.getScript("https://ssl.captcha.qq.com/TCaptcha.js",function(){return o.lang.isFunction(window.TencentCaptcha)?e(!0):void e(!1)})}).then(function(n){return o.lang.isFunction(e.opts.onLoad)&&e.opts.onLoad(),n?new Promise(function(n){c.show(),new TencentCaptcha(e.container,t,function(e){c.hide(),n(e)},{"showHeader":!1,"sid":e.params.risk_sessionid||""}).show()}):(f("riskvcode.picverify.capapi.loadfail"),e.close())}).then(function(n){f("riskvcode.picverify.cap.callback",{"resultcode":n.ret}),0!=n.ret?e.close():e.triggerVerifyDone({"rc_token":n.ticket,"cap_type":"7","disturb_level":"1","veri_appid":t,"veri_code":n.randstr})})},"initUrlVerify":function(){var e,t=this,n=decodeURIComponent(this.params.url||"");return f("riskvcode.urlverify.begin"),n?(n=n.replace(/(.+)(\/\/)/,"$2"),r.create({"url":n,"size":{"w":400,"h":292},"hideHeader":!0,"onReady":function(n){o.lang.isFunction(t.opts.onLoad)&&t.opts.onLoad(),e=n},"onClose":function(){e=null,t.close()}}),void(window._MBQ_CALLBACK=function(n){if(f("riskvcode.urlverify.callback.begin"),window._MBQ_CALLBACK=o.fn.emptyFunc,!n)return void f("riskvcode.urlverify.callback.url.empty");var i=o.fn.getParam("dna_result_key",n);i?(f("riskvcode.urlverify.verifydone"),t.triggerVerifyDone({"rc_token":i},!0)):f("riskvcode.urlverify.verifynotoken"),e.close()})):(f("riskvcode.urlverify.url.empty"),this.close())},"initFaceVerify":function(){var e,t,n=this;if(b){var i=decodeURIComponent(this.opts.jiazhang_url||"");if(f("riskvcode.faceVerify.begin",{"resultinfo":{"downgrade":1,"jiazhang_url":i}}),!i)return f("riskvcode.faceVerify.url.empty"),this.close();i=i.replace(/(.+)(\/\/)/,"$2"),this.openScanDialog(g.face,i)}else{var a=!1,c=!1,i=decodeURIComponent(this.opts.qrcode_url||"").replace("guide.html","guide_pc.html");if(f("riskvcode.faceVerify.begin",{"resultinfo":{"downgrade":0,"qrcode_url":i}}),!i)return f("riskvcode.faceVerify.url.empty"),this.close();i=i.replace(/(.+)(\/\/)/,"$2"),i+="&isMidas=1";var l=function(n){if(t&&n.source===t.contentWindow){var i=JSON.parse(n.data);"success"==i.action&&(a=!0),"close"==i.action&&(c=!0,e.close())}};r.create({"title":"腾讯游戏人脸识别验证","url":i,"size":{"w":640,"h":350},"clickClose":!1,"maskConfig":{"bgColor":"#000000","opacity":"0.8"},"onReady":function(i){o.lang.isFunction(n.opts.onLoad)&&n.opts.onLoad(),e=i,t=document.getElementById(e.getIframeId()),s.bind(window,"message",l)},"onClose":function(){a?n.checkFaceRes().then(function(){n.close()}):n.close(),e=null,t=null,s.unbind(window,"message",l),f("riskvcode.faceVerify.close",{"resultinfo":{"verifySuccess":a?1:0,"calledClose":c?1:0}})}})}},"checkFaceRes":function(){var e=this;return new Promise(function(t){l.show(),e.checkVerify({"action":"check"},function(n){l.remove(),f("riskvcode.faceVerify.checkresp",{"resultcode":n.ret,"resultinfo":{"err_code":n.err_code||"","msg":n.msg||""}}),~~n.ret?3216===n.ret?u.create({"msg":"人脸身份验证失败","confirmBtnTxt":"返回","hideCancel":!0,"onConfirm":t}):u.create({"msg":"未查询到认证结果,请重试("+n.ret+"","confirmBtnTxt":"重试","cancelBtnTxt":"返回","onConfirm":function(){e.checkFaceRes().then(t)},"onCancel":t}):(e.triggerVerifyDone({"rc_token":n.rc_token},!0),t())})})},"initIdentityVerify":function(){var e,t=this,n=!1,i=!1,a=decodeURIComponent(this.opts.veri_url||"");if(f("riskvcode.identityVerify.begin",{"resultinfo":{"downgrade":b?1:0,"veri_url":a}}),!a)return f("riskvcode.identityVerify.url.empty"),this.close();if(a=a.replace(/(.+)(\/\/)/,"$2"),a+="&isMidas=1",b)this.openScanDialog(g.identity,a);else{var c=function(o){/^(https?:\/\/)?(test\.)?jiazhang\.qq\.com($|\/|\\)/i.test(o.origin)&&("200"==o.data&&(n=!0),"100"==o.data&&(i=!0,s.unbind(window,"message",c),n?(t.triggerVerifyDone({}),e&&e.close()):(t.close(),e&&e.close())))};r.create({"title":"腾讯游戏实名认证","url":a,"size":{"w":640,"h":350},"clickClose":!1,"hideHeader":!1,"maskConfig":{"bgColor":"#000000","opacity":"0.8"},"onReady":function(n){o.lang.isFunction(t.opts.onLoad)&&t.opts.onLoad(),e=n,n.dialogLoading=!0},"onClose":function(){e=null,s.unbind(window,"message",c),n?t.triggerVerifyDone({}):t.close(),f("riskvcode.identityVerify.close",{"resultinfo":{"verifySuccess":n?1:0,"calledClose":i?1:0}})},"iframeOnLoad":function(e){e.dialogLoading=!1}}),s.bind(window,"message",c)}},"_getPublicParams":function(){return{"verify_type":this.params.veri_type,"auth_type":this.params.auth_type,"amt":this.opts.fk_amt}},"checkVerify":function(e,t){e=e||{};var n={"action":"check"};o.fn.extend(n,this._getPublicParams(),e),o.lang.isFunction(this.opts.onRcRestrict)&&this.opts.onRcRestrict(n,t)},"sendSms":function(e,t){e=e||{};var n={};o.fn.extend(n,this._getPublicParams(),e),o.lang.isFunction(this.opts.onRcRestrict)&&this.opts.onRcRestrict(n,t)},"triggerVerifyDone":function(e,t){e=e||{},e=o.fn.extend({"veri_type":this.params.veri_type,"auth_type":this.params.auth_type,"sub_auth_type":this.params.sub_auth_type||"","mobile_no":this.params.mobile_no,"flex_extend":this.params.flex_extend||""},e);try{o.lang.isFunction(this.opts.onVerifyDone)&&this.opts.onVerifyDone(e)}catch(n){}t||this.close()},"close":function(){try{o.lang.isFunction(this.opts.onDestroy)&&this.opts.onDestroy()}catch(e){}for(var t in this.vms){try{delete s.vmodels[this.vms[t].$id]}catch(e){this.vms[t]&&this.vms[t].$id&&(s.vmodels[this.vms[t].$id]=null)}this.vms[t]=null}this.vms=null,this.refVm=null,this.container&&(this.container.innerHTML="",this.el.removeChild(this.container),this.container=null),this.opts=null,this.verifyCodeTimer&&(this.verifyCodeTimer.stop(1),this.verifyCodeTimer=null)},"openScanDialog":function(e,t){var n=this,i=null,s=function(e){i.url=e},a=!1;r.create({"forceMaskCss":!0,"opacity":.8,"bgColor":"#000000","clickClose":!1,"title":e===g.face?"腾讯游戏人脸识别验证":"腾讯游戏实名认证","url":"","displayHtml":e===g.face?h():p(),"size":{"w":600,"h":e===g.face?375:400},"accountType":n.opts.accountType,"onConfirm":function(){a=!0,e===g.face?(n.checkFaceRes().then(function(){n.close()}),f("riskvcode.faceVerify.confirm")):(n.triggerVerifyDone({},!0),n.close(),f("riskvcode.identityVerify.confirm")),i&&i.close()},"onClose":function(){a||n.close(),f(e===g.face?"riskvcode.faceVerify.close":"riskvcode.identityVerify.close")},"onReady":function(e){i=e,n.getFKScanUrl(t,s),o.lang.isFunction(n.opts.onLoad)&&n.opts.onLoad()}})},"getFKScanUrl":function(e,t){var n="";this.cgi.getQrcode({"a":"get_qrcode","url":encodeURIComponent(location.protocol+e),"size":200,"http_type":"https"},function(e){~~e.ret?t("error"):(n=e.qrcode,t("data:image/png;base64,"+n))}.bind(this))}}),w.TEXT={"REINPUTVERIFY":"验证码错误,请重新输入"},e.exports=w},"44017488":function(e,t){e.exports="bind-card"},"47721167":function(e,t){e.exports={"CardType":{"credit":"credit","debit":"debit"},"CardTypeDesc":{"credit":"信用卡","debit":"储蓄卡"},"BankType":{"B2B":"B2B","B2C":"B2C"},"BankTypeDesc":{"B2B":"企业银行","B2C":"个人银行"},"PayTypeDesc":{"kj":"快捷支付","bank":"网银支付"}}},"48016802":function(e,t,n){var i=n(19),o=n(74109955);"undefined"==typeof __Service&&(window.__Service={}),"undefined"==typeof __UIConfig&&(window.__UIConfig={"base":{}});var s=function(e,t){if(t)return __Service[t]&&__Service[t][e];var n=i.get("type"),o=__UIConfig[n],s=__UIConfig["base"];return o&&o[e]?o[e]:s[e]};e.exports={"get":function(e){return s(e)},"getTitle":function(e){return s("title",e)},"getOrderServiceName":function(e){return s("orderServiceName",e)},"getPriceItemName":function(e,t){return s(t==o.day?"priceItemNameByDay":t==o.year?"priceItemNameByYear":"priceItemName",e)}}},"48695175":function(module,exports){module.exports=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__j=Array.prototype.join;with(obj)__p+='<div ms-controller="result-detail" class="result-body" ms-class-1="result-{{status}}" style="padding-bottom:0; position: relative;">\n <div ms-if="!isQuery&&!isCustom">\n <div class="icons-area" ms-if="!isFlowControl">\n <i ms-class="icon-{{status}}-l"></i>\n </div>\n <div class="icons-area" ms-if="isFlowControl">\n <i class="count-down-time">{{countDownTime}}</i>\n </div>\n <div class="info-area">\n <!--这里可以放info通过ejs-->\n ',"undefined"!=typeof info&&(__p+="\n "+(null==(__t=info)?"":__t)+"\n "),__p+='\n <!--<p>565220833(QQ)成功开通好莱坞会员1个月</p>-->\n <p class="sub-info" ms-if="subInfo" ms-html="subInfo"></p>\n <div class="tips-wrapper" ms-html="tips" ms-if="tips">\n\n </div>\n </div>\n <div class="marketing-area">\n <!--这里可以放marketing 营销活动信息-->\n ',"undefined"!=typeof market&&(__p+="\n "+(null==(__t=market)?"":__t)+"\n "),__p+='\n </div>\n <div class="oper-area">\n <a ms-if="showFinish" href="#" ms-on-click="finish($event,status)" class="btn btn-default">{{buttonTxt}}</a>\n <!--这里加额外的操作按钮-->\n <span ms-if="oper" ms-html="oper"></span>\n </div>\n </div>\n <div ms-if="isQuery" ms-html="queryContainer">\n\n </div>\n <div ms-if="isCustom" ms-html="customContainer">\n\n </div>\n <div ms-if="bottomText" ms-html="bottomText"></div>\n</div>';return __p}},"48800002":function(e,t,n){var i=n(55660113),o=n(4),s=n(1),a=o.fn.getParam("sandbox"),r=n(100835382),c=n(17),l=n(11),u=n(119561448),d=n(104491903),h=n(84811753),p=n(75748174),f=o.fn.getParam("inApp"),m="//midas.gtimg.cn/mtob/web/channel-web-sdk/jssdk/mtob-channel-api.umd.js",g=!1,v={"SHOWCOPYBTN":"当前浏览器版本过低,请使用其他支付方式,或者复制链接到其他浏览器中打开并支付。","HIDECOPYBTN":"当前浏览器版本过低,请使用其他支付方式,或者更换更高版本浏览器后使用网银支付。"},y=(n(72074753),function(e,t,n){r.apply(this,arguments),this.portal_serial_no=null,this.payProxy=window.location.protocol+"//"+window.location.host+"/midas/minipay_v2/views/public/pay-bank.php",this.cacheBankData={},this.bankObj={},this.amount=0,this.saveTimout=null,this.payBankUrl=null,this.payBankUrlTimeout=null,this.init()}),_={"init":function(){this.initVm(),this.calculatePrice(),this.fetchTargetUin(),this.fetchAmount(),this.initChannel()},"calculatePrice":function(){var e=this.store.getPrice().price;this.price=this.store.getPrice(o.discount.checkHasDiscount(e,this.channelObj.channel)?this.channelObj.discount:void 0,this.coupon).price,this.vm.price=this.price},"fetchAmount":function(){this.vm.amount=this.store.getAmount(),this.amount=this.store.getAmount()},"fetchTargetUin":function(){this.targetUin=this.store.getTargetInfo().uin},"getCopyUrl":function(){if(!this.store.getParams().showCopyBtn)return"";if(window.__midasStaticConfig_ipay_pcgame_sidebar&&window.__midasStaticConfig_ipay_pcgame_sidebar.itemMap){var e=window.__midasStaticConfig_ipay_pcgame_sidebar.itemMap,t="";for(key in e)e[key].appid===this.store.info.offer_id&&(t=e[key].code);return t&&"-"===t[0]&&(t=t.slice(1)),t?"https://pay.qq.com/ipay/index.shtml?c="+t:""}return""},"initChannel":function(){var e=this;return this.refreshUuid(),this.store.isInterfaceDisabled()?(this.vm.isDisable=!0,this.vm.disableText=this.store.getChannelDisableText(),void(this.vm.loading=!1)):0==this.amount?(this.vm.isDisable=!0,this.vm.loading=!1,void(this.vm.disableText="请完善充值信息")):this.vm.needJumpToNewBrower?(this.vm.isDisable=!0,this.vm.loading=!1,void(this.vm.disableText=""!==this.getCopyUrl()?v.SHOWCOPYBTN:v.HIDECOPYBTN)):(this.vm.isDisable=!1,void setTimeout(function(){return g?void e.initedChannel():void s.getScript(m,function(){g=!0,e.initedChannel()})},0))},"initedChannel":function(){this.mTobChannelApi&&(this.mTobChannelApi.destroy(),this.mTobChannelApi=null);var e=this,t=window.MtobChannelApi.init({"params":{"appID":this.store.info.offer_id,"userID":this.store.session.openid,"channel":this.store.channel,"tenantID":"deploy_env","deploy_env":this.getDeployEnv(),"channelParams":{"channelMerchantId":this.channelObj.merchant_id||"","payerType":this.channelObj.allowed_payer_types||[],"disableEnterpriseBank":"true"===o.fn.getParam("disableEnterpriseBank"),"disableIndividualBank":"true"===o.fn.getParam("disableIndividualBank"),"individualBankFirst":"true"===o.fn.getParam("individualBankFirst")},"sessionID":this.uuid,"reqID":this.uuid},"envOptions":{"env":2==a?"dev":1==a?"sandbox":"release","pageUriConfigs":{"release":{"baseUri":"https://pay.qq.com/mtob/web/channel-web-sdk/p/channel-client"},"sandbox":{"baseUri":"https://sandbox.pay.qq.com/mtob/web/channel-web-sdk/p/channel-client"},"dev":{"baseUri":"https://dev.tke.midas.qq.com/mtob/web/channel-web-sdk/p/channel-client"}}},"timeout":5e3,"theme":"compact"});this.mTobChannelApi=t,t.on("ready",function(){e.vm.loading=!1}),t.on("resize",function(e){var t=document.querySelector("#b2bChannelWebIframe");t.style.height=e.height+"px"}),t.on("status",function(e){}),t.on("timeout",function(){e.store.onFail({"ret":9901,"msg":"系统繁忙,请稍候再试"})}),t.on("channelEvent",function(t){if(t){if("cft_b2b"!==t.channel)return;"setBank"===t.action&&t.data?e.onSelectedBank(t.data):"unsetBank"===t.action&&e.onSelectedBank(null)}}),t.attach({"target":document.querySelector("#b2bChannelWebIframe")})},"getDeployEnv":function(){if(this.store.params&&this.store.params.goodstokenurl){var e=o.fn.getParam("deploy_env",this.store.params.goodstokenurl);return e?e:"tboss"}return"tboss"},"onChange":function(){this.fetchTargetUin(),this.fetchAmount(),this.refreshCoupon(),this.calculatePrice(),this.debounceOrder()},"debounceOrder":function(){if(this.payBankUrl=null,this.payBankUrlTimeout&&(clearTimeout(this.payBankUrlTimeout),this.payBankUrlTimeout=null),this.saveTimout&&(this.saveTimout.stop(0),this.saveTimout=null,this.vm.paying=!1,this.unlock()),!this.store.isInterfaceDisabled()&&0!=this.amount){var e=this;this.vm.paying=!0,this.lock(),this.saveTimout=new l.Timeout({"time":.7,"timeUp":function(){e.vm.paying=!1,e.unlock(),e.saveTimout=null,e.order({},function(t,n){e.payBankUrl=t,e.payBankUrlTimeout=setTimeout(function(){e.debounceOrder()},1e3*n)})}})}},"order":function(e,t){e=e||{};var n=this,i={"uuid":this.uuid,"pushtype":"NodeJS","pay_method":"cft_b2b:5","bank_type":encodeURIComponent(this.bankObj.bankType)};o.fn.extend(i,e);var s=function(){var e={"proxy":!0};n.lock(),n.vm.paying=!0,u.show({"opacity":"0"}),n.store.buy(i,function(e){if(n.unlock(),n.vm.paying=!1,u.hide(),!~~e.ret){var i=n.store.getSession().getSessionParam(),s=e.jump;return n.lock(),n.vm.paying=!0,u.show({"opacity":"0"}),n.getShortUrl(s,function(e){if(n.unlock(),n.vm.paying=!1,u.hide(),e.status){var a=o.fn.addParam({"short_url":encodeURIComponent(e.shortUrl),"openid":encodeURIComponent(i.openid),"openkey":encodeURIComponent(i.openkey),"rc_params":encodeURIComponent(o.req.serializeParam(n.store.getRcRestrictParams()))},n.payProxy);t(a,1*e.validTime||600),n.report("bank.qrcodeSuccess",{"resultinfo":{"webSaveLength":s.length}})}else n.store.onFail(e.res),n.report("bank.qrcodeFail",{"resultinfo":{"webSaveLength":s.length,"ret":e.res&&e.res.ret||"","err_code":e.res&&e.res.err_code||""}})},!0),!0}},e)};s()},"getVmConfig":function(){var e=this,t=o.fn.getIEVersion();return o.fn.extend({"$id":"bank-controller","price":this.price,"amount":this.amount,"$computed":{"bankClass":{"get":function(){if(this.bank)return"icon-"+this.bank}}},"disableSubmit":!0,"paying":!1,"tips":"","isDisable":!1,"loading":!0,"disableText":"请完善充值信息","needJumpToNewBrower":t<10&&t!==-1,"showCopyBtn":""!==this.getCopyUrl(),"copyUrl":this.getCopyUrl(),"pay":function(t){if(t.preventDefault(),!e.isLocked())return e.reportUser("pay.click"),e.store.isInterfaceDisabled()?void e.store.emit("channelDataChange",new h(p)):void(0!=e.amount&&e.payBankUrl&&("1"!=f?o.openWindow(e.payBankUrl):c.openWindow(e.payBankUrl),e.store.changePage("subChannel",s.mix({"channelObj":e.channelObj,"portal_serial_no":e.portal_serial_no,"mode":r.MODE.COMPLETE,"price":e.price,"coupon":e.coupon,"store":e.store},{"uuid":e.uuid},e.bankObj)),e.store.emit(d,new h(d,{"show":!1}))))},"handleCopy":function(){o.fn.cotyText(e.vm.copyUrl)}},this.getCouponVmConfig(),this.getTermsVmConfig(),this.getPubVmConfig())},"onSelectedBank":function(e){this.vm&&(e?(this.vm.tips="",this.vm.disableSubmit=!1,this.bankObj=e,this.debounceOrder()):(this.vm.tips="",this.vm.disableSubmit=!0,this.bankObj={}))},"initVm":function(){this.vm=s.define(this.getVmConfig())},"onDestroy":function(){this.mTobChannelApi&&this.mTobChannelApi.destroy(),this.mTobChannelApi=null,this.portal_serial_no=null,this.removeListener(),this.payBankUrlTimeout&&(clearTimeout(this.payBankUrlTimeout),this.payBankUrlTimeout=null),this.saveTimout&&this.saveTimout.stop(0),this.destroy(),u.hide()}};o.inherits(y,r),o.fn.extend(y.prototype,_),y.create=function(e,t,n){return new y(e,t,n)},y.getTemplate=function(e){return i()},e.exports=y},"49140953":function(e,t,n){var i=n(72074753),o=n(112745811),s=n(4),a=s.fn.getParam("skin"),r="dnf"===a||"minimonth"===a,c={"KFURL":"//kf.qq.com/","chargeQbAppid":"1450000186","cpayContainerid":"pannel","wxAppid":"wx951bdcac522929b6","goodVipConfig":window.__GOODS_VIP_CONFIGS||{},"TEXT":{"COMMONERRORTXT":"系统繁忙,请稍候再试","INVALIDLOGIN":"登录态已经失效,请重新登录","GETORDERFAIL":"订单拉取失败","RETRYPAY":"更换渠道购买","CHANNELPAYFAIL":"支付失败","INFOFLOWCONTROL":"支付火爆,请倒计时结束后再次下单","SAVEFLOWCONTROL":"支付火爆,请倒计时结束后再次支付","BLOCKMOBILE":"该充值页面暂不支持手机端,请使用PC浏览器打开"}},l={},u=[o.GOODS,o.GAME,o.MONTH];l[i.QBQD]={"name":"Q币支付","payMethod":"qbqd","discount":1,"moneyname":"Q币","status":1,"height":r?112:170,"visibleCoupon":u},l[i.QDQB]={"name":"Q币支付","payMethod":"qdqb","discount":1,"moneyname":"Q点","status":1,"height":r?112:170,"visibleCoupon":u},l[i.QQACCT]={"name":"Q币支付","payMethod":"qqacct","discount":1,"moneyname":"Q币","status":1,"height":r?112:170,"visibleCoupon":u},l[i.QQPOINT]={"name":"Q币支付","payMethod":"qqpoint","discount":1,"moneyname":"Q点","status":1,"height":r?112:170,"visibleCoupon":u},l[i.KJ]={"name":"快捷支付","payMethod":"pccft",
"desc":'<small class="tx-thin">(快捷支付)</small>',"logoVer":2,"status":1,"height":r?155:214},l[i.BANK]={"name":"网银支付","payMethod":"pcbank","desc":'<small class="tx-thin">(银行卡)</small>',"logoVer":2,"status":1,"height":r?235:290},l[i.MCARD]={"name":"手机充值卡","payMethod":"mcard","status":1,"height":r?200:288},l[i.HFPAY]={"value":"hfpay","discounts":{"service":1,"upgrade":1,"recharge":1,"game":1},"name":"手机话费","invisible":{"send":[o.MONTH,o.QB,o.GAME,o.GOODS]},"payMethod":"hfpay","status":1,"height":160},l[i.WECHAT]={"name":"微信支付","payMethod":"wechat","status":1,"height":r?180:235,"visibleCoupon":u},l[i.QQWALLET]={"name":"QQ钱包","payMethod":"qqwallet","desc":'<small class="tx-thin">(银行卡快捷、余额)</small>',"logoVer":2,"status":1,"height":r?180:235,"visibleCoupon":u},l[i.QQCARD]={"name":"QQ卡","payMethod":"qqcard","status":1,"height":r?165:236},l[i.FRIENDPAY]={"name":"好友代付","payMethod":"friendpay","status":1,"height":r?150:220},l[i.REMITPAY]={"name":"转账/汇款","payMethod":"remitpay","status":1,"height":400},l[i.CFTB2B]={"name":"网银支付","payMethod":"cft_b2b","desc":'<small class="tx-thin">(银行卡)</small>',"logoVer":2,"status":1,"height":r?250:380},l[i.WECHATDEPOSIT]={"name":"对公支付","payMethod":"wechat_deposit","status":1,"height":345},"minimonth"===a&&(l[i.QQWALLET].height=80,l[i.WECHAT].height=80,l[i.HFPAY].height=80,l[i.QQCARD].height=80,l[i.QBQD].height=80,l[i.QDQB].height=80,l[i.QQACCT].height=80,l[i.QQPOINT].height=80,l[i.FRIENDPAY].height=80,l[i.BANK].height=235,l[i.CFTB2B].height=250),c.channels=l,e.exports=c},"49898765":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div>\n <div class="icons-area">\n <i ms-class="icon-{{status}}-l" ms-attr-title="countDown">{{countDown}}</i>\n </div>\n <div class="info-area">\n <p ms-html="info"></p>\n <p class="sub-info" ms-html="subInfo">\n \n <!--由于网络异常,你的支付正在查询中。如支付成功,您将会在24小时内收到成功短信;如未收到短信将不会发生扣款。给您带来的不便,我们深感抱歉。-->\n </p>\n </div>\n <div class="oper-area" ms-visible="showQueryButton">\n <button class="btn btn-default" ms-class-1="btn-dis:!enableQuery" type="button">查询</button>\n </div>\n <!--<div class="oper-area">-->\n <!--<button type="button" ms-on-click="confirm" ms-class-1="btn-dis:!enableConfirm" class="btn btn-default" ms-attr-disabled="!enableConfirm">我知道了</button>-->\n <!--</div>-->\n</div>\n\n';return __p}},"50980797":function(e,t,n){var i=n(4),o=n(1),s=n(66520979),a=n(100835382),r=n(109181847),c=(n(11),n(117821206)),l=n(43847285),u=i.fn.emptyFunc,d=function(e,t,n){a.apply(this,arguments),this.phoneNumVm=null,this.vm=null,this.phoneNum=null,this.hfMode=null,this.hfprice=null,this.allowAmt=e.getHfAllowAmt(),this.mobileWirelessCgiData={},this.miguProxy=window.location.protocol+"//"+window.location.host+"/midas/minipay_v2/views/public/migu_proxy.shtml?",this.cgi=e.getCgi(),this.initVm()};i.inherits(d,a),i.fn.extend(d.prototype,{"onDestroy":function(){a.prototype.removeListener.call(this),"month"!==i.fn.safeGet(this,"store.opts.type")&&a.prototype.destroy.call(this)},"onChange":function(){},"lock":function(){a.prototype.lock.call(this),this.vm.disableSubmit=!0,this.showMask()},"unlock":function(){a.prototype.unlock.call(this),this.vm.disableSubmit=!1,this.hideMask()},"getVmConfig":function(){var e=this;return this.vmConfig={"$id":"hfpay-controller-simple","loading":!1,"getPhoneNumVm":function(t){e.phoneNumVm=t},"disableSubmit":!1,"phoneNum":this.opts.phoneNum||"","phoneNumConfig":{"validations":[{"name":"len","params":[11],"msg":"请输入正确的手机号"},{"func":function(e){return/^1/.test(""+e)},"msg":"手机号码必须以1开头"}],"filters":["number|*"],"maskcfg":s.masks.space},"hfTips":"","warnMsg":"","phoneValidatePass":!1,"phoneValidateMsg":"","onValidatePhoneNum":function(t){e.vm.phoneValidatePass=t.passed,e.vm.phoneValidateMsg=t.validation.msg},"onPhoneNumChange":function(t){e.vm.phoneValidateMsg="",e.vm.phoneValidatePass=!0,e.vm.phoneNum=t},"handleCheck":function(t){t.preventDefault(),e.vm.phoneNum=e.phoneNumVm.getValue(),e.vm.phoneValidatePass&&(e.reportUser("next.click"),e.phoneNum=e.vm.phoneNum,e.handleCheck(e.vm.phoneNum))}}},"initVm":function(){this.vm=o.define(this.getVmConfig()),this.vm.hfTips=this.getTips()},"onSupportDD":function(){return!1},"onBeforeCheck":function(){return!0},"handleCheck":function(e){if(!this.isLocked())return this.lock(),this.onBeforeCheck&&!this.onBeforeCheck()?void this.phoneNotSupport():void this.cgi.mobileWirelessProc(i.fn.extend({"action":"hfpay_check_type","type":this.getType(),"mobile":e},this.getCheckParams()),function(e){this.unlock(),~~e.ret?this.phoneNotSupport():(this.mobileWirelessCgiData=e,this.hfMode=1==e.hfpay_pay_flow?d.MODE.SMSVERIFY:d.MODE.SMSSEND,this.buy(),this.hfPayTips=e.hfpay_pay_tips,this.onAfterCheckHfpay(e))}.bind(this))},"phoneNotSupport":function(){this.vm.phoneValidateMsg="该号码不支持"},"buy":function(e){e=e||{};var t={"mobile":this.phoneNum,"pay_method":this.channelObj.channel};i.fn.extend(t,e),this.vm.loading=!0,this.hfMode==d.MODE.SMSSEND?(i.fn.extend(t,{"mobile":this.phoneNum,"pay_method":this.channelObj.channel,"pay_scene":"pay","success_return_url":encodeURIComponent(this.miguProxy+"action=1"),"fail_return_url":encodeURIComponent(this.miguProxy+"action=0")}),this.reportUser("smssend.pv"),this.onSupportDD()?this.ddBuy(t):this.phoneNotSupport()):(this.dyBuy(t),this.reportUser("smsverify.pv"))},"ddBuy":function(e){e=e||{};var t=i.fn.extend({},e);this.isLocked()||(this.lock(),this.reportUser("smssend.order.click"),this.store.buy(t,function(e){return this.unlock(),this.handlerDDbuy(e,t)}.bind(this)))},"dyBuy":function(e){e=e||{};var t=i.fn.extend({"hfpay_pay_flow":"1"},e);this.isLocked()||(this.lock(),this.reportUser("smsverify.order.click"),this.store.buy(t,function(e){return this.unlock(),this.handlerDYbuy(e,t)}.bind(this)))},"handlerDDbuy":function(e,t){this.vm.loading=!1;var n=this;if(~~e.ret)this.phoneNotSupport();else if(e.info&&e.info.channel_info&&e.info.channel_info.hfpay_url){this.hfMode=d.MODE.MIGU;var o=e.info.channel_info.hfpay_url.replace(/^https?:/,location.protocol),s=i.fn.addParam({"redirectURL":encodeURIComponent(this.miguProxy+"action=1"),"failRedirectURL":encodeURIComponent(this.miguProxy+"action=0")},o),r=o.indexOf("unipayphone.wostore.cn")>0,c=r?o:s,u={"mode":a.MODE.COMPLETE,"channelObj":this.channelObj,"phoneNum":this.phoneNum,"hfCheckRes":this.mobileWirelessCgiData,"hfMode":this.hfMode,"miguURL":c,"hideSubOrder":!0};i.fn.extend(u,this.onBeforeChangePage()),this.store.changePage("subChannel",u)}else if("2022"==e.ret){var h=n.store.getCgi().sessionObj.getSessionParam(),p=e.info;new l({"phoneNum":n.phoneNum,"url":p.verify_url,"fk_info":p.fk_info,"fk_amt":p.fk_amt,"jiazhang_url":p.jiazhang_url,"veri_url":p.veri_url,"qrcode_url":p.qrcode_url,"cgi":n.store.getCgi(),"accountType":"wc_actoken"===h.session_type?"wx":"qq","onLoad":function(){},"onRcRestrict":function(e,t){e=e||{},n.store.rcRestrict(e,t)},"onVerifyDone":function(e){e=e||{},n.buy(e)}})}else this.phoneNotSupport();return!0},"handlerDYbuy":function(e,t){this.vm.loading=!1;var n=this;if(!~~e.ret){this.hfBillno=e.info.channel_orderid,this.portalNo=e.info.portal_serial_no,this.hfSaveRes=e.info.channel_info;var o={"mode":a.MODE.COMPLETE,"channelObj":this.channelObj,"phoneNum":this.phoneNum,"price":this.hfprice||this.getPrice(),"hfMode":this.hfMode,"hfBillno":this.hfBillno,"portalNo":this.portalNo,"hfCheckRes":this.mobileWirelessCgiData,"res":this.hfSaveRes};if(i.fn.extend(o,this.onBeforeChangePage()),this.hfMode==d.MODE.SMSSEND){var s=this.hfSaveRes;i.fn.extend(o,{"sendSmsFlowAccessMsg":s.msg,"sendSmsFlowAccessNum":s.access_num})}return this.store.changePage("subChannel",o),!0}var r=new c({"errCode":e.ret,"errMsg":e.msg,"oriParams":t,"2022":function(){var t=n.store.getCgi().sessionObj.getSessionParam(),i=e.info;new l({"phoneNum":n.phoneNum,"url":i.verify_url,"fk_info":i.fk_info,"fk_amt":i.fk_amt,"jiazhang_url":i.jiazhang_url,"veri_url":i.veri_url,"qrcode_url":i.qrcode_url,"cgi":n.store.getCgi(),"accountType":"wc_actoken"===t.session_type?"wx":"qq","onLoad":function(){},"onRcRestrict":function(e,t){e=e||{},n.store.rcRestrict(e,t)},"onVerifyDone":function(e){e=e||{},n.buy(e)}})}});return!!r.canHandle()&&(r.exec(),!0)},"checkAllowAmt":function(){var e,t=this.allowAmt,n=!1;return i.lang.isArray(t)||(n=!1),t.length&&t.indexOf(i.fn.formatFloat(100*this.getPrice(),0,"round"))===-1?(e=t.map(function(e){return i.fn.formatFloat(e/100,2,"round")}).join(""),e="话费支付仅支持以下金额(元):"+e,n=!1):n=!0,n?this.vm.warnMsg="":this.vm.warnMsg=e||"",n},"onAfterCheckHfpay":u,"getTips":u,"getPrice":u,"getCheckParams":u,"getType":u,"onBeforeChangePage":function(){return{}}}),d.MODE={"SMSVERIFY":1,"MIGU":3,"SMSSEND":2},d.getTemplate=function(e){return e=e||{},r(e)},d.create=function(e,t,n){return n=n||{},new d(e,t,n)},e.exports=d},"51748615":function(e,t,n){var i=n(1),o=n(117538369),s=n(4),a=n(119561448);i.component("ms:dialog",{"$template":o(),"domId":"","$replace":!0,"url":"","displayHtml":"","title":"","width":300,"height":200,"hideHeader":!1,"$skipArray":["maskConfig"],"maskConfig":{},"clickClose":!0,"forceMaskCss":!1,"opacity":.1,"bgColor":"#fffff","bodyTopOffset":null,"dialogLoading":!1,"$computed":{"margin":{"get":function(){return this.displayHtml?-this.height/2+"px 0 0 "+-this.width/2+"px":-this.height/2-(this.hideHeader?0:20)+"px 0 0 "+-this.width/2+"px"}}},"onClose":function(){},"onReady":function(){},"close":function(){var e=document.getElementById(this.domId);try{e.innerHTML=""}catch(t){}e&&e.parentNode&&(e.parentNode.removeChild(e),e=null,a.remove(),this.onClose.call(this))},"$init":function(e){var t={"forceCss":e.forceMaskCss,"opacity":e.opacity,"bgColor":e.bgColor,"onMaskClick":function(){e.clickClose&&e.close()}};t=s.fn.extend(t,e.maskConfig),a.show(t)},"$ready":function(e){this.onReady(e),null!=this.bodyTopOffset&&(document.getElementById("dialog_body_"+this.domId).style.top=this.bodyTopOffset+"px")},"getBodyId":function(){return"dialog_body_"+this.domId},"getIframeId":function(){return"dialog_iframe_"+this.domId},"getDisplayHtmlId":function(){return"dialog_custom_"+this.domId},"$dispose":function(){}}),e.exports={"create":function(e){var t="dialog-"+(2*Math.random()+10).toString().replace(".","");"object"!=typeof e.size?e.size={"w":300,"h":200}:("number"!=typeof e.size.w&&(e.size.w=300),"number"!=typeof e.size.h&&(e.size.w=200));var n=(i.define({"$id":t,"config":{"hideHeader":e.hideHeader,"title":e.title||"","onReady":function(t){"function"==typeof e.onReady&&e.onReady(t)},"onClose":function(){i.vmodels[t]=null,"function"==typeof e.onClose&&e.onClose()},"iframeOnLoad":function(){"function"==typeof e.iframeOnLoad&&e.iframeOnLoad(this)},"domId":t,"bodyTopOffset":e.bodyTopOffset,"width":e.size.w,"clickClose":e.clickClose,"forceMaskCss":e.forceMaskCss,"height":e.size.h,"displayHtml":e.displayHtml,"maskConfig":e.maskConfig||{},"opacity":e.hasOwnProperty("opacity")?e.opacity:.1,"bgColor":e.bgColor||"#fffff","url":e.url,"accountType":e.accountType,"dialogLoading":!1,"onConfirm":function(){"function"==typeof e.onConfirm&&e.onConfirm()}}}),document.createElement("div"));n.setAttribute("ms-controller",t),n.setAttribute("id",t),n.innerHTML='<ms:dialog config="config"></ms:dialog>',document.body.appendChild(n),i.scan(n)}}},"51768702":function(e,t,n){function i(){if(r.call(this),this.buyInfo=a.fn.extend({},a.fn.getParams()),h.getLoginStatus().ptlogin){var e=h.getLoginStatusFromCookie();e&&a.fn.extend(this.buyInfo,{"openid":String(this.buyInfo.openid||e.uin),"openkey":this.buyInfo.openkey||e.skey})}this.initCgi(),this.buyInfo.info_control||m.prefetchFpBehv(this.cgi,!0)}var o=n(7),s=n(9),a=n(4),r=n(20),c=n(21),l=n(101670216),u=n(49140953),d=n(43511251),h=n(109735088),p=n(78805100),f=n(10),m=n(66158855),g=n(17);a.inherits(i,r),a.fn.extend(i.prototype,{"constructor":i,"checkParams":function(){return d(this.buyInfo)},"initCgi":function(){var e=this.buyInfo;e.appids=e.appid.split(","),e.appid=e.appids[0],this.session=new s({"openid":e.openid,"openkey":e.openkey||"nokey","sessionid":e.session_id||"hy_gameid","sessiontype":e.session_type||"st_dummy","wxappid":e.wxappid,"qqAppid":e.qqAppid}),this.cgi=new o({"appid":e.appid,"report":f,"sandbox":~~e.sandbox,"sessionObj":this.session,"webversion":"minipayv2","aid":e.aid,"pf":e.pf,"pfkey":e.pfkey})},"getCgi":function(){return this.cgi},"getSession":function(){return this.session},"getPublicParams":function(){var e={"isusempaymode":"1","zoneid":this.buyInfo.zoneid||"0"};return this.buyInfo.coupon_id&&this.buyInfo.coupon_id.length>10&&(e.sp_info=this.buyInfo.coupon_id),h.getLoginStatus().wechat&&this.buyInfo.wxappid&&(e.wx_appid=this.buyInfo.wxappid||""),e},"getWechatNick":function(e){var t=this.getSession(),n={"appid":u.wxAppid,"get_detail":2,"openid":encodeURIComponent(t.openid),"access_token":encodeURIComponent(t.openkey)};a.fn.getParam("canGetNick")?(g.register("getNickname",function(t){a.lang.isFunction(e)&&e({"nickname":t})}),g.notify("messageCallback",{"key":"getNickname"})):o.get(String.format("//{domain}pay.qq.com/cgi-bin/account/get_wechat_userinfo.cgi?"+a.req.serializeParam(n),{"domain":c.isSandbox||c.isDev?"sandbox.":""}),function(t,n,i){var o=i&&i.responseText?JSON.parse(i.responseText):{};o=!~~o.resultcode&&o.resultinfo.obj,a.lang.isFunction(e)&&e(o)}.bind(this))},"getQQNick":function(){var e=null;return function(t,n){n=n||{};var i=this.getCgi();return e?t(n.getAll?e:e.nick):void i.wechatQuery({"cmd":"1"},function(o){if(~~o.ret)o=!1;else{var s=decodeURIComponent(o.nick).replace(/□/g,"");o.nick=a.fn.getStringWidth(s)>16?a.fn.trimToWidth(s,14)+"...":s,e=o,p.setDisplayInfoByOpenid(i.sessionObj.openid,{"uin":a.fn.desensitize(o.provide_uin),"nick":o.nick}),p.setDisplayInfoByOpenid(o.provide_uin,{"uin":a.fn.desensitize(o.provide_uin),"nick":o.nick})}a.lang.isFunction(t)&&t(n.getAll?o:o.nick)})}}(),"isAllowSend":function(){var e="true"===this.buyInfo.disableSend;return!e&&(h.getLoginStatus().accesstoken?!!l.getQQAppid():h.getLoginStatus().ptlogin||h.getLoginStatus().pskey)}}),e.exports=i},"52088519":function(e,t,n){function i(e){if(e=e||{},this.opt=e,this.mount=e.mount,this.unmount=e.unmount,this.cgi=e.cgi,this.provide_uin=e.provide_uin,this.isNewMcard=e.isNewMcard,this.configName=e.configName,this.setConfig=e.setConfig,this.onSuccess=e.onSuccess||s,this.onPending=e.onPending||s,this.onFail=e.onFail||s,this.onNoResult=e.onNoResult||s,this.onError=e.onError||s,this.onContinue=e.onContinue||s,this.billNo=e.billNo||"",this.portalNo=e.portalNo||"",this.resultQueryVm=null,!this.billNo)throw Error("billNo must be provide");this.init()}var o=n(4),s=(n(1),o.fn.emptyFunc),a=n(80576922),r=n(79775620),c=n(10);o.fn.extend(i.prototype,{"init":function(){this.initConfig(),this.mount(a.create(this.configName)),c("mcard.query.pv")},"initConfig":function(){var e=this,t=this.cgi;this.setConfig({"onInit":function(t){e.resultQueryVm=t},"onQuery":function(n){t.mobileGetCardBillInfo({"provide_uin":e.provide_uin,"billno":e.billNo,"mcard_pay_mode":e.isNewMcard?"1":"0"},function(t){if(~~t.ret)n.queryDone(a.ENUM_STATUS.PENDING),n.setSubInfo("");else switch(t.state){case 1003:case 1005:case 1008:case 1009:case 1012:case 4:case 9:n.setInfo("对不起,支付失败"),n.setSubInfo(""),n.queryDone(a.ENUM_STATUS.FAIL);break;case 1006:case 1102:case 2:n.setInfo("");var i="";i=e.getMcardInfo(t),t.provide_count&&n.setExtraInfo("realAmount",t.provide_count),n.setSubInfo(i),n.queryDone(a.ENUM_STATUS.SUCCESS);break;case 1103:o.math.sub(e.opt.price,o.math.div(t.mpay_total_amount,100));n.setInfo(">.<充值卡金额不足支付订单,请重新购买"),n.setSubInfo("此次交易不扣费,充值卡的金额已存入您的充值卡账户余额"),n.setExtraInfo("mcardDetail",e.getMcardInfo(t)),n.queryDone(a.ENUM_STATUS.ERROR),e.onContinue();break;case 1007:case 1011:case 3:default:n.queryDone(a.ENUM_STATUS.PENDING),n.setSubInfo("")}})},"onPending":function(e){},"onSuccess":function(t){e.onSuccess(t.getInfo(),t.getSubInfo(),t.getExtraInfo())},"onNoResult":function(t){t.setStatus(a.ENUM_STATUS.ERROR),t.setInfo("未查询到充值卡支付结果"),e.onNoResult(t.getInfo(),t.getSubInfo())},"onError":function(t){e.onError(t.getInfo(),t.getSubInfo(),t.getExtraInfo())},"onFail":function(t){e.onFail(t.getInfo(),t.getSubInfo())}})},"getMcardInfo":function(e){var t=this,n="";return t.isNewMcard&&e.mpay_total_amount>0&&(n+=r({"name":"充值卡账户余额:","content":o.math.div(e.mpay_total_amount,100)})),e.mpay_card_amount>0&&(n+=r({"noEm":!0,"name":"当前充值卡面额:","content":o.math.div(e.mpay_card_amount,100)})),n},"onDestroy":function(){o.fn.stop(),this.resultQueryVm.destroy(),this.resultQueryVm=null,this.unmount()},"destroy":function(){this.onDestroy()}}),e.exports=i},"53578085":function(e,t,n){var i=n(1),o=n(111121174),s=null,a="_cp__load__",r=0;e.exports={"show":function(){if(s=document.getElementById(a))i(s).css({"display":"block"});else{var e=document.createElement("div");e.id=a,document.body.appendChild(e),e.appendChild(i.parseHTML(o()))}r++},"hide":function(e){r--,e&&(r=0),r>0||i(document.getElementById(a)).css({"display":"none"})},"remove":function(){r=0,document.body.removeChild(document.getElementById(a))}}},"54142212":function(e,t,n){var i=n(82760872),o=n(4),s=n(1),a=n(100835382),r=n(119561448),c=n(43847285),l=n(117821206),u=o.fn.getParam("sandbox"),d="//midas.gtimg.cn/mtob/web/channel-web-sdk/jssdk/mtob-channel-api.umd.js",h=!1,p=n(84811753),f=n(103146681),m=n(87145282);n(68682076);var g=function(e,t,n){a.apply(this,arguments),this.init()},v={"init":function(){this.initVm(),this.initChannel()},"initChannel":function(){var e=this;return this.fetchAmount(),this.calculatePrice(),this.refreshUuid(),this.store.isInterfaceDisabled()?(this.vm.isDisable=!0,void(this.vm.disableText=this.store.getChannelDisableText())):0==this.amount?(this.vm.isDisable=!0,void(this.vm.disableText="请完善充值信息")):(this.vm.isDisable=!1,void setTimeout(function(){return h?void e.initedChannel():void s.getScript(d,function(){h=!0,e.initedChannel()})},0))},"initedChannel":function(){this.remitpayApi&&(this.remitpayApi.destroy(),this.remitpayApi=null);var e=this,t=window.MtobChannelApi.init({"params":{"appID":this.store.info.offer_id,"userID":this.store.session.openid,"channel":this.store.channel,"tenantID":"deploy_env","deploy_env":this.getDeployEnv(),"channelParams":{},"sessionID":this.uuid,"reqID":this.uuid},"envOptions":{"env":2==u?"dev":1==u?"sandbox":"release","pageUriConfigs":{"release":{"baseUri":"https://pay.qq.com/mtob/web/channel-web-sdk/p/channel-client"},"sandbox":{"baseUri":"https://sandbox.pay.qq.com/mtob/web/channel-web-sdk/p/channel-client"},"dev":{"baseUri":"https://dev.tke.midas.qq.com/mtob/web/channel-web-sdk/p/channel-client"}}},"timeout":5e3});this.remitpayApi=t,t.on("ready",function(){e.vm.loading=!1}),t.on("resize",function(e){}),t.on("status",function(e){}),t.on("timeout",function(){e.store.onFail({"ret":9901,"msg":"系统繁忙,请稍候再试"})}),t.registerMethod("createChannelOrder",function(t,n){"remitpay"===t.channel&&e.buy({"user_openname":t.data.userOpenname},n)}),t.attach({"target":document.querySelector("#channelWebIframe")})},"getDeployEnv":function(){if(this.store.params&&this.store.params.goodstokenurl){var e=o.fn.getParam("deploy_env",this.store.params.goodstokenurl);return e?e:"tboss"}return"tboss"},"calculatePrice":function(){var e=this.store.getPrice().price;this.price=this.store.getPrice(o.discount.checkHasDiscount(e,"remitpay")?this.channelObj.discount:void 0,this.coupon).price},"fetchAmount":function(){this.amount=this.store.getAmount()},"onChange":function(){this.initChannel()},"getVmConfig":function(){return o.fn.extend({"$id":"remitpay-controller","loading":!0,"isDisable":!1,"disableText":"请完善充值信息"},this.getPubVmConfig())},"initVm":function(){this.vm=s.define(this.getVmConfig())},"buy":function(e,t){if(e=e||{},0!=this.store.getAmount()&&e.user_openname){var n={"uuid":this.uuid,"pay_method":this.channelObj.channel};o.fn.extend(n,e),r.show({"opacity":"0"}),this.store.buy(n,function(e){r.hide();try{return this.handlerBuy(e,n,t)}catch(i){return!0}}.bind(this))}},"handlerBuy":function(e,t,n){var i,s=this;return~~e.ret?(i=new l({"errCode":e.ret,"errMsg":e.msg,"oriParams":t,"2022":function(){var i=e.info,a=s.store.getCgi().sessionObj.getSessionParam();new c({"url":i.verify_url,"fk_info":i.fk_info,"fk_amt":i.fk_amt,"jiazhang_url":i.jiazhang_url,"veri_url":i.veri_url,"qrcode_url":i.qrcode_url,"cgi":s.store.getCgi(),"accountType":"wc_actoken"===a.session_type?"wx":"qq","onLoad":function(){},"onRcRestrict":function(e){e=e||{},s.store.rcRestrict(e)},"onVerifyDone":function(e){e=e||{},s.vm.qrcodeLoading=!0,s.vm.qrcodeReload=!1,o.fn.extend(t,e),s.buy(t,n)},"onDestroy":function(){n&&n({"name":e.ret,"message":e.msg},null)}})}}),!(!i||!i.canHandle())&&(i.exec(),!0)):(n&&n(null,{"channel":"remitpay","data":{"bankAccount":e.info.channel_info.bank_account,"bankFullName":e.info.channel_info.bank_fullname,"bankOpenName":e.info.channel_info.bank_openname,"orderId":e.info.channel_info.order_id,"referenceId":e.info.channel_info.referece_id,"price":""+s.price}}),!0)},"onDestroy":function(){this.remitpayApi&&this.remitpayApi.destroy(),this.remitpayApi=null,a.prototype.removeListener.call(this),this.comet&&this.comet.abort(),a.prototype.destroy.call(this),this.vm=null,r.hide()},"handlePriceLoading":function(e){if(!(e instanceof p))throw Error("action must be instance of Action");var t=this;switch(e.getType()){case f:this.vm&&(this.vm.priceLoading=!0),this.lock();break;case m:this.vm&&setTimeout(function(){t.vm.priceLoading=!1}),this.unlock()}}};o.inherits(g,a),o.fn.extend(g.prototype,v),g.create=function(e,t,n){return new g(e,t,n)},g.getTemplate=function(e){return i(e)},e.exports=g},"54152206":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="qqwallet-controller">\n <div class="coupon" ms-if="coupon" ms-html="couponHTML"></div>\n <div class="qr-code-txt">\n <i class="icon-qq"></i>\n 手Q扫码,支付\n <em ms-if="!priceLoading">{{price}}</em>\n <span ms-if="priceLoading" ms-html="priceLoadingTplHtml"></span>\n 元\n <span ms-if="isQB&&savePrice"> (已省 <em>{{savePrice}}</em>元)</span>\n </div>\n <div class="qr-code-area" ms-visible="showQrcode">\n <div class="qr-code-container qq" ms-visible="!disableQrcode">\n <div id="qr-code-qqwallet" style="display: none"></div>\n <img ms-if="url" ms-attr-src="url" ms-on-load="qrcodeLoaded" ms-on-error="qrcodeLoadFail">\n <div class="qr-code-mask" ms-if="qrcodeLoading||qrcodeReload||priceLoading"></div>\n <div class="qr-code-loading" ms-if="qrcodeLoading||priceLoading">\n <i ms-if="!disableGif"></i>\n <p>加载中,请稍候</p>\n </div>\n <div class="qr-code-reload" ms-if="qrcodeReload" ms-on-click="refreshQrcode">\n <i></i>\n <p>重新获取二维码</p>\n </div>\n </div>\n <div class="qr-code-container qq" ms-visible="disableQrcode&&!disableText"></div>\n </div>\n <div class="qr-code-area" ms-visible="showScaned">\n <i class="icon-phone"></i>\n <p>请在手机上进行支付</p>\n <a href="javascript:void(0);" ms-on-click="backQrcode">返回二维码</a>\n </div>\n <div class="qr-code-area" ms-visible="disableQrcode && disableText">\n <i class="icon-phone"></i>\n <p>{{disableText}}</p>\n <a href="javascript:void(0);" ms-on-click="backQrcode">刷新二维码</a>\n </div>\n <div class="qr-code-wrapper" ms-if="isQB&&tips">\n <p class="tips icon-tips qr-code-tips"><i class="icon-txt"></i>\n {{tips}}\n </p>\n </div>\n <div class="qr-code-txt" ms-if="terms.length > 0" style="padding-top: 8px;">\n <p class="tips sub-tips">支付前阅读并同意\n <span ms-repeat="terms">\n <a href="#" ms-click="openTerm(el,$event)">{{el.termName}}</a>\n </span>\n </p>\n </div>\n</div>';return __p}},"54698897":function(e,t,n){var i=n(4),o=n(112745811),s={"ParamsService":function(e,t,n){var i=n.appids||(n.appid||"").split(","),s=n.wxappid||"";t=t||i[0];var a,r=(n.groupid||"").split(","),c=(n.inner_productid||"").split(","),l={};return s&&(l["wx_appid"]=s),e==o.MONTH&&(l.query_scope="include_continuous"),avalon.each(i,function(i,s){if(t==s)return c.length>i&&c[i]&&(l["inner_productid"]=c[i]),n.drm_info?l["drm_info"]=n["drm_info"]:r.length>i&&r[i]&&(a=e==o.MONTH?"month_group":e==o.QB?"qbqd_group":e==o.GOODS?"goods_group":"currency_group",l["drm_info"]=encodeURIComponent(String.format("{groupkey}={groupid}",{"groupkey":a,"groupid":r[i]})),"month_group"===a&&(l["drm_info"]=l["drm_info"]+encodeURIComponent("&version=3.0"))),!1}),l},"RecoveryAddress":function(){var e=i.fn.getParam("sandbox");return("1"==e||"2"==e?"//sandbox.midas.gtimg.cn/":"//midas.gtimg.cn/")+"midas/minipay_v2/js/app/recovery/{appid}.js"},"GetBankSubChannel":function(e){var t=e.appid,n=e.sessionObj.openid,o=i.fn.safeGet(window.__midasStaticConfig_midas_webpay,"itemMap.webpay.bank82_offerid",[]),s=i.fn.safeGet(window.__midasStaticConfig_midas_webpay,"itemMap.webpay.bank82_openid",[]),a=!1,r=s.some(function(e){return e===n}),c=o.some(function(e){return e===t});return(r||"*"===s[0])&&(a=!0),(c||"*"===o[0])&&(a=!0),a?"82":"80"},"UpdateBankList":function(e){e.getBankList({},function(e){if(!~~e.ret){var t=window.__BANK_CONFIG;avalon.each(t,function(e,t){t.credit&&delete t.credit,t.debit&&delete t.debit,t.cardTypes&&delete t.cardTypes}),e.bank_list.filter(function(e){return"2"===e.bank_trans_flag}).forEach(function(e){var n=e.card_type,i=e.bank_sname.toLowerCase();t[i]&&(t[i].cardTypes=t[i].cardTypes||[],"1"===n&&(t[i].cardTypes.push("debit"),t[i].debit={"payTypes":["bank"],"bank":i+"_"+e.card_type+"_"+e.bank_trans_flag}),"2"===n&&(t[i].cardTypes.push("credit"),t[i].credit={"payTypes":["bank"],"bank":i+"_"+e.card_type+"_"+e.bank_trans_flag}))});var n=window.__B2B_BANK_CONFIG;avalon.each(n,function(e,t){t.credit&&delete t.credit,t.debit&&delete t.debit,t.cardTypes&&delete t.cardTypes}),e.bank_list.filter(function(e){return"1"===e.bank_trans_flag}).forEach(function(e){var t=e.card_type,i=e.bank_sname.toLowerCase();n[i]&&(n[i].cardTypes=n[i].cardTypes||[],"1"===t&&(n[i].cardTypes.push("debit"),n[i].debit={"payTypes":["bank"],"bank":i+"_"+e.card_type+"_"+e.bank_trans_flag}),"2"===t&&(n[i].cardTypes.push("credit"),n[i].credit={"payTypes":["bank"],"bank":i+"_"+e.card_type+"_"+e.bank_trans_flag}))})}})}};e.exports=s},"55004913":function(e,t,n){var i=n(1),o=n(18),s=function(e){this.controllerId=e.controllerId,this.opts={},this.parentVM=e.parentVM,this.loadConfig=e.loadVMConfig.bind(this),this.callbacks=e.callbacks,this._handlers={},this.vm=null};i.mix(s.prototype,o),i.mix(s.prototype,{"setOpts":function(e){this.opts=i.mix(this.opts,e)},"createVm":function(e){if(this.vm){var t=this;i.each(e,function(e,n){t.vm[e]=n})}else this.vm=i.define(i.mix({"$id":this.controllerId,"$skipArray":[]},e,this.callbacks));return this.vm},"loadVMConfig":function(){var e=this;this.loadConfig(function(t){i.nextTick(function(){e.emit("vmReady",t)})})}}),e.exports=s},"55660113":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="bank-controller">\n <!-- 抵扣券 -->\n <div class="coupon" ms-if="coupon" ms-html="couponHTML"></div>\n <!-- loading -->\n <div ms-if="loading" id="_webpay__dialog__load__">\n <div class="mdsweb-loading-wrapper abs">\n <div class="mdsweb-loading">\n <div class="dot"></div>\n <div class="dot"></div>\n <div class="dot"></div>\n </div>\n </div>\n </div>\n <!-- 状态提示 -->\n <p class="choose-type tips icon-tips error" ms-if="tips!=\'\'"><i class="icon-warn"></i>{{tips}}</p>\n <div class="left-money-warn" ms-if="isDisable">\n <p class="tips sub-tips icon-tips" style="margin: 10px 0 20px">\n <i class="icon-error"></i>\n 温馨提示:{{disableText}}\n </p>\n <div ms-if="needJumpToNewBrower && showCopyBtn">\n <div class="copy-url">{{copyUrl}}</div>\n <a type="button" class="btn btn-default" ms-on-click="handleCopy" href="#">\n 一键复制\n </a>\n </div>\n </div>\n\n <div ms-visible="!isDisable">\n <!-- 银行列表 -->\n <iframe frameborder="0" name="channelWebIframe" id="b2bChannelWebIframe" scrolling="no"\n style="width: 100%;"></iframe>\n\n <!-- 支付按钮 -->\n <div class="oper-to-pay" style="margin-top: 0px;">\n <!-- 没有服务条款 -->\n <a ms-on-click="pay" ms-class="btn btn-default" ms-class-1="btn-dis:(disableSubmit||amount==0)"\n ms-class-2="loading:(paying||priceLoading)" href="#" ms-if="terms.length==0">\n <span ms-if="!paying&&!priceLoading">去支付 <span>{{price}}</span>元</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n <!-- 有服务条款 -->\n <a ms-on-click="pay" ms-class="btn btn-default" ms-class-1="btn-dis:(disableSubmit||amount==0)"\n ms-class-2="loading:(paying||priceLoading)" href="#" style="min-width: 180px;" ms-if="terms.length>0">\n <span ms-if="!paying&&!priceLoading">同意协议并支付 <span>{{price}}</span>元</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n </div>\n <!-- 服务条款 -->\n <div class="left-money-warn" ms-if="terms.length > 0">\n <p class="tips sub-tips">支付前阅读并同意\n <span ms-repeat="terms">\n <a href="#" ms-click="openTerm(el,$event)">{{el.termName}}</a>\n </span>\n </p>\n </div>\n </div>\n</div>';return __p}},"56711316":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="bank-controller">\n <div class="coupon" ms-if="coupon" ms-html="couponHTML"></div>\n <div>\n <ms:bankselector config="bankData" on-selected-bank="onSelectedBank"></ms:bankselector>\n </div>\n <p class="choose-type tips icon-tips error" ms-if="tips!=\'\'"><i class="icon-warn"></i>{{tips}}</p>\n <div class="oper-to-pay">\n <!-- 没有服务条款 -->\n <a ms-on-click="pay" ms-class="btn btn-default" ms-class-1="btn-dis:(disableSubmit||amount==0)"\n ms-class-2="loading:(paying||priceLoading)" href="#" ms-if="terms.length==0">\n <span ms-if="!paying&&!priceLoading">去支付 <span>{{price}}</span>元</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n <!-- 有服务条款 -->\n <a ms-on-click="pay" ms-class="btn btn-default" ms-class-1="btn-dis:(disableSubmit||amount==0)"\n ms-class-2="loading:(paying||priceLoading)" href="#" style="min-width: 180px;" ms-if="terms.length>0">\n <span ms-if="!paying&&!priceLoading">同意协议并支付 <span>{{price}}</span>元</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n </div>\n <div class="left-money-warn" ms-if="terms.length > 0">\n <p class="tips sub-tips">支付前阅读并同意\n <span ms-repeat="terms">\n <a href="#" ms-click="openTerm(el,$event)">{{el.termName}}</a>\n </span>\n </p>\n </div>\n</div>';return __p}},"56851482":function(e,t,n){var i=n(1),o=n(121508273),s=n(4),a=(3*Math.random()+1).toString().replace(".",""),r=n(10),c=document.all&&!window.XMLHttpRequest,l={"$skipArray":["step","_defaultValue","_pv"],"value":0,"disabled":!1,"min":NaN,"max":NaN,"step":1,"_defaultValue":0,"_pv":"","onChange":i.noop,"click":i.noop,"width":150,"unit":"","id1":a,"btn1":s.fn.uuid(),"btn2":s.fn.uuid(),"onInit":i.noop},u=i.mix(l,{"_setValue":function(e){if(document.getElementById(this.id1).value=e,this.value=e,!c){var t=document.getElementById(this.btn1),n=document.getElementById(this.btn2);i(t).removeClass("disabled"),t.removeAttribute("disabled"),i(n).removeClass("disabled"),n.removeAttribute("disabled")}},"keydown":function(e){var t=[46,37,38,40,39,8];
if(t.indexOf(e.which)==-1){if(!isNaN(this.max)){var n=this.max+"";if(e.target.value.length>=n.length&&!this.isSelect())return void e.preventDefault()}e.which>=96&&e.which<=105||e.which>=48&&e.which<=57||e.preventDefault()}},"isSelect":function(){try{if(window.getSelection){var e=window.getSelection();return""!=e.toString()}if(document.selection){var t=document.selection.createRange();return str=t.text,""!=str}}catch(n){}},"focus":function(e){this._pv=e.target.value},"blur":function(e){var t=document.getElementById(this.id1).value;(isNaN(t)||""==t)&&(t=this._defaultValue),this._setValue(t),r("spiner.input.blur",{"action":t}),this._pv!=this.value&&this.change(e)},"change":function(e){var t=Number(this.value);isNaN(this.max)||(t=t>this.max?this.max:this.value),isNaN(this.min)||(t=t<this.min?this.min:t),t-=t%this.step,this._setValue(t),this.onChange.call(null,this.value)},"decrease":function(e){var t=Number(this.value)-this.step,n="i"===e.target.nodeName.toLowerCase()?e.target.parentNode:e.target;return!isNaN(this.min)&&t<this.min?void(c||(i(n).addClass("disabled"),n.setAttribute("disabled","true"))):(r("spiner.decrease.click"),this._setValue(t),void this.onChange.call(null,this.value,"decrease"))},"setAmount":function(e){var t=Number(e);isNaN(this.max)||(t=t>this.max?this.max:t),isNaN(this.min)||(t=t<this.min?this.min:t),t-=t%this.step,this._setValue(t),this.onChange.call(null,this.value,"setAmount")},"increase":function(e){var t="i"===e.target.nodeName.toLowerCase()?e.target.parentNode:e.target,n=Number(this.value)+this.step;return!isNaN(this.max)&&n>this.max?void(c||(i(t).addClass("disabled"),t.setAttribute("disabled","true"))):(r("spiner.increase.click"),this._setValue(n),void this.onChange.call(null,this.value,"increase"))},"$template":o(),"$init":function(e,t){this._defaultValue=e.value,"function"==typeof e.onInit&&e.onInit(e)}});i.component("ms:spiner",u),e.exports={"create":function(e){return'<ms:spiner config="'+e+'" on-init="onSpinerInit"></ms:spiner>'}}},"57188951":function(module,exports){!function(){function _fixedLengthWithPrefix(e,t,n){t=t||2,n=n||"0";var i=[];return i[t]=e,i.join(n).slice(-t)}function _firstLetterUpper(e){return e+="",e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()}function _jsonFilter(e){var t=Object.prototype.toString.call(e);if(null===e||e instanceof String||e instanceof Number||e instanceof Boolean||e instanceof Date||{"[object String]":1,"[object Number]":1,"[object Boolean]":1,"[object Date]":1}[t])return e;if(void 0!==e){if(e===window)return"[object DOMWindow]";if(e===document)return"[object HTMLDocument]";if("function"!=typeof e.constructor)return e&&"string"==typeof e.tagName?"[object HTML"+_firstLetterUpper(e.tagName)+"Element]":void 0;if(!{"[object Object]":1,"[object Array]":1}[t])return t;if(_jsonHash[e.__CASHIER_JSON_HASH]!==e){for(var n=LIB.getIntRandom();_jsonHash[n];)n=LIB.getIntRandom();return _jsonHash[e.__CASHIER_JSON_HASH=n]=e,e}}}function _jsonQuote(e){return _jsonEscapable.lastIndex=0,'"'+(_jsonEscapable.test(e)?e.replace(_jsonEscapable,function(e){var t=_jsonMetaChar[e];return"string"==typeof t?t:"\\u"+_fixedLengthWithPrefix(e.charCodeAt(0).toString(16),4)}):e)+'"'}function _jsonGetString(e){e=_jsonFilter(e);var t,n,i,o=Object.prototype.toString.call(e);if(void 0!==e){if(null===e||e instanceof Boolean||"[object Boolean]"===o)return String(e);if(e instanceof String||"[object String]"===o)return _jsonQuote(e);if(e instanceof Number||"[object Number]"===o)return isFinite(e)?String(e):"null";if(e instanceof Date||"[object Date]"===o)return isFinite(e.valueOf())?_jsonQuote(e.getUTCFullYear()+"-"+_fixedLengthWithPrefix(e.getUTCMonth()+1)+"-"+_fixedLengthWithPrefix(e.getUTCDate())+"T"+_fixedLengthWithPrefix(e.getUTCHours())+":"+_fixedLengthWithPrefix(e.getUTCMinutes())+":"+_fixedLengthWithPrefix(e.getUTCSeconds())+"."+_fixedLengthWithPrefix(e.getUTCMilliseconds(),3)+"Z"):"null";if(e instanceof Array||"[object Array]"===o){t=[];for(var s=0,a=e.length;s<a;s++)t[s]=_jsonGetString(e[s])||"null";return delete _jsonHash[e.__CASHIER_JSON_HASH],delete e.__CASHIER_JSON_HASH,"["+t.join(",")+"]"}if(e){t=[],i=Object.hasOwnProperty;for(var r in e)"__CASHIER_JSON_HASH"!=r&&i.call(e,r)&&(n=_jsonGetString(e[r]))&&t.push(_jsonQuote(r)+":"+n);return delete _jsonHash[e.__CASHIER_JSON_HASH],delete e.__CASHIER_JSON_HASH,"{"+t.join(",")+"}"}return"null"}}function _fireUnloadEvent(){LIB.unload.notify()}function _xsDispatch(e,t){if("string"==typeof e&&0==e.indexOf(_XS_TAG)){e=e.substring(_XS_TAG.length);var n,i=JSON.parse(e),o=i.port;(n=_xsInstance[o])&&n._handle(i,t,e)}}function _mergeDuration(e,t){return e._total=e._total||e.duration*(e.rate-1)||0,e._total+=t.duration||0,e.duration=Math.max(Math.round(e._total/e.rate),1),e}function _xsend(e,t){_dialogXStream.closed||DLG._call(_dialogXStream,e,t)}function _handleLocal(e,t){_dialogXStream.closed||(_methodObservers[e].notify(t),DLG._call(_dialogXStream,e,t))}function _callClosure(e){_methodObservers[e]=new Observer;var t=function(t){_handleLocal(e,t)};return t.on=function(t){_methodObservers[e].subscribe(t)},t}var thisAPI=window.cashier={},LIB=thisAPI.LIB={},VER=thisAPI.VER={"dialog":1,"api":1};LIB.err=function(){window.debug&&(window.console&&console.error&&Function.prototype.apply.call(console.error,console,Array.prototype.slice.call(arguments,0)),"string"==typeof arguments[0]&&alert(arguments[0]))},LIB.warn=function(){window.debug&&window.console&&console.warn&&Function.prototype.apply.call(console.warn,console,Array.prototype.slice.call(arguments,0))},LIB.log=function(){window.debug},LIB.getIntRandom=function(){return Math.round(Math.random()*(new Date).getTime())%9e9+1e9},LIB.emptyFn=function(){},LIB.getParam=function(e,t){var n=new RegExp("(?:^|\\?|#|&)"+e+"=([^&#]*)(?:$|&|#)","i"),i=n.exec(t||location.href);return i?i[1]:""};var JSON=thisAPI.JSON={},_jsonHash={},_jsonEscapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_jsonMetaChar={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},_jsonInvisibleChar=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;JSON.stringify=function(e){var t=_jsonGetString(e);return t},JSON.parse=function(text){if(text=String(text),text&&(_jsonInvisibleChar.lastIndex=0,_jsonInvisibleChar.test(text)&&(text=text.replace(_jsonInvisibleChar,function(e){return"\\u"+_fixedLengthWithPrefix(e.charCodeAt(0).toString(16),4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))))try{return new Function("return "+text)()}catch(_){return eval("("+text+")")}throw new SyntaxError("JSON.parse")},LIB.setTimeout=function(e,t,n,i){return setTimeout(function(){e.apply(n,i||[])},t)},LIB.ua=function(){var e,t={},n=navigator.userAgent;return window.ActiveXObject?(t.ie=6,(window.XMLHttpRequest||n.indexOf("MSIE 7.0")>=0)&&(t.ie=7),(window.XDomainRequest||n.indexOf("Trident/4.0")>=0)&&(t.ie=8),n.indexOf("Trident/5.0")>=0&&(t.ie=9),n.indexOf("Trident/6.0")>=0&&(t.ie=10)):document.getBoxObjectFor||"undefined"!=typeof window.mozInnerScreenX?(e=/(?:Firefox|GranParadiso|Iceweasel|Minefield).(\d+\.\d+)/i.exec(n),t.firefox=e?parseFloat(e[1],10):3.3):navigator.taintEnabled?window.opera&&(t.opera=parseFloat(window.opera.version(),10)):(e=/AppleWebKit.(\d+\.\d+)/i.exec(n),t.webkit=e?parseFloat(e[1],10):document.evaluate?document.querySelector?525:420:419,(e=/Chrome.(\d+\.\d+)/i.exec(n))||window.chrome?t.chrome=e?parseFloat(e[1],10):2:((e=/Version.(\d+\.\d+)/i.exec(n))||window.safariHandler)&&(t.safari=e?parseFloat(e[1],10):3.3)),e=/CPU.+?OS (\d+(?:_\d+)?).+?like Mac OS X/i.exec(n),n.indexOf("iPod")>=0?t.iPod=e?parseFloat(e[1].replace(/_/g,"."),10):1:n.indexOf("iPhone")>=0?t.iPhone=e?parseFloat(e[1].replace(/_/g,"."),10):1:n.indexOf("iPad")>=0?t.iPad=e?parseFloat(e[1].replace(/_/g,"."),10):1:n.indexOf("Macintosh")>=0||n.indexOf("OS X")>=0?(e=/(?:Mac )?OS X (\d+(?:_\d+)?)/i.exec(n),t.mac=e?parseFloat(e[1].replace(/_/g,"."),10):1):n.indexOf("Window")>=0?(e=/Windows NT (\d+(?:\.\d+)?)/i.exec(n),t.windows=e?parseFloat(e[1],10):1):n.indexOf("Android")>=0?(e=/Android (\d+(?:\.\d+)?)/i.exec(n),t.android=e?parseFloat(e[1],10):1):n.indexOf("Linux")>=0&&(t.linux=1),t}();var Observer=LIB.Observer=function(e,t){this._sender=e,this._timeout=+t||0,this._subscriber=[],this._timer=0};Observer.prototype.subscribe=function(e,t,n){return"function"==typeof e&&(this._subscriber.push({"fn":e,"self":t,"context":n}),!0)},Observer.prototype.unsubscribe=function(e){if("function"!=typeof e)return!1;for(var t,n=this._subscriber,i=!1,o=0;t=n[o];o++)if(t.fn==e){i=!0,n=n.slice(0,o).concat(n.slice(o+1));break}return!!i&&(this._subscriber=n,!0)},Observer.prototype.notify=function(e){var t=function(){this._timer=0;for(var t,n=this._subscriber,i=0;t=n[i];i++)t.fn.call(t.self,e,this._sender,t.context)};this._timeout?(this._timer&&clearTimeout(this._timer),this._timer=LIB.setTimeout(t,this._timeout,this)):t.call(this)};var ReadyCall=LIB.ReadyCall=function(){this.isReady=!1,this._onReady=new Observer(this),this._first=!0,this._onFirst=new Observer(this)};ReadyCall.prototype.onReady=function(e){this.isReady?e():this._onReady.subscribe(e),this._first&&(this._onFirst.notify(),this._first=!1)},ReadyCall.prototype.ready=function(){this.isReady||(this.isReady=!0,this._onReady.notify())},ReadyCall.prototype.onFirst=function(e){this._onFirst.subscribe(e)};var _eventList=[];LIB.attachEvent=function(e,t,n,i){if(e&&t&&"function"==typeof n){i=i||{},i.win=i.win||window;var o=function(e){n.apply(i.self,[e||i.win.event].concat(i.args||[]))};_eventList.push({"el":e,"type":t,"cfn":o,"fn":n}),e.attachEvent?e.attachEvent("on"+t,o):e.addEventListener&&e.addEventListener(t,o,!1)}};var _crossEventList={};LIB.fireCrossEvent=function(e,t){var n;return!!_crossEventList[t]&&((n=_crossEventList[t]).fn.apply(n.opt.self,[e].concat(n.opt.args||[])),!0)},LIB.attachCrossEvent=function(e,t,n,i,o){if(e&&t&&"function"==typeof n&&i){if(i==window)return LIB.attachEvent(e,t,n,o);o=o||{};for(var s=LIB.getIntRandom();_crossEventList[s];)s=LIB.getIntRandom();_crossEventList[s]={"fn":n,"opt":o},i["_CASHIER_CROSS_EVENT_HANDLER_"+s]=window,i["_CASHIER_CROSS_EVENT_TARGET_"+s]=e;var a=new i.Function("evt","var win=window._CASHIER_CROSS_EVENT_HANDLER_"+s+",ret=false,el=window._CASHIER_CROSS_EVENT_TARGET_"+s+";if(win&&win.parent&&win.parent!=win&&win.cashier){try{ret=win.cashier.LIB.fireCrossEvent(evt||window.event,"+s+");}catch(_){}}if(!ret){el&&(el.removeEventListener?el.removeEventListener('"+t+"',arguments.callee,false):el.detachEvent&&el.detachEvent('on"+t+"',arguments.callee));try{delete window._CASHIER_CROSS_EVENT_HANDLER_"+s+";delete window._CASHIER_CROSS_EVENT_TARGET_"+s+";}catch(_){window._CASHIER_CROSS_EVENT_HANDLER_"+s+"=void 0;window._CASHIER_CROSS_EVENT_TARGET_"+s+"=void 0;}}");_eventList.push({"el":e,"type":t,"cfn":a,"fn":n,"win":i,"id":s}),e.attachEvent?e.attachEvent("on"+t,a):e.addEventListener&&e.addEventListener(t,a,!1)}},LIB.detachEvent=function(e,t,n){for(var i,o=[],s=0;i=_eventList[s];s++)if(e&&i.el!=e||t&&i.type!=t||"function"==typeof n&&i.fn!=n)o.push(i);else if(i.el.detachEvent?i.el.detachEvent("on"+i.type,i.cfn):i.el.removeEventListener&&i.el.removeEventListener(i.type,i.cfn,!1),i.win&&i.id)try{delete i.win["_CASHIER_CROSS_EVENT_HANDLER_"+i.id],delete i.win["_CASHIER_CROSS_EVENT_TARGET_"+i.id]}catch(a){i.win["_CASHIER_CROSS_EVENT_HANDLER_"+i.id]=void 0,i.win["_CASHIER_CROSS_EVENT_TARGET_"+i.id]=void 0}_eventList=o},LIB.getEvent=function(){var e,t=window.event,n=0;if(!t)try{for(e=arguments.callee;e&&n<10&&!((t=e.arguments)&&(t=t[0])&&"object"==typeof t&&"type"in t&&"button"in t&&"ctrlKey"in t&&"altKey"in t&&"shiftKey"in t);)t=null,e=e.caller,n++}catch(i){return null}return t},LIB.unload=new Observer,LIB.unload.subscribe(function(){LIB.detachEvent()});var _unloadEventName=LIB.ua.chrome||LIB.ua.opera?"beforeunload":"unload";window.attachEvent?window.attachEvent("on"+_unloadEventName,_fireUnloadEvent):window.addEventListener&&window.addEventListener(_unloadEventName,_fireUnloadEvent,!1),LIB.unload.subscribe(function(){window.cashier&&(window.cashier=void 0),window.detachEvent?window.detachEvent("on"+_unloadEventName,_fireUnloadEvent):window.removeEventListener&&window.removeEventListener(_unloadEventName,_fireUnloadEvent,!1)}),LIB.encodeURI=function(e){return e?(e+"").replace(/\%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"%20").replace(/\?/g,"%3F").replace(/#/g,"%23").replace(/&/g,"%26").replace(/=/g,"%3D").replace(/"/g,"%22"):""};var _supportPostMessage=function(){if(window.postMessage)try{if(window.postMessage.toString().indexOf("[native code]")>=0)return!0;LIB.err('The native "postMessage" function of browsers seems to have been overridden, DO NOT override it, or Cashier API will not work properly!')}catch(e){return!0}return!1}(),_xsInstance={},_XS_TAG="__CashXStream_";_supportPostMessage&&LIB.attachEvent(window,"message",function(e){_xsDispatch(e.data,e.source)});var XStream=LIB.XStream=function(e,t,n){var i;return(i=_xsInstance[t])?i:(_xsInstance[t]=this,this.handler=e,this.targetPort=t,this.target=n,this.closed=!1,this.onInit=new Observer(this),this._pool=[],void(!_supportPostMessage&&!navigator[_XS_TAG+XStream.channel+XStream.localPort]&&(navigator[_XS_TAG+XStream.channel+XStream.localPort]=_xsDispatch)))};XStream.channel=0,XStream.localPort="",XStream.prototype._sendRaw=function(e){var t;try{_supportPostMessage?this.target.postMessage(e,"*"):"function"==typeof(t=navigator[_XS_TAG+XStream.channel+this.targetPort])&&t(e,window)}catch(n){LIB.warn("XStream sending error: ",n)}},XStream.prototype._handle=function(e,t,n){if(e.init)for(this.target=t,this.closed=!1,this.onInit.notify();this._pool.length;)this._sendRaw(this._pool.shift());else!this.closed&&"function"==typeof this.handler&&this.handler.call(this,e.data,this.targetPort)},XStream.prototype.init=function(){if(this.target){var e={"port":XStream.localPort,"init":1},t=JSON.stringify(e);t=_XS_TAG+t,this._sendRaw(t),this.onInit.notify()}},XStream.prototype.send=function(e){if(!this.closed&&e){var t={"port":XStream.localPort,"data":e},n=JSON.stringify(t);n=_XS_TAG+n,this.target?this._sendRaw(n):this._pool.push(n)}},XStream.prototype.close=function(){this.closed=!0,delete _xsInstance[this.targetPort]};var OnceCall=LIB.OnceCall=function(e,t,n){this._timeout=e,this._timer=0,t=t||{},this.onConsume=t.onConsume,this.onReject=t.onReject,this.onTimeout=t.onTimeout,this.hasCalled=!1,n&&this.start()};OnceCall.prototype._call=function(e){this.hasCalled||(this.hasCalled=!0,this._timer&&clearTimeout(this._timer),this._timer=0,"function"==typeof e&&e.call(this))},OnceCall.prototype.start=function(){this._timeout>=0&&(this._timer=LIB.setTimeout(this.timeout,this._timeout,this))},OnceCall.prototype.consume=function(){this._call(this.onConsume)},OnceCall.prototype.reject=function(){this._call(this.onReject)},OnceCall.prototype.timeout=function(){this._timer=0,this._call(this.onTimeout)};var _psIdx=0,_psPool=LIB._psPool={};LIB.pingSender=function(e,t){return};var BatchReporter=function(e,t,n,i){this.key=e,this.query=t,this.merge=n,this.url=i,this.count=0,this.store={},this.timer=0,this._url=""};BatchReporter.MAX_LEN=1e3,BatchReporter.tmpl=function(e,t){return(e+"").replace(/\{(\w+)\}/g,function(e,n){return t[n]})},BatchReporter.prototype.add=function(e){var t,n;if(this.key?(n=BatchReporter.tmpl(this.key,e),(t=this.store[n])&&(t.rate++,t=this.merge(t,e))):n=this.count,!t){this.count++,t=this.store[n]={},t.rate=1;for(var i in e)t[i]=e[i]}this.report()},BatchReporter.prototype.report=function(e){var t,n=[],i=1;if("function"==typeof this.query)for(var o in this.store)t=this.store[o],n.push(this.query(i++,t));else{for(var s=0,a=this.query.length;s<a;s++)n.push([]);for(var o in this.store){t=this.store[o];for(var s=0,a=this.query.length;s<a;s++)n[s].push(this.query[s](i,t));i++}for(var s=0,a=n.length;s<a;s++)n[s]=n[s].join("")}this._url=BatchReporter.tmpl(this.url,{"random":LIB.getIntRandom(),"count":this.count,"query":n.join("")}),this._url.length>=BatchReporter.MAX_LEN||e?this._doReport():!this.timer&&(this.timer=LIB.setTimeout(this._doReport,3e5,this))},BatchReporter.prototype.reportImmediate=function(){this.count>0&&(this.report(!0),setTimeout(LIB.emptyFn,1e3))},BatchReporter.prototype._doReport=function(){clearTimeout(this.timer),this.timer=0,0!=this.count&&(this.count=0,this.store={},LIB.pingSender(this._url,-1))},LIB.pv=function(e,t){},LIB.timeStat=function(e,t,n,i){},LIB.valueStat=function(e,t,n,i,o){},LIB.valueStat2=function(e,t,n,i,o){},LIB.performanceTimeStat=function(e,t){LIB.setTimeout(function(){var n=window.performance||window.webkitPerformance||window.msPerformance;if(n){if(0==n.timing.loadEventEnd)return void LIB.setTimeout(arguments.callee,5e3);var i=[n.timing.navigationStart,n.timing.unloadEventStart,n.timing.unloadEventEnd,n.timing.redirectStart,n.timing.redirectEnd,n.timing.fetchStart,n.timing.domainLookupStart,n.timing.domainLookupEnd,n.timing.connectStart,n.timing.connectEnd,n.timing.requestStart,n.timing.responseStart,n.timing.responseEnd,n.timing.domLoading,n.timing.domInteractive,n.timing.domContentLoadedEventStart,n.timing.domContentLoadedEventEnd,n.timing.domComplete,n.timing.loadEventStart,n.timing.loadEventEnd];LIB.timeStat(e,i,t,!0)}},5e3)},LIB.resourceTimeStat=function(e,t,n,i){LIB.setTimeout(function(){var o=window.performance||window.webkitPerformance||window.msPerformance;if(o&&(o.getEntriesByName||o.webkitGetEntriesByName)){if(0==o.timing.loadEventEnd)return void LIB.setTimeout(arguments.callee,5e3);var s;try{s=(o.getEntriesByName||o.webkitGetEntriesByName).call(o,t)[0]}catch(a){return}if(!s)return void LIB.valueStat(i,1,11);if(0==s.responseEnd)return void LIB.setTimeout(arguments.callee,5e3);var r=[s.startTime,0,s.startTime+s.startTime,s.redirectStart,s.redirectEnd,s.fetchStart,s.domainLookupStart,s.domainLookupEnd,s.connectStart,s.connectEnd,s.requestStart,s.responseStart,s.responseEnd,0,0,0,0,s.startTime+s.duration];LIB.timeStat(e,r,n,!0),LIB.valueStat(i,1,12)}},5e3)},LIB.report=function(){var e=[];return function(t){var n=new Image;e.push(n),n.onload=n.onerror=n.onabort=function(){n=n.onload=n.onerror=n.onabort=null;for(var t=0,i=e.length;t<i;++t)e[t]===n&&e.splice(t,1)},n.src=t}}();var DLG=LIB.DLG={},_dlgInstance={},_dlgIndex=1;DLG._handle=function(e,t){var n,i=t.idx;t.key;return!t.key&&(n=_dlgInstance[i])?(n.platform.consume(),delete _dlgInstance[i],!1):(e.send({"idx":i}),!0)},DLG._call=function(e,t,n){n=n||{};var i=n.timestamp=n.timestamp||(new Date).getTime(),o=_dlgIndex++;_dlgInstance[o]={"timestamp":i,"platform":new OnceCall(1e4,{"onConsume":function(){LIB.valueStat(350303,1,20,(new Date).getTime()-i)},"onTimeout":function(){!e.closed&&LIB.valueStat(350303,2,19,(new Date).getTime()-i)}},(!0))};e.send({"key":t,"args":n,"idx":o})};var customParam=decodeURIComponent(LIB.getParam(window._cashierDialogParam||"cash_param"))||window._cashierDialogValue;cashier.quiet="1"==LIB.getParam("quiet",customParam);var dialogId=LIB.getParam("_fd_id",customParam),dialogMethods=LIB.getParam("_fd_ms",customParam).split("|"),_methodObservers={};XStream.channel=+LIB.getParam("_fd_c",customParam),XStream.localPort=dialogId;for(var _dialogXStream=new XStream(function(e){var t;DLG._handle(_dialogXStream,e)&&((t=_methodObservers[e.key])?t.notify(e.args):LIB.warn("Invalid method from Remote: "+e.key))},"lib",parent),i=0,one;one=dialogMethods[i];i++)cashier[one]=_callClosure(one);_methodObservers.submit=new Observer,_methodObservers.close=new Observer;var MSGBOX_TYPE=cashier.MSGBOX_TYPE={};MSGBOX_TYPE.INFO=1,MSGBOX_TYPE.OK=2,MSGBOX_TYPE.WARN=3,MSGBOX_TYPE.LOADING=4,cashier.showMsgbox=function(e,t,n){_xsend("showMsgbox",{"type":e,"msg":t,"timeout":n})},cashier.hideMsgbox=function(){_xsend("hideMsgbox")};var _lastWidth=-1,_lastHeight=-1;cashier.resize=function(e,t){(+e&&e>0&&e!=_lastWidth||+t&&t>0&&t!=_lastHeight)&&(_xsend("resize",{"w":e,"h":t}),_lastWidth=+e,_lastHeight=+t)},cashier.submit=function(e){_methodObservers.submit.notify(e)},cashier.submit.on=function(e){_methodObservers.submit.subscribe(e)},cashier.succeed=function(e){_xsend("succeed",e),cashier.quiet&&_dialogXStream.close()},cashier.notify=function(e){_xsend("notify",e)},cashier.show=function(e){cashier.quiet&&(cashier.quiet=!1,_xsend("show",e))},cashier.error=function(e){_xsend("error",e),cashier.quiet&&_dialogXStream.close()},cashier.close=function(e){_methodObservers.close.notify(e),_xsend("close",e),_dialogXStream.close()},cashier.close.on=function(e){_methodObservers.close.subscribe(e)},cashier.on=function(e,t,n){_methodObservers[e]||(_methodObservers[e]=new Observer),_methodObservers[e].subscribe(t,n)},cashier.off=function(e,t){_methodObservers[e]&&_methodObservers[e].unsubscribe(t)},cashier.showBackBtn=function(){_xsend("showBackBtn")},cashier.resetTitle=function(){_xsend("resetTitle")},cashier.hideBackBtn=function(){_xsend("hideBackBtn")},cashier.newdialog=function(e){_xsend("newdialog",e)},cashier.openwindow=function(e){_xsend("openwindow",e)},cashier.messageCallback=function(e){e=e||{},_xsend("messageCallback",e)},cashier.setFlowControlCookie=function(e){e=e||{},_xsend("setFlowControlCookie",e)},_dialogXStream.init(),_xsend("load",{"quiet":cashier.quiet});var dialogBodySize=LIB.getParam("_fd_size",customParam).split("|"),dialogBodyHeight=dialogBodySize[1],dialogBodyWrapper=LIB.getParam("_fd_w",customParam),targetHeight=dialogBodyHeight?dialogBodyHeight+"px":"",dialogBodyWrapperNode}()},"66158855":function(e,t,n){function i(e,t){return u||(u=new c.Promise(function(t){a.getFpBehvReporter(e)(t)})),t?null:u}function o(e){return c.Promise.race([new c.Promise(function(e){setTimeout(function(){e({"ret":-9997})},l)}),i(e)]).then(function(e){return e.ret===-9997&&r("fpBehv.timeout"),e})}var s=n(4),a=n(107544357),r=n(10);n(5);var c=n(1),l=s.fn.safeGet(window.__midasStaticConfig_midas_webpay,"itemMap.webpay.get_kepler_timeout",5e3),u=null;e.exports={"prefetchFpBehv":i,"waitFpBehv":o}},"66520979":function(e,t,n){var i=n(1),o=n(4),s=n(104500419),a=n(74720348),r=navigator.userAgent.indexOf("MSIE 7.0")>0||"1"==o.fn.getParam("noKeyEvent"),c=0,l={"NORMAL":0,"VALIDATEFAIL":1};i.component("ms:input",{"$template":s(),"$$template":function(e){return"simpleinput"==e?s():a()},"$replace":!0,"$skipArray":["enablePlaceHolder","filters","validations","maxlength","_placeHolder","maskcfg"],"$el":null,"onInput":i.noop,"onValidate":function(e,t){},"onChange":i.noop,"onFocus":i.noop,"onBlur":i.noop,"onInit":i.noop,"filters":[],"validations":[],"placeholder":"","ie7focused":!1,"defaultClass":"form-input","extraClass":"","extraContainerClass":"","enablePlaceHolder":!1,"hideFocus":!0,"isFocused":!1,"_disable":!1,"id":"","value":"","oldValue":"","displayValue":"","oldDisplayValue":"","width":"100%","oldPos":0,"maxlength":null,"state":l.NORMAL,"usemask":!1,"maskcfg":{},"$init":function(e,t){e.id="input_"+c++,e.enablePlaceHolder=!!e.placeholder&&!e.supportPlaceHolder(),o.fn.each(e.maskcfg,function(e,t){o.lang.isFunction(e)&&(this.maskcfg[t]=function(){return e.apply(this,arguments)}.bind(this))}.bind(e))},"supportPlaceHolder":function(){var e=document.createElement("input");return"placeholder"in e&&!document.all},"$ready":function(e){e.value=e.useFilter.call(e,"*"),e.$el=document.getElementById(e.id),e.onInit(e),e.value+="",e.$el.value=e.oldValue=e.value,e.enablePlaceHolder||e.$el.setAttribute("placeholder",e.placeholder),e.handleInput.call(e,"init")},"$dispose":function(e){e.$unwatch(),e.maskcfg={}},"getPos":function(e){var t;try{if(e.setSelectionRange)return t=e.selectionStart;if(e.createTextRange){var n=document.selection.createRange(),i=0-n.moveStart("character",-e.value.length);return i}}catch(o){}},"setPos":function(e,t){try{if(e.setSelectionRange)e.setSelectionRange(t,t);else if(e.createTextRange){var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t),n.select()}this.oldPos=t}catch(i){}},"fixPos":function(e){return e},"handleKeyDown":function(e){var t=[46,37,38,40,39,8],n=!0,i=this.$el.value;32==e.keyCode&&(n=!1),null==this.maxlength||this.isSelect()||this.useFilter("*",i).length>=~~this.maxlength&&(n=!1),t.indexOf(e.keyCode)>-1&&(n=!0),n||(e.preventDefault?e.preventDefault():e.returnValue=!1)},"isSelect":function(){if(window.getSelection){var e=window.getSelection();return""!=e.toString()}if(document.selection){var t=document.selection.createRange();return str=t.text,""!=str}},"handleInput":function(e){this.oldValue;this.value=this.$el.value;var t=this.useFilter("input",this.value);this.value=t,this.onValidate({"passed":!0,"validation":{}}),this.state=l.NORMAL,null!=this.maxlength?(this.maxlength=~~this.maxlength,this.value.length>this.maxlength&&(this.value=t=this.value.substr(0,this.maxlength)),this.onInput(this.value)):this.onInput(this.value);var n=this.getPos(this.$el);this.$el.value=t,"init"!=e?(this.displayValue=this.$el.value,this.setPos(this.$el,n)):this.displayValue=this.oldDisplayValue=this.$el.value},"handleChange":function(){var e=this.$el.value;this.value=e,""!=this.value&&(this.value=this.useFilter("change",this.value));var t={"passed":!0};""==this.value||(t=this.validate()),t.passed?(this.state=l.NORMAL,this.onChange(this.value)):(this.state=l.VALIDATEFAIL,this.onValidate(t))},"handleBlur":function(e){this.isFocused=!1,r&&(this.ie7focused=!1),this.onBlur();var t=this.$el.value;this.value=this.$el.value=this.useFilter("*",t),this.value!=this.oldValue&&this.handleChange()},"handleFocus":function(){this.isFocused=!0,this.oldValue=this.value=this.$el.value,this.onFocus(),r&&(this.ie7focused=!0)},"useFilter":function(e,t){var n="undefined"==typeof t?this.value:t;return this.filters.forEach(function(t,i){if(t=/([^\|]*)\|([^\|]*)\|?(\S]*)?/.exec(t),t&&!(t.length<2)){var s=t[1],a=[n];"undefined"!=typeof t[3]&&(a=a.concat(t[3].split(",")));var r=t[2];"*"==e||"*"==r?o.filter&&o.filter[s]&&(n=o.filter[s].apply(null,a)):r==e&&o.filter&&o.filter[s]&&(n=o.filter[s].apply(null,a))}}.bind(this)),n},"validate":function(e){e="undefined"!=typeof e?e:this.value;var t=this.validations,n={"passed":!0};return o.fn.each(t,function(t){t.params=t.params||{};var i=u[t.name],o=[this.value].concat(t.params);if(i){if(!i.apply(null,o))return n={"passed":!1,"validation":t,"value":e},!1}else if(t.func&&!t.func.apply(null,o))return n={"passed":!1,"validation":t,"value":e},!1}.bind(this)),n},"clearValue":function(){this.value=this.$el.value="",this.state=l.NORMAL,this.handleChange(),setTimeout(function(){this.$el.focus()}.bind(this),10)},"getValue":function(){this.value=this.useFilter("*",this.value);var e=this.validate();return e.passed?(this.state=l.NORMAL,this.value):(this.state=l.VALIDATEFAIL,this.onValidate(e),!1)},"enable":function(){this._disable=!1},"disable":function(){this._disable=!0}});var u={"len":function(e,t){return e.length==t},"minlen":function(e,t){return!(e.length<t)},"maxlen":function(e,t){return!(e.length>t)}};e.exports={"create":function(e,t){t=t||{};var n=String.format('<ms:input $template="{tplType}" $id="{id}" on-input="{onInput}"on-change="{onChange}"on-focus="{onFocus}"on-blur="{onBlur}"config="{config}"></ms:input>',{"id":t.id||"","tplType":t.tplType,"componentName":t.componentName,"onInput":t.onInput||"onInput","onChange":t.onChange||"onChange","onBlur":t.onBlur||"onBlur","onFocus":t.onFocus||"onFocus","config":e||"inputConfig"});return n},"addValidator":function(e,t){u[e]=t},"masks":{"space":{"stripMask":function(e){if(e="undefined"==typeof e?this.value:e,!this.usemask)return e;try{return e.replace(/\s/g,"")}catch(t){}return e},"runMask":function(e){if(!this.usemask)return e;var t="",n=e.split("");try{for(var i=0,o=n.length;i<o;++i)t+=n[i],(i+1)%4||(t+=" ")}catch(s){}return/\s+$/.test(t)&&(t=t.replace(/\s+$/,"")),t},"fixPos":function(e,t){if(this.displayValue.length>=this.oldDisplayValue.length)this.maskcfg.testSpace(e)&&(e+=1),e==this.$el.value.length-1&&this.value.length!=this.maxlength&&(e+=1);else if(this.displayValue.length<this.oldDisplayValue.length&&this.maskcfg.testSpace(e))return e-1;return e},"testSpace":function(e){return/\s/g.test(this.$el.value.substr(e-1,1))},"checkPos":function(e,t){this.usemask&&(t>=e&&this.maskcfg.testSpace(e)?this.setPos(this.$el,e-1):this.oldDisplayValue!=this.$el.value?(this.$el.value=this.$el.value.substr(0,e-1)+this.$el.value.substr(e,this.$el.value.length),this.handleInput("force"),this.setPos(this.$el,e-1)):this.setPos(this.$el,e))}}}}},"67885002":function(e,t,n){var i=n(1),o=n(74187416);i.component("ms:card",{"$template":o(),"data":[],"index":0,"$replace":!0,"onSelect":function(e){},"click":function(e){this.index=e,this.onSelect.call(null,this.data[e])}}),e.exports={"create":function(e){return'<ms:card config="'+e+'"></ms:card>'}}},"68682076":function(e,t,n){var i=n(1),o=n(103220717),s=n(4);i.component("ms:dropdown",{"value":{"name":""},"isShow":!1,"data":[],"$skipArray":[],"$replace":!0,"onInit":i.noop,"onChange":function(e){},"showList":function(e){this.isShow="true"===e},"select":function(e){var t=s.fn.extend({},e?e.$model||e:{});this.value=t,this.isShow=!1,this.onChange(t)},"label":"","width":"140px","$template":o(),"$init":function(e,t){if(e.value.name){var n=0;e.data.some(function(t,i){if(t.name===e.value.name)return n=i,!0});e.select.call(e,e.data[n])}else e.select.call(e,e.data[0])},"$ready":function(e){e.onInit(e)},"reset":function(e,t){this.data=e,t&&this.select(t)}}),e.exports={"create":function(e){return'<ms:dropdown config="'+e+'" on-change="onChange"></ms:dropdown>'}}},"69061514":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="type-item">{{$selectName}}\n <form class="form-inline">\n <div ms-repeat="radioList" class="form-group radio-box" ms-class-1="checked:$index==index" ms-on-click="handleClick($index,$event)">\n <label ms-attr-for="radioId">\n <input type="radio" ms-attr-checked="$index==index">\n <i class="icon-radio"></i>\n <span ms-html="el.name"></span>\n </label>\n </div>\n </form>\n</div>';return __p}},"70127470":function(e,t,n){var i=n(4),o=n(109735088),s=n(78805100);e.exports=function(e,t,n){if(!e)throw Error("context must be an object");if(!e.cgi)throw Error("context must contain cgi");var a=e,r=o.getLoginStatus()||{};if(a.flist)return void(i.lang.isFunction(t)&&t(a.flist));var c={};n=n||{},i.fn.extend(c,n),r.accesstoken&&(c.version="2",c.offerid_for_qq_appid=i.fn.getParam("qqAppid"));var l=function(e){if(!e)throw Error("callback must be function");if(r.ptlogin||r.pskey){var t=a.getPayUin&&a.getPayUin();return s.setDisplayInfoByOpenid(t,{"uin":t,"nick":"自己"}),e({"qq":t,"nick":"自己"})}a.getQQNick(function(t){if(t){var n=t.nick;return e({"qq":t.provide_uin,"nick":n})}return e({"qq":"","nick":"QQ用户"})},{"getAll":!0})};a.cgi.getFriendlist(c,function(e){l(function(n){var o=a.cgi.sessionObj.openid;~~e.ret?r.accesstoken?i.lang.isFunction(t)&&t([{"name":"自己","qq":o}]):i.lang.isFunction(t)&&t([{"name":"自己","qq":n.qq,"openid":o}]):(a.flist="object"==typeof e.friend_list?s.friendListV2(n,o,e.friend_list):s.friendList(n.qq,e.friend_list),i.lang.isFunction(t)&&t(a.flist))})})}},"70508452":function(e,t,n){var i=n(4),o=n(1),s=n(109718908),a=(n(66520979),function(e){e=e||{},this.opts=e,this.el=e.el||document.body,this.container=document.createElement("div"),this.controller="verifycode",this.isNested=e.isNested||!1,this.container.innerHTML=s({"controller":this.controller,"isNested":this.isNested}),this.el.appendChild(this.container),this.vm=null,this.verifySession=e.session,this.verifyCodePic=e.verifyCodePic,this.verifyCode="",this.limitLen=e.limitLen||4,this.initVm(),this.verifySession&&this.verifyCodePic||this.vm.changeVerifyCode()});i.fn.extend(a.prototype,{"initVm":function(){var e=this;this.vm=o.define({"$id":this.controller,"config":{"filters":[],"validations":[{
"name":"len","params":[this.limitLen],"msg":""},{"func":function(e){return!!/[a-z|A-Z|0-9]/g.test(e)},"msg":""}]},"isNested":this.isNested,"verifyCodePic":this.verifyCodePic,"$skipArray":["verifyInputVm"],"setVerifyInfo":function(t,n){e.vm.verifyCodePic=t+"?t="+i.fn.uuid(),e.verifySession=n},"validateFailMsg":"","isValidateFail":!0,"verifyInputVm":null,"getVerifyInputVm":function(t){e.vm.verifyInputVm=t},"changeVerifyCode":function(){this.validateFailMsg="";var t=function(e){return t=null,e?void this.setVerifyInfo(e.url,e.verifySession):(this.verifyCodePic="",void(this.validateFailMsg="验证码加载失败,请重试。"))}.bind(e.vm);i.lang.isFunction(e.opts.onChangeVerifyCode)&&e.opts.onChangeVerifyCode(t)},"onValidate":function(t){e.vm.isValidateFail=!t.passed,t.passed||(e.vm.validateFailMsg=t.validation.msg)},"onInput":function(t){e.vm.isNested&&(t.length==e.limitLen?i.lang.isFunction(e.opts.onFullfill)&&e.opts.onFullfill():i.lang.isFunction(e.opts.onReject)&&e.opts.onReject(),e.vm.isValidateFail=!1,e.vm.validateFailMsg="")},"onChange":function(t){e.vm.isValidateFail=!1,e.vm.validateFailMsg="",e.verifyCode=t},"onConfirm":function(t){t&&t.preventDefault(),e.verifyCode=e.vm.verifyInputVm.getValue(),e.vm.isValidateFail||0!=e.verifyCode&&(!e.isNested&&e.close(),i.lang.isFunction(e.opts.onConfirm)&&e.opts.onConfirm(e.verifyCode,e.verifySession))},"onCancel":function(t){t&&t.preventDefault(),i.lang.isFunction(e.opts.onCancel)&&e.opts.onCancel(),e.close()}}),o.scan(this.container)},"getValue":function(){return{"verifyCode":this.verifyCode,"verifySession":this.verifySession}},"isClose":function(){return!this.vm},"verifyDone":function(){this.vm.onConfirm()},"setFailMsg":function(e){this.vm&&(this.vm.validateFailMsg=e)},"close":function(){i.lang.isFunction(this.opts.onDestroy)&&this.opts.onDestroy(),this.vm=null,this.container.innerHTML="",this.el.removeChild(this.container),this.container=null}}),a.TEXT={"REINPUTVERIFY":"验证码错误,请重新输入"},e.exports=a},"71545281":function(e,t,n){var i=n(4),o=(n(49140953),n(80481457));e.exports=function(e,t,n,s){var a=0;a=e.discount_price>0?i.math.div(e.discount_price,100):i.math.div(e.unit_price,100);var r=o(e);r&&r.isVip&&(a=i.math.mul(a,r.vipDiscount)),a=parseFloat(i.math.toDecimal(a,2)),a<=.01&&(a=.01);var c=i.math.mul(a,t);c=i.math.sub(c,s&&!s.isDisable()?s.getAmt():0),"undefined"!=typeof n&&n<1&&(c=i.math.mul(c,n)),c<=.01&&(c=.01);/\./.test(""+c)&&(c=i.math.toDecimal(c,2),c=parseFloat(c));var l={"unitPrice":a,"price":c};return l}},"72074753":function(e,t){e.exports={"QDQB":"qdqb","QBQD":"qbqd","QQACCT":"qqacct","QQPOINT":"qqpoint","KJ":"pccft","BANK":"pcbank","QQWALLET":"qqwallet","QQCARD":"qqcard","MCARD":"mcard","WECHAT":"wechat","HFPAY":"hfpay","FRIENDPAY":"friendpay","MOBILE":"mobile","REMITPAY":"remitpay","CFTB2B":"cft_b2b","WECHATDEPOSIT":"wechat_deposit"}},"72658078":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div id="_cp__load__" class="mdsweb-loading-wrapper loading_small" style="background-color:transparent; z-index:9995">\n <div class="mdsweb-loading">\n <div class="dot"></div>\n <div class="dot"></div>\n <div class="dot"></div>\n </div>\n</div>';return __p}},"72700182":function(e,t,n){var i=n(1),o=n(4);n(90737419);var s=(n(48016802),n(112832022)),a=n(83497919),r=n(55004913),c=function(e,t){var n=this;this.app=t,r.call(this,{"controllerId":e,"callbacks":{"onAgreeRule":function(e){i.log(e)},"onClickService":function(e){i.log(e)},"onBack":function(){n.app.back()}},"loadVMConfig":function(e){e({"headerData":this.getHeaderData()})}})};o.inherits(c,r),i.mix(c.prototype,{"getHeaderData":function(){var e={"showBackText":!1};switch(e.name=this.opts.headerName||"",e.showBackText=this.opts.showBackText,this.opts.currentPage){case"qb":i.mix(e,{"showClose":!0,"showBack":!1});break;case"month":e=a.getMonthTabsData([s.getInfo()])[0],i.mix(e,{"showBack":!1,"showRule":!0,"showHeaderBody":!s.showTab});break;case"subChannel":e.name=this.opts.channelText,i.mix(e,{"showBack":!0,"showRule":!1,"showHeaderBody":!1});break;case"result":e.name="支付成功",i.mix(e,{"showBack":!0,"showRule":!1,"showHeaderBody":!0})}return e},"setOpts":function(e){r.prototype.setOpts.apply(this,arguments),this.controllerId=e.controllerId}});var l={};e.exports={"create":function(e,t){if(!t.controllerId)throw"header viewmode need the controllerId";var n;return n=l[t.controllerId]?l[t.controllerId]:l[t.controllerId]=new c(t.controllerId,e),n.setOpts(t),n.off("ready"),n.once("vmReady",function(e){n.createVm(e),n.emit("ready")}),n.loadVMConfig(),n}}},"72876602":function(e,t){var n=function(){this.type=location.href.match(/(\w+)(?=\.(shtml|html))/)[0],this.channel="",this.page="",this.status=""};n.prototype={"setType":function(e){this.type=e},"setChannel":function(e){this.channel=e},"setPage":function(e){this.page=e},"setStatus":function(e){this.status=e},"getChannel":function(){return this.channel},"toJSON":function(){return{"type":this.type,"page":this.page,"channel":this.channel,"status":this.status}},"toString":function(){return String.format("{type}|{page}|{channel}|{status}",{"type":this.type,"page":this.page,"channel":this.channel,"status":this.status})}},e.exports=new n},"73715473":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div>\n <div id="order_info">\n <div class="index-marketing-area" ms-if="mpInfo" ms-html="mpInfo"></div>\n <div class="prop" ms-if="!simpleOrderHtml" style="padding-top: 25px;padding-bottom: 25px">\n <div class="account" ms-if="showAccountInfo">\n\n <div class="account-area">\n <!-- 账号 & 游戏大厅 -->\n <!-- <p class="account-title">购入账号:565220833(QQ) | 游戏大区1</p>-->\n\n <!-- 账号 & 赠送功能 -->\n <span class="account-title">{{accountTitle}}</span>\n <div class="account-id active" ms-class="account-default-id:active" ms-class-1="account-change-id:!active" style="margin-left: 0">\n <div ms-visible="active">\n <span class="loged-id" ms-html="account"></span>\n <span class="change-id" ms-if="isQQLogin && allowSend" ms-on-click="changeAccount"><i class="icon-change"></i>更换</span>\n </div>\n\n <div ms-if="isQQLogin && allowSend" ms-visible="!active" ms-html="friendSelector" id="friendSelector">\n </div>\n\n </div>\n </div>\n\n\n </div>\n\n <div class="prop-detail">\n <div class="prop-img" ms-if="!hideLogo">\n <img ms-if="logo" height="90px" ms-attr-src="logo" ms-on-error="onLogoError" />\n </div>\n <div class="prop-info">\n <p class="prop-title" ms-html="goodsName">\n </p>\n <p class="prop-sub-title" ms-if="subtitle">{{subtitle}}</p>\n <p class="unit" ms-visible="unitPrice">\n 单价:<span>{{unitPrice}}</span>元\n </p>\n <div ms-html="amountSpinerHtml"></div>\n </div>\n <div class="prop-price">\n <div class="prop-price-loading" ms-if="priceLoading" ms-html="loadingTplHtml"></div>\n <div ms-if="!priceLoading"><em>{{price}}</em>元</div>\n </div>\n </div>\n </div>\n <div ms-visible="simpleOrderHtml" ms-html="simpleOrderHtml"></div>\n </div>\n <div ms-html="channelList"></div>\n</div>';return __p}},"73982165":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<button ms-on-click="handleClick"\n ms-on-mousedown="handleMouseDown"\n ms-on-mouseup="handleMouseUp"\n ms-on-mouseenter="handleMouseEnter"\n ms-on-mouseleave="handleMouseLeave"\n ms-class="btn btn-default" ms-class-1="btn-dis:disabled">\n {{text}}\n <span>{{subText}}</span>\n</button>';return __p}},"74109955":function(e,t){e.exports={"day":"day","open":"open","upgrade":"upgrade","year":"year","packet":"packet","continousMonth":"continousMonth"}},"74187416":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='\n\n<div class="goods">\n\n <div class="goods-items " ms-repeat="data" ms-on-click="click($index)" ms-class-1="checked:index==$index" >\n <div class="total">\n <em class="money">{{el.price}}</em>\n <span class="unit">{{el.unit}}</span>\n </div>\n <div class="relative-to-total">\n <div class="">\n {{el.desc}}\n </div>\n </div>\n <i class="icon-corner-checked"></i>\n </div>\n\n</div>\n';return __p}},"74720348":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="form-group" ms-class-1="has-feedback:value!=\'\'" ms-class-2="{{extraContainerClass}}" style="margin-bottom: 0;position: relative;z-index: 1" ms-css-width="width">\n <label ms-attr-for="id" ms-if="enablePlaceHolder && value==\'\' && !ie7focused" style="position:absolute;z-index:1;font-size: 14px;width: 100%;left: 0;top: 0;" class="input-placeholder">\n {{placeholder}}\n </label>\n\n <label style="background: none;" ms-css-width="width">\n\n <input ms-class-1="{{defaultClass}}" ms-class-2="warn:state==1" ms-class-3="{{extraClass}}"\n ms-class-4="focus:isFocused" type="text" ms-attr-id="id"\n ms-attr-disabled="_disable"\n ms-on-blur="handleBlur"\n ms-on-focus="handleFocus"\n ms-on-keydown="handleKeyDown"\n ms-on-keyup="handleInput"\n />\n\n <i class="icon-clear" ms-on-mousedown="clearValue"></i>\n </label>\n\n\n\n</div>';return __p}},"75217507":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div>\n <div ms-if="showBack" class="header-icon-first" ms-on-click="back($event)">\n <i class="icon-back"></i>&nbsp;\n </div>\n <div ms-if="showHeaderBody" class="prop-custom-title">\n <img ms-attr-src="{{logo}}" ms-attr-alt="{{alt}}">\n <span>{{name}}</span>\n <div ms-if="showRule" ms-class-1="form-group checkbox-box service" ms-class-2="checked:checked">\n <label for="vip1">\n <input id="vip1" type="checkbox" name="vip">\n <i class="icon-checkbox" ms-on-click="handleClickRuler($event)"></i> 同意<a href="#" ms-on-click="handleClickService($event)">服务条款</a>\n </label>\n </div>\n </div>\n</div>';return __p}},"75685166":function(e,t,n){var i=n(4),o=n(1),s={"SJSJCH":1,"LTMCLUB":2,"LZFSSH":3},a={},r=null,c={"fetchFeature":function(e,t){switch(e){case s.SJSJCH:n.e(7,function(e){var i=n(79110808);t(i)});break;case s.LTMCLUB:n.e(8,function(e){var i=n(115887268);t(i)});break;case s.LZFSSH:n.e(9,function(e){var i=n(91188367);t(i)})}},"TYPE":s,"include":function(e){var t=!1;return e>0&&i.fn.each(s,function(n,i){if(n==e)return t=!0,!1}),t}};e.exports={"feature":function(){return r},"switchFeature":function(e){r=a[e]},"fetchFeature":function(e,t){var n=new o.Promise(function(e,t){e()});return c.include(t)?n=new o.Promise(function(n,i){c.fetchFeature(t,function(t){a[e]=t,r=t,n()})}):n}}},"75748174":function(e,t){e.exports="channel-disable"},"76511707":function(e,t,n){var i=n(1),o=document.all&&!document.addEventListener,s={"_cache":{},"getEl":function(e){return this._cache[e]||(this._cache[e]=document.getElementById(e)),this._cache[e]},"_getStyle":function(e,t){return document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},"_doAnimation":function(e,t,n,i){var o=this,s={},a=16;for(var r in t)s[r]={"s":(parseFloat(t[r])-parseFloat(o._getStyle(e,r)))/n*a};!function(){setTimeout(function(){for(var n in t){var r=parseFloat(o._getStyle(e,n)),c=r+s[n].s,l=s[n].s>0?c>t[n]:c<t[n];c=l?t[n]:c,c="opacity"===n?c:c+"px",e.style[n]=c}l?"function"==typeof i&&i():setTimeout(arguments.callee,a)},a)}()},"init":function(e){i(this.getEl("animation_masktop")).css({"display":"block","opacity":.1,"top":0,"height":e.h0}),i(this.getEl("animation_mask")).css({"display":"block","opacity":.1,"top":e.h0,"height":i(window).height()-e.h0-1})},"start":function(e,t,n,o,s){this.init(n);var a=this;a._doAnimation(this.getEl("animation_mask"),{"opacity":1,"top":n.h1},500),a._doAnimation(this.getEl("animation_masktop"),{"opacity":1,"height":n.h1},500,function(){i(a.getEl(e)).css({"display":"none"}),o.currentComponent=t,i(a.getEl(t)).css({"display":"block"}),a.end(s)})},"end":function(e){var t=this;this._doAnimation(this.getEl("animation_mask"),{"opacity":0},100),this._doAnimation(this.getEl("animation_masktop"),{"opacity":0},100,function(){i(t.getEl("animation_mask")).css({"display":"none"}),i(t.getEl("animation_masktop")).css({"display":"none"}),e&&e()})}};e.exports=function(e,t,n,a,r){if(a=a||{},"order"!==e||"subChannel"!==t||o)"subChannel"!==e||"order"!==t||o?(i(document.getElementById(n.currentComponent)).css({"display":"none"}),n.currentComponent=t,i(document.getElementById(n.currentComponent)).css({"display":"block"}),r&&r()):s.start(e,t,{"h0":a.h1||90,"h1":a.h0||164},n,r);else{var c={"h0":a.h0||164,"h1":a.h1||90};s.start(e,t,c,n,r)}}},"76531812":function(e,t,n){var i=(n(4),n(22),n(112745811)),o=!1,s={"_store":null,"init":function(e,t){if(o)return void("function"==typeof t&&t());if(o=!0,"undefined"!=typeof Raven){var a=e.session?e.session.getSessionParam():{};Raven.setUserContext({"id":a.openid||"UNKNOWN"})}switch(e.type){case i.GAME:!function(){var i=2,o=function(){--i<1&&function(i){var o=n(87561709);s._store=new o(e),"function"==typeof t&&t()}(n)};n.e(16,o),n.e(3,o)}();break;case i.MONTH:!function(){var i=2,o=function(){--i<1&&function(i){var o=n(86797109);s._store=o.create(e),"function"==typeof t&&t()}(n)};n.e(18,o),n.e(4,o)}();break;case i.QB:!function(){var i=2,o=function(){--i<1&&function(i){var o=n(118796619);s._store=o.create(e),"function"==typeof t&&t()}(n)};n.e(19,o),n.e(5,o)}();break;case i.GOODS:!function(){var i=2,o=function(){--i<1&&function(i){var o=n(69068857);s._store=new o(e),"function"==typeof t&&t()}(n)};n.e(17,o),n.e(6,o)}();break;default:s._store=e.store}},"isInit":function(){return o},"render":function(e){this._store.render(e)},"rebindChannel":function(e){this._store.rebindChannel&&this._store.rebindChannel(e)},"renderChannel":function(e,t){this._store.renderChannel(e,t)},"on":function(){return this._store.on.apply(this._store,arguments)},"off":function(){return this._store.off.apply(this._store,arguments)},"emit":function(){if(this._store)return this._store.emit.apply(this._store,arguments)},"getStore":function(){return s._store}};e.exports=s},"76686721":function(e,t){var n={};e.exports=function(e){n[e]||(n[e]={"q":[],"s":1});var t=n[e];return{"add":function(e){t.q.push(e),3===t.s&&this.run()},"run":function(){if(1===t.s||3===t.s){t.s=!0,t.s=2;var e=function(){return 0==t.q.length?void(t.s=3):void t.q.shift()(function(){e()})};e()}}}}},"77769056":function(e,t,n){var i=n(4),o=n(1),s=n(47721167);n(97501907);var a=n(120707620),r=i.fn.getParams();o.component("ms:banktypechoose",{"$template":n(69061514)(),"$parent":null,"$replace":!0,"$selectName":"银行类型","radioId":"","radioList":[],"index":null,"onInit":i.fn.emptyFunc,"$init":function(e,t){e.$parent=o.components["ms:radiogroup"]},"$ready":function(e,t){e.$parent.$init(e,t),e.$parent.fireOninit.call(e),e.onInit(e)},"$dispose":function(e){e.$parent.$dispose(e)},"handleClick":function(){this.$parent.handleClick.apply(this,arguments)}}),o.component("ms:bankchoose",{"$template":n(81040968)(),"$extend":"radiogroup","$replace":!0,"$parent":null,"radioId":"","radioList":[],"index":"","showMoreBank":!1,"onInit":i.fn.emptyFunc,"onChange":i.fn.emptyFunc,"$init":function(e,t){e.$parent=o.components["ms:radiogroup"],e.$parent.$init(e,t),e.$parent.fireOninit.call(e)},"$ready":function(e,t){e.$parent.$init(e,t),e.$parent.fireOninit.call(e),e.onInit(e)},"$dispose":function(e){e.$parent.$dispose(e)},"handleClick":function(){this.$parent.handleClick.apply(this,arguments)},"getChecked":function(){return this.$parent.getChecked()},"moreBank":function(){this.showMoreBank=!0},"lessBank":function(){this.showMoreBank=!1},"setList":function(e,t){this.radioList=[],this.index=null;var n={};e==s.BankType["B2C"]?n=window.__BANK_CONFIG:e==s.BankType["B2B"]&&(n=window.__B2B_BANK_CONFIG);var i=this,a=0,r=null;o.each(n,function(e,n){(n[s.CardType.credit]&&n[s.CardType.credit]["bank"]||n[s.CardType.debit]&&n[s.CardType.debit]["bank"])&&(i.radioList.push({"name":n.name,"value":e,"logo":n.logo||e}),t&&t==e&&(r=a),++a)});var c=i.radioList;null!=r&&(c[0]=[c[r],c[r]=c[0]][0]),this.index=0}}),o.component("ms:typechoose",{"$template":n(69061514)(),"$parent":null,"$replace":!0,"$selectName":"选择卡种","radioId":"","radioList":[],"index":null,"onInit":i.fn.emptyFunc,"onChange":i.fn.emptyFunc,"$init":function(e,t){e.$parent=o.components["ms:radiogroup"]},"$ready":function(e,t){e.$parent.$init(e,t),e.$parent.fireOninit.call(e),e.onInit(e)},"$dispose":function(e){e.$parent.$dispose(e)},"handleClick":function(){this.$parent.handleClick.apply(this,arguments)},"getChecked":function(){return this.$parent.getChecked()},"setList":function(e,t){this.index=null,this.radioList=e,"undefined"!=typeof t?this.index=t:this.index=0}});var c=[{"name":s.BankTypeDesc["B2C"],"value":s.BankType["B2C"]}];r.appid&&window.__SHOW_B2B_BANK_WHITELIST&&window.__SHOW_B2B_BANK_WHITELIST.indexOf(r.appid)>-1?c=[{"name":s.BankTypeDesc["B2B"],"value":s.BankType["B2B"]}]:r.appid&&window.__SHOW_ALL_BANK_WHITELIST&&window.__SHOW_ALL_BANK_WHITELIST.indexOf(r.appid)>-1&&(c=[{"name":s.BankTypeDesc["B2C"],"value":s.BankType["B2C"]},{"name":s.BankTypeDesc["B2B"],"value":s.BankType["B2B"]}]);var l=[];o.each(c,function(e,t){l.push(t.value)}),o.component("ms:bankselector",{"$template":a(),"$replace":!0,"onInit":i.fn.emptyFunc,"haspaytype":!1,"$skipArray":["bankList","filterType"],"bankList":{},"kjdiscount":1,"showMoreBank":!1,"bank":null,"curBankType":null,"curCardType":null,"bankName":null,"cardTypeName":null,"bankTypeName":null,"bankTypeListConfig":{"radioList":c,"index":null},"filterType":null,"$computed":{"bankClass":{"get":function(){if(this.bank)return"icon-"+this.bank}}},"onSelectedBank":o.noop,"$init":function(e,t){e.curBankType&&l.indexOf(e.curBankType)>-1?e.bankTypeListConfig.index=l.indexOf(e.curBankType):e.bankTypeListConfig.index=0},"$ready":function(e){},"handleChooseBankType":function(e,t){if(e){this.curBankType=e.value;var n=this;o.each(o.vmodels,function(t,i){i&&i.$id&&i.$id.indexOf("bankchoose")>-1&&i&&i.setList(e.value,n.bank?n.bank:"")})}},"handleChooseBank":function(e,t){e&&(this.bank=e.value,this.showCardType())},"handleChooseCardType":function(e,t){e&&(this.curCardType=e.value,this.onSelectedBank(this.getSelectInfo()))},"showCardType":function(){var e=this.curBankType==s.BankType["B2B"]?window.__B2B_BANK_CONFIG:window.__BANK_CONFIG,t=e[this.bank];if(t){var n=[],i=0,a=this;t.cardTypes.forEach(function(e,o){a.filterType&&!t[e][a.filterType]||(e==a.curCardType&&(i=o),!!s.CardTypeDesc[e]&&n.push({"name":s.CardTypeDesc[e],"value":e}))}.bind(this)),o.each(o.vmodels,function(e,t){t&&t.$id&&0==t.$id.indexOf("typechoose")&&t&&t.setList(n,i)})}},"getSelectInfo":function(){return{"curBankType":this.curBankType,"bank":this.bank,"curCardType":this.curCardType}}}),e.exports={"create":function(e,t){return t=t||{},String.format('<ms:bankselector config="{config}" on-selected-bank="{onSelectedBank}"></ms:bankselector>',{"config":e||"bankConfig","onSelectedBank":t.onSelectedBank})}}},"78805100":function(e,t,n){var i=n(4),o=(n(1),{});e.exports={"roleList":function(e){var t=[];return e.forEach(function(e,n){t.push({"txt":e.role_name,"val":e.role_id})}),{"data":t}},"serverList":function(e,t){var n=e[0],i="opt_data_array",o="t",s="v",a="t",r="v";n&&n.hasOwnProperty("sList")&&(i="sList",o="name",s="id",a=0,r=1);var c=[];return e.forEach(function(e){if(e[s]==t){var n=[];e[i].forEach(function(e){n.push({"val":e[r],"txt":e[a],"status":e.status})}),c.push(n)}}),{"data":c}},"zoneList":function(e){var t=e[0],n="opt_data_array",i="t",o="v",s="t",a="v";t&&t.hasOwnProperty("sList")&&(n="sList",i="name",o="id",s=0,a=1);var r=t&&t[n]&&t[n].length>0,c=[];return e.forEach(function(e){c.push({"val":e[o],"txt":e[i],"status":e.status})}),{"data":c,"hasServer":r}},"friendList":function(e,t){var n=[];if(t){var s=t.split(",");s.forEach(function(e,t){var s=e.split("|"),a=i.escHTML(decodeURIComponent(s[0].replace(/\n|\r/g,"")),!0)||"";try{for(var r=s[1].split("+"),c=[],l=0;l<r.length;l+=2){var u=i.escHTML(decodeURIComponent(r[l+1]).replace(/\n|\r/g,""),!0)||"",d=r[l];d&&(o[d]={"uin":d,"nick":u},c.push({"name":u,"qq":d,"mac":l/2%4+1}))}}catch(h){}n.push({"name":a,"expand":!1,"children":c})})}return o[e]={"uin":e,"nick":"自己"},o.self=o[e],e&&n.unshift({"name":"自己","qq":e}),n},"friendListV2":function(e,t,n){o[t]={"uin":i.fn.desensitize(e.qq),"nick":e.nick},o.self=o[t];var s=Object.keys(n).reduce(function(e,t){if("group_info"!==t){var s=i.fn.splitFirst(decodeURIComponent(t),"|"),a=parseInt(s[0],10),r=s[1],c=n[t].map(function(e){var t=e.split("|"),n=t[0];return o[n]?null:(o[n]={"uin":t[1],"nick":decodeURIComponent(t[2])},{"qq":n})}).filter(Boolean);e[a]={"name":r,"expand":!1,"children":c}}return e},[]).filter(Boolean);return s.unshift({"qq":t}),s},"setDisplayInfoByOpenid":function(e,t){o[e]=t},"getDisplayInfoByOpenid":function(e){return i.fn.isOpenid(e)?o[e]||o.self||{}:o[e]||{"uin":e,"nick":"陌生人"}},"targetInfo":function(e){return{"targetUin":e.uin||e.qq,"targetName":e.name,"targetOpenid":e.openid}}}},"78901017":function(e,t,n){var i=n(4),o=n(78805100),s=n(1),a=s.bind,r=document.all&&window.XMLHttpRequest&&!document.querySelector,c={"mode":1,"data":[],"initCallBack":!0,"initExpand":!1,"value":{},"maxlength":15,"placeholder":"好友QQ号/昵称","container":"","onFriendSelected":function(){},"onBlur":function(){},"onInit":function(){}},l=function(e){this.opt=i.fn.extend(c,e||{}),this.hideAble=!0,this.preValue="",this.isQQConnect=i.fn.isOpenid(this.opt.data[0].qq),this.opt.maxlength=this.isQQConnect?1/0:this.opt.maxlength,this.init()};l.prototype={"_supportPlaceHolder":function(){if("undefined"==typeof this.isSupportPlaceHolder){var e=document.createElement("input");this.isSupportPlaceHolder="placeholder"in e&&!document.all}return this.isSupportPlaceHolder},"guid":function(){return(1e3*Math.random()+200).toString().replace(".","")},"_mainHtml":function(){var e=this.opt,t=this._supportPlaceHolder(),n=(e.value.qq?e.value.qq:"",['<div class="friend"><div class="form-inline" ><div class="form-group form-combined" id="'+this.containerId+'">']);return n.push(' <label><input id="'+this.inputId+'" class="form-input" type="text" maxlength="'+e.maxlength+'" data-track="friendInput"'),t&&n.push('placeholder="'+e.placeholder+'"'),n.push("/>"),t||n.push('<span class="input-placeholder" id="'+this.simPlaceHolderId+'" style="height: 100%;line-height:30px;z-index: 10;visibility: hidden;">'+e.placeholder+"</span>"),n.push("</label>"),n.push('<button class="form-btn form-btn-icon" id="'+this.btnId+'" title="选择好友"><i class="icon-friend"></i></button>'),n.push("</div></div></div>"),n.join("")},"_escHTML":function(e){e=e||"";for(var t=["<","&lt;",">","&gt;"," ","&nbsp;",'"',"&quot;","'","&#39;"],n=0,i=e;n<t.length;n+=2)i=i.replace(new RegExp(t[n],"g"),t[1+n]);return i},"_getDisplayInfo":function(e){if(!e.length){var t,n,s=e.qq,a=e.name;if(i.fn.isOpenid(s)){var r=o.getDisplayInfoByOpenid(s);t=this._escHTML(r.nick),n=r.uin}else t=this._escHTML(a),n=s;return{"displayName":t,"displayQQ":n}}},"_buildDropdown":function(e){var t=this.opt,n=e instanceof Array?e:t.data,i="f_list",o="";this._dropDownData=n;var s=[];0==n.length&&(i+=" f_list_empty",o="<span >暂无数据!</span>"),s.push('<div class="'+i+'" >'),s.push(o);for(var a=0,r=n.length;a<r;a++){0==a&&s.push('<ul class="f_groups">');var c=n[a].children,l=this._getDisplayInfo(n[a]),u=this._escHTML(l.displayName)+"("+l.displayQQ+")",d=c?"f_group":"",h=c?"icon-more-friend":"icon-friend-s",p=c?this._escHTML(n[a].name):u,f=c?"":u;n[a].expand&&(d+=" open");var m=n[a].children;if(s.push(' <li class="'+d+'" >'),s.push('<a data-index="'+a+'" data-child="'+(m?"1":"0")+'" href="#" '+(f?'title:"'+f+'"':"")+'> <i class="'+h+'"></i> '+p+" </a>"),m)for(var g=n[a].children,v=n[a].expand?"":"none",y=0;y<g.length;y++){var _=g[y];0==y&&s.push('<ul class="group-list" style="display:'+v+'">');var l=this._getDisplayInfo(_),b=l.displayName,w=l.displayQQ,C=b+"("+w+")",k=a+"-"+y;s.push(" <li >"),s.push('<a href="#" data-index="'+k+'" title="'+C+'"> <i class="icon-friend-s"></i>'+C+"</a>"),s.push(" </li>"),y==g.length-1&&s.push("</ul>")}s.push("</li>"),a==r-1&&s.push("</ul>")}return s.join("")},"init":function(){var e=this.opt;if(this.inputId=this.guid(),this.btnId="btn_"+this.inputId,this.containerId="ctn_"+this.inputId,this.dropDownId="drop_"+this.inputId,this.simPlaceHolderId="sim_"+this.inputId,e.container){"string"==typeof e.container?this.container=document.getElementById(e.container):this.container=e.container,this.container.innerHTML=this._mainHtml();var t=document.createDocumentFragment(),n=document.createElement("div");n.innerHTML='<div class="dropdown" style="z-index: 10000" id="'+this.dropDownId+'">'+this._buildDropdown()+"</div>",t.appendChild(n.firstChild),document.body.appendChild(t),this.markUp(),this.setValue(this.opt.value),this.bindEvents(),this.opt.initExpand&&this.showList(),this.opt.initCallBack&&this.opt.onFriendSelected(this.matchOneItem(this.opt.value.qq),!0),this.opt.onInit(this)}},"markUp":function(){this.input=document.getElementById(this.inputId),this.button=document.getElementById(this.btnId),this.innerContainer=document.getElementById(this.containerId),this.dropDownContainer=document.getElementById(this.dropDownId),this.simPlaceHolder=document.getElementById(this.simPlaceHolderId)},"showList":function(e){var t={};if(!this.positioned){var n=this.innerContainer.getBoundingClientRect(),i=s(this.innerContainer).height(),o=s(window).height(),a=s(this.dropDownContainer).height(),r=o-n.bottom;r>n.top?t.top=s(window).scrollTop()+n.top+i:t.top=s(window).scrollTop()+n.top-a,t.left=n.left,t.width=n.right-n.left,s(this.dropDownContainer).css(t),this.positioned=!0}""===this.input.value&&this.keyup(!0),2===this.opt.mode?e?""===this.input.value&&this.showDropDown(!0):(this.input.value="",this.keyup(),this.showDropDown(!0),this.focusInput()):(this.showDropDown(!0),this.focusInput())},"setHideAble":function(e){this.hideAble=!!e},"setPlaceHolder":function(){if(!this._supportPlaceHolder()&&!r){var e=""===this.input.value?"visible":"hidden";this.simPlaceHolder.style.visibility=e}},"setValue":function(e){this.opt.value=e,e.qq?this.input.value=i.fn.isOpenid(e.qq)?String.format("{uin}({nick})",o.getDisplayInfoByOpenid(e.qq)):e.qq:this.input.value="",this.preValue=e,this.setPlaceHolder()},"blur":function(e){if(!this.hideAble)return e.preventDefault&&e.preventDefault(),void this.focusInput();this.showDropDown(!1);var t=this.matchOneItem(this.input.value);this.setValue(t),this.opt.onBlur(t)},"matchOneItem":function(e){if(!e)return this.preValue;if(/\d{,4}/.test(e))return{"name":"无效QQ号","qq":e,"invalid":1};var t=this._searchData(e,!0),n=t.length?t[0]:/\d{5,}/.test(e)&&!this.isQQConnect?{"name":"陌生人","qq":e,"stranger":1}:this.preValue;return n.qq===this.opt.data[0].qq&&(n.name="自己"),n},"keydown":function(e){8!=e.keyCode&&46!=e.keyCode&&this.input.value.length>=this.opt.maxlength&&e.preventDefault()},"select":function(e){var t=e.target||e.srcElement;if("i"===t.nodeName.toLocaleLowerCase()&&(t=t.parentNode),"a"===t.nodeName.toLocaleLowerCase()){var n="1"===t.getAttribute("data-child");if(n){var i=t.parentNode.className,o=i.indexOf("open")===-1;t.nextSibling&&(t.nextSibling.style.display=o?"block":"none"),t.parentNode.className=o?i+" open":i.replace("open","")}else{var s=t.getAttribute("data-index").split("-"),a=this._dropDownData[s[0]];s.length>1&&(a=a.children[s[1]]),this.setValue(a),this.setHideAble(1),this.showDropDown(!1),this.opt.onFriendSelected(a),2===this.opt.mode&&this.input.blur()}}},"_searchData":function(e,t){e+="",e=this._escHTML(e);var n=[],o=this,s=this.opt.data,a=function(t,n,s){if(t===n.qq)return!0;var a=i.fn.isOpenid(String(n.qq)),r=o._getDisplayInfo(n),c=a?r.displayQQ:String(n.qq),l=a?r.displayName:n.name,u=e,d="";if(/\d+\*+\d+\(.+\)/.test(e)&&(u=e.match(/^\d+\*+\d+/)[0]),/\(.*\)/.test(e)&&(d=e.match(/\(.*\)/)[0]),s)return d?"("+l+")"===d&&u===c:u===c;var h=i.fn.matchDesensitized(u,c);return l.indexOf(e)!==-1||h};return s.forEach(function(i){i.children?i.children.forEach(function(i){a(e,i,t)&&n.push(i)}):a(e,i,t)&&n.push(i)}),n},"keyup":function(e){this.setPlaceHolder();var t=this;this.timer&&clearTimeout(this.timer);var n=function(){var e=t.input.value;if(""===e)return void(t.dropDownContainer.innerHTML=t._buildDropdown());var n=t._searchData(e);2===t.opt.mode&&(0==n.length?t.dropDownContainer.style.display="none":(t.showDropDown(!0),t.dropDownContainer.style.display="block")),t.dropDownContainer.innerHTML=t._buildDropdown(n)};e?n():this.timer=setTimeout(n,100)},"showDropDown":function(e){this.dropDownContainer.style.display=e?"block":"none"},"bindEvents":function(){var e=this;a(this.innerContainer,"click",function(t){var n="INPUT"===t.target.nodeName;n||(e.dropDownContainer.innerHTML=e._buildDropdown()),e.showList(n)}),a(this.input,"blur",function(t){e.blur(t)}),a(this.input,"keyup",function(t){e.keyup(t)}),a(this.input,"keydown",function(t){e.keydown(t)}),s.bind(this.dropDownContainer,"mouseleave",function(t){e.setHideAble(1)}),s.bind(this.dropDownContainer,"mouseenter",function(t){e.setHideAble(0)}),a(this.dropDownContainer,"click",function(t){t.preventDefault&&t.preventDefault(),e.select(t)})},"destroy":function(){},"show":function(){return this.showList()},"focusInput":function(){var e=this.input,t=i.fn.isOpenid(this.opt.data[0].qq);t&&(e.value="");try{e.focus()}catch(n){}}},e.exports={"create":function(e){return new l(e)}}},"79091806":function(e,t,n){var i=n(4),o=n(1);n(89500152);var s=n(17),a=n(109735088),r=n(7),c=n(9),l=n(102521382),u=n(123226908),d=n(87796589),h=n(105875273),p=n(84811753),f=n(119561448),m=n(70508452),g=n(100835382),v=n(51748615),y=n(72074753),_=n(75748174),b=n(112745811),w=n(49140953),C=n(43847285),k=function(e,t){g.apply(this,arguments),this._subSession=null,this._subCGI=null,this.info=e.info,this._relogin=!1,this._balance=i.math.div(this.info.qqacct_balance,100),this.cgi=this.store.getCgi(),this._price=0,this.bindInfo=this.store.getBindLoginInfo(),this.isvuid=a.getLoginStatus().thridpart&&!!this.bindInfo.openid,this.canUseWechat=a.getLoginStatus().wechat&&1===this.info.wc_bind_qq&&i.fn.getParam("wxappid"),this.canUseVuidQQ=this.isvuid&&"1"===this.bindInfo.login_status&&"openid"===this.bindInfo.no_type,this.initVm(),this.calPrice(),0==this.store.getAmount()?this.vm.disableSubmit=!0:this.vm.disableSubmit=!1,this.refreshUIBalance()};i.inherits(k,g),k.prototype.calPrice=function(){var e=this.store.getPrice().price;this._price=this.store.getPrice(i.discount.checkHasDiscount(e,this.channelObj.channel)?this.channelObj.discount:void 0,this.coupon).price,this.vm&&(this.vm.price=this._price)},k.prototype.refreshUIBalance=function(){var e=this.store.getBalanceInfo();e.QQofBalance&&(e.balanceOfQQ||0==e.balanceOfQQ)?(this._balance=e.balanceOfQQ,this.showSurplusRes({"balance":this._balance,"uin":e.QQofBalance})):(this._balance=i.math.div(this.info.qqacct_balance,100),this.showSurplusRes({"balance":this._balance}))},k.prototype.setAutoPaySelectUI=function(){this.vm.showAutoTips=!!this.store.supportAutoPay(this.channelObj)&&this.vm.balance>=this.vm.price},k.prototype.onChange=function(){this.refreshCoupon(),this.calPrice(),this.refreshUIBalance(),this.setAutoPaySelectUI(),
this.vm.balance!=-1&&(this.vm.balance>=this.vm.price?(this.vm.showBalance=!0,this.vm.balanceNotEnough=!1):(this.vm.diff=Math.ceil(this.vm.price-this.vm.balance),this.vm.showBalance=!1,this.vm.balanceNotEnough=!0,this.setAutoPay(!1))),0==this.store.getAmount()?this.vm.disableSubmit=!0:this.vm.disableSubmit=!1},k.prototype.getSessionFromCookie=function(){if(this.isvuid)return a.getAccessLoginStatusFromCookie();var e=a.getLoginStatusFromCookie();return e?{"openid":e.uin,"openkey":e.skey,"session_id":"uin","session_type":"skey","qq":e.qq}:null},k.prototype._getLoginStatusFromCookie=function(e){var t=this.getSessionFromCookie();if(!t)return null;var n=i.fn.getParams();return this._subSession=new c({"openid":t.openid,"openkey":t.openkey,"sessionid":t.session_id,"sessiontype":t.session_type}),this._subCGI=new r({"appid":n.appid,"sandbox":~~n.sandbox,"sessionObj":this._subSession,"pf":n.pf,"diableAutoCookie":!e,"pfkey":n.pfkey}),t},k.prototype.isQQLogin=function(){var e=a.getLoginStatus();return!e.qq&&this._relogin&&(e=this._getLoginStatusFromCookie()),e&&e.qq},k.prototype.supportFetchLoginFromCookie=function(e){var t=a.getLoginStatus(),n=this.getSessionFromCookie()||{},i=this;if(this.isvuid&&n.isself)f.show({"opacity":.1}),i.vm.checking=!0,a.checkIsSelf(this.cgi,{"openid":n.openid,"openkey":n.openkey},function(t){if(f.hide(),i.vm.checking=!1,t){var n=i._getLoginStatusFromCookie();if(n&&n.qq)return void e(!0)}else a.removeAccessLoginStatus();e(!1)});else if((window._QB_Channel_UseCookie||[]).indexOf(this.store.getAppid())>-1){if(!t.qq&&n.qq){var o=this._getLoginStatusFromCookie();if(o&&o.qq)return void e(!0)}e(!1)}else e(!1)},k.prototype.jumpToNewPage=function(){var e=this.store.getGlobalCoupon();e&&e.getId()&&this.store.doCouponRollback({"couponId":e.getId(),"rollbackFrom":"newPagePay"});var t=window.location.protocol+"//"+window.location.host+"/midas/minipay_v2/views/cpay/webpay-proxy.shtml"+window.location.search;t=i.fn.delParam(["cash_param","disable_channel"],t),t=i.fn.addParam({"channel":this.channelObj.channel,"disable_channel":"wechat,qqwallet,pcbank,qqcard,mcard,hfpay,friendpay,mobile","proxyBuyType":this.store.type,"canChangeCount":!1,"buy_quantity":this.info.count,"showRecommend":!1},t),(b.GOODS===this.store.type&&1==this.info.appmode||b.GAME===this.store.type)&&(this.store.changePage("subChannel",o.mix({"channelObj":this.channelObj,"portal_serial_no":null,"mode":g.MODE.NEW_PAGE_PAY,"price":this.price,"coupon":this.coupon,"store":this.store},{"uuid":this.uuid})),t=i.fn.addParam({"forceUUID":this.uuid},t)),"1"!=i.fn.getParam("inApp")?i.openWindow(t):(i.fn.delParam("inApp",t),s.openWindow(t))},k.prototype.init=function(){if(!(this.vm.disableSubmit||this.vm&&this.vm.priceLoading)){if(this.store.isInterfaceDisabled())return void this.store.emit("channelDataChange",new p(_));var e=a.getLoginStatus();if(e.qq)this.pay();else if(this.canUseVuidQQ)this.pay();else if(this.canUseWechat)this.pay();else{var t=this;this.supportFetchLoginFromCookie(function(e){return e?(t._relogin=!0,void t.pay()):void(a.canUsePTLoginCookie?t.showLogin(t.pay.bind(t)):t.jumpToNewPage())})}}},k.prototype.showLogin=function(e){this.isvuid?this.showAccesstokenLoginBox(e):this.showLoginBox(e)},k.prototype.showAccesstokenLoginBox=function(e){var t=this;f.show({"opacity":.1}),this.vm.checking=!0,u.showLogin({"cgi":this.cgi,"bindInfo":this.bindInfo,"onCancel":function(){f.hide(),t.vm.checking=!1},"callback":function(){f.hide(),t.vm.checking=!1,t._relogin=!0,t._getLoginStatusFromCookie(),e.call(t)}})},k.prototype.showLoginBox=function(e){var t=this;l.init(function(){l.setCallBack({"onSuccess":function(){t._relogin=!0,t._getLoginStatusFromCookie(),e.call(t)}}),l.show()}.bind(this))},k.prototype.showPskeyLoginBox=function(e){var t=this;l.init(function(){l.setCallBack({"daid":307,"onSuccess":function(){e.call(t)}}),l.show()}.bind(this))},k.prototype.getCGI=function(){return this._subCGI?this._subCGI:this.store.cgi},k.prototype.checkSurplus=function(e){var t=this;t._relogin?this.getQb({},e):(this.showSurplusRes({"balance":t._balance}),e&&e())},k.prototype.getQb=function(e,t){this.reportUser("surplus.click");var n=this.getCGI(),i=this,o=e||{};n.getQqacctYue(o,function(e){t&&t(),~~e.ret?(i.vm.balanceNotEnough=!0,i.vm.hideBalance=!0):(i.vm.hideBalance=!1,i.handleSurplusRes(e))})},k.prototype.handleSurplusRes=function(e){0==e.ret&&this.showSurplusRes({"uin":this._subSession&&!this.isvuid?this._subSession.openid:null,"show":!0,"balance":i.math.div(e.qb_balance+e.qd_balance,100)})},k.prototype.showVerifyCode=function(e,t){var n=this;new m({"el":document.getElementById("qb_left_money_container"),"verifyCodePic":e,"session":t,"onChangeVerifyCode":function(e){n.getCGI().getVerifyCode(function(t){0==t.ret&&e({"verifySession":t.info.session,"url":t.info.url})})},"onConfirm":function(e,t){n.getQb({"code":e,"session":t})}})},k.prototype.showSurplusRes=function(e){var t=a.getLoginStatus();(e.show||t.qq||this.canUseWechat||this.canUseVuidQQ)&&(e.uin&&(this.vm.uin=e.uin),e.balance>=parseFloat(this.vm.price)?(this.vm.showBalance=!0,this.vm.balanceNotEnough=!1):(this.vm.showBalance=!1,this.vm.balanceNotEnough=!0,this.vm.diff=Math.ceil(this.vm.price-e.balance),this.setAutoPay(!1)),this.vm.balance=e.balance,this.setAutoPaySelectUI())},k.prototype.pay=function(e){if(!this.isLocked()){this.lock(),e=e||{},this.reportUser("pay.click");var t=window.location.protocol+"//"+window.location.host+"/midas/minipay_v2/views/public/mb.shtml",n=this,o={"mb_callback_url":encodeURIComponent(t),"pay_method":this.channelObj.channel};i.fn.getParam("forceUUID")&&(o.uuid=i.fn.getParam("forceUUID"),o.pushtype="NodeJS"),i.fn.extend(o,e),f.show({"opacity":.1}),this.vm.paying=!0;var s=this.getSessionFromCookie();this._relogin&&s&&i.fn.extend(o,{"pay_id":s.openid,"auth_key":s.openkey,"pay_session_id":s.session_id,"pay_session_type":s.session_type}),this.canUseWechat&&i.fn.extend(o,{"wx_pay_by_bindqq":1}),this.store.buy(o,function(e){return f.hide(),n.vm.paying=!1,n.handleRes(e,o)})}},k.prototype.handleRes=function(e,t){var n,s=~~e.ret,r=this,c=a.getLoginStatus();if(this.unlock(),0!==s){switch(s){case 100004:"subChannel"==r.store.currentPage()?r.emit("pay:100004"):r.store.changePage("subChannel",o.mix({"channelObj":r.channelObj,"mode":g.MODE.COMPLETE,"price":r._price,"coupon":r.coupon,"store":r.store},{})),n=!0;break;case 1004:r.refreshDataBalance(),n=!0;break;case 1034:r.refreshDataBalance(),n=!0;break;case 1018:(c.qq1||c.pskey)&&(r.showPskeyLoginBox(function(){window.location.href=i.fn.addParam({"openid":+i.cookie.get("p_uin").replace(/[^\d]/g,""),"openkey":i.cookie.get("p_skey"),"session_id":"uin","session_type":"pskey_307"},window.location.href)}),n=!0);break;case 146:case 1905:r.store.clearSubSession(),r.showLogin(r.pay),n=!0;break;case 10001:var c=a.getLoginStatus(),l=this.getSessionFromCookie()||{};c.qq1||l.qq?r.securityQ(e,t):r.showLogin(function(){r.securityQ(e,t)}),n=!0;break;case 2022:n=!0;var u=r.store.getCgi().sessionObj.getSessionParam(),d=e.info;new C({"url":d.verify_url,"fk_info":d.fk_info,"fk_amt":d.fk_amt,"jiazhang_url":d.jiazhang_url,"veri_url":d.veri_url,"qrcode_url":d.qrcode_url,"cgi":r.store.getCgi(),"accountType":r.getAccountType(u),"onLoad":function(){},"onRcRestrict":function(e,t){e=e||{};var n=r.getSessionFromCookie();r._relogin&&n&&i.fn.extend(e,{"have_changed_uin":"1","pay_session_id":n.session_id,"pay_session_type":n.session_type,"pay_id":n.openid,"auth_key":n.openkey}),r.store.rcRestrict(e,t)},"onVerifyDone":function(e){e=e||{},r.pay(e)}})}switch(String(e.err_code)){case"1003--1-101":case"1003-1-101":this.vm.paying=!0,this.checkSurplus(function(){r.vm.paying=!1}),n=!0}}return n},k.prototype.getAccountType=function(e){return this.isvuid?"openid"===this.bindInfo.no_type?"qq":"wechatid"===this.bindInfo.no_type?"wx":"":"wc_actoken"===e.session_type?"wx":"qq"},k.prototype.securityQ=function(e,t){t=t||{};var n=e.info.mb_url;n+="",n=n.replace(/(.+)(\/\/)/,"$2");var o,s=this;v.create({"url":n,"size":{"w":400,"h":292},"hideHeader":!0,"onReady":function(e){o=e}}),window._MBQ_CALLBACK=function(e){o.close();var n=i.fn.getParam("dna_result_key",e);n&&(s.pay(i.fn.extend({},t,{"mb_pwd":n})),window._MBQ_CALLBACK=null)}},k.prototype.setAutoPay=function(e){this.vm.autoPay=e,this.report("auto.click",{"action":this.vm.autoPay?1:0}),this.store.setAutoPay&&this.store.setAutoPay(this.vm.autoPay)},k.prototype.initVmConfig=function(){var e=this,t=this.store.supportAutoPay(this.channelObj),n=this.store.getAutoPay();this.vmConfig=i.fn.extend({"$id":"qb-controller","needJumpToNewPage":!1,"needJumpToNewPageForCharge":!1,"price":this._price,"balanceNotEnough":!1,"hideBalance":!1,"showBalance":!1,"showAutoTips":t,"unitPrice":t?this.store.getAutoUnit(this.channelObj):0,"unitName":w.channels[y.QBQD]["moneyname"]||"元","autoPay":n,"balance":-1,"uin":null,"diff":"","disableSubmit":!1,"paying":!1,"checking":!1,"autoHandle":function(){e.setAutoPay(!e.vm.autoPay)},"queryBalance":function(){e.isQQLogin()?e.checkSurplus():e.showLogin(e.checkSurplus)},"handleClick":function(t){t.preventDefault(),e.init()},"goCharge":function(t){t.preventDefault(),e.goCharge()}},this.getCouponVmConfig(),this.getTermsVmConfig(),this.getPubVmConfig());var o=a.getLoginStatus();return o.qq||this.canUseWechat||a.canUsePTLoginCookie||(this.vmConfig.needJumpToNewPage=!0),o.qq||a.canUsePTLoginCookie||(this.vmConfig.needJumpToNewPageForCharge=!0),this.vmConfig},k.prototype.jumpToNewPageForCharge=function(e){var t=window.location.protocol+"//"+window.location.host+"/midas/minipay_v2/views/cpay/webpay-proxy.shtml";t=i.fn.addParam(i.fn.extend(e,{"proxyBuyType":b.QB}),t),this.store.changePage("subChannel",{"channelObj":this.channelObj,"mode":g.MODE.NEW_PAGE_CHARGE,"price":this.price,"onSuccess":this._qbChargeCallBack.bind(this)}),"1"!=i.fn.getParam("inApp")?i.openWindow(t):(i.fn.delParam("inApp",t),s.openWindow(t))},k.prototype.goCharge=function(e){this.reportUser("recharge.click");var t={"balance":this._balance,"price":this._price},n=Math.ceil(t.price-t.balance);this.vm.diff&&(n=this.vm.diff);var o={"appid":w.chargeQbAppid,"pf":this.store.params.pf,"pfkey":this.store.params.pfkey,"session_id":"uin","session_type":"skey","buy_quantity":n,"zoneid":this.store.params.zoneid,"sandbox":this.store.params.sandbox,"source_message":encodeURIComponent(this.store.getChargeMsg(n)),"source_from":this.store.type,"qqAppid":this.store.params.qqAppid};this.store.getPayFor()!=d.SELF&&(o.recharge_other=1,o.buy_quantity=Math.ceil(t.price)),this.store.params.skin&&(o.skin=this.store.params.skin),this.store.params.cft_skin&&(o.cft_skin=this.store.params.cft_skin),this.store.params.noKeyEvent&&(o.noKeyEvent=this.store.params.noKeyEvent),this._subSession?(o.openid=this._subSession.openid,o.openkey=this._subSession.openkey,o.session_id=this._subSession.sessionid,o.session_type=this._subSession.sessiontype):this.isvuid?(o.openid=this.bindInfo.openid,o.openkey=this.bindInfo.openkey,o.session_id="openid",o.session_type="kp_accesstoken"):(o.openid=this.store.session.openid,o.openkey=this.store.session.openkey,o.session_id=this.store.session.sessionid,o.session_type=this.store.session.sessiontype),o.buyType="qb",i.fn.extend(o,e||{}),a.canUsePTLoginCookie?window.cashier&&(window.cashier.newdialog(o),this._cashierEvent||(window.cashier.on("qbchargesuccess",this._qbChargeCallBack,this),window.cashier.on("qbchargeclose",this._qbChargeCallBack,this),window.cashier.on("qbchargeresize",this._qbChargeResize,this),this._cashierEvent=!0)):(o.source_message=encodeURIComponent(o.source_message),this.jumpToNewPageForCharge(o))},k.prototype._qbCookieRevert=function(){this.store.cgi.setLoginToCookie()},k.prototype.refreshDataBalance=function(){var e=a.getLoginStatus();e.qq||this.canUseWechat||this.canUseVuidQQ?this.store.queryBalance(function(e){e?(this._balance=e.balance,this.info.qqacct_balance=100*e.balance,this.store.emit("dataUpdate","qqbalance",this.info.qqacct_balance),this.showSurplusRes({"show":!0,"balance":this._balance})):window.location.reload()}.bind(this)):this.checkSurplus(function(){})},k.prototype._qbChargeCallBack=function(){this._qbCookieRevert(),this.vm.showBalance=!1,this.vm.balanceNotEnough=!1,this.refreshDataBalance()},k.prototype._qbChargeResize=function(e){s.resize(e)},k.prototype.initVm=function(){this.vm=o.define(this.initVmConfig())},k.prototype.onDestroy=function(){g.prototype.removeListener.call(this),window.cashier&&(window.cashier.off("qbchargesuccess",this._qbChargeCallBack),window.cashier.off("qbchargeclose",this._qbChargeCallBack)),g.prototype.destroy.call(this)},k.create=function(e,t){return new k(e,t)},k.getTemplate=function(){return h()},e.exports=k},"79488087":function(e,t,n){var i=n(84912183),o=n(4),s=n(1),a=n(100835382),r=n(24),c=n(25),l=n(11),u=n(119561448),d=n(83058212),h=o.fn.getParam("sandbox"),p=(n(49140953),n(84811753)),f=n(75748174),m=n(43847285),g=n(117821206);n(68682076);var v=function(e,t,n){a.apply(this,arguments),this.isBuying=!1,this.firstBuy=!0,this.saveTimout=null,this.validTimeout=null,this.init()},y={"init":function(){this.initVm(),this.calculatePrice(),this.fetchTargetUin(),this.fetchAmount();var e=this.store.getParams();if(this.isNativeWxpay=window._disableWechatNativePay.indexOf(e.appid)===-1,this.isDisable=this.store.isInterfaceDisabled(),this.hasLoaded=!1,!this.isDisable)return 0==this.amount?(this.disableQrcode(),this.vm.disableText="请完善充值信息",void(this.vm.showScaned=!1)):void(this.saveTimout=new l.Timeout({"time":.1,"timeUp":function(){this.saveTimout=null,"function"==typeof this.buy&&this.buy()}.bind(this)}))},"calculatePrice":function(){var e=this.store.getPrice().price;this.price=this.store.getPrice(o.discount.checkHasDiscount(e,"wechat")?this.channelObj.discount:void 0,this.coupon).price,this.vm.price=this.price},"fetchAmount":function(){this.amount=this.store.getAmount()},"fetchTargetUin":function(){this.targetUin=this.store.getTargetInfo().uin},"onChange":function(e){if(e=e||{},this.fetchTargetUin(),this.fetchAmount(),this.refreshCoupon(),this.calculatePrice(),this.saveTimout&&this.saveTimout.stop(0),this.store.isInterfaceDisabled())return this.isDisable=!0,this.disableQrcode(),void(this.vm.disableText=this.store.getChannelDisableText());if(this.enableQrcode(),this.isDisable&&(this.isDisable=!1),0==this.amount)return this.disableQrcode(),this.vm.showScaned=!1,void(this.vm.disableText="请完善充值信息");this.vm.qrcodeLoading=!0,this.vm.qrcodeReload=!1,this.vm.showQrcode=!0,this.vm.showScaned=!1;var t="undefined"==typeof e.need_delay_save||e.need_delay_save,n=t?.7:.1;this.saveTimout=new l.Timeout({"time":n,"timeUp":function(){this.saveTimout=null,"function"==typeof this.buy&&this.buy()}.bind(this)})},"disableQrcode":function(){this.vm&&(this.vm.disableQrcode=!0)},"enableQrcode":function(){this.vm&&(this.vm.disableQrcode=!1)},"getVmConfig":function(){var e=this;return o.fn.extend({"$id":"wechat-controller","price":this.price,"url":null,"showScaned":!1,"showQrcode":!0,"isDialogCreated":!1,"disableQrcode":this.store.isInterfaceDisabled(),"disableText":this.store.getChannelDisableText()||"","disableGif":/1450430034/.test(location.href),"reqId":0,"gotonext":function(){},"backQrcode":function(){return e.vm.disableQrcode?void e.store.emit("channelDataChange",new p(f)):(e.vm.showQrcode=!0,void(e.vm.showScaned=!1))},"qrcodeLoaded":function(){u.hide(),e.vm&&(e.vm.qrcodeLoading=!1,e.vm.qrcodeReload=!1)},"qrcodeLoadFail":function(){if(u.hide(),e.vm){e.vm.qrcodeLoading=!1,e.vm.qrcodeReload=!0,e.vm.url="";try{var t=document.getElementById("qr-code-wx");t&&(t.innerHTML="")}catch(n){}}},"refreshQrcode":function(){e.vm&&(e.vm.qrcodeReload=!1,e.vm.qrcodeLoading=!0,e.buy())},"fail":function(){e.vm.qrcodeLoaded(),e.vm.url=""},"qrcodeLoading":!0,"qrcodeReload":!1},this.getCouponVmConfig(),this.getTermsVmConfig(),this.getPubVmConfig())},"initVm":function(){this.vm=s.define(this.getVmConfig())},"getQrcode":function(e){this.vm.qrcodeLoading=!0;var t="",n=this.isNativeWxpay&&e.sign,i=this.store.isContinuousMonth()&&e.wx_sign_url;if(this.store.continuousMonthNotSign(i),t=n?e.sign:o.fn.addParam({"t":e.time,"n":e.nonce,"a":e.appid,"pf":this.store.getPf(),"p":encodeURIComponent(e["package"]),"s":e.sign_type||"SHA1","si":e.sign,"su":e.wx_sign_url,"showwxpaytitle":1,"uuid":this.uuid,"scan":1,"env":2==h?"dev":1==h?"sandbox":"live"},"https://pay.qq.com/h5/wechatPay.shtml?"),n){var s=this.genQrcode(t,{"selector":"qr-code-wx","useBackend":!0,"useOrig":!0});null!==s?this.vm.url=s:this.vm.qrcodeLoaded()}else this.getShortUrl(t,function(e){if(e&&e.status){var t=this.genQrcode(e.shortUrl,{"selector":"qr-code-wx","useBackend":!this.getFrontEndAppid()});this.validTimeout=setTimeout(function(){try{this.vm.qrcodeLoadFail()}catch(e){}}.bind(this),1e3*e.validTime),null!==t?this.vm.url=t:this.vm.qrcodeLoaded()}else this.vm.qrcodeLoadFail()}.bind(this))},"buy":function(e,t){if(e=e||{},clearTimeout(this.validTimeout),this.firstBuy=!1,0!=this.store.getAmount()){var n={"biz_appid":this.store.getWxAppid(),"wx_direct_pay":this.isNativeWxpay?1:0,"wx_publice_pay":1,"uuid":this.uuid,"pay_method":this.channelObj.channel,"pushtype":"NodeJS"};this.isNativeWxpay&&(n.wx_order_interface="1"),this.store.isContinuousMonth()&&(n.continuous_month=1),o.fn.extend(n,e),u.show({"opacity":"0"}),this.vm.reqId++;var i=this.vm.reqId;this.store.buy(n,function(e){this.hasLoaded=!0,u.hide();try{return i!==this.vm.reqId||this.handlerBuy(e,n)}catch(t){return!0}}.bind(this))}},"handlerBuy":function(e,t){var n,i=this;if(!~~e.ret)return this.getQrcode(e.info.wechat_info||e.info.channel_info),setTimeout(function(){try{var t=this.store.getOrderInfo();t&&"1"===t.is_mstp?this.setupSocketPooling(e):this.setupPooling(e)}catch(n){}}.bind(this),100),!0;n=new g({"errCode":e.ret,"errMsg":e.msg,"oriParams":t,"2022":function(){var t=e.info,n=i.store.getCgi().sessionObj.getSessionParam();new m({"url":t.verify_url,"fk_info":t.fk_info,"fk_amt":t.fk_amt,"jiazhang_url":t.jiazhang_url,"veri_url":t.veri_url,"qrcode_url":t.qrcode_url,"cgi":i.store.getCgi(),"accountType":"wc_actoken"===n.session_type?"wx":"qq","onLoad":function(){},"onRcRestrict":function(e,t){e=e||{},i.store.rcRestrict(e,t)},"onVerifyDone":function(e){e=e||{},i.vm.qrcodeLoading=!0,i.vm.qrcodeReload=!1,i.buy(e)},"onDestroy":function(){}})}});try{this.vm.qrcodeLoadFail()}catch(o){}return!(!n||!n.canHandle())&&(n.exec(),!0)},"setupPooling":function(e){var t,n=this;this.comet||(this.comet=new r({"uuid":this.uuid,"sandbox":~~this.store.getSandbox(),"sessionObj":this.store.getSession(),"onSuccess":function(){t&&(t.destroy(),t=null),n.reportUser("push.success"),n.store.onSuccess()},"onScan":function(){n.reportUser("scan.pv"),n.vm.showScaned=!0,n.vm.showQrcode=!1,n.store.isContinuousMonth()&&e.info.channel_info.wx_sign_url&&(n.vm.isDialogCreated||(n.vm.isDialogCreated=!0,t=d.create({"msg":"请在微信上完成开通","confirmBtnTxt":"已完成","cancelBtnTxt":"重新开通","onConfirm":function(){n.reportUser("scan.confirm"),n.store.onPending({"isQuery":!0,"titleTxt":"结果查询中","billNo":e.info.channel_info&&e.info.channel_info.serialno,"portalNo":e.info.portal_serial_no,"channel":n.store.channel}),t=null},"onCancel":function(){n.reportUser("scan.cancel"),n.vm.backQrcode(),n.vm.isDialogCreated=!1,t=null}})))},"onPaying":function(){}}),this.comet.start())},"setupSocketPooling":function(e){var t=this;this.comet2||(this.comet2=new c({"socket_link":e.info.ws_link_info.link_url,"onSuccess":function(){t.reportUser("push.success"),t.store.onSuccess()},"onError":function(){t.reportUser("push.websocketerror")}}),this.comet2.start())},"onDestroy":function(){clearTimeout(this.validTimeout),a.prototype.removeListener.call(this),this.comet&&this.comet.abort(),this.comet2&&this.comet2.abort(),this.saveTimout&&this.saveTimout.stop(0),a.prototype.destroy.call(this),this.vm=null,u.hide()}};o.inherits(v,a),o.fn.extend(v.prototype,y),v.create=function(e,t,n){return new v(e,t,n)},v.getTemplate=function(e){return i(e)},e.exports=v},"79775620":function(module,exports){module.exports=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__j=Array.prototype.join;with(obj)__p+='<p class="tips">\n '+(null==(__t=name)?"":__t)+"\n ","undefined"!=typeof noEm&&noEm&&(__p+="\n "+(null==(__t=content)?"":__t)+"\n "),__p+="\n <span>\n ","undefined"!=typeof noEm&&noEm||(__p+=' \n <em class="left-money-em">\n '+(null==(__t=content)?"":__t)+"\n </em>\n "),__p+="\n 元\n </span>\n</p>";return __p}},"80481457":function(e,t,n){var i=n(49140953),o=n(4),s=n(109735088);e.exports=function(e){if(!s.getLoginStatus().qq)return!1;var t,n=e,a=n.vip_name,r=n.vip_percent,c=!!n.vip;if(t=i.goodVipConfig[a],!t)return{"isVip":!1,"canOpen":!1};var l={"vipDiscount":o.math.div(r,100),"displayVipDiscount":(""+o.math.div(r,10)).replace(/\./g,"").substr(0,2).replace(/0/g,""),"isVip":c,"canOpen":!1,"vipName":t.name,"vipCode":t.vipcode};return~~c?o.fn.extend({},t,l):o.fn.extend({},l,{"isVip":!1,"canOpen":!0})}},"80576922":function(e,t,n){var i=n(4),o=n(1),s=n(49898765),a=n(11),r={"PENDING":"waiting","SUCCESS":"success","FAIL":"fail","ERROR":"error"};o.component("ms:resultquery",{"$template":s(),"$replace":!0,"status":r.PENDING,"info":"支付查询中,请稍候...","subInfo":"","extraInfo":{},"countDown":null,"timeUp":!1,"uuid":null,"times":60,"queryTimeout":10,"enableQuery":!1,"autoQuery":!0,"onInit":i.fn.emptyFunc,"onDestroy":i.fn.emptyFunc,"$init":function(e,t){e.uuid=i.fn.uuid()},"$ready":function(e,t){e.onInit(e),e.countDown=e.times,e.autoQuery&&e.startAutoQuery()},"$skipArray":["interval","queryInterval","extraInfo"],"onQuery":function(e,t){},"querying":!1,"onSuccess":function(e){},"onPending":function(e){},"onFail":function(e){},"onNoResult":function(e){},"onError":function(e){},"interval":null,"queryInterval":null,"enableConfirm":!1,"$dispose":function(){this.stopAutoQuery()},"stopAutoQuery":function(){this.interval&&(this.interval.stop(1),this.interval=null)},"showNoResult":function(){this.enableConfirm=!0,this.confirm()},"startAutoQuery":function(){var e=this;this.interval=new a.CountDown({"time":this.times,"beforeCount":function(){e.query()},"counting":function(t){e.countDown=t,t<=0||t%e.queryTimeout==0&&e.query()},"countEnd":function(){e.timeUp=!0,e.countDown=null,e.stopAutoQuery(),e.status==r.PENDING&&e.showNoResult()}})},"destroy":function(){this.$dispose()},"query":function(){this.querying||(this.querying=!0,this.onQuery(this))},"queryDone":function(e,t){this.querying=!1,this.timeUp&&!t||(this.status=e,e!=r.PENDING&&this.stopAutoQuery(),e==r.SUCCESS?this.onSuccess(this):e==r.PENDING?this.onPending(this):e==r.ERROR?this.onError(this):this.onFail(this))},"confirm":function(){this.onNoResult(this)},"setSubInfo":function(e){this.subInfo=e},"setInfo":function(e){this.info=e},"setExtraInfo":function(e,t){this.extraInfo[e]=t},"getExtraInfo":function(){return this.extraInfo},"setStatus":function(e){this.status=e},"getInfo":function(){return this.info},"getSubInfo":function(){return this.subInfo}}),e.exports={"create":function(e,t){return t=t||{},String.format('<ms:resultquery config="{config}" on-init="{onInit}" on-success="{onSuccess}" on-error="{onError}" on-fail="{onFail}" on-pending="{onPending}"></ms:resultquery>',{"config":e||"resultQueryConfig","onInit":t.onInitMethodName,"onSuccess":t.onSuccessMethodName,"onError":t.onErrorMethodName,"onFail":t.onFailMethodName,"onPending":t.onPendingMethodName})},"ENUM_STATUS":r}},"80661677":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-html="resultContent"></div>';return __p}},"81040968":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="bank-list">\n <label class="bank-box" style="margin-right: 0" ms-class-1="checked:$index==index" ms-repeat="radioList" ms-if-loop="$index<9||showMoreBank" ms-attr-for="radioId"\n ms-on-click="handleClick($index,$event)">\n <input type="radio" class="o-radio" ms-attr-checked="$index==index">\n <i class="icon-radio"></i>\n <i ms-class="icon-bank icon-{{el.logo}}"></i>\n {{el.name}}\n </label>\n <a class="more-bank" style="cursor: pointer" ms-if="!showMoreBank" ms-on-click="moreBank">更多银行</a>\n <!--<a class="more-bank" style="cursor: pointer" ms-if="showMoreBank" ms-on-click="lessBank">收起</a>-->\n</div>';return __p}},"81089886":function(e,t,n){var i=n(1),o=function(){this._messageHandlers=[]};o.prototype={"postMessage":function(e,t){if(window.debug&&i.log("tenpay.xcross.send",e),window.postMessage)try{t.postMessage(e,"https://www.tenpay.com")}catch(n){return!1}else{var o=navigator._tenpayCrossCall;o&&o(e)}return!0},"receiveMessage":function(e){var t=new RegExp("^(http|https)://www.tenpay.com","i");if(window.postMessage){var n=function(n){t.test(n.origin)&&(n=n||window.event,window.debug&&i.log("tenpay.xcross.receive",n.data),e(n.data))};i.bind(window,"message",n),this._messageHandlers.push(n)}else navigator._payCrossCall=e},"deReceiveMessage":function(){window.postMessage?(i.each(this._messageHandlers,function(e,t){i.unbind(window,"message",t)}),this._messageHandlers=[]):navigator._payCrossCall=i.noop}},e.exports=o},"81807273":function(e,t,n){var i=n(119158517),o=n(100835382),s=n(43847285),a=n(4),r=n(1),c=n(119561448),l=n(84811753),u=n(104491903),d=n(117821206),h=function(){o.apply(this,arguments),this.init()},p={"init":function(){this.initVm(),this.isDisable=this.store.isInterfaceDisabled(),this.isDisable||this.initChannel()},"initChannel":function(){this.calculatePrice(),this.fetchAmount(),this.fetchTargetUin()},"getVmConfig":function(){var e=this;return a.fn.extend({"$id":"wechat_deposit-controller","isSubmitted":!1,"merchantInfo":this.store.info.deposit_sponsor_info,"pay_type":this.store.info.offer_name,"price":this.price,"paying":!1,"handleSubmit":function(){e.buy({})}},this.getPubVmConfig())},"handlerBuy":function(e,t){var n=this;return~~e.ret?(error=new d({"errCode":e.ret,"errMsg":e.msg,"oriParams":t,"2022":function(){var i=e.info,o=n.store.getCgi().sessionObj.getSessionParam();new s({"url":i.verify_url,"fk_info":i.fk_info,"fk_amt":i.fk_amt,"jiazhang_url":i.jiazhang_url,"veri_url":i.veri_url,"qrcode_url":i.qrcode_url,"cgi":n.store.getCgi(),"accountType":"wc_actoken"===o.session_type?"wx":"qq","onLoad":function(){},"onRcRestrict":function(e){e=e||{},n.store.rcRestrict(e)},"onVerifyDone":function(e){e=e||{},n.vm.qrcodeLoading=!0,n.vm.qrcodeReload=!1,a.fn.extend(t,e),n.buy(e)}})}}),!(!error||!error.canHandle())&&(error.exec(),!0)):(this.store.changePage("subChannel",{"channelObj":n.channelObj,"mode":o.MODE.COMPLETE,"store":n.store,"showOrderInfo":!1,"channelInfo":e.info.channel_info}),n.store.emit(u,new l(u,{"show":!1})),!0)},"buy":function(e){var t=this;this.isLocked()||(this.lock(),this.showMask(),this.vm.paying=!0,e.pay_method="wechat_deposit",this.store.buy(e,function(n){return this.hideMask(),this.unlock(),t.vm.paying=!1,this.handlerBuy(n,e)}.bind(this)))},"initVm":function(){this.vm=r.define(this.getVmConfig())},"onDestroy":function(){o.prototype.removeListener.call(this),o.prototype.destroy.call(this),this.vm=null,c.hide()},"calculatePrice":function(){var e=this.store.getPrice().price;this.price=this.store.getPrice(a.discount.checkHasDiscount(e,"wechat_deposit")?this.channelObj.discount:void 0,this.coupon).price,this.vm.price=this.price},"fetchAmount":function(){this.amount=this.store.getAmount()},"fetchTargetUin":function(){this.targetUin=this.store.getTargetInfo().uin},"onChange":function(){this.fetchTargetUin(),this.fetchAmount(),this.calculatePrice()}};a.inherits(h,o),a.fn.extend(h.prototype,p),h.create=function(e,t,n){return new h(e,t,n)},h.getTemplate=function(e){return i(e)},e.exports=h},"82007299":function(e,t,n){var i=n(102521382),o=n(109735088),s=n(4);n(51748615),n(49140953);e.exports={"getPayUin":function(){return(this.subSession||this.session)["getSessionParam"]().openid},"getCache":function(e,t){t=t||this.info;var n=t.__cacheData;return n?n[e]:null},"setCache":function(e,t,n){n=n||this.info;var i=n.__cacheData;i&&(i[e]=t)},"getCode":function(e){return e=e||this.info,e.offer_id},"getPriceType":function(e){return e=e||this.info,e.priceType},"getName":function(e){return e=e||this.info,e.product_name||e.name||e.offer_name||"包月"},"getUnitName":function(e){return e=e||this.info,e.unitName},"getAmount":function(e){return e=e||this.info,e.count},"getWXNick":function(e){return this.wxNick},"showLoginBox":function(e){var t=this;e=s.fn.extend({"onClose":avalon.noop},e||{}),e.isWechat&&!this.currentLoginStatus().isQQUser||!o.canUsePTLoginCookie?e.onClose.bind(t)(!0):i.init(function(){i.setCallBack({"daid":307,"onSuccess":function(){location.href=s.fn.addParam({"openid":+s.cookie.get("p_uin").substr(1),"openkey":s.cookie.get("p_skey"),"session_id":"uin","session_type":"pskey_307"},location.href)},"onClose":function(){e.onClose.call(t)}}),i.show()})},"unLogin":function(e){return["2","1018"].indexOf(String(e))>-1},"currentLoginStatus":function(){var e=o.getLoginStatus();return{"isWechatUser":e.wechat,"isQQUser":e.qq,"isPT":e.ptlogin,"isPskey":e.pskey,"isQQConnect":e.accesstoken,"isThridpart":e.thridpart,"supportSend":e.accesstoken||e.qq1||e.pskey}}}},"82030767":function(e,t){e.exports=function(e){return e&&e?{"goodsName":e.product_name,"goodsDesc":e.goodsdes}:""}},"82760872":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="remitpay-controller">\n <div ms-if="loading||priceLoading" id="_webpay__dialog__load__">\n <div class="mdsweb-loading-wrapper abs">\n <div class="mdsweb-loading">\n <div class="dot"></div>\n <div class="dot"></div>\n <div class="dot"></div>\n </div>\n </div>\n </div>\n <div class="left-money-warn" ms-if="isDisable">\n <p class="tips sub-tips"><i class="icon-error"></i> 温馨提示:{{disableText}}</p>\n </div>\n <iframe ms-if="!isDisable" frameborder="0" name="channelWebIframe" id="channelWebIframe" scrolling="no"\n style="width: 100%; height: 380px;"></iframe>\n</div>';return __p}},"83058212":function(e,t,n){var i=n(1),o=n(99186575),s={};i.component("ms:confirm",{"$template":o(),"domId":"","opacity":0,"$replace":!0,"msg":"","hideCancel":!1,"confirmBtnTxt":"确认","cancelBtnTxt":"取消","onConfirm":i.noop,"onCancel":i.noop,"handleConfirm":function(){this.remove(),this.onConfirm()},"remove":function(){s.hide();var e=document.getElementById(this.domId);document.body.removeChild(e)},"handleCancel":function(){this.remove(),this.onCancel()},"$init":function(e){},"$ready":function(e){s=function(){var e=i(document.getElementById("_cp_confirm__mask__"));return{"show":function(t){e.css({"opacity":t,"display":"block"})},"hide":function(){e.css({"display":"none"})}}}(),s.show(e.opacity)},"$dispose":function(){}});var a=!1,r=[],c=function(e){if(e=e||{},a)r.push(e);else{var t=function(){a=!1,r.length>0&&c(r.shift())},n="confirm-"+(2*Math.random()+10).toString().replace(".",""),o=function(){try{s.hide();var e=document.getElementById(n);delete i.vmodels[n],e&&e.parentNode&&e.parentNode.removeChild(e)}catch(t){}};"function"==typeof e.onInit&&e.onInit(o);var l=function(){o(),o=null,t()},u=function(){e.onConfirm&&e.onConfirm(),l()},d=function(){e.onCancel&&e.onCancel(),l()},h=i.define({"$id":n,"config":{"onConfirm":u,"onCancel":d,"domId":n,"msg":e.msg,"opacity":e.opacity||0,"hideCancel":e.hideCancel,"confirmBtnTxt":e.confirmBtnTxt||"确认","cancelBtnTxt":e.cancelBtnTxt||"取消"},"destroy":l}),p=document.createElement("div");p.setAttribute("ms-controller",n),p.setAttribute("id",n),p.innerHTML='<ms:confirm config="config"></ms:confirm>',document.body.appendChild(p),i.scan(p),a=!0}return h};e.exports={"create":c}},"83497919":function(e,t,n){var i=n(4),o=n(1),s=n(74109955),a=n(12),r=n(104911180),c=n(48016802),l=n(99560243),u=n(82007299),d=100,h=i.fn.getParams(),p=n(75685166),f=n(102987497),m=o.mix({},u,{
"getMonthAmount":function(e,t){return Math.floor(e/(t==s.day?1:t==s.year?372:31))},"getDaysAmount":function(e,t){return Math.floor(e*(t==s.day?1:t==s.year?372:31))},"convertToYuan":function(e,t){return i.math.mul(parseInt(e,10)/d,t||1)},"getPrice":function(e,t){return this.convertToYuan(t?f.drmDiscount(t,e).price:e.currency_amt)},"getServiceInfo":function(e){return e?__Service[e.toLowerCase()]||{}:{}},"getAutoRenewPrice":function(e){var t=null,n=e["product_list"],i=this;return n.length>0&&n.some(function(e){if(1==i.getMonthAmount(e["auto_open_days"])&&(t=i.convertToYuan(e["auto_currency_amt"]),t>0))return!0}),t},"getUpgradeTips":function(e){for(var t=i.fn.safeGet(window.__midasStaticConfig_midas_webpay,"itemMap.webpay.upgrade_tag_tips",[]),n="",o=0;o<t.length;o++)if(t[o].offerid===e){n=t[o].content;break}return n},"getMonthDataInfo":function(e,t,n,r,c){n=e.count||1,t=t||s["open"];var l,u=this.getMonthPriceItemData(e,r,c);if(!u.length)return a.go("result",{"status":"error","modifyTitle":!1,"displayInfo":"暂无可开通的月卡档位"}),{};var d=-1,h=-1,p=!1,f=null;return o.each(u,function(e,i){i.type==s.upgrade&&(p=!0),i.type==t&&(i.count==n?h=e:i.editable?d=e:h<0&&(h=e,f=i.count))}),h<0&&d<0?(l=u[0],l.type===s.continousMonth&&(l=u[1]),n=l.count):h>-1&&!f?(l=u[h],n=l.count):d>-1?(l=u[d],n=Math.min(Math.max(n,l.min),l.max)):(l=u[h],n=l.count),{"includeUpgrade":p,"monthList":u,"price":l.editable?i.calcTotalPrice(n,l.unitPrice):l.price,"unitPrice":l.editable?l.unitPrice:null,"type":l.type,"unitName":l.unitName,"count":n,"value":l.value,"innerProductId":l.innerProductId,"serviceCode":l.serviceCode,"productName":l.productName,"editable":l.editable}},"getMonthCardInfo":function(e){var t=(e.product_list||[]).filter(function(e){return"price_list"===e.price_flag&&(e.product_id||"").indexOf("continuous_month_pid")===-1}).map(function(e){return{"count":i.math.div(e.open_days,31),"price":i.math.div(e.currency_amt,100)}});return t},"getCustomMap":function(e){var t=this.getCache("serviceCodeMap",e),n=this;if(!t){t={"services":{},"customizable":!0},t.getBaseCode=function(){if(this.customizable)return null;var e=null;return o.each(this.services,function(t,n){if("0"==n.level)return e=t,!1}),e}.bind(t),t.getUpgradeCode=function(){if(this.customizable)return null;var e=null;return o.each(this.services,function(t,n){if("1"==n.level)return e=t,!1}),e}.bind(t),p.feature()&&p.feature().setPackList&&p.feature().setPackList(e);var i=e["month_info"]["packet_list"];if(i){var s=i.split(";");o.each(s,function(e,i){i=i.split(","),t["services"][i[0]]={"level":i[1],"unitPrice":n.convertToYuan(i[2])}});var a=null;o.each(t["services"],function(e,n){if(a){if(a.level!=n.level)return t["customizable"]=!1,!1}else a=n})}this.setCache("serviceCodeMap",t,e)}return t},"getMaxUpdateCount":function(e){return e["month_info"]?e["month_info"]["upgrade_months"]:0},"getMonthCardTipsDiscountTips":function(e,t,n,o,s){var a=i.fn.safeGet(e,"mp_info.buymonth.monthutp"),r=f.drmDiscount(a,n).extend.tag;if(r)return r;if(t){var l="1"==h["card_tips"],u=this.convertToYuan(t["currency_amt"],s)-this.convertToYuan(n["currency_amt"]);return l&&u>0?String.format(c.get("monthCardTips"),{"discountPrice":u,"name":this.getName(e),"count":s,"opType":c.get("openTxt"),"unitName":this.getUnitName(o)}):null}return null},"getOpendMonthList":function(e){return e["month_list"]||[]},"getOneMonthPrice":function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];i.product_id.indexOf("_continuous_month_pid")==-1&&(i.price_flag==r.FIX&&"31"==i.open_days?t.push(parseInt(i.currency_amt)):i.price_flag==r.UNFIX&&"31"==i.open_days&&t.push(parseInt(i.currency_amt)))}return t.sort(function(e,t){return e-t}),t[0]},"getMonthPriceItemData":function(e,t,n){var a=i.fn.getParam("ignoreProductId").split(/\s*,\s*/).filter(Boolean);a.length>0&&(e.product_list=e.product_list.filter(function(e){return!(e.price_flag===r.UNFIX&&a.indexOf(e.product_id)>-1)})),e.product_list=e.product_list||[];var l=parseInt(i.fn.getParam("removeFixedRate")),u=1===e.product_list.length&&e.product_list[0].price_type===r.FIX;l&&!u&&(e.product_list=e.product_list.filter(function(e){return e.price_flag!==r.FIX||(e.product_id||"").indexOf("continuous_month_pid")>-1}));var d=parseInt(i.fn.getParam("disableAutoAddList")),f=t,m=this.getCache(f?"sendPriceItems":"priceItems",e);if(!m){p.feature()&&p.feature().setMonthCards&&p.feature().setMonthCards(e,t);for(var g=this,v=h["price_style"],y=e["max_num"]||e.maxAmount||9999,_=e.minAmount||1,b=[],w={},C=!0,k=String.format(c.get("yearTips"),{"name":this.getName(e)}),x=String.format(c.get("openYearTips"),{"name":this.getName(e)}),S=e["month_info"]&&e["month_info"]["year_months"],T=!t&&S&&S>0,I=e["product_list"],P=1,L=1,N=s.open,q=this.getName(e),B="",E=e["recommend_list"].length>0?e["recommend_list"].split(","):[1,3,6,12],D=!1,A=null,O=null,M=I.length-1;M>=0;--M){var j=I[M];if(j.product_id.indexOf("_continuous_month_pid")>-1){var R=this.convertToYuan(j["currency_amt"]);I[M].__type=s.continousMonth;var V={"wechat":"微信支付","qqwallet":"QQ钱包"},U=(e.continous_recommend_channel||[]).map(function(e){return V[e]}).join("、");O={"style":v,"type":s.continousMonth,"name":"连续包月","productName":j["product_name"],"innerProductId":j.inner_productid,"count":1,"originName":"","originDays":"31","price":R,"unitPrice":i.math.toDecimal(i.math.div(j["currency_amt"],100),2,!0),"value":j["product_id"],"editable":!1,"tipsContent":String.format("连续包月仅支持{channel},其他套餐支持更多渠道",{"channel":U})}}}var Q=this.getCustomMap(e),F=this.getMaxUpdateCount(e),H=null;if(1!=h["disable_upgrade"]&&!Q.customizable&&F>0&&!f){var $,G=c.get("upgradeTxt")+this.getName(e),z=!1;i.fn.each(I,function(e,t){if(e.__type!=s.continousMonth)return z=e["price_flag"]==r.FIX,N=s.open,P=g.getMonthAmount(e["open_days"],N),0!=P&&P==Math.floor(P)||(N=s.day),N==s.open&&1==P&&z&&($=e),!z});var W=!1;if(p.feature()&&p.feature().canUpdate&&(W=p.feature().canUpdate(e,t)),z||W){var X,J;o.each(Q["services"],function(t,n){1==n.level&&n.unitPrice>0&&(N=s.upgrade,P=1,X=g.getName(e),J=g.getBaseName(e),H={"style":v,"type":N,"name":G,"productName":G,"count":P,"originName":G,"originDays":31,"price":n.unitPrice,"serviceCode":$.inner_productid,"unitPrice":n.unitPrice,"unitName":g.getUnitName(s.open),"value":$["product_id"],"max":F,"min":e.minAmount||_,"tips":g.getUpgradeTips(e.offer_id)||G,"tipsContent":F>0?String.format("根据您的{baseServiceName}剩余有效期,最多可以升级<em> {upgradeMax} </em>个月的{serviceName}",{"baseServiceName":J,"serviceName":X,"upgradeMax":F}):null,"editable":!0})})}}var K=null,Y=0,Z=0,ee=n-(H?1:0),te=0,ne=i.fn.safeGet(e,"mp_info.buymonth.monthutp");I.sort(function(e,t){return e["price_flag"]!=t["price_flag"]?t["price_flag"]==r.FIX?1:-1:g.getMonthAmount(e["open_days"])>=g.getMonthAmount(t["open_days"])?1:-1});var ie=[],oe=0;o.each(I,function(t,n){if(n.__type!=s.continousMonth){if(N=s.open,C=n["price_flag"]==r.FIX,P=oe=g.getMonthAmount(n["open_days"],N),g.getDaysAmount(P,s.open)!=n["open_days"]&&(N=s.day,P=g.getMonthAmount(n["open_days"],N)),Z&&g.getMonthAmount(Z["open_days"],N)==P){if(!C)return B=g.getUnitName(N),originalPrice=g.convertToYuan(n.currency_amt),Y=g.getPrice(n,ne),void(w[P]={"style":v,"type":N,"name":c.getPriceItemName(null,N),"productName":String.format("{0}{1}{2}",P,B,q),"count":P,"originName":"","originDays":g.getMonthAmount(n["open_days"],s.day),"price":Y,"serviceCode":n.inner_productid,"unitPrice":i.math.toDecimal(i.math.div(Y,N==s.open?P:P/31),2,!0),"unitName":B,"value":n["product_id"],"max":y,"min":_,"tips":T&&P==S&&n["price_flag"]!=r.FIX?12==S?x:k:g.getMonthCardTipsDiscountTips(e,K,n,N,P),"editable":n["price_flag"]==r.FIX});w[P]=b.pop()}return!(b.length>=ee)&&void(N==s.open&&12==P&&C?A=n:(N==s.open&&1==P&&C&&(K=n,te=b.length),originalPrice=g.convertToYuan(n.currency_amt),Y=g.getPrice(n,ne),ie.push(oe),B=g.getUnitName(N),b.push({"style":v,"type":N,"name":c.getPriceItemName(null,N),"productName":String.format("{0}{1}{2}",P,B,q),"count":P,"originName":"","originDays":g.getMonthAmount(n["open_days"],s.day),"price":Y,"serviceCode":n.inner_productid,"unitPrice":i.math.toDecimal(i.math.div(Y,N==s.open?P:P/31),2,!0),"unitName":B,"value":n["product_id"],"max":y,"min":_,"tips":T&&P==S&&n["price_flag"]!=r.FIX?12==S?x:k:g.getMonthCardTipsDiscountTips(e,K,n,N,P),"editable":n["price_flag"]==r.FIX}),D||(D=T&&P==S),Z=n))}}),N=s.open;var se=null;T&&K&&!D&&(E.some(function(e){if(P=parseInt(e,10),K&&P==S)return T=!1,!1}),Y=g.convertToYuan(K["currency_amt"],S),B=g.getUnitName(N),se={"style":v,"type":N,"name":c.getPriceItemName(null,N),"productName":String.format("{0}{1}{2}",S,B,q),"count":S,"originName":"","price":Y,"serviceCode":K.inner_productid,"unitPrice":g.convertToYuan(K["currency_amt"]),"unitName":B,"value":K["product_id"],"max":S,"min":_,"tips":12==S?x:k,"editable":!1});var ae=n-(se?1:0)-(H?1:0)-(A?1:0)-(O?1:0)-b.length;if(K&&1==h["disable_open"]&&ae++,d&&(ae=0),ae>0&&K){var re=null,ce=1,le=g.convertToYuan(K["currency_amt"]);o.each(E,function(e,t){return 0!=ae&&(ce=parseInt(t,10),void(ie.indexOf(ce)==-1&&(ae--,re=String.format("{id}_{count}",{"id":K["product_id"],"count":ce}),B=g.getUnitName(N),b.push({"style":v,"type":N,"name":c.getPriceItemName(null,N),"productName":String.format("{0}{1}{2}",ce,B,q),"count":ce,"originDays":g.getDaysAmount(ce,s.open),"originName":"","price":g.convertToYuan(K["currency_amt"],ce),"serviceCode":K.inner_productid,"unitPrice":le,"unitName":B,"value":K["product_id"],"max":y,"min":_,"tips":T&&ce==S?k:null,"editable":!1}))))})}m=b.slice(0,n-(se?1:0)-(H?1:0)-(A?1:0)-(O?1:0)),m.sort(function(e,t){return e.editable!==t.editable?t.editable?1:-1:e.originDays>=t.originDays?1:-1}),K&&1==h["disable_open"]?w[1]?m.splice(te,1,w[1]):m.splice(te,1):K&&m.push(m.splice(te,1)[0]),se&&m.unshift(se),H&&m.unshift(H),O&&m.unshift(O),A&&(N=s.year,L=this.getMonthAmount(A["open_days"],N),Y=this.convertToYuan(A["currency_amt"]),B=this.getUnitName(N),m.push({"style":v,"type":N,"name":c.getPriceItemName(null,N),"count":L,"productName":String.format("{0}{1}{2}",L,B,q),"originCount":this.getMonthAmount(A["open_days"]),"originName":"","price":Y,"serviceCode":A.inner_productid,"unitPrice":i.math.toDecimal(i.math.div(Y,12),2,!0),"unitName":B,"value":A["product_id"],"max":Math.floor(y/12),"min":_,"tips":x||"","editable":A["price_flag"]==r.FIX})),this.setCache(f?"sendPriceItems":"priceItems",m,e)}var ue=parseInt(i.fn.getParam("ignoreFixedRate")),de=m.length,he=de&&m[de-1];return ue&&he.editable&&he.type===s.open&&m.splice(m.length-1,1),m=m.filter(function(e){return e.price>0})},"getUnitName":function(e){return String.format(c.getPriceItemName(null,e),{"count":""})},"getServiceCode":function(e){return e.month_info.service_code.toLowerCase()},"getBaseName":function(e){var t="",n=e.month_list;return baseCode=this.getCustomMap(e).getBaseCode(),baseCode&&o.each(n,function(e,n){if(n.code.toLowerCase()==baseCode.toLowerCase())return t=n.name,!1}),t},"getDRMInfo":function(e){var t,n=h.appid.split(","),e=e||n[0],i=h.groupid?h.groupid.split(","):[];return o.each(n,function(n,o){if(e==o)return i.length>n&&i[n]&&(t=i[n]),!1}),t},"getMpTxt":function(e){return e.mp_info.info||""},"isTYClub":function(e){return["txtypcby","tyviptpwx"].indexOf(this.getServiceCode(e))>-1},"isTYVIPClub":function(e){return["tyupvipqq","tyupvipwx"].indexOf(this.getServiceCode(e))>-1},"getMonthTabsData":function(e,t){var n=[],s=this,a=null;return o.each(t,function(t,o){a=e[o],a&&n.push({"name":s.getName(a),"appid":o,"serviceCode":s.getServiceCode(a),"value":o,"checked":!0,"logo":i.universeProtocol(a.logo),"ruleUrl":a.month_info.service_provision||l.ruleURL})}),n}});e.exports=m},"84811753":function(e,t,n){var i=n(4),o=e.exports=function(e,t){if(!e)throw Error("action must provide type");this.type=e,this.opts=t||{}};i.fn.extend(o.prototype,{"getType":function(){return this.type},"getData":function(){return this.opts}})},"84912183":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="wechat-controller">\n <div class="coupon" ms-if="coupon" ms-html="couponHTML"></div>\n <div class="qr-code-txt">\n <i class="icon-wx"></i>微信扫码,支付\n <em ms-if="!priceLoading">{{price}}</em>\n <span ms-if="priceLoading" ms-html="priceLoadingTplHtml"></span>\n 元\n </div>\n <div class="qr-code-area" ms-visible="showQrcode">\n <div class="qr-code-container wx" ms-visible="!disableQrcode">\n <div id="qr-code-wx" style="display: none"></div>\n <img ms-if="url" ms-attr-src="url" ms-on-load="qrcodeLoaded" ms-on-error="qrcodeLoadFail">\n <div class="qr-code-mask" ms-if="qrcodeLoading||qrcodeReload||priceLoading"></div>\n <div class="qr-code-loading" ms-if="qrcodeLoading||priceLoading">\n <i ms-if="!disableGif"></i>\n <p>加载中,请稍候</p>\n </div>\n <div class="qr-code-reload" ms-if="qrcodeReload" ms-on-click="refreshQrcode">\n <i></i>\n <p>重新获取二维码</p>\n </div>\n </div>\n <div class="qr-code-container wx" ms-visible="disableQrcode && !disableText"></div>\n </div>\n <div class="qr-code-area" ms-visible="showScaned">\n <i class="icon-phone"></i>\n <p>请在手机上进行支付</p>\n <a href="javascript:void(0);" ms-on-click="backQrcode">返回二维码</a>\n </div>\n <div class="qr-code-area" ms-visible="disableQrcode && disableText">\n <i class="icon-phone"></i>\n <p>{{disableText}}</p>\n <a href="javascript:void(0);" ms-on-click="backQrcode">刷新二维码</a>\n </div>\n <div class="qr-code-txt" ms-if="terms.length > 0" style="padding-top: 8px;">\n <p class="tips sub-tips">支付前阅读并同意\n <span ms-repeat="terms">\n <a href="#" ms-click="openTerm(el,$event)">{{el.termName}}</a>\n </span>\n </p>\n </div>\n</div>';return __p}},"86576783":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="coupon vouchers">\n <div ms-class-1="vouchers-choose-wrap" ms-class-2="voucher-span-center:center" ms-on-click="showCouponList(true)">\n <span><i class="icon-coupon"></i></span>\n <div id="coupon-selected" ms-class-1="vouchers-choosed:editableCoupon" style="display: inline-block;*display:inline;zoom: 1;">{{currentDesc}}<i class="icon-arrow"></i></div>\n </div>\n</div>';return __p}},"87145282":function(e,t){e.exports="price-loading-end"},"87709802":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+=' <div class="cp-header back-page" ms-on-click="back($event)">\n <div class="header-icon-first" ms-if="showBack"><i class="icon-back"></i> <span ms-if="showBackText">返回上一步</span></div>\n <h2 class="cp-header-title" ms-if="showHeaderBody">{{name}}</h2>\n</div>';return __p}},"87796589":function(e,t){e.exports={"SEND":"send","SELF":"self"}},"87998867":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div style="padding:10px 0 30px 0;line-height: 1.6;position: relative;width: 100%;z-index: 1;text-align: center;"\n class="bank-card-paying">\n <div class="info-area" style="width: 550px; margin: 0 auto;">\n <h2>\n 系统判断您当前账号可能是未成年人在使用,请配合完成人脸识别。\n <span style=\'color: #fb8c3c;\'>未通过或拒绝验证</span>\n ,该账号将被\n <span style=\'color: #fb8c3c;\'>系统判定为未成年人使用,游戏将受到限制。\n </span>\n </h2>\n <div ms-if="accountType == \'qq\'">\n <div class="qr-code-txt">\n <i class="icon-qq"></i>请使用手机QQ扫描二维码进行验证\n </div>\n <div\n style="position: relative;margin: 5px auto 10px auto; width: 170px; height: 170px;border: 1px solid #e5e5e5; border-bottom-color: #3387ef;">\n <img ms-if="url" width="150" height="150" style="margin: 9px;" ms-attr-src="url" alt="扫码进行人脸识别验证">\n <div ms-if="!url">\n <div class="qr-code-mask" style="height: 170px;"></div>\n <div class="qr-code-loading" style="padding-top: 60px;">\n <i></i>\n <p>加载中,请稍候</p>\n </div>\n </div>\n </div>\n </div>\n <div ms-if="accountType == \'wx\'">\n <div class="qr-code-txt">\n <i class="icon-wx"></i>请使用微信扫描二维码进行验证\n <div\n style="position: relative;margin: 5px auto 10px auto; width: 170px; height: 170px;border: 1px solid #e5e5e5; border-bottom-color: #00c800;">\n <img ms-if="url" width="150" height="150" style="margin: 9px;" ms-attr-src="url" alt="扫码进行人脸识别验证">\n <div ms-if="!url">\n <div class="qr-code-mask" style="height: 170px;"></div>\n <div class="qr-code-loading" style="padding-top: 60px;">\n <i></i>\n <p>加载中,请稍候</p>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="btn-wrap">\n <a type="button" class="btn btn-default" href="javascript:void(0)" ms-on-click="onConfirm">\n <span>已完成验证</span>\n </a>\n </div>\n </div>\n</div>';return __p}},"89481821":function(e,t,n){var i=n(1),o=n(86576783),s=n(121800003),a=n(10);document.body.appendChild(i.parseHTML(s()));var r=i.define({"$id":"couponlist","defaultCoupon":-1,"active":!1,"bottom":"168px","setPosition":function(e){var t=document.getElementById("coupon-selected"),n=i(t),o=document.documentElement.clientHeight-n.offset().top-n.height();r.bottom=e||o},"show":function(e){a("couponlist.display",{"action":e}),r.active=e},"handleClick":i.noop,"showCouponList":i.noop,"handleActive":i.noop,"handleNextPage":i.noop,"handlePrevPage":i.noop,"currentPage":1,"totalPages":1,"isLoading":!1,"couponList":[],"couponListInView":[]});i.scan(null,r),i.component("ms:coupon",{"$skipArray":["couponInfo","oneCoupon","selectCoupon","couponList"],"$replace":!0,"listVm":null,"couponList":[],"currentDesc":"请选择抵扣券","defaultCoupon":-1,"selectCoupon":{},"center":!1,"onInit":i.noop,"onSelect":i.noop,"onReady":i.noop,"onActiveCoupon":i.noop,"onFetchCoupon":i.noop,"onShowList":i.noop,"editableCoupon":!0,"currentPage":1,"totalPages":1,"oneCoupon":{},"$template":o(),"$init":function(e,t){e._parseCouponList.call(e,e.couponList),e.onInit.call(e,e)},"_initCouponList":function(){r.handleActive=this._handleActive.bind(this),r.handleClick=this._handleClick.bind(this),r.showCouponList=this.showCouponList.bind(this),r.handleNextPage=this._handleNextPage.bind(this),r.handlePrevPage=this._handlePrevPage.bind(this)},"showCouponList":function(e,t){if(t&&t.stopPropagation(),!e&&"mouseleave"===t.type){var n=i(document.getElementById("coupon-list-container")).innerHeight(),o=i(document.getElementById("coupon-list-container")).innerWidth();if(t.offsetX<=o&&t.offsetY<=n)return}this.editableCoupon&&(r.show(e),e&&r.setPosition(),this.onShowList(e))},"_handleClick":function(e,t){t&&t.stopPropagation();var n=!1;(e.without||e.isValid)&&e.id!=this.defaultCoupon&&(this._setDesc(e),this._setDefaultCoupon(e.id),this.selectCoupon=e,this.onSelect(e),this.showCouponList(!1,t),n=!0),a("couponlist.click",{"action":e.id,"resultinfo":{"succeed":n}})},"_setDefaultCoupon":function(e){this.defaultCoupon=e,r.defaultCoupon=e},"rebind":function(e){this._setDefaultCoupon(-1),this._parseCouponList(e),this._setDesc()},"_setDesc":function(){var e=this.selectCoupon;this.currentDesc=e&&e.id!=-1?String.format("优惠券减{price}元",{"price":e.amt}):this.editableCoupon||!this.oneCoupon?"请选择抵扣券":String.format("满{leastPrice}元可抵扣{amt}元",this.oneCoupon)},"_parseCouponList":function(e){var t=e.some(function(e,t){if(e.selected)return this._setDefaultCoupon(e.id),this.selectCoupon=e,!0}.bind(this)),n={"id":-1,"without":!0,"selected":!t};t||(this.selectCoupon=n),e.unshift(n),r.couponList=e;var i=9,o=(r.currentPage-1)*i;r.couponListInView=e.slice(o,o+9)},"_handleActive":function(e,t){t&&t.stopPropagation(),e.isLoading=!0,this.onActiveCoupon(e,function(t){e.isLoading=!1,e.isFrozen=!t,e.isValid=!e.expired&&!e.isFrozen&&!e.disable})},"_handleNextPage":function(e){if(e&&e.stopPropagation(),!r.isLoading&&r.currentPage<r.totalPages){r.currentPage++;var t=this.onNextPage.call(this,r.currentPage);t&&"function"==typeof t.then&&(r.isLoading=!0,t.then(function(){r.isLoading=!1})["catch"](function(){r.isLoading=!1,r.currentPage--}))}},"_handlePrevPage":function(e){if(e&&e.stopPropagation(),!r.isLoading){r.currentPage>1&&(r.currentPage--,this.onPrevPage.call(this))}},"onReady":function(e,t){r.totalPages=e.totalPages},"$ready":function(e,t){this.onReady(e,t),this._initCouponList(),this._setDesc(this.selectCoupon)}}),e.exports={"create":function(e){return'<ms:coupon config="'+e+'" on-select="onSelect" on-init="onInit" on-ready="onReady"></ms:coupon>'}}},"89500152":function(e,t,n){var i=(n(4),n(1)),o=n(73982165);i.component("ms:button",{"$template":o(),"$replace":!0,"text":"","subText":"","disabled":!1,"onClick":i.noop,"onMouseDown":i.noop,"onMouseUp":i.noop,"onMouseEnter":i.noop,"onMouseLeave":i.noop,"$init":function(e,t){},"$ready":function(e){e.onInit(e)},"$dispose":function(e){},"onInit":i.noop,"handleClick":function(){this.disabled||this.onClick(this)},"handleMouseDown":function(){this.disabled||this.onMouseDown(this)},"handleMouseUp":function(){this.disabled||this.onMouseUp(this)},"handleMouseEnter":function(){this.disabled||this.onMouseEnter(this)},"handleMouseLeave":function(){this.disabled||this.onMouseLeave(this)},"disable":function(){this.disabled=!0},"enable":function(){this.disabled=!1}}),e.exports={"create":function(e,t){t=t||{};var n=String.format('<ms:button on-click="{onClickMethod}"on-mouse-down="{onMouseDownMethod}"on-mouse-up="{onMouseUpMethod}"on-mouse-enter="{onMouseEnterMethod}"on-mouse-leave="{onMouseLeaveMethod}"config="{config}"></ms:button>',{"onClickMethod":t.onClickMethod||"onClick","onMouseUpMethod":t.onMouseUpMethod||"onMouseUp","onMouseDownMethod":t.onMouseDownMethod||"onMouseDown","onMouseEnterMethod":t.onMouseEnterMethod||"onMouseEnter","onMouseLeaveMethod":t.onMouseLeaveMethod||"onMouseLeave","config":e||"btnConfig"});return n}}},"89561790":function(e,t,n){var i=n(54152206),o=n(4),s=n(1),a=n(24),r=n(100835382),c=n(11),l=n(119561448),u=n(83058212),d=o.fn.getParam("sandbox"),h=(n(49140953),n(112745811)),p=n(84811753),f=n(75748174),m=n(43847285),g=n(117821206);n(68682076);var v=function(e,t,n){r.apply(this,arguments),this.isQB=h.QB==this.store.type,this.saveTimout=null,this.validTimeout=null,this.init()},y={"init":function(){if(this.initVm(),this.calculatePrice(),this.fetchTargetUin(),this.fetchAmount(),this.isDisable=this.store.isInterfaceDisabled(),this.hasLoaded=!1,!this.isDisable)return 0==this.amount?(this.disableQrcode(),this.vm.disableText="请完善充值信息",void(this.vm.showScaned=!1)):void(this.saveTimout=new c.Timeout({"time":.1,"timeUp":function(){this.saveTimout=null,"function"==typeof this.buy&&this.buy()}.bind(this)}))},"calculatePrice":function(){var e=this.store.getPrice().price;this.price=this.store.getPrice(o.discount.checkHasDiscount(e,"qqwallet")?this.channelObj.discount:void 0,this.coupon).price,this.vm.price=this.price,this.isQB&&(this.vm.savePrice=+o.math.sub(e,this.price))},"isAmountChange":function(){return this.lastAmount!=this.amount},"fetchAmount":function(){this.amount=this.vm.amount=this.store.getAmount()},"fetchTargetUin":function(){this.targetUin=this.store.getTargetInfo().uin},"disableQrcode":function(){this.vm&&(this.vm.disableQrcode=!0)},"enableQrcode":function(){this.vm&&(this.vm.disableQrcode=!1)},"getVmConfig":function(){var e=this;return o.fn.extend({"$id":"qqwallet-controller","price":this.price,"url":null,"amount":this.amount,"tips":"","showScaned":!1,"showQrcode":!0,"isDialogCreated":!1,"savePrice":0,"isQB":this.isQB,"disableQrcode":this.store.isInterfaceDisabled(),"disableText":this.store.getChannelDisableText()||"","disableGif":/1450430034/.test(location.href),"reqId":0,"qrcodeLoaded":function(){l.hide(),e.vm&&(e.vm.qrcodeLoading=!1,e.vm.qrcodeReload=!1)},"backQrcode":function(){return e.vm.disableQrcode?void e.store.emit("channelDataChange",new p(f)):(e.vm.showScaned=!1,void(e.vm.showQrcode=!0))},"qrcodeLoadFail":function(){if(l.hide(),e.vm){e.vm.qrcodeLoading=!1,e.vm.qrcodeReload=!0,e.vm.url="";try{var t=document.getElementById("qr-code-qqwallet");t&&(t.innerHTML="")}catch(n){}}},"refreshQrcode":function(){e.vm&&(e.vm.qrcodeReload=!1,e.vm.qrcodeLoading=!0,e.buy())},"qrcodeLoading":!0,"qrcodeReload":!1},this.getCouponVmConfig(),this.getTermsVmConfig(),this.getPubVmConfig())},"initVm":function(){this.vm=s.define(this.getVmConfig())},"onChange":function(e){if(e=e||{},this.refreshCoupon(),this.fetchTargetUin(),this.fetchAmount(),this.calculatePrice(),this.saveTimout&&this.saveTimout.stop(0),this.store.isInterfaceDisabled())return this.isDisable=!0,this.disableQrcode(),void(this.vm.disableText=this.store.getChannelDisableText());if(this.enableQrcode(),this.isDisable&&(this.isDisable=!1),0==this.amount)return this.disableQrcode(),this.vm.showScaned=!1,void(this.vm.disableText="请完善充值信息");this.enableQrcode(),this.vm.qrcodeLoading=!0,this.vm.qrcodeReload=!1,this.vm.showQrcode=!0,this.vm.showScaned=!1;var t="undefined"==typeof e.need_delay_save||e.need_delay_save,n=t?.7:.1;this.saveTimout=new c.Timeout({"time":n,"timeUp":function(){this.saveTimout=null,"function"==typeof this.buy&&this.buy()}.bind(this)})},"getQrcode":function(e){this.vm.qrcodeLoading=!0;var t=this.store.isContinuousMonth()&&e.qq_sign_url;this.store.continuousMonthNotSign(t);var n=t?o.fn.addParam({"_wv":1027,"pf":this.store.getPf(),"usr":this.store.getCgi().sessionObj.openid,"env":2==d?"dev":1==d?"sandbox":"live","uuid":this.uuid,"id":this.store.getAppid(),"scan":1,"su":e.qq_sign_url},"https://pay.qq.com/h5/mqqPay.shtml?"):o.fn.addParam({"_wv":1027,"app_jump":1,"t":e["token"]},"https://myun.tenpay.com/mqq/pay/index.shtml");this.getShortUrl(n,function(e){if(e&&e.status){var t=this.genQrcode(e.shortUrl,{"selector":"qr-code-qqwallet","useBackend":!this.getFrontEndAppid()});this.validTimeout=setTimeout(function(){try{this.vm.qrcodeLoadFail()}catch(e){}}.bind(this),1e3*e.validTime),null!==t?this.vm.url=t:this.vm.qrcodeLoaded()}else this.vm.qrcodeLoadFail()}.bind(this))},"buy":function(e){if(e=e||{},clearTimeout(this.validTimeout),0!=this.store.getAmount()){var t={"cft_type":"tokenid","uuid":this.uuid,"pushtype":"NodeJS","pay_method":"qqwallet:2"};this.store.params.recharge_other&&(t.qbqd_not_discount=1),this.store.isContinuousMonth()&&(t.continuous_month=1),o.fn.extend(t,e),l.show({"opacity":"0"}),this.vm.reqId++;var n=this.vm.reqId;this.store.buy(t,function(e){this.hasLoaded=!0,l.hide();try{return n!==this.vm.reqId||this.handlerBuy(e,t)}catch(i){return!0}}.bind(this))}},"handlerBuy":function(e,t){var n,i=this;if(!~~e.ret)return this.getQrcode(e.info.qqwallet_info||e.info.channel_info),setTimeout(function(){try{this.setupPooling(e)}catch(t){}}.bind(this),100),!0;n=new g({"errCode":e.ret,"errMsg":e.msg,"oriParams":t,"2022":function(){var t=i.store.getCgi().sessionObj.getSessionParam(),n=e.info;new m({"url":n.verify_url,"fk_info":n.fk_info,"fk_amt":n.fk_amt,"jiazhang_url":n.jiazhang_url,"veri_url":n.veri_url,"qrcode_url":n.qrcode_url,"cgi":i.store.getCgi(),"accountType":"wc_actoken"===t.session_type?"wx":"qq","onLoad":function(){},"onRcRestrict":function(e,t){e=e||{},i.store.rcRestrict(e,t)},"onVerifyDone":function(e){e=e||{},i.vm.qrcodeLoading=!0,i.vm.qrcodeReload=!1,i.buy(e)}})}});try{this.vm.qrcodeLoadFail()}catch(o){}return!(!n||!n.canHandle())&&(n.exec(),!0)},"setupPooling":function(e){var t,n=this;this.comet||(this.comet=new a({"uuid":this.uuid,"sandbox":~~this.store.getSandbox(),"sessionObj":this.store.getSession(),"onSuccess":function(){t&&(t.destroy(),t=null),n.reportUser("push.success"),n.store.onSuccess()},"onScan":function(){n.reportUser("scan.pv"),n.vm.showScaned=!0,n.vm.showQrcode=!1,n.store.isContinuousMonth()&&e.info.channel_info.qq_sign_url&&(n.vm.isDialogCreated||(n.vm.isDialogCreated=!0,t=u.create({"msg":"请在手机QQ上完成开通","confirmBtnTxt":"已完成","cancelBtnTxt":"重新开通","onConfirm":function(){n.reportUser("scan.confirm"),n.store.onPending({"isQuery":!0,"titleTxt":"结果查询中","billNo":e.info.channel_info&&e.info.channel_info.serialno,"portalNo":e.info.portal_serial_no,"channel":n.store.channel}),t=null},"onCancel":function(){n.reportUser("scan.cancel"),n.vm.backQrcode(),n.vm.isDialogCreated=!1,t=null}})))},"onPaying":function(){}}),this.comet.start())},"onDestroy":function(){clearTimeout(this.validTimeout),r.prototype.removeListener.call(this),this.comet&&this.comet.abort(),this.saveTimout&&this.saveTimout.stop(0),clearTimeout(this.timeOut),r.prototype.destroy.call(this),l.hide()}};o.inherits(v,r),o.fn.extend(v.prototype,y),v.create=function(e,t,n){return new v(e,t,n)},v.getTemplate=function(e){return i(e)},e.exports=v},"90130478":function(e,t,n){function i(){s.apply(this,arguments),this.orderInfo=null,this.amount=null,this.buyInfo.goodstokenurl=decodeURIComponent(this.buyInfo.goodstokenurl.indexOf("qz_goods_info")>-1||this.buyInfo.goodstokenurl.indexOf("mobile_goods_info")?this.buyInfo.goodstokenurl.replace(/qz_goods_info|mobile_goods_info/g,"web_page_info"):this.buyInfo.goodstokenurl),this.buyInfo.appid=this.buyInfo.goodstokenurl.split("/")[3],this.initCgi(),this.cgi.resetSck(this.buyInfo.appid)}var o=n(4),s=n(51768702),a=n(71545281),r=n(109735088),c=n(49140953),l=(n(112745811),n(80481457)),u=n(10),d=n(54698897);o.inherits(i,s),i.prototype.getDiscountPrice=function(e){var t=this;return new Promise(function(n,i){var s=o.fn.extend({},t.getPublicParams(),e);t.cgi.webGoodsInfo(o.fn.extend({},{"params":t.buyInfo.goodstokenurl}),s,function(e){~~e.ret?(u("webpageinfo.fail",{"resultinfo":{"code":e.ret}}),i({"ret":e.ret,"msg":e.msg||"获取订单信息失败"})):(o.discount.initNoDiscountInterval(e.info),n(e.info),u("page.data"))})})},i.prototype.getOrderInfo=function(e){var t=this;if(t.orderInfo)return void(o.lang.isFunction(e)&&e(t.orderInfo));var n=o.fn.getParam("out_trade_no",this.buyInfo.goodstokenurl);t.cgi.webGoodsInfo(o.fn.extend({},{"params":this.buyInfo.goodstokenurl}),o.fn.extend({},this.getPublicParams()),function(i){~~i.ret?(u("webpageinfo.fail",{"resultinfo":{"code":i.ret}}),o.lang.isFunction(e)&&e({"ret":i.ret,"err_code":i.err_code||"","msg":i.msg||"获取订单信息失败"})):(o.handleDisableChannel(i.info),o.discount.initNoDiscountInterval(i.info),t.orderInfo=i.info,n&&(t.orderInfo.ext_trade_no=n),r.getLoginStatus().qq||r.getLoginStatus().wechat||o.fn.each(t.orderInfo.channel,function(e,n){if(e.name==c.channels.friendpay.payMethod)return t.orderInfo.channel.splice(n,1),!1}),2===i.info.appmode?t.cgi.getCouponList({"action":"query_valid_sp_coupons","sp_status":"COUPON_MULTCOND%3B1%2CEFFECT%3B9%2CEFFECT","curpage":1,"pagesize":9},function(n){if(!~~n.ret&&t.orderInfo.mp_info){var s=o.fn.safeGet(i,"info.mp_info.unicoupon_mpinfo.recommend");t.orderInfo.mp_info.unicoupon_mpinfo=n.mp_info.unicoupon_mpinfo,t.orderInfo.mp_info.unicoupon_mpinfo_ex=n.mp_info.unicoupon_mpinfo_ex,s&&(i.info.mp_info.unicoupon_mpinfo.recommend=s)}o.lang.isFunction(e)&&e(t.orderInfo)}):o.lang.isFunction(e)&&e(t.orderInfo),u("page.data",{"resultinfo":{"appmode":i.info.appmode,"count":i.info.count,"product_name":i.info.product_name,"goodsdes":i.info.goodsdes}}))}),d.UpdateBankList(t.cgi)},i.prototype.getPayUin=function(){return this.getSession().openid+""},i.prototype.getInfo=function(){return this.orderInfo},i.prototype.setAmount=function(e){this.orderInfo.count=e},i.prototype.setDiscountPrice=function(e){this.orderInfo.discount_price=e},i.prototype.getAmount=function(){return this.orderInfo.count},i.prototype.getPrice=function(e){return this.orderInfo?a(this.orderInfo,this.getAmount(),e):null},o.fn.extend(i.prototype,{"isAllowSend":function(){return!1},"getVipInfo":function(){return l(this.orderInfo)},"openVip":function(){var e=l(this.orderInfo);if(e){var t=location.protocol+"//pay.qq.com/ipay/index.shtml";t=o.fn.addParam({"n":1,"c":e.vipCode.toLowerCase(),"aid":"pay."+this.buyInfo.pf},t);var n=location.protocol+"//ssl.ptlogin2.qq.com/jump";return n=o.fn.addParam({"clientuin":o.cookie.get("midas_openid"),"skey":o.cookie.get("midas_openkey"),
"u1":encodeURIComponent(t)},n),window.cashier.onOpenWindow?window.cashier.onOpenWindow(n):window.open(n),void setTimeout(function(){window.cashier.close()},50)}},"openServiceCloseCallback":function(){window.cashier.off("openServiceClose")},"openServiceSuccessCallback":function(){window.location.reload()}}),e.exports=new i},"90737419":function(e,t,n){var i=(n(4),n(1)),o=n(75217507),s=n(87709802);i.component("ms:header",{"$template":o(),"$$template":function(e){return"month"==e?o():s()},"$skipArray":["logo","alt","name","showHeaderBody","showBack","showClose"],"$replace":!0,"logo":null,"alt":null,"name":null,"checked":!0,"showHeaderBody":!0,"showBack":!0,"showClose":!0,"onAgreeRule":i.noop,"onClose":i.noop,"onBack":i.noop,"onClickService":i.noop,"$ready":function(e){i.log("ready")},"handleClickRuler":function(e){e.stopPropagation(),this.checked=!this.checked,this.onAgreeRule(this.checked)},"handleClickService":function(e,t){e.stopPropagation(),this.onClickService()},"agreeRule":function(){this.onAgreeRule(this.checked)},"close":function(){this.onClose()},"back":function(){this.onBack()}}),e.exports={"create":function(e,t){return t=t,String.format('<ms:header config="{dataName}" on-close="{onClose}" on-back="{onBack}" on-agree-rule="{onAgreeRule}" on-click-service="{onClickService}"></ms:header>',{"dataName":e,"onAgreeRule":t.onAgreeRule,"onClickService":t.onClickService,"onClose":t.onClose,"onBack":t.onBack})}}},"97501907":function(e,t,n){var i=n(4),o=n(1),s=n(115878448);o.component("ms:radiogroup",{"$template":s(),"radioList":[],"$replace":!0,"radioId":"","index":null,"onChange":o.noop,"$init":function(e,t){e.radioId=i.fn.uuid(),e.$watch("index",function(t){e.onChange(e.radioList[e.index],e.index)})},"fireOninit":function(){var e=this;null!==e.index&&"undefined"!=typeof e.index&&""!==e.index&&e.onChange(e.radioList[e.index],e.index)},"handleClick":function(e,t){t.stopPropagation(),this.index==e&&this.onChange(this.radioList[this.index],this.index),this.index=e},"$dispose":function(e){e.$unwatch()},"getChecked":function(){return this.radioList[this.index]}}),e.exports={"create":function(e,t){return t=t||{},String.format('<ms:radiogroup config="{config}" on-change="{onChange}"></ms:radiogroup>',{"config":e||"radioGroupConfig","onChange":t.onChangeMethod||"onChange"})}}},"98010485":function(e,t,n){var i=n(47721167),o=function(e,t,n,o){var s={};return o&&"credit"!=o||!n["credit"]||!n["credit"]["bank"]||n["credit"]["bank"]!=e?o&&"debit"!=o||!n["debit"]||!n["debit"]["bank"]||n["debit"]["bank"]!=e||(s.bankName=n.name,s.cardTypeName=i.CardTypeDesc["debit"],s.bank=t,s.curCardType="debit",s.curPayType="bank"):(s.bankName=n.name,s.cardTypeName=i.CardTypeDesc["credit"],s.bank=t,s.curCardType="credit",s.curPayType="bank"),s};e.exports=function(e,t){var n={};n=e&&1==e.split("_")[2]?window.__B2B_BANK_CONFIG:window.__BANK_CONFIG;var s={};return n&&e?(avalon.each(n,function(n,i){return s=o(e,n,i,t),!s.bank}),e&&1==e.split("_")[2]?(s.bankTypeName=i.BankTypeDesc["B2B"],s.curBankType=i.BankType["B2B"]):(s.bankTypeName=i.BankTypeDesc["B2C"],s.curBankType=i.BankType["B2C"]),s):s}},"98039766":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div id="_cp__load__" class="mdsweb-loading-wrapper loading_middle" style="background-color:transparent; z-index:9995">\n <div class="mdsweb-loading">\n <div class="dot"></div>\n <div class="dot"></div>\n <div class="dot"></div>\n </div>\n</div>';return __p}},"99020476":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div>\n <div class="access-login-box">\n <i class="login-item-back" id="login-item-back" ms-click="handleClose"></i>\n <iframe id="access-login-frame" frameborder="0" scrolling="no" width="100%" height="100%" ms-attr-src="src"></iframe>\n </div>\n <div class="access-login-mask"></div>\n</div>\n';return __p}},"99039043":function(e,t,n){n(57188951);var i=n(1),o=n(4),s=n(12),a=n(107544357),r=n(10),c=n(109735088),l=r.Performance,u=n(17),d=n(76686721)("animation"),h=n(72876602),p=n(76511707),f=n(18),m=o.fn.getParam("source_from"),g=(n(19),n(112745811),n(49140953));r("pv",m?{"resultinfo":{"source":m}}:{}),r.user.action("page","order",m?{"source":m}:{}),l.userTrace("timer.js.exec",{"startTime":__startTime}),n(3);var v=function(){this._handlers={},this.vm=null,this.currentPage="order",this.orderHeight=173,this.skin=o.fn.getParam("skin"),this.fakeSubChannel=!1,this.from=m;var e=o.fn.getParam("resultAction");this.showInnerHeader="1"===o.fn.getParam("show_header"),this.actionType=!this.showInnerHeader||"back"!=e&&"refresh"!=e?"":"refresh"};o.fn.each(f,function(e,t){"function"==typeof e&&(v.prototype[t]=e)}),o.fn.extend(v.prototype,{"constructor":v,"back":function(){this.vm&&"order"==this.vm.currentComponent&&!this.fakeSubChannel?u.notify("close"):s.back()},"go":function(e,t){s.go(e,t)},"render":function(){this.vm=i.define(this.loadVMConfig())},"run":function(e,t){var n=this.vm,i=this;u.register("close",function(){r.user.action("close","close.click",h.toJSON())},this),u.register("goback",function(){"order"!=n.currentComponent||i.fakeSubChannel?i.back():u.notify("close")}),c.checkLoginInUrl(function(n){if(n&&n.errorLoginParams){var o={"displayInfo":g.TEXT.INVALIDLOGIN,"status":"error","cgi":{},"session":{},"modifyTitle":!1,"actionType":this.actionType,"buttonTxt":"确定","res":{"ret":1018,"msg":"登录校验失败","err_code":""}};i.go("result",o)}else i.go(e||"order",t)}),l.reportPerformance(),document.body.setAttribute("inited","1"),this.reportAdBlock(),this.loadXMidas(),"string"==typeof window._checkCompatibleRes&&window._checkCompatibleRes&&r("checkCompatibleRes",{"resultinfo":{"info":window._checkCompatibleRes}})},"reportAdBlock":function(){var e="";"adguardButton"in window&&(e="adguardAPP"),e&&r("req.block.risk",{"resultinfo":{"name":e}})},"loadXMidas":function(){var e=document.getElementById("xMidasToken").value;if(!e)return r("xmidas.no.token");try{a.initXMidas()}catch(t){console.error(t)}},"showBackBtn":function(e){u.notify(e?"showBackBtn":"hideBackBtn"),this.showInnerHeader&&this.trigger("InnerHeader",{"page":this.currentPage,"isShow":e})},"changePage":function(e,t){var n=this.vm,i=this,o=n.currentComponent;d.add(function(s){var a=function(){t&&t(),s&&s()};p(o,e,n,{"h0":i.orderHeight,"h1":90},a)}),d.run()},"loadVMConfig":function(){return{"$id":"app","$skipArray":["currentComponent","fakeSubChannel"],"currentComponent":null}}}),v.loadVM=function(e,t,n){try{t?e.onResult&&e.onResult(n):e.onInit&&e.onInit(n)}catch(i){}},e.exports=v},"99186575":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div>\n <div style="position:absolute;top:50%;left:50%;z-index:9999;margin-left:-240px;margin-top:-80px;width:480px;" class="bank-card-paying">\n <p ms-html="msg"></p>\n <div class="btn-wrap">\n <button type="button" ms-visible="!hideCancel" class="btn btn-primary" ms-on-click="handleCancel">{{cancelBtnTxt}}</button>\n <button type="button" class="btn btn-default" ms-on-click="handleConfirm">{{confirmBtnTxt}}</button>\n </div>\n </div>\n <div id="_cp_confirm__mask__" style="width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; z-index: 5; opacity: 0; display: none;zoom: 1; *zoom:1;filter: alpha(opacity=0)"></div>\n</div>\n';return __p}},"99560243":function(e,t,n){var i=n(72074753);e.exports={"qbCount":60,"monthCount":1,"MaxViewSerivce":2,"canAutoPayChannels":[i.QBQD,i.QDQB,i.KJ],"qbDiscountChannels":[i.KJ,i.QQWALLET],"qbLogo":"//midas.gtimg.cn/midas/images/logo/qb/90.png","monthLogo":"//midas.gtimg.cn/h5pay/images/ico-month.png","ruleURL":"//www.qq.com/contract.shtml"}},"100216969":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div style="padding:10px 0 30px 0;line-height: 1.6;position: relative;width: 100%;z-index: 1;text-align: center;" class="bank-card-paying">\n <div class="info-area" style="width: 550px; margin: 0 auto;">\n <h2 style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;检测到你的<span style="padding: 0 .05rem;color: #47d998;">认证信息不全</span>,为满足法律法规和主管部门要求,保护您的合法权益,我们需要获取您的姓名和身份信息进行实名认证。在您认证通过前,将可能影响应用充值,请尽快完善信息。</h2>\n <div ms-if="accountType == \'qq\'">\n <div class="qr-code-txt">\n <i class="icon-qq"></i>请使用手机QQ扫描二维码进行验证\n </div>\n <div style="position: relative;margin: 5px auto 10px auto; width: 170px; height: 170px;border: 1px solid #e5e5e5; border-bottom-color: #3387ef;">\n <img ms-if="url" width="150" height="150" style="margin: 9px;" ms-attr-src="url" alt="扫码进行实名认证">\n <div ms-if="!url">\n <div class="qr-code-mask" style="height: 170px;"></div>\n <div class="qr-code-loading" style="padding-top: 60px;">\n <i></i>\n <p>加载中,请稍候</p>\n </div>\n </div>\n </div>\n </div>\n <div ms-if="accountType == \'wx\'">\n <div class="qr-code-txt">\n <i class="icon-wx"></i>请使用微信扫描二维码进行验证\n <div style="position: relative;margin: 5px auto 10px auto; width: 170px; height: 170px;border: 1px solid #e5e5e5; border-bottom-color: #00c800;">\n <img ms-if="url" width="150" height="150" style="margin: 9px;" ms-attr-src="url" alt="扫码进行实名认证">\n <div ms-if="!url">\n <div class="qr-code-mask" style="height: 170px;"></div>\n <div class="qr-code-loading" style="padding-top: 60px;">\n <i></i>\n <p>加载中,请稍候</p>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="btn-wrap">\n <a type="button" class="btn btn-default" href="javascript:void(0)" ms-on-click="onConfirm">\n <span>已完成认证</span>\n </a>\n </div>\n </div>\n</div>';return __p}},"100835382":function(e,t,n){function i(e,t,n){n=n||{},this.opts=n,this.store=e,this.channelObj=t,this._lock=!1,this._handlers={},this.refreshUuid(),this.coupon=null,this.couponVm=null,this.mode=n.mode||i.MODE.COMPLETE,this.addListener(),this.addCouponRefreshListener(),this.addPriceLoadingListener()}var o=n(4),s=n(18),a=n(119561448),r=n(10),c=n(102521382),l=n(49140953),u=n(87796589),d=n(72074753),h=n(21),p=n(101127449),f=n(89481821),m=n(23),g=n(112745811),v=n(84811753),y=n(72658078),_=n(103146681),b=n(87145282),w={"1450008610":1,"1450007773":1,"1450007826":1},C=o.fn.getParam("inApp"),k=n(17);o.fn.extend(i.prototype,s),o.fn.extend(i.prototype,{"addCouponRefreshListener":function(){var e=this,t=function(){e.refreshCoupon()};this.store.on("refreshCoupon",t),this.removeCouponRefreshListener=function(){e.store.off("refreshCoupon",t),e.vm&&e.vm.couponHTML&&(e.vm.couponHTML="")}},"addPriceLoadingListener":function(){var e=this,t=function(t){e.handlePriceLoading(t)};this.store.on("priceLoading",t),this.removePriceLoadingListener=function(){e.store.off("priceLoading",t),e.vm&&e.vm.priceLoadingTplHtml&&(e.vm.priceLoading=!1,e.vm.priceLoadingTplHtml="")}},"calculatePrice":function(){var e=this.getOriginPrice();this.price=this.store.getPrice(o.discount.checkHasDiscount(e,this.channelObj.channel)?this.channelObj.discount:void 0,this.coupon).price,this.vm&&(this.vm.price=this.price)},"getFrontEndAppid":function(){return w[this.store.getAppid()]},"getDiscount":function(){return 1},"lock":function(){this._lock=!0},"unlock":function(){this._lock=!1},"isLocked":function(){return this._lock},"onChange":o.fn.emptyFunc,"removeListener":function(){this.removeListener()},"removeCouponRefreshListener":function(){this.removeCouponRefreshListener()},"removePriceLoadingListener":function(){this.removePriceLoadingListener()},"report":function(e,t){r(String.format("{channel}.{iformat}",{"channel":this.channelObj.channel,"iformat":e}),t)},"reportUser":function(e,t){r.user.action("channel.click",String.format("{channel}.{action}",{"channel":this.channelObj.channel,"action":e}),t)},"destroy":function(){this.removeCouponRefreshListener(),this.removePriceLoadingListener();for(var e in this)"destroy"!=e&&(this[e]=null)},"getOriginPrice":function(){var e=o.math.toDecimal(this.store.getPrice().price,2);return parseFloat(e)},"getProductId":function(){return g.MONTH==this.store.type?this.store.getProductId():""},"refreshCoupon":function(){var e=this.getChannelCoupons();this.vm&&(this.vm.coupon=e.length>0),this.couponVm?this.couponVm.rebind(e):this.vm&&(this.vm.couponConfig.couponList=e)},"isSupportCoupon":function(){var e=this.channelObj.channel,t=l.channels[e].visibleCoupon,n=this.store.getPayFor()==u.SELF;return n&&this.store.supportCoupon()&&t&&t.length>0&&t.indexOf(this.store.type)>-1},"getChannelCoupons":function(){var e=this.channelObj.channel,t=[];if(this.isSupportCoupon()){var n=this.store.getCouponList();if(n.setPayOptions({"channel":e,"price":this.getOriginPrice(),"productId":this.getProductId()}),n.hasValidCoupon()){var i,o=n.getAllCoupons(),s=null,a=null,r=this.store.editableCoupon();if(r){var c=this.store.getGlobalCoupon();if(this.useSelect)s=i=c?c.getId():null,this.useSelect=!1;else{i=c?c.getId():null;var l=this.store.getDefaultCouponId();!i&&l&&("1"==l?(a=n.recommend(),i=a?a.getId():null):i=l),s=i}}else i=this.store.getDefaultCouponId(),"1"==i&&(a=n.recommend(),i=a?a.getId():null),s=i;n.cancelAll(),s&&n.select(s);var u=n.getSelectedCoupons();u.length>0&&u[0].isValid()?(this.coupon=u[0],this.store.setGlobalCoupon(u[0])):(this.coupon=null,this.store.setGlobalCoupon(null)),o.forEach(function(e,n){!e.isChannelMismatch()&&(r||e.getId()==s&&e.isValid())&&t.push(this.convertCouponToJSON(e))}.bind(this))}}return t},"convertCouponToJSON":function(e){var t=e.getTips();return t||!e.isChannelSpecial()&&!e.isProductMismatch()||(t="专属"),{"disable":e.isDisable(),"id":e.getId(),"isValid":e.isValid(),"tips":t,"expired":e.isExpired(),"isLoading":!1,"selected":e.isValid()&&e.getSelected(),"amt":e.getAmt(),"name":e.getName(),"desc":e.getDescription(),"endDate":e.getEndDate(),"leastPrice":e.getLeastPrice(),"isFrozen":e.isFrozen()}},"fetchCoupon":function(){if(this.store.type==g.GOODS&&this.store.info.sp_info)return Promise.resolve();var e=this,t=this.store.getCouponList();return t.fetch().then(function(){"function"==typeof e.refreshCoupon&&e.refreshCoupon()})},"handlePriceLoading":function(e){if(!(e instanceof v))throw Error("action must be instance of Action");switch(e.getType()){case _:this.vm&&(this.vm.priceLoading=!0),this.lock();break;case b:this.vm&&(this.vm.priceLoading=!1),this.unlock()}},"getCouponVmConfig":function(){this.coupon=null;var e=this,t=this.getChannelCoupons();return{"couponHTML":'<ms:coupon config="couponConfig" on-select="onCouponSelect" on-init="onCouponInit" on-active-coupon="onActiveCoupon" on-prev-page="onPrevPage" on-next-page="onNextPage" on-show-list="onShowList"></ms:coupon>',"coupon":t.length>0,"onCouponInit":function(t){e.couponVm=t,e.couponVm.totalPages=e.store.getTotalPages(),e.fetchCoupon(),f.create({"totalPages":e.store.getTotalPages()})},"onShowList":function(e){},"onActiveCoupon":function(t,n){var i=e.store.getCouponList();e.report("coupon.active",{"action":t.id}),i.activate(i.getCouponFromId(t.id)).then(function(i){var o=i.success;e.report("coupon.active."+(o?"success":"failed"),{"action":t.id}),n(o),o||p({"content":"激活失败,稍候再试"})})},"onCouponSelect":function(t){var n=null;t&&t.isValid&&(n=e.store.getCouponList().getCouponFromId(t.id)),(!!n^!!e.coupon||n&&e.coupon&&n.getId()!=e.coupon.getId())&&(e.coupon=n,e.store.setGlobalCoupon(n),e.useSelect=!0,e.store.emitChange())},"onNextPage":function(t){e.report("coupon.nextpage");var n=e.store.getCouponList(),i=9,o=Math.min((t+1)*i-1,e.store.getTotalCouponCount()),s=o>n.coupons.length;return s?e.fetchCoupon():e.refreshCoupon()},"onPrevPage":function(){e.report("coupon.prevpage"),e.refreshCoupon()},"couponConfig":{"oneCoupon":t.length>0?t[0]:null,"editableCoupon":this.store.editableCoupon(),"center":[d.QQWALLET,d.WECHAT].indexOf(this.channelObj.channel)>-1,"couponList":t}}},"getTermsList":function(){var e=this.store.info.offer_id,t={"1450000186":[{"term":"https://www.qq.com/contract.shtml","termName":"Q币充值用户条例"}]};if(window.__midasStaticConfig_ipay_pcgame_sidebar&&window.__midasStaticConfig_ipay_pcgame_sidebar.itemMap){var n=window.__midasStaticConfig_ipay_pcgame_sidebar.itemMap;for(_key in n){var i=n[_key];i.term&&(t[i.appid]=[{"term":i.term,"termName":i.homeName+"用户条例"}])}}if(window.__midasStaticConfig_ipay_month_sidebar&&window.__midasStaticConfig_ipay_month_sidebar.itemMap){var n=window.__midasStaticConfig_ipay_month_sidebar.itemMap;for(_key in n){var i=n[_key]||{},o=i.terms||[];t[i.appid]=o.filter(function(e){return e.termName&&e.term})}}return t[e]&&t[e].length?t[e]:this.store.info&&this.store.info.month_info&&this.store.info.month_info.service_provision?[{"term":this.store.info.month_info.service_provision,"termName":"用户条例"}]:[]},"getTermsVmConfig":function(){var e=this.getTermsList();return{"terms":e,"openTerm":function(e,t){t.stopPropagation(),t.preventDefault(),"1"!=C?o.openWindow(e["term"]):k.openWindow(e["term"])}}},"getPubVmConfig":function(){return{"priceLoading":!1,"priceLoadingTplHtml":y()}},"addListener":function(){var e=this;this.removeListener=this.store.addListener(function(t){e.onChange(t)})},"isSupportCanvas":function(){return"undefined"!=typeof CanvasRenderingContext2D},"getShortUrl":function(e,t,n){var i=600;return h.isProduction||n?void this.store.getCgi().getQrcode({"a":"get_short_url","url":encodeURIComponent(e)},function(e){t(~~e.ret?{"status":!1,"res":e}:{"status":!0,"validTime":i,"shortUrl":this.store.getCgi().getQrcode({"a":"l","t":o.fn.getParam("t",e.result_url)}),"res":e})}.bind(this)):t({"status":!0,"validTime":i,"shortUrl":e})},"genQrcode":function(e,t){t=t||{};this.store.getParams();if(h.isProduction||(t.useBackend=!0),this.isSupportCanvas()&&!t.useBackend&&t.selector){var n=document.getElementById(t.selector);if(n)try{n.style.display="",n.innerHTML="";var i=new m(n,{"width":120,"height":120,"correctLevel":m.CorrectLevel.M});return i.clear(),i.makeCode(e),this.report("jsqrcode",{"resultinfo":{"status":"succ"}}),null}catch(s){this.report("jsqrcode",{"resultinfo":{"status":"fail","err":s.message}})}}var a={"size":"120","url":encodeURIComponent(e),"t":(new Date).getTime()};return(h.isProduction||t.useOrig)&&(a.orig="1"),o.fn.addParam(a,String.format("//pay.qq.com/cgi-bin/account/get_qr_image.cgi",{"domain":h.isProduction?"":"sandbox."}))},"secondLoginIsInvalid":function(e){return["146","1905"].indexOf(String(e))>-1},"showQQLoginBox":function(e){var t=this;e=o.fn.extend({"onClose":avalon.noop,"onSuccess":avalon.noop},e||{}),c.init(function(){c.setCallBack({"onSuccess":function(){e.onSuccess.call(t)},"onClose":function(){e.onClose.call(t)}}),c.show()})},"refreshUuid":function(){this.uuid=o.fn.uuid()},"showMask":function(){a.show({"opacity":"0"})},"hideMask":function(){a.hide()}}),i.MODE={"SIMPLE":"simple","COMPLETE":"complete","NEW_PAGE_PAY":"new_page_pay","NEW_PAGE_CHARGE":"new_page_charge"},e.exports=i},"101080109":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<p ms-html="info"></p>';return __p}},"101127449":function(e,t,n){var i=n(1),o=n(4),s=null,a="_cp__toast__";Toast={"show":function(e){var e=e||{};if(s=document.getElementById(a),!s){var t=i.parseHTML('<div class="pop-tips" id="'+a+'"></div>');e.container?e.container.appendChild(t):document.body.appendChild(t),s=document.getElementById(a)}i(s).css({"display":"block","z-index":e.zIndex||5001}),s.innerHTML=e.content||"无内容"},"hide":function(){s&&i(s).css({"display":"none"})},"remove":function(){document.body.removeChild(document.getElementById(a))}},e.exports=function(e){Toast.show(e),o.delayRun("toast",function(){Toast.hide()},3e3)}},"101670216":function(e,t,n){var i=n(4),o=i.fn.getParams();e.exports={"urlParams":o,"getQQAppid":function(){return o.qqAppid}}},"102521382":function(e,t,n){var i=n(1),o=n(10);window.__loginCallBack=function(){a._onSuccess(),a.hide()};var s=!1,a={"_onSuccess":function(){},"setCallBack":function(e){var t=window.pt,n=window.location.protocol+"//"+window.location.host+"/midas/minipay_v2/views/public/pt_proxy.shtml",i={"appid":11000101,"s_url":n,"style":21,"hide_close_icon":e.hideClose?1:0,"protocol":location.protocol,"border_radius":1,"target":"self","maskOpacity":40};e.daid&&(i.daid=e.daid),t.setParams(i),t.setCallback("close","function"==typeof e.onClose?e.onClose:function(){}),this._onSuccess=e.onSuccess,o("ptlogin.pv",{"resultinfo":{"daid":e.daid||0}})},"_setSize":function(){var e=400,t=382,n=document.getElementById("ui_ptlogin"),o=n.parentNode;n&&o&&(i(o).css({"width":e,"height":t,"top":"50%","left":"50%","position":"absolute","margin-top":-t/2,"margin-left":-e/2,"display":"block"}),setTimeout(function(){o.style.top="50%"},100))},"show":function(){pt.showPtui(),this._setSize()},"hide":function(){pt.hidePtui(),this._onSuccess=function(){}},"logout":function(e){pt.logout(e)},"init":function(e){return s?void e():void i.getScript(location.protocol+"//xui.ptlogin2.qq.com/js/ptlogin_v1.js",function(){s=!0,e()})}};e.exports=a},"102987497":function(e,t,n){function i(e,t){var n,i=t.inner_productid,s=t.product_id,a=t.open_days,r=t.currency_amt;if(r=1*r,a=1*a,e&&e.rule_item){var c=e.rule_item,l=e.rank_type,u=c.filter(function(e){return e.service_code&&e.service_code.split(",").indexOf(i)!==-1});if(u.length){var d=u.filter(function(e){return e.product_id&&e.product_id.split(",").indexOf(s)!==-1});if(d.length?n=d[0]:(d=u.filter(function(e){return"*"===e.product_id}),d.length&&(n=d[0])),n){var h=!1;if("1"===n.pricingwithrank&&o.lang.isArray(n.present_item)){var p=n.present_item;if("single"===l)p.forEach(function(e){1*e.num===a&&(h=!0)});else if("range"===l){p.sort(function(e,t){return e<t});for(var f=p.length-1;f>=0;f--){var m=p[f];if(a>=1*m.num){h=!0;break}}}h||(n=null)}n&&"1"===e.has_qualify_filter&&"1"!==e.MatchMonthStatus&&(h&&"1"===n.monthstatusblock,n=null)}if(n&&"fixed"===n.discount_type&&/\d+\/\d+/.test(String(n.discount))&&(n.discount_type="fraction"),n&&"fixed"===n.discount_type&&n.discount>0&&n.discount<100)r*=n.discount/100;else if(n&&"fraction"===n.discount_type){var g=n.discount.split("/").map(function(e){return parseFloat(e)});r=r*g[0]/g[1]}else if(n&&"unfixed"===n.discount_type)for(var v=n.discount.split(";").map(function(e){return e.split(":")}),f=0;f<v.length;f++){var m=v[f],y=m[0];if(1*y===a){var _=m[1];if("*"===_||_.split("|").indexOf(String(r))!==-1){r=1*m[2];break}}}}}return{"price":r,"extend":n&&n.extend_info?o.fn.getParams(decodeURIComponent(n.extend_info||"")):{}}}var o=n(4);e.exports={"drmDiscount":i}},"103146681":function(e,t){e.exports="price-loading-begin"},"103220717":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="coupon" >\n <span ms-visiable="label"><i class="icon-coupon"></i> {{label}}</span>\n <div class="coupon-select" style="z-index: 1000" ms-css-width="width" ms-on-mouseenter="showList(\'true\')" ms-on-mouseleave="showList(\'false\')" ms-class="open:isShow">\n <div class="coupon-selected">{{value.name}} <i class="icon-more-arrow"></i></div>\n\n <div class="coupon-options" ms-css-width="width" style="z-index: 1000">\n\n <!--<div class="option" ms-repeat="data" ms-on-click="select(el)" ms-class="option-dont:$index==data.length-1">-->\n <!--<p>{{el.name}}</p>-->\n <!--<span>{{el.desc}}</span>-->\n <!--</div>-->\n <div class="option" ms-repeat="data" ms-on-click="select(el)" ms-class-1="option-dont:el.dont">\n <p ms-if="!el.dont">{{el.name}}</p>\n <span ms-if="!el.dont">{{el.desc}}</span>\n {{el.dont? el.name:\'\'}}\n </div>\n </div>\n </div>\n</div>\n\n';return __p}},"104011899":function(e,t){e.exports="provideuin-change"},"104130588":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="prop prop-brief">\n <div class="prop-brief-info">\n <span>购买{{goodsName}}</span>\n </div>\n <em class="total-price-in-brief">{{price}}</em>\n <div class="prop-price">元</div>\n</div>';return __p}},"104491903":function(e,t){e.exports="back-button"},"104500419":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<label>\n<input ms-class-1="{{defaultClass}}" ms-class-2="warn:state==1" ms-class-3="{{extraClass}}" ms-class-4="focus:isFocused" type="text" ms-attr-id="id"\n ms-duplex="value"\n ms-attr-placeholder="placeholder"\n ms-on-blur="handleBlur"\n ms-on-focus="handleFocus"\n/>\n</label>';return __p}},"104708884":function(e,t,n){var i=n(116820311),o=n(4),s=n(1),a=n(100835382),r=n(24),c=n(11),l=n(119561448),u=(o.fn.getParam("sandbox"),n(49140953),n(112745811)),d=n(84811753),h=n(75748174),p=n(43847285),f=n(117821206);n(68682076);var m=function(e,t,n){a.apply(this,arguments),this.isBuying=!1,this.firstBuy=!0,this.saveTimout=null,this.validTimeout=null,this.init()},g={"init":function(){if(this.initVm(),this.calculatePrice(),this.fetchTargetUin(),this.fetchAmount(),this.isDisable=this.store.isInterfaceDisabled(),this.hasLoaded=!1,!this.isDisable)return 0==this.amount?(this.disableQrcode(),this.vm.disableText="请完善充值信息",void(this.vm.showScaned=!1)):void(this.saveTimout=new c.Timeout({"time":.7,"timeUp":function(){this.saveTimout=null,"function"==typeof this.buy&&this.buy()}.bind(this)}))},"calculatePrice":function(){var e=this.store.getPrice().price;this.price=this.store.getPrice(o.discount.checkHasDiscount(e,"friendpay")?this.channelObj.discount:void 0).price,this.vm.price=this.price},"fetchAmount":function(){this.amount=this.store.getAmount()},"fetchTargetUin":function(){this.targetUin=this.store.getTargetInfo().uin},"onChange":function(){return this.fetchTargetUin(),this.fetchAmount(),this.calculatePrice(),this.saveTimout&&this.saveTimout.stop(0),this.store.isInterfaceDisabled()?(this.isDisable=!0,this.disableQrcode(),void(this.vm.disableText=this.store.getChannelDisableText())):(this.enableQrcode(),this.isDisable&&(this.isDisable=!1),0==this.amount?(this.disableQrcode(),this.vm.showScaned=!1,void(this.vm.disableText="请完善充值信息")):(this.vm.qrcodeLoading=!0,this.vm.qrcodeReload=!1,this.vm.showQrcode=!0,this.vm.showScaned=!1,void(this.saveTimout=new c.Timeout({"time":.7,"timeUp":function(){this.saveTimout=null,"function"==typeof this.buy&&this.buy()}.bind(this)}))))},"disableQrcode":function(){this.vm&&(this.vm.disableQrcode=!0)},"enableQrcode":function(){this.vm&&(this.vm.disableQrcode=!1)},"getVmConfig":function(){var e=this;return o.fn.extend({"$id":"friendpay-controller","price":this.price,"url":null,"showScaned":!1,"showQrcode":!0,"disableQrcode":this.store.isInterfaceDisabled(),"disableText":this.store.getChannelDisableText()||"","gotonext":function(){},"backQrcode":function(){return e.vm.disableQrcode?void e.store.emit("channelDataChange",new d(h)):(e.vm.showQrcode=!0,void(e.vm.showScaned=!1))},"qrcodeLoaded":function(){l.hide(),e.vm&&(e.vm.qrcodeLoading=!1,e.vm.qrcodeReload=!1)},"qrcodeLoadFail":function(){if(l.hide(),e.vm){e.vm.qrcodeLoading=!1,e.vm.qrcodeReload=!0,e.vm.url="";try{var t=document.getElementById("qr-code-friendpay");t&&(t.innerHTML="")}catch(n){}}},"refreshQrcode":function(){e.vm&&(e.vm.qrcodeReload=!1,e.vm.qrcodeLoading=!0,e.buy())},"fail":function(){e.vm.qrcodeLoaded(),e.vm.url=""},"qrcodeLoading":!0,"qrcodeReload":!1},this.getPubVmConfig())},"initVm":function(){this.vm=s.define(this.getVmConfig())},"getQrcode":function(e){var t=this.store.cgi.sessionObj,n={"tk":e.token,"type":this.store.opts.type===u.GAME?"game":this.store.opts.type,"pf":this.store.params.pf,"env":this.store.params.sandbox,"ofi":this.store.params.appid,"or_oi":t.openid,"or_si":t.sessionid,"or_st":t.sessiontype,"uuid":this.uuid,"sv_ex":encodeURIComponent(o.req.serializeParam({"biz_appid":this.store.getWxAppid(),"change_wx_openid":this.store.params.change_wx_openid,"token_store_type":e.token_store_type}))};o.fn.extend(n,o.fn.getParams(decodeURIComponent(this.store.params.friendPayExtend)));var i=o.fn.addParam(n,"https://pay.qq.com/webpay-h5/views/friend.html");this.getShortUrl(i,function(e){if(e&&e.status){var t=this.genQrcode(e.shortUrl,{"selector":"qr-code-friendpay","useBackend":!this.getFrontEndAppid()});this.validTimeout=setTimeout(function(){try{this.vm.qrcodeLoadFail()}catch(e){}}.bind(this),1e3*e.validTime),null!==t?this.vm.url=t:this.vm.qrcodeLoaded()}else this.vm.qrcodeLoadFail()}.bind(this))},"buy":function(e,t){if(e=e||{},clearTimeout(this.validTimeout),this.firstBuy=!1,0!=this.store.getAmount()){var n={"biz_appid":this.store.getWxAppid(),"uuid":this.uuid,"pay_method":this.channelObj.channel,"pushtype":"NodeJS"};o.fn.extend(n,e),l.show({"opacity":"0"}),this.vm.qrcodeReload=!1,this.vm.qrcodeLoading=!0,this.store.buy(n,function(e){this.hasLoaded=!0,l.hide();try{return this.handlerBuy(e,n)}catch(t){return!0}}.bind(this))}},"handlerBuy":function(e,t){var n,i=this;if(!~~e.ret)return this.getQrcode(e.info||{}),setTimeout(function(){try{this.setupPooling()}catch(e){}}.bind(this),100),!0;n=new f({"errCode":e.ret,"errMsg":e.msg,"oriParams":t,"2022":function(){var t=e.info;new p({"url":t.verify_url,"fk_info":t.fk_info,"fk_amt":t.fk_amt,"onLoad":function(){},"onRcRestrict":function(e,t){e=e||{},i.store.rcRestrict(e,t)},"onVerifyDone":function(e){e=e||{},i.vm.qrcodeLoading=!0,i.vm.qrcodeReload=!1,i.buy(e)}})}});try{this.vm.qrcodeLoadFail()}catch(o){}return!(!n||!n.canHandle())&&(n.exec(),!0)},"setupPooling":function(){var e=this;this.comet||(this.comet=new r({"uuid":this.uuid,"sandbox":~~this.store.getSandbox(),"sessionObj":this.store.getSession(),"onSuccess":function(){e.reportUser("push.success"),e.store.onSuccess()},"onScan":function(){e.reportUser("scan.pv"),e.vm.showScaned=!0,e.vm.showQrcode=!1},"onPaying":function(){}}),this.comet.start())},"onDestroy":function(){clearTimeout(this.validTimeout),a.prototype.removeListener.call(this),this.comet&&this.comet.abort(),this.saveTimout&&this.saveTimout.stop(0),a.prototype.destroy.call(this),this.vm=null,l.hide()}};o.inherits(m,a),o.fn.extend(m.prototype,g),m.create=function(e,t,n){return new m(e,t,n)},m.getTemplate=function(e){return i(e)},e.exports=m},"104911180":function(e,t){e.exports={"FIX":"unit_price","UNFIX":"price_list","CUSTOM":"custom"}},"105875273":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="qb-controller">\n <!--<div class="left-money" id="qb_left_money_container">-->\n <!--<a class="query-left-money" href="javascript:;" ms-click="queryBalance">查询余额</a>-->\n <!--</div>-->\n\n <div class="coupon" ms-if="goldCouponConfig">\n <ms:dropdown config="goldCouponConfig"></ms:dropdown>\n </div>\n <div class="coupon" ms-if="coupon&&typeof goldCouponConfig==\'undefined\'" ms-html="couponHTML"></div>\n <div ms-if="showBalance" class="left-money" style="position: static">\n <p class="tips sub-tips query-after">账户余额: <em>{{balance}}</em> Q币<span ms-if="uin">({{uin}})</span></p>\n </div>\n\n <div class="left-money-warn" ms-if="balanceNotEnough">\n <p>\n <i class="icon-error"></i>Q币余额不足\n <span ms-if="!hideBalance">余额:<em class="left-money-em">{{balance}}</em>Q币</span>\n </p>\n <p class="tips sub-tips" ms-if="!hideBalance">还需<em>{{diff}}</em>Q币,请先去充值,或选择其他支付方式</p>\n </div>\n <div ms-if="showAutoTips" style="margin-bottom: 10px">\n <div class="form-group checkbox-box" ms-class="checked:autoPay">\n <label for="checkbox1"><input id="checkbox1" type="checkbox" />\n <div ms-on-click="autoHandle()">\n <i class="icon-checkbox"></i> Q币余额足够时,到期后自动续费,专享{{unitPrice}}{{unitName}}/月\n </div>\n </label>\n </div>\n </div>\n\n <!-- 无法在跨域iframe里完成Q币支付的场景,引导跳出 -->\n <div class="left-money-warn" ms-if="needJumpToNewPage">\n <p class="tips sub-tips"><i class="icon-error"></i> 温馨提示:使用Q币支付需要打开新的页面,请在新页面支付。</p>\n </div>\n\n <!-- 无法在跨域iframe里完成Q币充值的场景,引导跳出 -->\n <div class="left-money-warn" ms-if="needJumpToNewPageForCharge&&balanceNotEnough">\n <p class="tips sub-tips"><i class="icon-error"></i> 温馨提示:Q币充值需要打开新的页面,请在新页面充值。</p>\n </div>\n <div>\n <a ms-if="balanceNotEnough" hidefocus="true" class="btn btn-default" ms-click="goCharge" href="#">去充值</a>\n <div class="oper-to-pay" data-track="payBtn" ms-if="!balanceNotEnough&&needJumpToNewPage">\n <a class="btn btn-default" ms-click="handleClick" hidefocus="true" href="#">\n <span>\n 去支付 \n <em class="total-price-in-button" ms-if="!priceLoading">{{price}}</em>\n <span ms-if="priceLoading" ms-html="priceLoadingTplHtml"></span>\n Q币\n </span>\n </a>\n </div>\n <div class="oper-to-pay" data-track="payBtn" ms-if="!balanceNotEnough&&!needJumpToNewPage">\n <!-- 没有服务条款 -->\n <a class="btn btn-default" ms-class-1="loading:paying || checking" ms-class-2="btn-dis:disableSubmit" ms-click="handleClick"\n hidefocus="true" href="#" ms-if="terms.length==0">\n <span ms-if="!paying&&!checking">\n <span>\n 确认支付 \n <em class="total-price-in-button" ms-if="!priceLoading">{{price}}</em>\n <span ms-if="priceLoading" ms-html="priceLoadingTplHtml"></span>\n Q币\n </span>\n </span>\n <span>\n <i class="icon-btn-loading"></i>\n </span>\n </a>\n <!-- 有服务条款 -->\n <a class="btn btn-default" ms-class-1="loading:paying || checking" ms-class-2="btn-dis:disableSubmit" ms-click="handleClick"\n hidefocus="true" href="#" style="min-width: 180px;" ms-if="terms.length>0">\n <span ms-if="!paying&&!checking">\n <span>\n 同意协议并支付 \n <em class="total-price-in-button" ms-if="!priceLoading">{{price}}</em>\n <span ms-if="priceLoading" ms-html="priceLoadingTplHtml"></span>\n Q币\n </span>\n </span>\n <span>\n <i class="icon-btn-loading"></i>\n </span>\n </a>\n </div>\n <div class="left-money-warn" ms-if="terms.length > 0">\n <p class="tips sub-tips">支付前阅读并同意\n <span ms-repeat="terms">\n <a href="#" ms-click="openTerm(el,$event)">{{el.termName}}</a>\n </span>\n </p>\n </div>\n </div>\n</div>';
return __p}},"106121617":function(e,t,n){function i(e){if(this.mount=e.mount,this.unmount=e.unmount,this.cgi=e.cgi,this.configName=e.configName,this.setConfig=e.setConfig,this.onSuccess=e.onSuccess||s,this.onPending=e.onPending||s,this.onFail=e.onFail||s,this.onNoResult=e.onNoResult||s,this.onError=e.onError||s,this.billNo=e.billNo||"",this.portalNo=e.portalNo||"",this.resultQueryVm=null,this.buyType=e.buyType,this.hfMode=e.hfMode,this.realServiceCode=e.realServiceCode,this.feeType=e.feeType,this.provideUin=e.provideUin,!this.billNo)throw Error("billNo must be provide");this.init()}var o=n(4),s=(n(1),o.fn.emptyFunc),a=n(80576922);o.fn.extend(i.prototype,{"init":function(){this.initConfig(),this.mount(a.create(this.configName))},"initConfig":function(){var e=this,t=this.cgi;this.setConfig({"times":60,"queryTimeout":10,"onInit":function(t){e.resultQueryVm=t},"onQuery":function(n){t.mobileGetCardBillInfo({"real_servicecode":e.realServiceCode,"fee_type":e.feeType,"provide_uin":e.provideUin,"billno":e.billNo,"type":"1","hfpay_pay_flow":e.hfMode},function(e){if(~~e.ret)n.queryDone(a.ENUM_STATUS.PENDING);else switch(e.state){case 3:case 5:n.setInfo("对不起,支付失败"),n.setSubInfo(""),n.queryDone(a.ENUM_STATUS.FAIL);break;case 4:n.setInfo("支付成功"),n.setSubInfo(""),n.queryDone(a.ENUM_STATUS.SUCCESS);break;case 1:case 2:case 6:default:n.setSubInfo(""),n.queryDone(a.ENUM_STATUS.PENDING)}}.bind(this))},"onSuccess":function(t){e.onSuccess()},"onPending":function(t){e.onPending()},"onNoResult":function(t){t.setStatus(a.ENUM_STATUS.ERROR),t.setInfo("未查询到话费支付结果"),e.onNoResult(t.getInfo(),t.getSubInfo())},"onFail":function(t){e.onFail(t.getInfo(),t.getSubInfo())}})},"onDestroy":function(){o.fn.stop(),this.resultQueryVm.destroy(),this.resultQueryVm=null,this.unmount()},"destroy":function(){this.onDestroy()}}),e.exports=i},"106535216":function(e,t,n){function i(e){var t=/iPhone/.test(navigator.userAgent)||/Android/.test(navigator.userAgent)&&!/Tablet/.test(navigator.userAgent);if(t){var n=a.fn.safeGet(window.__midasStaticConfig_midas_webpay,"itemMap.webpay.mobile_white_list",[]);if(n instanceof Array&&e&&n.indexOf(e)!==-1)return!1}return t}function o(){r.go("result",{"status":"error","buttonTxt":"确定","titleTxt":"温馨提示","displayInfo":l.TEXT.BLOCKMOBILE,"res":{"ret":403,"msg":l.TEXT.BLOCKMOBILE,"err_code":""}})}function s(e){return!!i(e)&&(c.nextTick(function(){o()}),u("mobile.denied"),!0)}var a=n(4),r=n(12),c=n(1),l=n(49140953),l=n(49140953),u=n(10);e.exports={"checkAndBlockAccess":s}},"108535814":function(e,t,n){var i=n(56711316),o=n(4),s=n(54698897),a=n(1);n(77769056);var r=n(100835382),c=n(17),l=n(11),u=n(119561448),d=n(98010485),h=n(104491903),p=(n(109735088),n(84811753)),f=n(75748174),m=o.fn.getParam("inApp");n(68682076);var g=function(e,t,n){r.apply(this,arguments),this.filterBankType="bank",this.cacheBankKey="selected.bank",this.cacheBankData=this.getCookie(),this.portal_serial_no=null,this.payProxy=window.location.protocol+"//"+window.location.host+"/midas/minipay_v2/views/public/pay-bank.php",this.amount=0,this.saveTimout=null,this.payBankUrl=null,this.payBankUrlTimeout=null,this.init()},v={"init":function(){this.initVm(),this.calculatePrice(),this.fetchTargetUin(),this.fetchAmount()},"getDiscount":function(){return.95},"calculatePrice":function(){var e=this.store.getPrice().price;this.price=this.store.getPrice(o.discount.checkHasDiscount(e,this.channelObj.channel)?this.channelObj.discount:void 0,this.coupon).price,this.vm.price=this.price},"fetchAmount":function(){this.vm.amount=this.store.getAmount(),this.amount=this.store.getAmount()},"fetchTargetUin":function(){this.targetUin=this.store.getTargetInfo().uin},"onChange":function(){this.fetchTargetUin(),this.fetchAmount(),this.refreshCoupon(),this.calculatePrice(),this.debounceOrder()},"debounceOrder":function(){if(this.payBankUrl=null,this.payBankUrlTimeout&&(clearTimeout(this.payBankUrlTimeout),this.payBankUrlTimeout=null),this.saveTimout&&(this.saveTimout.stop(0),this.saveTimout=null,this.vm.paying=!1,this.unlock()),!this.store.isInterfaceDisabled()&&0!=this.amount){var e=this;this.vm.paying=!0,this.lock(),this.saveTimout=new l.Timeout({"time":.7,"timeUp":function(){e.vm.paying=!1,e.unlock(),e.saveTimout=null,e.order({},function(t,n){e.payBankUrl=t,e.payBankUrlTimeout=setTimeout(function(){e.debounceOrder()},1e3*n)})}})}},"order":function(e,t){e=e||{};var n=this,i=this.bankObj&&this.bankObj.bank,a=this.bankObj&&this.bankObj.curCardType,r=this.bankObj&&this.bankObj.curBankType,c=s.GetBankSubChannel(this.store.cgi);"82"===c&&(i=i.toUpperCase());var l=i.toLowerCase()+"_"+("credit"===a?"2":"1")+("B2B"===r?"_1":"_2"),d={"uuid":this.uuid,"pushtype":"NodeJS","pay_method":"pcbank:"+c,"bank_type":i+"_"+("credit"==a?"2":"1")+("B2B"===r?"_1":"_2")};o.fn.extend(d,e),this.setCookie(l);var h=function(){var e={"proxy":!0};n.lock(),n.vm.paying=!0,u.show({"opacity":"0"}),n.store.buy(d,function(e){if(n.unlock(),n.vm.paying=!1,u.hide(),!~~e.ret){var i=n.store.getSession().getSessionParam(),s=e.jump;return n.lock(),n.vm.paying=!0,u.show({"opacity":"0"}),n.getShortUrl(s,function(e){if(n.unlock(),n.vm.paying=!1,u.hide(),e.status){var a=o.fn.addParam({"short_url":encodeURIComponent(e.shortUrl),"openid":encodeURIComponent(i.openid),"openkey":encodeURIComponent(i.openkey),"rc_params":encodeURIComponent(o.req.serializeParam(n.store.getRcRestrictParams()))},n.payProxy);t(a,1*e.validTime||600),n.report("bank.qrcodeSuccess",{"resultinfo":{"webSaveLength":s.length}})}else n.store.onFail(e.res),n.report("bank.qrcodeFail",{"resultinfo":{"webSaveLength":s.length,"ret":e.res&&e.res.ret||"","err_code":e.res&&e.res.err_code||""}})},!0),!0}},e)};h()},"setCookie":function(e){var t=this.convertStrToObj(o.cookie.get(this.cacheBankKey));t[this.store.getSession().getSessionParam().openid]=e,o.cookie.set(this.cacheBankKey,this.convertObjToStr(t))},"getCookie":function(){var e=this.convertStrToObj(o.cookie.get(this.cacheBankKey)),t=e[this.store.getSession().getSessionParam().openid],n=d(t);return n.bank&&(n.bankType=t),n},"getVmConfig":function(){var e=this;return o.fn.extend({"$id":"bank-controller","price":this.price,"amount":this.amount,"$skipArray":["bankData"],"$computed":{"bankClass":{"get":function(){if(this.bank)return"icon-"+this.bank}}},"disableSubmit":!0,"paying":!1,"bankData":a.mix({"filterType":this.filterBankType,"haspaytype":!1},this.cacheBankData),"tips":"","pay":function(t){if(t.preventDefault(),!e.isLocked())return e.reportUser("pay.click"),e.store.isInterfaceDisabled()?void e.store.emit("channelDataChange",new p(f)):void(0!=e.amount&&e.payBankUrl&&("1"!=m?o.openWindow(e.payBankUrl):c.openWindow(e.payBankUrl),e.store.changePage("subChannel",a.mix({"channelObj":e.channelObj,"portal_serial_no":e.portal_serial_no,"mode":r.MODE.COMPLETE,"price":e.price,"coupon":e.coupon,"store":e.store},{"uuid":e.uuid},e.bankObj)),e.store.emit(h,new p(h,{"show":!1}))))},"onSelectedBank":this.onSelectedBank.bind(this)},this.getCouponVmConfig(),this.getTermsVmConfig(),this.getPubVmConfig())},"convertObjToStr":function(e){var t=[],n=null;return a.each(e,function(e,n){e&&n&&t.push(String.format("{key}={value}",{"key":e,"value":encodeURIComponent(n)}))}),t.length>0&&(n=t.join("&")),n},"convertStrToObj":function(e){var t,n={},i=[];return e&&e.length>0&&(i=e.split("&"),a.each(i,function(e,i){t=i.split("="),n[t[0]]=decodeURIComponent(t[1])})),n},"onSelectedBank":function(e){this.vm&&(this.vm.tips="",this.vm.disableSubmit=!1,this.bankObj=e,this.bankObj.curPayType=this.filterBankType,"B2B"==this.bankObj.curBankType?this.bankObj.bankType=window.__B2B_BANK_CONFIG[this.bankObj.bank][this.bankObj.curCardType][this.bankObj.curPayType]:this.bankObj.bankType=window.__BANK_CONFIG[this.bankObj.bank][this.bankObj.curCardType][this.bankObj.curPayType],this.debounceOrder())},"initVm":function(){this.vm=a.define(this.getVmConfig())},"onDestroy":function(){this.portal_serial_no=null,this.removeListener(),this.payBankUrlTimeout&&(clearTimeout(this.payBankUrlTimeout),this.payBankUrlTimeout=null),this.saveTimout&&this.saveTimout.stop(0),this.destroy()}};o.inherits(g,r),o.fn.extend(g.prototype,v),g.create=function(e,t,n){return new g(e,t,n)},g.getTemplate=function(e){return i()},e.exports=g},"108898004":function(e,t,n){function i(e){if(this.constructor==i)throw Error("you can not direct initialize AbstractResult");this.opt=e,this.modifyTitle="undefined"==typeof e.modifyTitle||e.modifyTitle,this.orderInfo=e.orderInfo,this.priceInfo=e.priceInfo,this.params=e.params,this.cgi=e.cgi,this.session=e.session,this.subSession=e.subSession,this.type=e.type||"payres",this.provide_uin=e.provide_uin,this.channel=e.channel,"string"==typeof this.channel&&(this.channeName=a.channels[this.channel]),this.status=e.status||i.ENUM_STATUS.PENDING,this.portalNo=e.portalNo,"false"==o.fn.getParam("showFinishButton")?this._showFinish=!1:this._showFinish="undefined"==typeof e.showFinish||e.showFinish,this.onAction=e.onAction,this.finishActionType=this.onAction?"custom":e.actionType||"close",this.titleTxt=e.titleTxt||"支付结果",this.errorCode=e.errorCode||null,this.vm=null,this.interval=null,this.fireEvents=!1,this.checkStatus(this.status),f.setStatus(this.status),this.disableContext=function(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},s(window).bind("contextmenu",this.disableContext)}var o=n(4),s=n(1),a=n(49140953),r=n(48695175),c=n(52088519),l=n(106121617),u=n(113871490),d=n(12),h=n(10),p=n(112745811),f=n(72876602),m=n(17);i.ENUM_STATUS={"SUCCESS":"success","FAIL":"fail","ERROR":"error","PENDING":"waiting"},o.fn.extend(i.prototype,{"onDestroy":function(){s.nextTick(function(){try{this.queryInstance&&this.queryInstance.onDestroy(),this.customInstance&&this.customInstance.onDestory()}catch(e){}this.vmConfig=null,this.vm=null,this.customInstance=null,this.queryInstance=null,s(window).unbind("contextmenu",this.disableContext),this.disableContext=null}.bind(this))},"showFinish":function(){this._showFinish=this.vm.showFinish=!0},"hideFinish":function(){this._showFinish=this.vm.showFinish=!1},"getAmount":function(){return this.orderInfo.count},"reportUser":function(e,t){h.user.action("result",e,t)},"report":function(e,t){h(String.format("result.{iformat}",{"iformat":e}),t)},"getVmConfig":function(){var e=this,t=this.status==i.ENUM_STATUS.FAIL||this.status==i.ENUM_STATUS.ERROR,n=this.opt.displayInfo||a.TEXT.COMMONERRORTXT;return this.vmConfig={"$id":"result-detail","status":this.status,"isQuery":this.opt.isQuery||!1,"isCustom":s.isFunction(this.opt.customFactory),"queryContainer":"","customContainer":"","bottomText":"","info":t?n:this.opt.displayInfo,"subInfo":this.opt.subInfo,"tips":"","oper":"","operBtnClass":"btn-dis","market":this.opt.info,"mcardQueryConfig":{},"hfpayQueryConfig":{},"signQueryConfig":{},"buttonTxt":this.opt.buttonTxt||"确定","showFinish":this._showFinish,"countDownTime":this.opt.countDownTime,"isFlowControl":this.opt.flowControl&&this.opt.countDownTime,"back":function(){d.back()},"retry":function(){e.interval||(location.href=o.fn.delParam("info_control",location.href))},"finish":function(t,n){t.stopPropagation(),t.preventDefault(),!e.checkStatus(n)&&m.trigger("noresult");var i={"status":e.status,"channel":f.getChannel()};switch(!!e.interval&&clearInterval(e.interval),e.interval=null,e.finishActionType){case"back":e.reportUser("back.click",i),e.notifyHeader("reset"),d.go("order");break;case"custom":e.reportUser("custom.click",i),e.onAction();break;case"refresh":e.reportUser("refresh.click",i),location.reload();break;default:e.reportUser("finish.click",i),m.notify("close")}}}},"checkStatus":function(e){if(e===i.ENUM_STATUS.SUCCESS)return this.fireEvents||(m.trigger("success"),this.fireEvents=!0),!0;if(e===i.ENUM_STATUS.FAIL)return this.fireEvents||(m.trigger("error",this.errorCode),this.fireEvents=!0),!0;if(e===i.ENUM_STATUS.ERROR){if(!this.fireEvents){var t=this.opt.res||{};m.trigger("error",String(t.err_code||t.ret)),this.fireEvents=!0}return!0}return!1},"setFinishActionType":function(e){this.finishActionType=e},"getFinishActionType":function(){return this.finishActionType},"setAmount":function(e){this.vm.count=e},"setInfo":function(e){this.vm.info=e},"setTips":function(e){this.vm.tips=e},"setSubInfo":function(e){this.vm.subInfo=e},"setMarket":function(e){this.vm.market=e},"setStatus":function(e){f.setStatus(e),this.vm&&(this.vm.status=this.status=e,this.notifyHeader())},"notifyHeader":function(e){this.modifyTitle&&m.trigger("headerDataReady",{"title":this.titleTxt})},"countDown":function(){var e=this;this.interval=setInterval(function(){e.vm.countDownTime<=1&&(clearInterval(e.interval),e.interval=null,e.vm.operBtnClass="btn-default","infores"!==e.type&&(e.notifyHeader("reset"),d.go("order"))),e.vm.countDownTime=e.vm.countDownTime-1},1e3)},"initVm":function(){this.vm=s.define(this.getVmConfig()),this.opt.isQuery?this.channel==a.channels.mcard.payMethod?this.mcardQuery():this.channel==a.channels.hfpay.payMethod?this.hfpayQuery():this.store.type===p.MONTH&&this.store.isContinuousMonth()&&this.signQuery():s.isFunction(this.opt.customFactory)&&this.customResult(),this.opt.flowControl&&this.opt.countDownTime&&("infores"===this.opt.type&&(this.vm.oper='<a href="#" class="btn" ms-click="retry" ms-class="{{operBtnClass}}" style="margin-left: 10px">重试</a>'),this.countDown()),this.notifyHeader(),this.onVmInit(),this.report("pv",{"resultinfo":{"status":this.status,"channel":f.getChannel()}}),f.setPage("result"),s(o.Id("cp_loading_")).css({"display":"none"}),h.user.action("page","result",{"status":this.status})},"onVmInit":s.noop,"onQuerySuccess":s.noop,"onQueryPending":s.noop,"onQueryError":s.noop,"onQueryFail":s.noop,"onQueryNoResult":s.noop,"onCustomSuccess":s.noop,"onCustomNoResult":s.noop,"onCustomError":s.noop,"onCustomFail":s.noop,"mcardQuery":function(){var e=this;e.report("mcard.pv"),this.queryInstance=new c({"mount":function(t){e.vm.queryContainer=t},"unmount":function(){e.vm.queryContainer=null,e.vm.mcardQueryConfig={},e.titleTxt="支付结果",e.notifyHeader()},"provide_uin":this.provide_uin,"cgi":this.cgi,"billNo":this.opt.billNo,"portalNo":this.portalNo,"buyType":this.opt.buyType,"price":this.opt.priceInfo.price,"isNewMcard":"1"==this.orderInfo.mcard_mode,"configName":"mcardQueryConfig","setConfig":function(t){e.vm.mcardQueryConfig=t},"onSuccess":function(t,n,o){e.report("mcard.success.pv"),e.setStatus(i.ENUM_STATUS.SUCCESS),e.vm.isQuery=!1,this.destroy(),e.setTips(n),e.onQuerySuccess(t,n),o&&o.realAmount&&e.setAmount(o.realAmount),t&&e.setInfo(t)},"onPending":function(){e.report("mcard.pending.pv"),e.onQueryPending()},"onNoResult":function(t,n){e.report("mcard.noresult.pv"),e.setStatus(i.ENUM_STATUS.ERROR),e.vm.isQuery=!1,n&&e.setSubInfo(n),t&&e.setInfo(t),this.destroy(),e.onQueryNoResult(t,n)},"onFail":function(t,n){e.report("mcard.fail.pv"),e.setStatus(i.ENUM_STATUS.FAIL),e.vm.isQuery=!1,n&&e.setSubInfo(n),t&&e.setInfo(t),this.destroy(),e.onQueryFail(t,n)},"onError":function(t,n,o){e.vm.isQuery=!1,e.report("mcard.error.pv"),e.setStatus(i.ENUM_STATUS.ERROR),this.destroy(),e.onQueryError(t,n),n&&e.setSubInfo(n),o&&o.mcardDetail&&e.setTips(o.mcardDetail)},"onContinue":function(){e.report("mcard.continue.pv"),o.lang.isFunction(e.shouldMcardContinue)&&!e.shouldMcardContinue()||e.vm&&(e.vm.buttonTxt="继续充值",e.setFinishActionType("refresh"))}})},"customResult":function(){this.report("custom.pv");var e=this;this.customInstance=this.opt.customFactory({"cgi":this.cgi,"mount":function(t){e.vm.customContainer=t},"unmount":function(){e.vm.customContainer=null,e.vm.mcardQueryConfig={},e.titleTxt="支付结果",e.notifyHeader()},"onSuccess":function(t,n){e.report("custom.success.pv"),e.setStatus(i.ENUM_STATUS.SUCCESS),e.vm.isCustom=!1,this.destroy(),n&&e.setTips(n),t&&e.setInfo(t),e.initialize&&e.initialize(),e.onCustomSuccess(t,n)},"onNoResult":function(t,n){e.report("custom.noresult.pv"),e.setStatus(i.ENUM_STATUS.ERROR),e.vm.isCustom=!1,this.destroy(),n&&e.setTips(n),t&&e.setInfo(t),e.onCustomNoResult(t,n)},"onFail":function(t,n){e.report("custom.fail.pv"),e.setStatus(i.ENUM_STATUS.FAIL),e.vm.isCustom=!1,this.destroy(),n&&e.setTips(n),t&&e.setInfo(t),e.onCustomFail(t,n)},"onError":function(t,n){e.vm.isQuery=!1,e.report("custom.error.pv"),e.setStatus(i.ENUM_STATUS.ERROR),e.vm.isCustom=!1,this.destroy(),n&&e.setTips(n),t&&e.setInfo(t),e.onCustomError(t,n)}})},"hfpayQuery":function(){var e=this;e.report("hfpay.pv"),this.queryInstance=new l({"mount":function(t){e.vm.queryContainer=t},"unmount":function(){e.vm.queryContainer=null,e.vm.hfpayQueryConfig={},e.titleTxt="支付结果",e.notifyHeader()},"provide_uin":this.provide_uin,"cgi":this.cgi,"billNo":this.opt.billNo,"portalNo":this.portalNo,"hfMode":this.opt.hfMode,"buyType":this.opt.buyType,"provideUin":this.provide_uin,"configName":"hfpayQueryConfig","setConfig":function(t){e.vm.hfpayQueryConfig=t},"onSuccess":function(){e.report("hfpay.success.pv"),e.setStatus(i.ENUM_STATUS.SUCCESS),e.vm.isQuery=!1,this.destroy(),e.onQuerySuccess()},"onPending":function(){e.report("hfpay.pending.pv"),e.onQueryPending()},"onNoResult":function(t,n){e.report("hfpay.noresult.pv"),e.setStatus(i.ENUM_STATUS.ERROR),e.vm.isQuery=!1,n&&e.setSubInfo(n),t&&e.setInfo(t),this.destroy(),e.onQueryNoResult(t,n)},"onFail":function(t,n){e.report("hfpay.fail.pv"),e.setStatus(i.ENUM_STATUS.FAIL),e.vm.isQuery=!1,n&&e.setSubInfo(n),t&&e.setInfo(t),this.destroy(),e.onQueryFail(t,n)},"onError":function(t){e.report("hfpay.error.pv"),e.setStatus(i.ENUM_STATUS.ERROR),e.vm.isQuery=!1,subInfo&&e.setSubInfo(subInfo),t&&e.setInfo(t),this.destroy(),e.onQueryError(t)}})},"signQuery":function(){var e=this;e.report("sign.pv"),this.queryInstance=new u({"mount":function(t){e.vm.queryContainer=t},"unmount":function(){e.vm.queryContainer=null,e.vm.signQueryConfig={},e.notifyHeader()},"provide_uin":this.provide_uin,"cgi":this.cgi,"billNo":this.opt.billNo,"portalNo":this.portalNo,"buyType":this.opt.buyType,"provideUin":this.provide_uin,"configName":"signQueryConfig","channel":this.channel,"setConfig":function(t){e.vm.signQueryConfig=t},"onSuccess":function(){e.report("sign.success.pv"),e.titleTxt="支付结果",e.setStatus(i.ENUM_STATUS.SUCCESS),e.vm.isQuery=!1,this.destroy(),e.onQuerySuccess()},"onPending":function(){e.report("sign.pending.pv"),e.onQueryPending()},"onNoResult":function(t,n){e.titleTxt="支付结果",e.report("sign.noresult.pv"),e.setStatus(i.ENUM_STATUS.FAIL),e.vm&&(e.vm.info=t,e.vm.subInfo=n,e.vm.isQuery=!1,e.vm.buttonTxt="重新购买",e.setFinishActionType("refresh")),this.destroy(),e.onQueryNoResult(t,n)},"onFail":function(t,n){e.titleTxt="支付结果",e.report("sign.fail.pv"),e.setStatus(i.ENUM_STATUS.FAIL),e.vm.isQuery=!1,this.destroy(),e.onQueryFail(t,n)},"onError":function(t){e.titleTxt="支付结果",e.report("sign.error.pv"),e.vm&&(e.vm.info="连续包月签约成功,但支付失败,请重新支付",e.vm.subInfo=""),e.setStatus(i.ENUM_STATUS.ERROR),e.vm.isQuery=!1,this.destroy(),e.onQueryError(t)},"onRetry":function(){e.titleTxt="支付结果",e.vm&&(e.vm.buttonTxt="重新支付",e.setFinishActionType("refresh"))}})}}),i.getTemplate=function(e){return e=e||{},r(e)},i.create=function(e){return new i(e)},e.exports=i},"109181847":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="hfpay-controller-simple" class="telephone-fee-pay-area">\n <p ms-if="warnMsg" class="tips icon-tips warn" style="position: relative">\n <i class="icon-warn"></i> {{warnMsg}}\n </p>\n <div ms-if="!warnMsg">\n <div class="channel-detail-oper-area">\n <div class="input-areas">\n <div class="input-row">\n <div class="form-group" style="display: block;width: 240px">\n <ms:input on-init="getPhoneNumVm" maxlength="11" on-validate="onValidatePhoneNum" config="phoneNumConfig" on-change="onPhoneNumChange"\n placeholder="请输入手机号码"></ms:input>\n </div>\n <p class="tips icon-tips warn" style="position:absolute" ms-if="phoneValidateMsg">\n <i class="icon-warn"></i> {{phoneValidateMsg}}\n </p>\n </div>\n </div>\n <div class="oper-area">\n <div class="oper-to-pay">\n <a ms-on-click="handleCheck" ms-class="btn btn-default" ms-class-1="loading:disableSubmit" href="#">\n <span ms-visible="!disableSubmit">下一步</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n </div>\n <p class="tips icon-tips info" ms-if="hfTips"><i class="icon-txt"></i>{{hfTips}}</p>\n </div>\n </div>\n </div>\n</div>';return __p}},"109718908":function(module,exports){module.exports=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__j=Array.prototype.join;with(obj)__p+='<div ms-controller="'+(null==(__t=controller)?"":__t)+'" ms-class="input-areas:isNested" style="position: relative">\n\n ',isNested||(__p+='\n <!-- <div class="left-money"> </div>-->\n <div class="verify-left-money">\n <div class="form-inline">\n '),__p+='\n <div class="form-group verify-code-form-group">\n <label style="width: 130px">\n <ms:input width="110px" on-init="getVerifyInputVm" placeholder="请输入验证码"\n config="config"\n on-validate="onValidate"\n on-change="onChange"\n on-input="onInput"\n ms-attr-extra-class="{{isNested? \'qrcode-input\':\'\'}}"\n ></ms:input>\n </label>\n <a class="verify-code-img" href="javascript:void(0);" ms-on-click="changeVerifyCode">\n <img ms-if="verifyCodePic" ms-attr-src="verifyCodePic" ms-attr-alt="verifyCodePic" ma-attr-title="verifyCodePic">\n </a>\n <a ms-class="{{isNested? \'form-input-append-txt\':\'change-qrcode\'}}"\n ms-on-click="changeVerifyCode" href="javascript:void(0);">换一换</a>\n </div>\n <!--<p class="tips icon-tips warn" ms-if="validateFailMsg" ms-attr-style="{{isNested? \'position:absolute;top:0;left:310px\':\'\'}}">-->\n <!--<i class="icon-warn"></i>-->\n <!--{{validateFailMsg}}</p>-->\n <div class="btn-wrap" ms-if="!isNested">\n <a href="#" ms-on-click="onConfirm" class="btn btn-default btn-s">确认</a>\n <a href="#" ms-on-click="onCancel" class="btn btn-primary btn-s">取消</a>\n </div>\n ',isNested||(__p+="\n </div>\n </div>\n\n "),__p+="\n\n</div>";return __p}},"109735088":function(e,t,n){var i=n(4),o=n(1),s=n(102521382),a=n(10),r=i.fn.getParams();"itopid"===r["session_id"]&&i.fn.safeGet(window._SERVER_DATA,"realSession.real_session_id")&&i.fn.safeGet(window._SERVER_DATA,"realSession.real_session_type")&&(r["session_id"]=i.fn.safeGet(window._SERVER_DATA,"realSession.real_session_id"),r["session_type"]=i.fn.safeGet(window._SERVER_DATA,"realSession.real_session_type"));var c=function(e){for(var t=0,n=e.length;t<n;t++)if(!r[e[t]])return{"res":!1,"filed":e[t],"value":r[e[t]]};return{"res":!0}},l=function(e){var t=["openid","openkey","session_id","session_type"];return e&&e.checkFiled&&e.checkFiled instanceof Array&&(t=t.concat(e.checkFiled)),c(t)},u="uin"===r["session_id"]&&"skey"===r["session_type"],d="openid"===r["session_id"]&&"kp_actoken"===r["session_type"],h="openid"===r["session_id"]&&"openkey"===r["session_type"],p="uin"===r["session_id"]&&"wt_st"===r["session_type"],f="uin"===r["session_id"]&&/pskey/.test(r["session_type"]),m="openid"===r["session_id"]&&"kp_accesstoken"===r["session_type"],g="uin"===r["session_id"]&&/vask/.test(r["session_type"]),v="uin"===r["session_id"]&&"vask_27"===r["session_type"],y="hy_gameid"===r["session_id"]&&"wc_actoken"===r["session_type"],_="hy_gameid"===r["session_id"]&&"st_dummy"===r["session_type"],b="hy_gameid"===r["session_id"]&&"st_sogou"===r["session_type"],w="hy_gameid"===r["session_id"]&&"st_local_third_party"===r["session_type"];t.getLoginStatus=function(){return{"qq1":u,"qq2":d,"qq3":h,"wtlogin":p,"pskey":f,"qq":u||d||h||f||g||m||v||p,"accesstoken":m,"ctlogin":g,"ptlogin":u,"qqconnect":d,"openid":h,"pretty":v,"wechat":y,"none":_,"sogou":b,"thridpart":w}},t.getLoginStatusFromCookie=function(){var e=+i.cookie.get("uin").replace(/[^\d]/g,""),t=i.cookie.get("skey");return e&&e>1e3&&t&&t.length>5?{"qq":!0,"uin":e,"skey":t}:null},t.getPskeyLoginStatusFromCookie=function(){var e=+i.cookie.get("uin").replace(/[^\d]/g,""),t=i.cookie.get("p_skey");return e&&e>1e3&&t&&t.length>5?{"qq":!0,"openid":e,"openkey":t,"session_id":"uin","session_type":"pskey_307"}:null},t.getAccessLoginStatusFromCookie=function(){var e=i.cookie.get("midas_act_openid"),t=i.cookie.get("midas_act_openkey"),n=i.cookie.get("midas_act_isself");return e&&t?{"openid":e,"openkey":t,"session_id":"openid","session_type":"kp_accesstoken","isself":"1"==n,"qq":!0}:null},t.removeAccessLoginStatus=function(){i.cookie.del("midas_act_openid"),i.cookie.del("midas_act_openkey"),i.cookie.del("midas_act_isself")},t.setAccessLoginStatusToCookie=function(e,t){var n=864e5,o=t?60*n:n;i.cookie.set("midas_act_openid",e.openid,{"time":o}),i.cookie.set("midas_act_openkey",e.openkey,{"time":o}),i.cookie.set("midas_act_isself",t?"1":"0",{"time":o})},t.checkLoginInUrl=function(e){function t(){location.replace(i.fn.addParam({"openid":r.openid,"openkey":r.openkey,"session_id":r.session_id,"session_type":r.session_type},location.href))}if(!(r.openid&&r.openkey&&r.session_id&&r.session_type)){var n=__midasStaticConfig_midas_webpay.itemMap.webpay._PSKEY_WHITELIST;if(n&&n.indexOf(r["appid"])>-1)return r.session_id="uin",r.session_type="pskey_307",i.cookie.get("p_uin")&&i.cookie.get("p_skey")?(r.openid=+i.cookie.get("p_uin").replace(/[^\d]/g,""),r.openkey=i.cookie.get("p_skey"),void t()):(o.getScript(location.protocol+"//xui.ptlogin2.qq.com/js/ptlogin_v1.js",function(){s.setCallBack({"hideClose":!0,"daid":307,"onSuccess":function(){r.openid=+i.cookie.get("p_uin").replace(/[^\d]/g,""),r.openkey=i.cookie.get("p_skey"),t()}}),s.show()}),void a("pskey.login.pv"));if(r.session_id="uin",r.session_type="skey",!i.cookie.get("uin")||!i.cookie.get("skey"))return void o.getScript(location.protocol+"//xui.ptlogin2.qq.com/js/ptlogin_v1.js",function(){s.setCallBack({"hideClose":!0,"onSuccess":function(){t()}}),s.show()})}e&&e()},t.isWxBindQQ=function(e){var t=e.info;return 1==t.wc_bind_qq},t.validateBaseInfo=l;var C=!1;i.cookie.set("midas_cookie_samesite_flag","1"),"1"==i.cookie.get("midas_cookie_samesite_flag")&&(C=!0),t.canUsePTLoginCookie=C,t.checkIsSelf=function(e,t,n){var i=!1,o=setTimeout(function(){n(!1),i=!0},5e3);e.checkThridBind({"second_login_openid":t.openid,"second_login_openkey":t.openkey,"second_login_session_id":"openid","second_login_session_type":"kp_accesstoken","second_login_appid":"101502376"},function(e){var t=!1;~~e.ret||(t="1"===e.is_same),clearTimeout(o),!i&&n(t)})}},"109895087":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="'+(null==(__t=controllerId)?"":__t)+'">\n <ms:header $template="'+(null==(__t=templateType)?"":__t)+'" config="headerData" on-agree-rule="onAgreeRule" on-back="onBack" on-close="onClose" on-click-service="onClickService"></ms:header>\n</div>';return __p}},"110138172":function(module,exports){module.exports=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__j=Array.prototype.join;with(obj)__p+='<div ms-controller="qcard-controller-'+(null==(__t=mode)?"":__t)+'">\n <div class="input-areas" style="margin-bottom: 0;position: relative" ms-if="isCompleteMode">\n <div class="input-row" style="display: block;margin-bottom: 10px">\n <ms:input on-init="getNumVm" placeholder="请输入QQ卡号" maxlength="10" on-validate="onCardNumValidate"\n config="cardNumberConfig" $id="qcardNum" on-change="onQcardNumChange" width="240px"></ms:input>\n <p style="display: block;" class="tips icon-tips warn" ms-if="cardNumMsg">\n <i class="icon-warn"></i> {{cardNumMsg}}\n </p>\n </div>\n\n <div class="input-row" style="margin-bottom: 10px">\n <ms:input on-init="getPassVm" placeholder="请输入QQ卡密码" maxlength="12" config="cardPassConfig"\n on-validate="onCardPassValidate" on-change="onQcardPassChange" width="240px"></ms:input>\n <p class="tips icon-tips warn" ms-if="cardPassMsg">\n <i class="icon-warn"></i> {{cardPassMsg}}\n </p>\n <!--<a class="form-input-append-txt" style="position: absolute;top: 0;left: 245px;" href="javascript:void(0)" ms-on-click="queryBalance"-->\n <!--ms-if="cardPassValidatePass&&cardNumValidatePass">查询余额</a>-->\n </div>\n\n\n\n <div id="qcardVerifyContainer"></div>\n </div>\n <div class="left-money-warn" ms-if="isCompleteMode && qcardBalanceNotEnough">\n <p>\n <i class="icon-error"></i> Q卡余额不足\n </p>\n <p class="tips sub-tips">\n Q卡余额不足请更换Q卡或支付渠道\n </p>\n </div>\n <div ms-if="isCompleteMode && showBalance && balance!=null" class="left-money-warn">\n <p>Q卡<span>余额:<em class="left-money-em">{{balance}}</em>元</span></p>\n </div>\n ',__p+="undefined"==typeof type?'\n <div class="oper-to-pay">\n <!-- 没有服务条款 -->\n <a ms-on-click="pay" ms-class="btn btn-default" ms-class-1="loading:disableSubmit"\n ms-class-2="btn-dis:amount==0" href="#" ms-if="terms.length==0">\n <span ms-if="!disableSubmit">确认支付</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n <!-- 有服务条款 -->\n <a ms-on-click="pay" ms-class="btn btn-default" ms-class-1="loading:disableSubmit"\n ms-class-2="btn-dis:amount==0" href="#" style="min-width: 130px;" ms-if="terms.length>0">\n <span ms-if="!disableSubmit">同意协议并支付</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n </div>\n <p class="tips icon-tips"><i class="icon-txt"></i>QQ卡可分多次使用</p>\n ':"\n "+(null==(__t=type)?"":__t)+"\n ",__p+='\n <div class="left-money-warn" ms-if="terms.length > 0">\n <p class="tips sub-tips">支付前阅读并同意\n <span ms-repeat="terms">\n <a href="#" ms-click="openTerm(el,$event)">{{el.termName}}</a>\n </span>\n </p>\n </div>\n</div>';return __p}},"110761999":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-visible="showHeader" ms-html="subHeaderHtml"></div>\n<div ms-visible="showOrderInfo" ms-html="orderInfo"></div>\n<div class="pay-area pay-area-active">\n <div class="pay-area-body">\n <div class="channel-detail" ms-html="subChannelHtml">\n\n </div>\n </div>\n</div>';return __p}},"111121174":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div id="_cp__load__" class="mdsweb-loading-wrapper abs" style="background-color:transparent; z-index:9995">\n <div class="mdsweb-loading">\n <div class="dot"></div>\n <div class="dot"></div>\n <div class="dot"></div>\n </div>\n</div>';return __p}},"111578709":function(e,t,n){var i=n(4),o=n(1),s=n(100835382),a=(n(117821206),n(116097651)),r=n(84811753),c=n(75748174),l=function(e,t,n){s.apply(this,arguments),this.vm=null,this.mode=s.MODE.SIMPLE,this.bindEvent(),
this.initVm(),this.vm.amount=this.store.getAmount()};i.inherits(l,s),i.fn.extend(l.prototype,{"constructor":l,"bindEvent":function(){this.onShow=function(){}.bind(this),this.store.on("onShow",this.onShow)},"destroyEvent":function(){this.onShow&&this.store.off("onShow",this.onShow)},"onDestroy":function(){this.destroyEvent(),s.prototype.removeListener.call(this),s.prototype.destroy.call(this)},"lock":function(){s.prototype.lock.call(this),this.vm.disableSubmit=!0,this.showMask()},"unlock":function(){s.prototype.unlock.call(this),this.vm.disableSubmit=!1,this.hideMask()},"getVmConfig":function(){var e=this;return this.vmConfig={"$id":"mcard-controller-"+this.mode,"$skipArray":[],"showTooltip":!1,"balance":null,"showNext":!1,"amount":this.store.getAmount(),"directpay":!1,"disableSubmit":!1,"price":this.store.getPrice(this.channelObj.discount).price,"toggleTooltip":function(){e.vm.showTooltip=!e.vm.showTooltip},"onHoverToolTip":function(e){return e.stopPropagation?(e.stopPropagation(),e.preventDefault()):(e.cancelBubble=!0,e.returnValue=!1),!1},"pay":function(t){if(t.stopPropagation(),t.preventDefault(),0!=e.store.getAmount())return e.store.isInterfaceDisabled()?void e.store.emit("channelDataChange",new r(c)):e.vm.directpay?void e.buy({"mcard_pay_mode":"1","isusempaymode":"1","pay_method":"mcard_balance"}):(e.vm.nextStep(),!1)},"nextStep":function(t){t.preventDefault(),e.store.changePage("subChannel",{"channelObj":e.channelObj,"mode":s.MODE.COMPLETE})}}},"initVm":function(){this.vm=o.define(this.getVmConfig()),this.store.isNewMcard()&&(this.vm.balance=this.store.getMcardBalance(),this.vm.directpay=parseFloat(this.vm.balance)>=this.vm.price),this.vm.directpay&&this.resize(),this.reportMcardBalance(),this.reportMcardMode()},"resize":function(){o.nextTick(function(){this.store.emit("channelResize",l.HEIGHT)}.bind(this))},"onChange":function(){this.vm&&(this.vm.price=this.store.getPrice(this.channelObj.discount).price,this.store.isNewMcard()&&(this.vm.directpay=parseFloat(this.vm.balance)>=this.vm.price),this.vm.directpay&&this.resize(),this.vm.amount=this.store.getAmount(),this.reportMcardBalance())},"reportMcardMode":function(){this.reportUser(String.format("mode.{type}.pv",{"type":this.store.isNewMcard()?"new":"old"}))},"reportMcardBalance":function(){this.store.isNewMcard()&&(this.vm.directpay?this.report("info.plentybalance"):this.report("info.lackbalance"))},"buy":function(e){this.isLocked()||(this.lock(),this.showMask(),this.reportUser("pay.click"),this.store.buy(e,function(t){return this.hideMask(),this.handlerBuy(t,e)}.bind(this)))},"handlerBuy":function(e,t){var n=this;if(n.unlock(),!~~e.ret){this.billNo=e.info.billno||"test",this.portalNo=e.info.portal_serial_no;({"billNo":e.info.billno,"portalNo":e.info.portal_serial_no});return this.store.onSuccess({"portalNo":e.info.portal_serial_no}),!0}return!1}}),l.getTemplate=function(e){return e=e||{},e.mode=e.mode||s.MODE.SIMPLE,a({"mode":e.mode})},l.create=function(e,t,n){return new l(e,t,n)},l.HEIGHT=120,e.exports=l},"112211847":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-important="'+(null==(__t=id)?"":__t)+'" style="box-shadow: rgba(176, 176, 176, 0.5) 0px 10px 18px 2px;\n background: rgb(255, 255, 255);\n border-width: 1px;\n border-style: solid;\n border-color: rgb(229, 229, 229);\n border-image: initial;\n border-radius: 2px;\n padding-bottom:20px;\n position:relative\n ">\n <h3 style="text-align: center;\n line-height: 40px;\n border-top: 1px solid #e5e5e5;\n border-bottom: 1px solid #e5e5e5;\n font-size: 16px;">短信验证</h3>\n <a href="javascript:;" class="btn-close" style="color: #bdbdbd;\n font-size: 22px;\n position: absolute;\n right: 0;\n top: 0;\n width: 40px;\n text-align: center;\n line-height: 40px;" ms-on-click="close">×</a>\n <div class="pop-content" style="margin-top:25px;">\n <div class="send-secur-code" style="width:210px;margin:0 auto">\n <p class="tips" ms-if="reasonMsg">\n {{reasonMsg}}\n </p>\n <div ms-if="!mobileNo" style="padding:5px 0" style="width:100%">\n <ms:input placeholder="请输入您的手机号" maxlength="11" config="phoneNoConfig"></ms:input>\n <p class="tips icon-tips warn" ms-if="phoneNoMsg">\n <i class="icon-warn"></i> {{phoneNoMsg}}\n </p>\n </div>\n <div ms-if="mobileNo" style="margin-top: 15px;margin-bottom: 5px;" class="telephone-fee-pay-area">\n <p class="tips" ms-if="mobileNoUin">\n 号码{{mobileNoUin}}的密保手机号码是<em>{{mobileNo}}</em>,请点击获取验证码:\n </p>\n <p class="tips" ms-if="!mobileNoUin">\n 需获取短信验证码的密保手机是<em>{{mobileNo}}</em>,请点击获取验证码:\n </p>\n </div>\n <div style="padding:5px 0;display:block;font-size:0;width:250px;">\n <div style="display:inline-block;*display:inline;*zoom:1;width:130px;*width: 125px">\n <ms:input placeholder="请输入验证码" maxlength="8" config="veriCodeConfig"></ms:input>\n <p class="tips icon-tips warn" ms-if="veriCodeMsg">\n <i class="icon-warn"></i> {{veriCodeMsg}}\n </p>\n </div>\n <a style="display:inline-block;*display:inline;*zoom:1;text-align: center;width:60px;*margin-left: 16px;*margin-top:1px;" class="form-btn" ms-on-click="getVerifyCode"\n ms-attr-disabled="!!verifyCodeCountDown">{{verifyCodeCountDown||\'获取验证码\'}}\n </a>\n </div>\n <div class="btn-wrap" style="padding-top:10px">\n <button type="button" class="btn btn-default btn-s" style="margin-right:10px;" ms-on-click="onConfirm">提交</button>\n <button type="button" class="btn btn-primary btn-s" style="margin-right:10px;" ms-on-click="onCancel">取消</button>\n </div>\n <div ms-if="mobileNo" style="margin-top:10px">\n <a href="javascript:void;" ms-on-click="onChangePhone">更换密保手机</a>\n <span ms-if="url">\n <i style="margin: 0 5px; color: #2a69b6; font-size: 12px;">|</i>\n <a href="javascript:void;" ms-on-click="onSwitch">切换验证方式</a>\n </span>\n </div>\n </div>\n </div>\n <div ms-visible="isLoading" class="mdsweb-loading-wrapper abs" style="z-index:1000;background:none">\n <div class="mdsweb-loading">\n <div class="dot"></div>\n <div class="dot"></div>\n <div class="dot"></div>\n </div>\n </div>\n <div class="pop-tips" ms-if="toastContent" style="left:50%;" ms-css-margin-left="{{toastOffset}}">{{toastContent}}</div>\n</div>';return __p}},"112745811":function(e,t){e.exports={"QB":"qb","MONTH":"month","GAME":"save","GOODS":"goods"}},"112832022":function(e,t,n){function i(){a.apply(this,arguments),this.infoList={},this.defaultPriceType=u[this.buyInfo.price_type]||u["open"],this.payFor="self",this.targetInfo={"targetUin":this.buyInfo.provide_uin||this.buyInfo.openid,"targetName":""},(this.currentLoginStatus().isQQConnect||this.currentLoginStatus().isThridpart)&&(this.targetInfo.targetUin=this.buyInfo.openid),this.wxNick=null}var o=n(4),s=n(1),a=n(51768702),r=n(83497919),c=n(99560243),l=n(54698897);n(5);var u=n(74109955),d=n(82007299),h=n(49140953),p=n(48016802),f=(n(83058212),n(112745811)),m=n(87796589),g=(n(109735088),n(10)),v=n(75685166),y={"ret":-9999,"msg":h.TEXT.INVALIDLOGIN},_=function(e){e.offer_name=e.offer_name.split("_")[0]};o.inherits(i,a),s.mix(i.prototype,d,{"includeTheNode":function(e){return e["product_list"]&&e["product_list"].length>0},"_removeUserData":function(e){if(e.info){var t=s.mix(!0,{},e,{"info":{"month_list":[],"qqacct_balance":-1,"month_info":{"year_months":-1,"upgrade_months":-1}}});return delete t.info.month_list,t}return e},"loadInfo":function(e,t){var n=this,i=this.currentLoginStatus(),a=[],u={};e=e.slice(0,c.MaxViewSerivce),this.service=e[0];var d=function(e,t){var i=e.info.month_info&&e.info.month_info["service_code"];e.info=o.fn.extend({"__cacheData":{}},r.getServiceInfo("base"),r.getServiceInfo(i),e.info),_(e.info),e.info.count<=0&&(e.info.count=c.monthCount),n.setPayFor(),v.fetchFeature(e.info.offer_id,e.info.month_info["upgrade_type"]).then(function(n){t(e.info)})["catch"](function(n){t(e.info)})};s.each(e,function(e,t){u[t]||(u[t]=!0,a.push(new s.Promise(function(e,i){var s=l.ParamsService(f.MONTH,t,n.buyInfo);n.cgi.webMonthInfo(o.fn.extend({"buy_quantity":n.buyInfo.buy_quantity},s),function(s){!~~s.ret&&n.includeTheNode(s.info)?(o.handleDisableChannel(s.info),o.discount.initNoDiscountInterval(s.info),n.infoList[t]=s.info,d(s,e)):(g("cgi.info",{"resultcode":s.ret}),n.unLogin(s.ret)?i(s):(g("recovery.info",{"action":t}),n.cgi.jsonp(String.format(l.RecoveryAddress(),{"appid":t}),function(t){~~t.ret?i(s):d(n._removeUserData(t),e)},{"callback":String.format("minipay{appid}",{"appid":t})})))},{"appid":t}),l.UpdateBankList(n.cgi)})))}),s.Promise.all(a).then(function(){arguments[0].length>1&&(n.showTab=!0),s.each(arguments[0],function(t,i){n.infoList[e[t]]=i}),g("page.data"),v.switchFeature(n.service),t(n.getInfo())},function(e){n.unLogin(e.ret)&&(i.isPT||i.isPskey)?n.showLoginBox({"onClose":function(e){t(!1,y)}}):t(!1,arguments[0])})["catch"](function(e){})},"getInfo":function(){var e=this.service;return this.infoList[e]},"updateQQbalance":function(e){s.each(this.infoList,function(t,n){n.qqacct_balance=e})},"getUnitName":function(){var e=this.service;return r.getUnitName(this.infoList[e].priceType)},"getHFPriceInfo":function(){var e=this.service;return r.getMonthDataInfo(this.infoList[e],u["open"],1)},"setPrice":function(e){var t=this.service,n=this.infoList[t];n&&(n.totalPrice=e.price,n.unitPrice=e.unitPrice,n.unitName=e.unitName,n.priceType=e.type,n.productId=e.value,n.productName=e.productName,n.count=e.count,n.editable=e.editable,n.innerProductId=e.innerProductId,n.serviceCode=e.serviceCode),n.editable&&(n.priceType==u.open||n.priceType==u.year?n.productName=String.format("{0}{1}{2}",n.count,n.unitName,r.getName(n)):n.priceType==u.upgrade&&(n.productName=String.format("{0}{1}{2}{3}",p.get("upgradeTxt"),n.count,n.unitName,r.getName(n))))},"setWXNick":function(e){this.wxNick=e},"getMonthSelected":function(){var e=this.service,t=this.infoList[e];return t?{"type":t.priceType,"count":t.count}:null},"monthItemIsSame":function(e){var t=this.service,n=this.infoList[t],i=e.type==n.priceType&&e.value==n.productId&&e.count==n.count;return i},"setTargetInfo":function(e){e&&(s.mix(this.targetInfo,e),this.setPayFor())},"setNBATeam":function(e){var t=this.getInfo();t.nbaTeam=e},"setPayFor":function(){this.payFor=this.targetInfo.targetUin==this.buyInfo.openid?m.SELF:m.SEND},"getTargetInfo":function(){return this.targetInfo},"getPayFor":function(){return this.payFor},"getOpenedServices":function(){var e=this.service;return this.infoList[e].service_list}});var b=new i;e.exports=b},"113871490":function(e,t,n){function i(e){if(this.mount=e.mount,this.unmount=e.unmount,this.cgi=e.cgi,this.configName=e.configName,this.setConfig=e.setConfig,this.onSuccess=e.onSuccess||s,this.onPending=e.onPending||s,this.onFail=e.onFail||s,this.onNoResult=e.onNoResult||s,this.onError=e.onError||s,this.onRetry=e.onRetry||s,this.channel=e.channel,this.billNo=e.billNo||"",this.portalNo=e.portalNo||"",this.resultQueryVm=null,this.buyType=e.buyType,this.realServiceCode=e.realServiceCode,this.feeType=e.feeType,this.provideUin=e.provideUin,!this.billNo)throw Error("billNo must be provide");this.init()}var o=n(4),s=(n(1),o.fn.emptyFunc),a=n(80576922);o.fn.extend(i.prototype,{"init":function(){this.initConfig(),this.mount(a.create(this.configName))},"initConfig":function(){var e=this,t=this.cgi;this.setConfig({"info":"支付结果确认中","subInfo":"请稍候留意微信支付扣款信息","times":60,"queryTimeout":10,"onInit":function(t){e.resultQueryVm=t},"onQuery":function(n){t.querySignStatus({"type":e.channel,"billNo":e.billNo},function(t){if(~~t.ret)n.queryDone(a.ENUM_STATUS.PENDING);else{var i="wechat"===e.channel?t.wx_order_status:t.qq_order_status;switch(i){case 4:n.setInfo("支付成功"),n.setSubInfo(""),n.queryDone(a.ENUM_STATUS.SUCCESS);break;case 5:n.queryDone(a.ENUM_STATUS.ERROR),e.onRetry();break;default:n.queryDone(a.ENUM_STATUS.PENDING)}}}.bind(this))},"onSuccess":function(t){e.onSuccess()},"onPending":function(t){e.onPending()},"onNoResult":function(t){t.setInfo("开通失败"),t.setSubInfo(""),e.onNoResult(t.getInfo(),t.getSubInfo())},"onError":function(t){e.onError(t.getInfo(),t.getSubInfo())},"onFail":function(t){e.onFail(t.getInfo(),t.getSubInfo())}})},"onDestroy":function(){o.fn.stop(),this.resultQueryVm.destroy(),this.resultQueryVm=null,this.unmount()},"destroy":function(){this.onDestroy()}}),e.exports=i},"114110149":function(e,t,n){function i(e){s.apply(this,arguments),this.initVm()}var o=n(4),s=(n(1),n(108898004)),a=n(101080109),r=n(109735088);n(19);o.inherits(i,s),o.fn.extend(i.prototype,{"onDestroy":function(){s.prototype.onDestroy.call(this)},"getVmConfig":function(){return this.vmConfig=o.fn.extend(s.prototype.getVmConfig.call(this),{})},"getGoodsName":function(){return this.orderInfo.product_name||""},"getUnit":function(){return decodeURIComponent(o.fn.getParam("unit")||"")},"onVmInit":function(){this.status==s.ENUM_STATUS.SUCCESS&&this.setSuccessInfo()},"onQueryNoResult":function(e){this.setInfo(e)},"onQuerySuccess":function(){this.setSuccessInfo()},"onQueryFail":function(e,t){this.setInfo(e),this.setSubInfo(t)},"onQueryError":function(e){this.setInfo(e)},"setSuccessInfo":function(){var e="",t=r.getLoginStatus();t.qq1&&""!=this.provide_uin&&this.provide_uin!=this.session.openid&&(e=this.provide_uin);var n=(this.getUnit(),"");n=""!==e?"成功为"+e+"购买:":"成功购买:";var i="false"===this.params.showCount?"":" ×"+this.getAmount();this.setInfo(n+this.getGoodsName()+i),"undefined"!=typeof window.__GOODS_POLICY_OFFERID&&window.__GOODS_POLICY_OFFERID.length>0&&this.params&&window.__GOODS_POLICY_OFFERID.indexOf(this.params.appid)>-1&&(this.vm.bottomText='<div class="rational-tips" id="" style="bottom:20px"><p>适度娱乐 理性消费</p></div>')},"shouldMcardContinue":function(){return!1}}),i.getTemplate=function(){return s.getTemplate({"info":a()})},i.create=function(e){return new i(e)},e.exports=i},"115878448":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<form class="form-inline">\n <div ms-repeat="radioList" class="form-group radio-box" ms-class-1="checked:$index==index" ms-on-click="handleClick($index,$event)">\n <label ms-attr-for="radioId">\n <input type="radio" ms-attr-checked="$index==index">\n <i class="icon-radio"></i>\n <span ms-html="el.name"></span>\n </label>\n </div>\n</form>';return __p}},"116097651":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="mcard-controller-'+(null==(__t=mode)?"":__t)+'" class="pay-area-active">\n\n <div class="left-money-warn" ms-if="directpay">\n <div class="cellphone-info">\n <p>手机充值卡账户余额:<span><em class="left-money-em">{{balance}}</em>元</span>\n <a class="cellphone-tooltip-trigger" style="vertical-align: middle" ms-class-1="open:showTooltip" ms-on-mouseenter="toggleTooltip" ms-on-mouseleave="toggleTooltip">\n <i class="icon-info"></i>\n <span ms-visible="showTooltip" ms-on-mouseenter="onHoverToolTip" ms-on-mouseleave="onHoverToolTip" class="tooltip">手机充值卡将一次性销卡,请选择与卡面额对应的面值,若有金额剩余,将以手机充值卡账户余额的形式保留,供下次使用该渠道支付时使用。例如余额:5元,订单金额:10元,使用20元充值卡支付完成后会有15元存入手机充值卡账户余额。</span>\n </a>\n </p>\n </div>\n </div>\n <div ms-if="!showNext" class="oper-to-pay">\n <a ms-on-click="pay" ms-class-1="btn btn-default" ms-class-2="btn-dis:disableSubmit||amount==0" ms-class-3="loading:disableSubmit" href="#">\n <span ms-if="!disableSubmit">\n 确认支付 <span>{{price}}</span>元\n </span>\n <span>\n <i class="icon-btn-loading"></i> \n </span> \n </a>\n </div>\n <a ms-on-click="nextStep" ms-class="btn btn-default" ms-if="showNext" href="#">\n 下一步\n </a>\n</div>';return __p}},"116820311":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="friendpay-controller">\n <div class="qr-code-txt">\n <i class="icon-wx"></i><i class="icon-qq"></i>\n 微信或手Q扫码,邀请朋友支付\n <em ms-if="!priceLoading">{{price}}</em>\n <span ms-if="priceLoading" ms-html="priceLoadingTplHtml"></span>\n 元\n </div>\n <div class="qr-code-area" ms-visible="showQrcode">\n <div class="qr-code-container friendpay" ms-visible="!disableQrcode">\n <div id="qr-code-friendpay" style="display: none"></div>\n <img ms-if="url" ms-attr-src="url" ms-on-load="qrcodeLoaded" ms-on-error="qrcodeLoadFail">\n <div class="qr-code-mask" ms-if="qrcodeLoading||qrcodeReload||priceLoading"></div>\n <div class="qr-code-loading" ms-if="qrcodeLoading||priceLoading">\n <i></i>\n <p>加载中,请稍候</p>\n </div>\n <div class="qr-code-reload" ms-if="qrcodeReload" ms-on-click="refreshQrcode">\n <i></i>\n <p>重新获取二维码</p>\n </div>\n </div>\n <div class="qr-code-container friendpay" ms-visible="disableQrcode && !disableText"></div>\n </div>\n <div class="qr-code-area" ms-visible="showScaned">\n <i class="icon-phone"></i>\n <p>请在手机上分享给好友进行支付</p>\n <a href="javascript:void(0);" ms-on-click="backQrcode">返回二维码</a>\n </div>\n <div class="qr-code-area" ms-visible="disableQrcode && disableText">\n <i class="icon-phone"></i>\n <p>{{disableText}}</p>\n <a href="javascript:void(0);" ms-on-click="backQrcode">刷新二维码</a>\n </div>\n</div>';return __p}},"117538369":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div style="position:absolute;top:50%;left:50%;z-index:10000;" ms-css-width="{{width}}" ms-css-height="{{height}}" ms-css-margin="{{margin}}">\n\n <div class="cp-header" ms-if="!hideHeader">\n <!-- 标题 -->\n <h2 class="cp-header-title">{{title}}</h2>\n <!-- 关闭按钮 -->\n <div class="header-icon-last" ms-on-click="close">\n <!-- 这里可以更改icon -->\n <i class="icon-clear" style="margin-top: 5px;"></i>\n </div>\n </div>\n\n\n <div ms-if="!displayHtml" ms-attr-id="\'dialog_body_\'+domId" style="background-color: #fff;width:100%;height:100%;position:absolute;z-index: -1;text-align:center;">\n\n <iframe ms-if="url" ms-attr-id="\'dialog_iframe_\'+domId" class="cp-body-iframe" ms-attr-src="url" ms-on-load="iframeOnLoad" frameborder="0" style="width: 100%;height:100%">\n </iframe>\n\n </div>\n\n <div ms-html="displayHtml" ms-if="displayHtml" ms-attr-id="\'dialog_custom_\'+domId">\n </div>\n\n <div ms-if="dialogLoading" id="_webpay__dialog__load__" style="position: relative;height: 100%;">\n <div class="mdsweb-loading-wrapper abs">\n <div class="mdsweb-loading">\n <div class="dot"></div>\n <div class="dot"></div>\n <div class="dot"></div>\n </div>\n </div>\n </div>\n</div>\n';return __p}},"117821206":function(e,t,n){function i(e){e=e||{},this.opt=e,this.errCode=e.errCode,this.errMsg=e.errMsg,this.oriParams=e.oriParams}var o=n(4);o.fn.extend(i.prototype,{"canHandle":function(){return"function"==typeof this.opt[this.errCode]},"_handle":function(){var e=this.errCode;"function"==typeof this.opt[e]&&this.opt[e].apply(this,arguments)},"exec":function(){if(!this.canHandle())throw Error("can not handle this kind of error code");this._handle.apply(this,arguments)}}),e.exports=i},"118085477":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<p class="tips icon-tips" style="margin-top: 0">\n <span>当前充值<span style="color: #ff6d33"><span>{{amount}}</span>Q币</span>QQ卡可分多次使用</span>\n</p>\n<div class="oper-to-pay" style="margin-top: 10px">\n <a ms-on-click="pay" ms-class="btn btn-default" ms-class-1="loading:disableSubmit" ms-class-2="btn-dis:amount==0"\n href="#">\n <!--<span ms-if="!disableSubmit">确认支付 {{price}}元</span>-->\n <span ms-if="!disableSubmit">确认支付</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n</div>';return __p}},"118485612":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="kj-controller">\n <div id="kj-bank" ms-if="showBank">\n <ms:bankselector config="bankData" on-selected-bank="onSelectedBank"></ms:bankselector>\n <p class="choose-type tips icon-tips error" ms-if="tips!=\'\'"><i class="icon-warn"></i>{{tips}}</p>\n <div class="oper-to-pay">\n <a ms-on-click="pay" ms-class="btn btn-default" ms-class-1="btn-dis:disableSubmit" ms-class-2="loading:disableSubmit" href="#">\n <span ms-if="!disableSubmit">去支付 <span>{{price}}</span>元</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n </div>\n </div>\n <div id="kj-loading" class="mdsweb-loading-wrapper abs" style="display: none;height: 900px;">\n <div class="mdsweb-loading" style="top:100px;">\n <div class="dot"></div>\n <div class="dot"></div>\n <div class="dot"></div>\n </div>\n </div>\n <iframe id="tenpay-iframe" frameborder="0" scrolling="no" width="100%" height="100%" ms-visible="!showBank"></iframe>\n</div>';return __p}},"118694872":function(e,t,n){var i=n(1),o=n(110761999),s=n(104130588),a=n(12),r=n(76531812),c=n(10),l=n(4),u=n(104491903),d=n(109895087),h=n(72700182);e.exports=function(e){function t(e){n&&n.onBack&&n.onBack(e)}var n=i.define({"$id":"subChannel","subChannel":o(),"orderInfo":s(),"showHeader":!1,"showOrderInfo":!0,"subChannelHtml":"","subHeaderHtml":"","price":0,"goodsName":"","amount":"","onBack":function(e){"subChannel"==e&&(a.off("back",t),r.emit("destroy-channel"),n.subChannelHtml="")},"back":function(){e.back()},"initData":function(e){var t=r.getStore();n.price=e.price||t.getPrice(t.getChannelObj().discount).price,n.goodsName=t.getName(),n.showOrderInfo="undefined"==typeof e.showOrderInfo||e.showOrderInfo},"onInit":function(i){a.on("back",t),n.initData(i),c.user.action("page","subChannel",{"channel":i.channelObj.channel}),c("subChannel.pv",{"action":i.channelObj.channel});var o=function(e){n.subChannelHtml=e};r.isInit()&&r.renderChannel(o,l.fn.extend({},i)),e.on("InnerHeader",function(e){"subChannel"==e.page&&(n.showHeader=e.isShow)}),r.on(u,function(t){e.showBackBtn(t.getData().show)}),e.showInnerHeader&&h.create(e,{"currentPage":e.currentPage,"controllerId":"subheader","showBackText":"lol"==e.skin}).on("ready",function(){n.subHeaderHtml=d({"controllerId":"subheader","templateType":"default"})}),e.showBackBtn(!0)},"onResult":function(){e.showBackBtn(!0)}});return n}},"119158517":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="wechat_deposit-controller">\n <div ms-if="!priceLoading">\n <div>\n <div>\n <div class="deposit-info">\n <div class="deposit-info-item">\n <span class="deposit-info-label">小程序</span>\n <span class="deposit-info-text">{{merchantInfo.wx_app_name}}</span>\n </div>\n <div class="deposit-info-item">\n <span class="deposit-info-label">AppID</span>\n <span class="deposit-info-text">{{merchantInfo.wx_app_id}}</span>\n </div>\n <div class="deposit-info-item">\n <span class="deposit-info-label">出资商户号</span>\n <span class="deposit-info-text">\n {{merchantInfo.wx_sponsor_mch_id}}\n </span>\n </div>\n <div class="deposit-info-item">\n <span class="deposit-info-label">商户号简称</span>\n <span class="deposit-info-text">{{merchantInfo.wx_sponsor_mch_short_name}}</span>\n </div>\n <div class="deposit-info-item">\n <span class="deposit-info-label">出资类型</span>\n <span class="deposit-info-text">{{pay_type}}</span>\n </div>\n <div class="deposit-info-item">\n <span class="deposit-info-label">出资金额</span>\n <span class="deposit-info-text">¥ {{price}}</span>\n </div>\n </div>\n <div class="oper-to-pay" style="text-align: center;">\n <a ms-class="btn btn-default" ms-class-1="loading:paying" href="javascript:void(0)" ms-click="handleSubmit">\n <span ms-if="!paying">提交</span>\n <span><i class="icon-btn-loading"></i></span>\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>';return __p}},"119561448":function(e,t,n){var i=n(1),o=null,s="_cp__mask__",a=0;e.exports={"show":function(e){e=e||{},o=document.getElementById(s);var t=e.hasOwnProperty("opacity")?e.opacity:.3,n={"top":e.top||"0px","left":e.left||"0px","opacity":t,"filter":"alpha(opacity="+100*t+")","display":"block"};if(e.bgColor&&(n["background-color"]=e.bgColor),o)e.forceCss?i(o).css(i.mix(n,{"z-index":e.zIndex||9998,"display":"block"})):i(o).css(i.mix(n,{"display":"block"}));else{var r=document.createElement("div");r.id=s,r.className="cp_mask",i(r).css(i.mix(n,{"z-index":e.zIndex||9998,"display":"block"})),document.body.appendChild(r)}document.getElementById(s).onclick=function(){"function"==typeof e.onMaskClick&&e.onMaskClick()},a++},"hide":function(){a--,a>0||i(document.getElementById(s)).css({"display":"none"})},"remove":function(){a=0;var e=document.getElementById(s);e&&(e.onclick=null,document.body.removeChild(e))}}},"119656648":function(e,t,n){var i=n(112745811),o=n(72074753),s=function(e){this.store=e.store};s.prototype={"tenpayOrder":function(e,t){var n={"pay_method":this.store.hasBindCard()?"pccft:75":"pccft:72"},i=this;this.store.buy(avalon.mix(n,e),function(e){return~~e.ret?(t(e),i.secondLoginIsInvalid(e.ret)):(t(e),!0)})},"secondLoginIsInvalid":function(e){return["146","1905"].indexOf(String(e))>-1},"setAutoPay":function(e){if(this.store.setAutoPay){var t="1"==e.autopay;this.store.setAutoPay&&this.store.setAutoPay(t),this.store.report(String.format("{channel}.auto.click",{"channel":o.KJ}),{"action":t?1:0})}},"getServiceCode":function(){return(this.store.type==i.MONTH?this.store.getServiceCode():this.store.type).toUpperCase()},"getName":function(){return this.store.getName?this.store.getName():""}};e.exports=s},"119721272":function(e,t,n){var i=n(1),o=n(18),s=n(4),a=n(122180889),r=n(119656648),c=n(81089886),l=function(e){var t=s.fn.getParam("pf",null);return t=t?t:"15200","stat_type=21&stat_data=fp_1_"+e+"_"+t},u=function(){var e=s.fn.getParam("cft_skin");return e||"minipay1"},d=function(e,t,n){if(t&&!~~t.ret){var i=t.info.channel_info.bank_info,o=this;if(this.emit("load",!0),i&&"string"==typeof i){var a="",r="&cross_domain=1&pay_scene=10&stat_comm="+encodeURIComponent(l(this.tenpayCgi.getServiceCode()))+"&style="+u(),c=s.cookie.get("uin"),d=s.cookie.get("skey"),h="https://www.tenpay.com/cgi-bin/v1.0/communitylogin.cgi?win=self&p_uin="+c+"&skey="+d+"&u1=";try{a=c&&d?h+encodeURIComponent(decodeURIComponent(i)+r):decodeURIComponent(i)+r}catch(p){o.store.report("KJ.jumpurl.error")}return this.ready=!1,this.avalonTenpayIfrm.attr("src",a),this.tenpayStartTime=new Date,void this._timeoutPool.push(setTimeout(function(){o.emit("load",!1)},3e3))}}this.emit("load",!1),this.emit("error",t)},h=function(e){if(!e.store)throw Error("tenpay api initialization need the cgi service that include the order");this.tenpayXcross=new c,this._handlers={},this.tenpayCgi=new r({"store":e.store}),this.store=e.store,this.tenpayIfrm=e.iframe,this.avalonTenpayIfrm=i(e.iframe),this._timeoutPool=[],this.ready=!1;var t=this;this.tenpayXcross.receiveMessage(function(e){var n;try{n=JSON.parse(e),t.trigger(String.format("tenpay.{eventType}",{"eventType":n.msg}),n)}catch(i){t.trigger("error",i)}})};i.mix(h.prototype,o,{"setAutoPay":function(e){if(this.ready){var t=JSON.stringify({"msg":"autopay","value":e.show?1:0,"service_code":this.tenpayCgi.getServiceCode(),"service_name":this.tenpayCgi.getName()});i.log("nofityTenpay.autopay",t),this.tenpayXcross.postMessage(t,this.tenpayIfrm.contentWindow)}},"setPrice":function(e){if(this.ready){var t=JSON.stringify({"msg":"fee","amount":e.amount,"fee":e.totalPrice,"qb":e.isRechargeQB?1:0});i.log("nofityTenpay.setPrice",t),this.tenpayXcross.postMessage(t,this.tenpayIfrm.contentWindow)}},"goPay":function(e){if(this.ready){var t=JSON.stringify({"msg":"pay","url":e.url,"service":this.tenpayCgi.getServiceCode().toUpperCase(),"guid":e.guid||""});i.log("goPay",t),this.tenpayXcross.postMessage(t,this.tenpayIfrm.contentWindow)}},"setCgiLoadTime":function(e){var t=JSON.stringify({"msg":"cgi_load","time":e});this.tenpayXcross.postMessage(t,this.tenpayIfrm.contentWindow)},"resize":function(e,t){this.emit("resize",{"width":~~e,"height":~~t}),~~e&&this.avalonTenpayIfrm.css("width",~~e),~~t&&this.avalonTenpayIfrm.css("height",~~t);try{}catch(n){}},"destory":function(){this.off(),this.tenpayXcross.deReceiveMessage(),i.each(this._timeoutPool,function(e,t){clearTimeout(t)});for(var e in this)"destory"!=e&&(this[e]=null)},"show":function(){this.avalonTenpayIfrm&&this.avalonTenpayIfrm.css("display","block")},"hide":function(){this.avalonTenpayIfrm&&this.avalonTenpayIfrm.css("display","none")},"open":function(e){var t=this;i.bind(window,"unload",function(){try{t.emit("lock",!1)}catch(e){}}),this.tenpayCgi.tenpayOrder(e,d.bind(this,e))}}),e.exports=function(e){var t=new h(e);return a(t),t}},"120688004":function(e,t){e.exports="amount-change"},"120707620":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div>\n <div>\n <div class="choose-type">\n <ms:banktypechoose config="bankTypeListConfig" on-change="handleChooseBankType"></ms:banktypechoose>\n </div>\n <ms:bankchoose config="bankListConfig" on-change="handleChooseBank"></ms:bankchoose>\n <div class="choose-type">\n <ms:typechoose config="cardTypeConfig" on-change="handleChooseCardType"></ms:typechoose>\n </div>\n </div>\n</div>';return __p}},"121508273":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="quantity-input" ms-css-width="{{unit?\'\':width}}" ms-class-1="with-unit:unit">\n\n <button hidefocus="true" type="button" ms-class="reduce " ms-click="decrease" ms-attr-id="btn1">\n <i class="icon-reduce"></i>\n </button>\n\n\n <div class="input-area" >\n\n <input ms-if="!unit" class="quantity-input-tx" ms-css-width="{{width-38*2}}" onpaste="return false"\n ms-on-keydown="keydown"\n ms-on-focus="focus" ms-on-blur="blur" ms-attr-value="value" ms-attr-id="id1"/>\n\n <input ms-if="unit" class="quantity-input-tx" onpaste="return false"\n ms-on-keydown="keydown"\n ms-on-focus="focus" ms-on-blur="blur" ms-attr-value="value" ms-attr-id="id1"/>\n <span ms-if="unit" >{{unit}}</span>\n </div>\n\n\n <button type="button" ms-click="increase" hidefocus="true" ms-class="add" ms-attr-id="btn2">\n <i class="icon-add"></i>\n </button>\n\n</div>\n\n\n';
return __p}},"121800003":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div ms-controller="couponlist">\n <div ms-visible="active" ms-css-bottom="bottom" class="pop-vouchers-list" id="coupon-list-container" ms-on-mouseleave="showCouponList(false,$event)">\n <ul ms-visible="!isLoading">\n <li ms-class-1="selected:el.id==defaultCoupon" ms-repeat="couponListInView" ms-on-click="handleClick(el,$event)">\n <div ms-class-1="vouchers-con" ms-if="el.without">\n <span class="no-use">不使用优惠券</span>\n <i class="icon-corner-checked"></i>\n </div>\n <div ms-class-1="vouchers-con" ms-if="el.disable&&!el.isFrozen" ms-class-2="disable:el.disable">\n <span class="price"><b>{{el.amt}}</b>元</span>\n <span class="name"><em>{{el.name}}</em><i class="icon-special" ms-if="el.tips">{{el.tips}}</i></span>\n <span class="condition font-10px">{{el.desc}}</span>\n <span class="deadline font-10px">{{el.endDate}}前有效</span>\n </div>\n <div ms-if="el.isValid" ms-class-1="vouchers-con">\n <span class="price"><b>{{el.amt}}</b>元</span>\n <span class="name"><em>{{el.name}}</em><i class="icon-special" ms-if="el.tips">{{el.tips}}</i></span>\n <span class="condition font-10px">{{el.desc}}</span>\n <span class="deadline font-10px">{{el.endDate}}前有效</span>\n <i class="icon-corner-checked"></i>\n </div>\n <div ms-class-1="vouchers-con" ms-if="el.isFrozen&&!el.expired" ms-class-2="freeze:el.isFrozen" ms-class-3="loading:el.isLoading">\n <span class="price"><b>{{el.amt}}</b>元</span>\n <span class="name"><em>{{el.name}}</em><i class="icon-special" ms-if="el.tips">{{el.tips}}</i></span>\n <span class="condition font-10px">{{el.desc}}</span>\n <span class="deadline font-10px">{{el.endDate}}前有效</span>\n <a class="btn-activate" ms-on-click="handleActive(el,$event)" href="#">激活</a>\n <!--TODO: 游戏大厅内嵌时,href="javascript:void(0);"回滚请求被浏览器取消, 可能触发了IE的bug,需要加onclick="return false; 简单改法是直接改成href="#"-->\n </div>\n <div class="vouchers-con expired" ms-if="el.expired">\n <span class="price"><b>{{el.amt}}</b>元</span>\n <span class="name"><em>{{el.name}}</em><i class="icon-special" ms-if="el.tips">{{el.tips}}</i></span>\n <span class="condition font-10px">{{el.desc}}</span>\n <span class="deadline font-10px">{{el.endDate}}前有效</span>\n <i class="icon-expired"></i>\n </div>\n </li>\n </ul>\n <div ms-visible="isLoading" class="mdsweb-loading-wrapper abs" style="z-index:1000;background:none">\n <div class="mdsweb-loading">\n <div class="dot"></div>\n <div class="dot"></div>\n <div class="dot"></div>\n </div>\n </div>\n <!-- 分页 -->\n <div class="topage">\n <div class="tpage">\n <div class="tpage-left">\n <span class="tpage-left-btn" ms-on-click="handlePrevPage($event)" style="*top: -5px">\n <i class="tpage-left-btn-icon"></i>\n </span>\n </div>\n <p class="tpage-center">\n <span class="tpage-now" id="tpage-now">{{currentPage}}</span> / <span class="tpage-all" id="tpage-all">{{totalPages}}</span> \n </p>\n <div class="tpage-right">\n <span class="tpage-right-btn" ms-on-click="handleNextPage($event)" style="*top: -5px">\n <i class="tpage-right-btn-icon"></i>\n </span>\n </div>\n </div>\n </div>\n </div>\n</div>\n';return __p}},"122180889":function(e,t,n){var i=n(1),o=n(10),s=n(72074753),a={"pay":function(e){this.tenpayCgi.setAutoPay(e),this.emit("order",e);var t=function(e){return{"auto_cont":e.autopay,"guid":e.guid}};o(String.format("{channel}.pay.click",{"channel":s.KJ}));var n=function(e){this.emit("load",!0);var n=this,o=t(e);this.tenpayCgi.tenpayOrder(o,function(t){if(~~t.ret)n.emit("error",t);else{var o=t.info.channel_info.bank_info;o&&"string"==typeof o?(i.mix(e,{"url":o}),n.goPay(e)):n.emit("error",t)}n.emit("load",!1)})};this.emit("check",{"done":n.bind(this,e)})},"success":function(e){this.emit("load",!1),this.emit("pay",e)},"statics":function(e){},"adjust":function(e){this.resize(e.width,e.height)},"notify":function(e){i.log("defaultEventHandles.notify",e),e&&"onload"===e.action&&this.emit("onload",{})},"begin":function(){this.tenpayPageStartTime=new Date,this.setCgiLoadTime(this.tenpayStartTime),this.emit("load",!0)},"main_load":function(){this.tenpayMainLoadTime=new Date},"html_load":function(){this.tenpayHtmlLoadTime=new Date},"js_load":function(){this.tenpayJSLoadTime=new Date},"channel":function(e){i.log("defaultEventHandles.channel",e),e&&"bank"===e.action&&this.emit("bank",e)},"fail":function(e){this.emit("load",!1)},"ready":function(){this.emit("load",!1),this.ready=!0,this.emit("ready",{})},"discount_card":function(e){i.log("defaultEventHandles.discount_card",e),this.emit("discount",e)},"form":function(e){i.log("defaultEventHandles.form",e),e&&"undefined"!=typeof e.value&&this.emit("form",~~e.value)}};e.exports=function(e){i.each(a,function(t,n){e.on(String.format("tenpay.{eventType}",{"eventType":t}),n.bind(e))})}},"122487386":function(e,t,n){var i=n(1),o=n(80661677),s=n(12),a=n(4),r=n(17);e.exports=function(e){function t(e){l&&l.onBack&&l.onBack(e)}function n(e){l.resultContent=e}var c,l=i.define({"$id":"result","resultWrapper":o(),"resultContent":"","onBack":function(e){"result"==e&&(s.off("back",t),l.resultContent="",c&&a.lang.isFunction(c.onDestroy)&&c.onDestroy())},"back":function(){s.back()},"onInit":function(e){r.notify("hideBackBtn"),e=e||{},s.on("back",t);var i=e.ResultClass;if(!i)throw Error("you should provide ResultClass");delete e.ResultClass,n(i.getTemplate()),c=i.create(e)}});return l}},"122749947":function(e,t,n){var i=n(1),o=n(49140953),s=n(73715473),a=n(76531812),r=(n(67885002),n(90130478)),c=n(12),l=n(56851482),u=n(84811753),d=n(120688004),h=n(104011899),p=n(44017488),f=n(82030767),m=n(78901017),g=n(70127470),v=n(4),y=n(109735088),_=n(106535216),b=n(102521382),w=n(112745811),C=n(104130588),k=n(17),x=n(19),S=n(10),T=n(98039766),I={"openVip":n(122752286)()},P="//midas.gtimg.cn/enterprise/images/logo.png",L=(window.innerHeight,y.getLoginStatus()),N=n(103146681),q=n(87145282),B=n(26);e.exports=function(e){var t=e,n=i.define({"$id":"order","id":"order_info","simpleOrderHtml":"","orderHtml":"","loadingTplHtml":"","channelList":"","amountSpinerHtml":"","curChannel":null,"subtitle":null,"fvm":null,"discount":1,"priceLoading":!1,"hideLogo":"1"===r.buyInfo.hideLogo,"$skipArray":["curChannel","friendListConfig"],"channelData":{"data":{"channels":[],"defaultChannel":""}},"cardConfig":{"data":[{"title":"30每月","desc":"定3个月","total":"共90块"}]},"mpInfo":null,"goodsName":"","showAccountInfo":L.qq||L.wechat,"openVipInfo":null,"logo":"","onLogoError":function(){n.logo=P},"spinerConfig":{"min":1,"max":9999,"step":1,"value":0,"onChange":function(e){r.setAmount(e),n.updatePrice(!1),n.amount=e}},"accountTitle":"","account":"","area":"","active":!0,"friendSelector":"","friendListConfig":{"container":"friendSelector","initCallBack":!1,"initExpand":!0,"data":[],"value":{},"onInit":function(e){n.fvm=e},"onBlur":function(){n.active=!0},"onFriendSelected":function(e){n.active=!0,n.account=e.qq+String.format("{nickname}",{"nickname":e.name}),r.provide_uin=e.qq,x.set("qqNickName",e.name),a.emit("dataChange",new u(h,{"provide_uin":e.qq})),n.fvm}},"price":0,"amount":0,"unitPrice":0,"showOrder":!0,"allowSend":r.isAllowSend(),"isQQLogin":y.getLoginStatus().ptlogin,"showChannel":!0,"reqId":0,"changeAccount":function(){var e=n,t=function(t){n.active=!1,e.friendListConfig.data=t,e.friendListConfig.value=t[0],i.nextTick(function(){m.create(e.friendListConfig)})};n.isQQLogin&&(n.fvm?(n.active=!1,i.nextTick(function(){n.fvm.focusInput(),n.fvm.show()})):g(r,t,{}))},"goFlowControl":function(e){c.go("result",v.fn.extend({"status":"error","type":"infores","buttonTxt":"关闭","titleTxt":"温馨提示","flowControl":!0,"displayInfo":o.TEXT.INFOFLOWCONTROL},e))},"onGetOrderInfoError":function(e){var i={"status":"error","cgi":r.getCgi(),"session":r.getSession()};if(1018==~~e.ret){if((y.getLoginStatus().ptlogin||y.getLoginStatus().pskey)&&y.canUsePTLoginCookie)return n.showOrder=!1,void b.init(function(){b.setCallBack({"daid":307,"onSuccess":function(){location.replace(v.fn.addParam({"openid":+v.cookie.get("p_uin").replace(/[^\d]/g,""),"openkey":v.cookie.get("p_skey"),"session_id":"uin","session_type":"pskey_307"},location.href))}}),b.show()})}else if(e.ret===-9503)return B.setCookie("info"),void n.goFlowControl({"countDownTime":B.keepSecond,"res":e});v.fn.extend(i,{"displayInfo":e.msg||o.TEXT.GETORDERFAIL,"showFinish":!1,"actionType":t.actionType,"modifyTitle":!1,"res":e}),c.go("result",i)},"onInit":function(e){if(window.cashier.hideBackBtn(),r.buyInfo.info_control){var t=parseInt(r.buyInfo.info_control);return void i.nextTick(function(){n.goFlowControl({"countDownTime":t})})}if(!_.checkAndBlockAccess(r.buyInfo.appid)){e=e||{},n.orderHtml=s(),n.loadingTplHtml=T();var o=r.checkParams();if(!o.isPass){try{cashier.onError(o.errMsg)}catch(a){}return void cashier.close()}r.getOrderInfo(function(e){if(document.getElementById("body").style.display="block",i(v.Id("cp_loading_")).css({"display":"none"}),~~e.ret)return void n.onGetOrderInfoError(e);n.initAmountSpiner(),n.initChannelSelector(),n.goodsName=1==~~r.buyInfo.desc_as_name?f(e).goodsDesc:f(e).goodsName,2!==e.appmode&&"true"===r.buyInfo.showProductCount&&(n.goodsName+=" ×"+e.count);var t=decodeURIComponent(e.logo)||P;try{t=t.replace(/http\:/,"")}catch(o){}if(n.logo=t,n.updatePrice(!0),2==e.appmode)n.unitPrice=r.getPrice(n.discount).unitPrice;else if(1==e.appmode&&"1"==r.buyInfo.showSubTitle){var s=e.goodsdes;s=s.length>74?s.substr(0,74):s,n.subtitle=s}n.showOpenVip(),S.Performance.userTrace("timer.js.exec")});var c=y.getLoginStatus();y.getLoginStatus().wechat?(n.accountTitle="正在为微信账户购买道具",r.getWechatNick(function(e){e.nickname&&(n.accountTitle="微信昵称:"),n.account=e.nickname,x.set("wechatNickName",e.nickname)})):y.getLoginStatus().qq1||y.getLoginStatus().pskey||y.getLoginStatus().ctlogin?(n.accountTitle="购买账号:",n.account=r.getSession().openid):c.accesstoken||c.qqconnect||c.openid?i.nextTick(function(){r.getQQNick(function(e){e?(n.accountTitle="QQ昵称:",n.account=e,x.set("qqNickName",e)):n.accountTitle="QQ用户"})}):(n.accountTitle="",n.account="")}},"hasMp":function(){return!!n.mpInfo},"showOpenVip":function(){var e=r.getVipInfo();e&&(e.isVip||e.canOpen&&(e.vipDiscount>=1||e.vipDiscount<.1||(n.openVipInfo={"vipName":e.vipName,"vipUnitPrice":v.math.toDecimal(v.math.mul(n.unitPrice,e.vipDiscount),2),"vipDiscount":e.displayVipDiscount+"折","vipCode":e.vipCode},n.openVipInfo.vipUnitPrice<.01||(n.mpInfo=I.openVip))))},"openVip":function(){n.openVipInfo&&r.openVip()},"onResult":function(e){window.cashier.hideBackBtn(),k.notify("resetTitle"),v.delayRun("again.event",function(){a.emit("onShow")},500),e&&e.refresh&&a.emit("dataChange",e.refresh.key,e.refresh.data)},"updatePrice":function(e){e?n.price=r.getPrice(n.discount).price:r.getInfo().discount_price?(n.priceLoading=!0,a.emit("priceLoading",new u(N)),v.delayRun("updatePrice.event",function(){n.reqId++;var e=n.reqId;r.getDiscountPrice({"buy_quantity":n.amount}).then(function(t){e===n.reqId&&(r.setDiscountPrice(t.discount_price),r.setAmount(t.count),n.price=r.getPrice(n.discount).price,n.unitPrice=r.getPrice(n.discount).unitPrice,n.priceLoading=!1,a.emit("priceLoading",new u(q)),a.emit("dataChange",new u(d,{"count":r.getAmount(),"discount_price":r.getInfo().discount_price,"need_delay_save":!0})))})["catch"](function(e){n.onGetOrderInfoError(e)})},500)):(n.price=r.getPrice(n.discount).price,a.emit("dataChange",new u(d,{"count":r.getAmount(),"discount_price":r.getInfo().discount_price,"need_delay_save":!0})))},"initAmountSpiner":function(){var e=r.getInfo();return 2!=~~e.appmode?void(n.amount=~~e.count):(n.spinerConfig.value=~~e.count,n.amount=n.spinerConfig.value,~~e.max_num>0&&(n.spinerConfig.max=e.max_num),void(n.amountSpinerHtml=l.create("spinerConfig")))},"initChannelSelector":function(){var t=r.getInfo(),o=function(e){n.channelList=e};t&&a.init({"info":t,"session":r.session,"cgi":r.cgi,"params":r.buyInfo,"type":w.GOODS},function(){a.render(o),a.on("channelDataChange",function(e){});var t=null;a.on("channelChange",function(e){"true"!==r.buyInfo.noresize&&"auto"!=e.height&&t!==e.height&&(t=e.height,v.delayRun("channnel.resize.event",function(){var t=i(document.getElementById("channelSelectWrap")).outerHeight(!0),n=e.height+i(document.getElementById("order_info")).outerHeight(!0)+t+(t>0?20:0);k.resize({"h":n})},100))}),a.on(p,function(t){var i=t.getData().showBindCard;i?(n.simpleOrderHtml=C(),k.trigger("headerDataReady",{"title":a.getStore().getChannelObj().channelText}),e.fakeSubChannel=!0):(n.simpleOrderHtml="",k.notify("resetTitle"),e.fakeSubChannel=!1)})})},"onSelectChannel":function(e){n.channelModule="",channelHandler[e.channel]&&i.nextTick(function(){n.curChannel=channelHandler[e.channel].call(n,e,{"channelCallback":n.channelCallback})})},"channelCallback":function(e,t){}});return n}},"122752286":function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="vip-info" ms-if="openVipInfo">\n {{openVipInfo.vipName}}\n {{openVipInfo.vipDiscount}}\n 单价:\n {{openVipInfo.vipUnitPrice}}元\n <a ms-on-click="openVip" style="cursor: pointer">开通{{openVipInfo.vipName}}</a>\n</div>';return __p}},"123135374":function(e,t,n){var i=n(4),o=n(118485612),s=n(1),a=n(100835382);n(77769056);var r=n(119721272),c=n(119561448),l=n(44017488),u=n(84811753),d=n(98010485),h=(n(102521382),n(17)),p=n(49140953),f=({"ret":-9999,"msg":p.TEXT.INVALIDLOGIN},n(72074753)),m=n(112745811),g=n(109735088),v=function(e,t,n){a.apply(this,arguments),this.bankObj={},this.filterBankType="kj",this.tenpayApi=null,this.loadingDom=null,this.iframeID="tenpay-iframe",this.loadingID="kj-loading",this.bankID="kj-bank",this.cacheBankKey="selected.bank",this.cacheBankData=this.getCookie(),this.status=1,this.init()},y={"init":function(){this.initVm(),this.fetchPrice(),this.fetchAmount(),this.on("render",function(){this.openTenpay.apply(this,arguments),this.bindShowEvent(),3==this.status&&(this.switchToBindCardUI(this.showBindCardUI),this.store.emit("onShow"))}.bind(this))},"switchToBindCardUI":function(e){this.store.emit("channelDataChange",new u(l,{"showBindCard":e})),e?(this.reportUser("bindcard.pv"),this.vm.showBank=!1):(this.reportUser("binkcard.back"),this.showBank(!0),this.updateTenpay(),this.store.hasBindCard()||(this.vm.showBank=!e)),v.HEIGHT=this.vm.showBank?p.channels[f.KJ].height:v.HEIGHT,s.nextTick(function(){this.store.emit("onShow")}.bind(this))},"bindEvent":function(){var e=this;this.tenpayApi.on("load",function(t){e.loading(t,!0),t||c.hide()}),this.tenpayApi.on("resize",function(t){i.delayRun("kj.resize",function(){v.HEIGHT=e.vm.showBank?p.channels[f.KJ].height:document.getElementById(e.iframeID).clientHeight,e.store.emit("onShow")},200)}),this.tenpayApi.on("order",function(t){e.reportUser("pay.click",{"page":e.showBindCardUI?"bindcard":"kj"})}),this.tenpayApi.on("bank",function(){e.switchToBindCardUI(!1),e.store.hasBindCard()&&e.store.triggerSelectChannel(f.BANK)}),this.tenpayApi.on("error",function(t){e.loading(!1),c.hide(),e.secondLoginIsInvalid(t.ret)?e.showQQLoginBox({"onSuccess":function(){e.openTenpay({"force":!0})},"onClose":function(){}}):(e.status>2&&(e.status=2),e.showBindCardUI||e.store.hasBindCard()||e.showBank(!0))}),this.tenpayApi.on("ready",function(t){e.store.hasBindCard()&&e.reportUser("kj.pv"),e.loading(!1,!0),e.updateTenpay(),e.status=3,c.hide()}),this.tenpayApi.on("form",function(t){var n=1==t;e.showBindCardUI=n,e.store.hasBindCard()?n&&e.reportUser("switch.bindcard"):n&&e.reportUser("switch.addcard"),e.switchToBindCardUI(n)}),this.tenpayApi.on("discount",function(e){}),this.tenpayApi.on("check",function(e){e.done()}),this.tenpayApi.on("pay",function(t){e.reportUser("pay.click"),e.store.onSuccess()})},"bindShowEvent":function(){this.onShow=function(){this.store.emit("channelResize",v.HEIGHT)}.bind(this),this.store.on("onShow",this.onShow)},"destroyShowEvent":function(){this.onShow&&this.store.off("onShow",this.onShow)},"loading":function(e,t){if(e)this.loadingDom.css({"display":"block"});else{var n=this;t?i.delayRun("kj.load",function(){n.loadingDom.css({"display":"none"})},200):this.loadingDom.css({"display":"none"})}},"showBank":function(e){this.bankDom&&(this.vm.showBank=!!e,this.bankDom.css({"display":e?"block":"none"}))},"getCookie":function(){var e=this.convertStrToObj(i.cookie.get(this.cacheBankKey)),t=e[this.store.getSession().getSessionParam().openid],n=d(t);return n.bank&&(n.bankType=t),n},"fetchPrice":function(){var e=this.store.getPrice().price;this.price=this.store.getPrice(i.discount.checkHasDiscount(e,"kj")?this.channelObj.discount:void 0).price,this.vm.price=this.price},"fetchAmount":function(){this.amount=this.store.getAmount()},"fetchTargetUin":function(){this.isSelf=this.store.buyForSelf(),this.showAutoPay(this.isSelf)},"setAutoPay":function(){var e=this.store.supportAutoPay(this.channelObj);this.showAutoPay(e)},"onChange":function(){this.setAutoPay(),this.setPrice()},"updateData":function(e,t,n){this.opts=n,this.store=e,this.channelObj=t,this.onChange(),this.addListener()},"onSelectedBank":function(e){this.vm.disableSubmit=!0,e.bank?e.curCardType?(this.vm.tips="",this.vm.disableSubmit=!1,this.bankSelectedObj=e,this.bankSelectedObj.curPayType=this.filterBankType,this.bankSelectedObj.bankType=window.__BANK_CONFIG[this.bankSelectedObj.bank][this.bankSelectedObj.curCardType][this.bankSelectedObj.curPayType]):this.vm.tips="请选择银行卡类型":this.vm.tips="请选择银行"},"showAutoPay":function(e){this.tenpayApi&&this.tenpayApi.setAutoPay({"show":this.store.supportAutoPay(this.channelObj)})},"convertStrToObj":function(e){var t,n={},i=[];return e&&e.length>0&&(i=e.split("&"),s.each(i,function(e,i){t=i.split("="),n[t[0]]=decodeURIComponent(t[1])})),n},"setPrice":function(){this.fetchAmount(),this.fetchPrice(),this.tenpayApi&&this.tenpayApi.setPrice({"amount":this.amount,"totalPrice":100*this.price,"isRechargeQB":this.store.type==m.QB})},"getVmConfig":function(){var e=this;return{"$id":"kj-controller","price":this.price,"$skipArray":[""],"showBank":!1,"disableSubmit":!0,"bankData":s.mix({"filterType":this.filterBankType,"haspaytype":!1,"bankList":JSON.stringify(window.__BANK_CONFIG)},this.cacheBankData),"tips":"","pay":function(t){if(t.preventDefault(),!e.store.isInterfaceDisabled()){var n=function(t){e.vm.showBank&&(e.reportUser("bindcard.pv"),e.openTenpay({"force":!0}),e.showBank())};e.bankObj=s.mix({},e.bankSelectedObj);var i=g.getLoginStatusFromCookie();i&&i.qq?n():e.showQQLoginBox({"onSuccess":function(){n()},"onClose":function(){}})}},"onSelectedBank":this.onSelectedBank.bind(this)}},"initVm":function(){this.vm=s.define(this.getVmConfig())},"updateTenpay":function(){this.tenpayApi&&(this.showAutoPay(),this.setPrice())},"openTenpay":function(e){if(!this.store.isInterfaceDisabled()){var t=this.opts.bankType||this.bankObj.bankType;if(!t&&!this.store.hasBindCard())return this.vm.showBank=!0,void(this.bankDom=s(document.getElementById(this.bankID)));var n=g.getLoginStatusFromCookie();if(n&&n.qq){if(this.status<3){var i=this;h.register("goback",function(){i.showBindCardUI=!1,i.switchToBindCardUI(!1)})}if(this.status<3||e.force){this.loadingDom=s(document.getElementById(this.loadingID)),this.loading(!0),c.show({"opacity":"0"}),1==this.status&&(this.tenpayApi=r({"store":this.store,"iframe":document.getElementById(this.iframeID)}),this.bindEvent());var o={"uuid":this.uuid,"pushtype":"NodeJS","callback_url":"http://pay.qq.com/ipay/callback.shtml","auto_cont":this.store.getAutoPay&&this.store.getAutoPay()?1:0};t&&(o.bank_type=t),this.tenpayApi.open(o),this.status=2}}else{var i=this;this.showQQLoginBox({"onSuccess":function(){i.openTenpay()},"onClose":function(){}})}}},"onDestroy":function(){a.prototype.removeListener.call(this),this.destroyShowEvent()}};i.inherits(v,a),i.fn.extend(v.prototype,y);var _=null;v.HEIGHT=p.channels[f.KJ].height,v.create=function(e,t,n){return _?(_.updateData(e,t,n),_):_=new v(e,t,n)},v.getTemplate=function(e){return o(e)},e.exports=v},"123226908":function(e,t,n){var i=n(109735088),o=n(17),s=n(1),a=n(99020476);s.component("ms:login",{"$template":a(),"$replace":!0,"src":"","handleClose":function(){}});var r={"container":null,"opt":null,"heightCache":null,"create":function(){var e="access-login-container",t=this;s.define({"$id":e,"config":{"src":"https://graph.qq.com/oauth2.0/authorize?response_type=token&client_id=101502376&redirect_uri="+encodeURIComponent(location.protocol+"//pay.qq.com/midas/minipay_v2/views/public/connect_callback.html"),"handleClose":function(){"function"==typeof t.opt.onCancel&&t.opt.onCancel(),t.close()}}}),this.container=document.createElement("div"),this.container.setAttribute("style","position: absolute; top: 0; left: 0; bottom: 0; right: 0"),this.container.setAttribute("ms-controller",e),this.container.setAttribute("id",e),this.container.innerHTML="<ms:login config='config'></ms:login>",document.body.appendChild(this.container),s.scan(this.container)},"onLoginSuccess":function(e){var t={};try{t=JSON.parse(e.data)}catch(n){}if(/^https?:\/\/pay\.qq\.com$/.test(e.origin)&&"onLoginSuccess"===t.type){var i=t.loginStatus;r.onSuccess(i)}},"onSuccess":function(e){var t=this;this.close(),this.checkIsSelf(this.opt.bindInfo,e,function(n){i.setAccessLoginStatusToCookie({"openid":e.openid,"openkey":e.openkey},n),"function"==typeof t.opt.callback&&t.opt.callback()})},"checkIsSelf":function(e,t,n){"openid"===e.no_type||"wechatid"===e.no_type&&1==e.wc_bind_qq?i.checkIsSelf(this.opt.cgi,t,n):n(!1)},"showLogin":function(e){this.opt=e||{},this.heightCache=document.body.clientHeight,o.resize({"h":500}),this.create(),window.addEventListener?window.addEventListener("message",this.onLoginSuccess,!1):window.attachEvent?window.attachEvent("onmessage",this.onLoginSuccess):window["onmessage"]=this.onLoginSuccess},"close":function(){o.resize({"h":this.heightCache}),this.container&&(document.body.removeChild(this.container),this.container=null),window.removeEventListener?window.removeEventListener("message",this.onLoginSuccess):window.detachEvent?window.detachEvent("onmessage",this.onLoginSuccess):window["onmessage"]=null}};e.exports=r}});