chunk-5b09ae8c.88730fef.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b09ae8c"],{"0cc8":function(e,t,n){},1402:function(e,t,n){"use strict";n("36f8")},"2d45":function(e,t,n){},"36f8":function(e,t,n){},"728b":function(e,t,n){"use strict";n("2d45")},"7a47":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("div",{staticClass:"descriptions-container"},[n("div",{staticClass:"descriptions"},[n("div",{staticClass:"title"},[e._v("服务信息")]),e._v(" "),n("el-row",[n("el-col",{attrs:{span:15}},[e._v("当前版本:"),n("span",{staticClass:"color"},[e._v(e._s(e.dataInfo.serverName))])]),e._v(" "),n("el-col",{attrs:{span:9}},[e._v("学员上限:"),n("span",{staticClass:"color"},[e._v(e._s(e.dataInfo.studentNum))]),e._v(" / "+e._s(e.dataInfo.studentUpLimit)+"人")]),e._v(" "),n("el-col",{attrs:{span:15}},[e._v("服务有效期:"),e.dataInfo.expiryDate&&e.dataInfo.expiryDateEnd?n("span",{staticClass:"color"},[e._v(e._s(e.dataInfo.expiryDate)+" ~ "+e._s(e.dataInfo.expiryDateEnd))]):e._e()]),e._v(" "),n("el-col",{attrs:{span:9}},[e._v("有效期剩余:"),n("span",{staticClass:"color"},[e._v(e._s(e.dataInfo.validRemaining)+"天")])])],1)],1),e._v(" "),n("div",{staticClass:"descriptions small"},[n("div",{staticClass:"title"},[e._v("云教室余额 "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:e.onDetail}},[e._v("扣费记录 >>")])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24}},[e._v("云教室总余额:"),n("span",{staticClass:"color"},[e._v(e._s(e._f("hasMoneyFormat")(e.dataInfo.sumBalance)))])])],1)],1)]),e._v(" "),n("tab-router",{ref:"tab",model:{value:e.activeIndex,callback:function(t){e.activeIndex=t},expression:"activeIndex"}},[e.permission("/cloudRecharge")?n("el-tab-pane",{attrs:{label:"云教室充值",lazy:"",name:"2"}},[2==e.activeIndex?n("cloud-recharge"):e._e()],1):e._e()],1)],1)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("产品服务\n ")])}],o=(n("96cf"),n("1da1")),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cloudRecharge"},[e._m(0),e._v(" "),n("el-form",{ref:"form",attrs:{"label-position":"top",model:e.form,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"充值金额",prop:"amount",rules:[{required:!0,message:"请输入充值金额",trigger:"blur"},{required:!0,validator:e.validPrice,trigger:"blur"}]}},[n("el-input",{attrs:{placeholder:"请输入充值金额",oninput:"value=value.indexOf('.') > -1?value.slice(0, value.indexOf('.') + 3):value",type:"number"},model:{value:e.form.amount,callback:function(t){e.$set(e.form,"amount",t)},expression:"form.amount"}},[n("div",{attrs:{slot:"append"},slot:"append"},[e._v("元")])])],1)],1),e._v(" "),e.$helpers.permission("tenantInfo/recharge")?n("div",{staticClass:"sure"},[n("el-button",{attrs:{type:"primary"},on:{click:e.onRecharge}},[e._v("确认充值")])],1):e._e(),e._v(" "),e.cloudVisible?n("el-dialog",{attrs:{title:"服务订单",visible:e.cloudVisible,width:"1000px","append-to-body":""},on:{"update:visible":function(t){e.cloudVisible=t}}},[n("rechargeModel",{attrs:{amount:e.form.amount},on:{close:function(t){e.cloudVisible=!1}}})],1):e._e()],1)},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tips"},[n("h2",[e._v("云教室扣费规则")]),e._v(" "),n("div",{staticClass:"tips_container"},[e._v("\n 1.系统根据线上课课程人数(含老师)进行扣费;"),n("br"),e._v("\n 2.用户人数2人(含老师)每分钟0.2元;用户人数3人(含老师)每分钟0.5元;"),n("br"),e._v("\n 3.每节线上课平台赠送10分钟免费时长,分别为课前5分钟及课后5分钟,总送时长不计算费用;"),n("br"),e._v("\n 4.扣费金额按排课人数计算,无论实际到课人数是否为排课人数,都会按照排课人数扣费"),n("br"),e._v("\n 5.课程结束后费用立即结算。\n ")])])}],l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chioseWrap"},[n("el-form",{ref:"payForm",attrs:{inline:!0,model:e.payForm}},[n("el-form-item",{attrs:{prop:"payType",rules:[{required:!0,message:"请选择支付方式",trigger:"change"}]}},[n("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择支付方式"},model:{value:e.payForm.payType,callback:function(t){e.$set(e.payForm,"payType","string"===typeof t?t.trim():t)},expression:"payForm.payType"}},[n("el-option",{attrs:{label:"支付宝支付",value:"alipay_qr"}}),e._v(" "),n("el-option",{attrs:{label:"微信支付",value:"wx_pub"}})],1)],1)],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"name",label:"产品名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"充值金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("hasMoneyFormat")(t.row.rechargeAmount))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"支付价格(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("hasMoneyFormat")(t.row.amount)))])]}}])})],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){return e.$listeners.close()}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onMemberPay}},[e._v("确 定")])],1),e._v(" "),e.payMentVisible?n("el-dialog",{attrs:{title:"激活会员",visible:e.payMentVisible,"before-close":e.onClose,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.payMentVisible=t}}},[n("payment",{attrs:{tableList:e.tableList,orderNo:e.orderNo,codeUrl:e.codeUrl},on:{close:e.onPaymentClose}})],1):e._e()],1)},c=[],u=n("829b"),p=function(e){return Object(u["a"])({url:"/api-web/tenantInfo/recharge/".concat(e.amount),method:"get"})},d=function(e){return Object(u["a"])({url:"/api-web/tenantInfo/rechargeCheck/"+e.orderNo,method:"get",hideLoading:!0})},m=function(e){return Object(u["a"])({url:"/api-web/tenantInfo/queryTenantInfoSumm",method:"get",params:e})},f=n("61f7"),v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chioseWrap"},[n("p",[e._v("请在30分钟完成扫码支付")]),e._v(" "),n("vue-qr",{staticStyle:{width:"250px"},attrs:{text:e.codeUrl,margin:0}})],1)},h=[],y=n("b85c"),b=n("658f"),_=n.n(b),g={props:{tableList:{type:Array,default:[]},orderNo:{type:String},codeUrl:{type:String}},components:{VueQr:_.a},data:function(){return{payForm:{payType:null},selectStudentMoney:0,orderTimer:null}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,a,r,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.tableList||[],n=Object(y["a"])(t);try{for(n.s();!(a=n.n()).done;)r=a.value,this.selectStudentMoney+=parseFloat(r.amount)}catch(i){n.e(i)}finally{n.f()}setTimeout((function(){o.getPaymentStatus()}),3e3);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getPaymentStatus:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=setInterval(Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n.orderTimer=t,e.prev=1,e.next=4,d({orderNo:n.orderNo});case 4:a=e.sent,a.data&&(clearInterval(t),n.$message.success("您已成功缴费"),n.$emit("close",!0)),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](1),clearInterval(t);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),5e3);case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},beforeDestroy:function(){clearInterval(this.orderTimer)}},x=g,w=(n("728b"),n("2877")),I=Object(w["a"])(x,v,h,!1,null,"4e749ee2",null),R=I.exports,C={props:["amount"],components:{payment:R},data:function(){return{payForm:{payType:null},pay_channel:null,selectStudentMoney:0,payMentVisible:!1,codeUrl:null,orderNo:null,tableList:[]}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.amount&&(this.tableList=[{name:"云教室充值",rechargeAmount:this.amount,amount:this.amount}]);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{onMemberPay:function(){var e=this;this.$refs.payForm.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){var a,r,o,i,s,l,c,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=16;break}return t.prev=1,t.next=4,p({amount:e.amount});case 4:a=t.sent,console.log(a),r=e.payForm,o=a.data.payMap,i=o.orderNo,s=o.sign,l=o.amount,c=o.orderBody,u=o.orderSubject,e.orderNo=i,e.codeUrl=Object(f["d"])()+"/#/payCenter?orderNo="+i+"&sign="+s+"&amount="+l+"&payType="+r.payType+"&orderBody="+c+"&orderSubject="+u+"&platform=tenantRecharge",console.log(e.codeUrl,"codeUrl"),e.payMentVisible=!0,t.next=16;break;case 14:t.prev=14,t.t0=t["catch"](1);case 16:case"end":return t.stop()}}),t,null,[[1,14]])})));return function(e){return t.apply(this,arguments)}}())},onClose:function(e){this.onPaymentClose(!1,e)},onPaymentClose:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;if(t)return this.payMentVisible=!1,void this.$emit("close");this.$confirm("是否支付完成?","提示",{confirmButtonText:"已完成支付",cancelButtonText:"未完成支付",type:"warning"}).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:"function"==typeof n&&n(),e.payMentVisible=!1;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}},k=C,M=(n("f244"),Object(w["a"])(k,l,c,!1,null,"fbdce62e",null)),D=M.exports,j={name:"cloudRecharge",components:{rechargeModel:D},data:function(){return{cloudVisible:!1,form:{amount:null}}},methods:{onRecharge:function(){var e=this;this.$refs.form.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n&&(e.cloudVisible=!0);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},validPrice:function(e,t,n){""==t&&"string"==typeof t||null==t?n(new Error("请输入金额")):t<=0?n(new Error("输入金额必须大于0")):t>=1e5?n(new Error("输入金额必须小于100000")):n()}}},O=j,E=(n("1402"),Object(w["a"])(O,i,s,!1,null,"6e411a68",null)),S=E.exports,$=n("ec8a"),T=n("5a0c"),F=n.n(T),N={components:{cloudRecharge:S},name:"productService",data:function(){return{activeIndex:"2",dataInfo:{serverName:null,expiryDate:null,expiryDateEnd:null,studentNum:0,studentUpLimit:0,validRemaining:0,sumBalance:0,frozenAmount:0,balance:0}}},mounted:function(){this.__init()},methods:{permission:$["a"],__init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m();case 3:t=e.sent,console.log(t),this.dataInfo=t.data||{},this.dataInfo.expiryDate=t.data.expiryDate?F()(t.data.expiryDate).format("YYYY-MM-DD"):null,this.dataInfo.expiryDateEnd=t.data.expiryDateEnd?F()(t.data.expiryDateEnd).format("YYYY-MM-DD"):null,this.dataInfo.validRemaining=t.data.validRemaining||0,e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}(),onDetail:function(){this.$router.push("/systemManager/chargingRecord")}}},V=N,L=(n("a088"),Object(w["a"])(V,a,r,!1,null,"41f7c597",null));t["default"]=L.exports},a088:function(e,t,n){"use strict";n("c322")},c322:function(e,t,n){},f244:function(e,t,n){"use strict";n("0cc8")}}]);