chunk-ab650240.33b5a2ec.js 5.8 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ab650240"],{"00e9":function(c,a,r){c.exports=r.p+"img/couponsh2.beb204d4.png"},"267e":function(c,a,r){"use strict";var e=r("fbaa"),n=r.n(e);n.a},"5ab4":function(c,a,r){"use strict";r.r(a);var e=function(){var c=this,a=c.$createElement,e=c._self._c||a;return e("div",{staticClass:"activepay",class:[1012==c.branchId?"sh":""]},[1012==c.branchId?e("div",{key:"branchId",staticClass:"coupon-section"},[e("img",{attrs:{src:r("00e9"),alt:""}})]):e("div",{key:"branchId",staticClass:"coupon-section"},[777==c.activePrice||c.priceList.activePrice?e("img",{attrs:{src:r("9f0e"),alt:""}}):e("img",{attrs:{src:r("6e45"),alt:""}})]),1012==c.branchId?e("p",{staticClass:"tip"},[c._v("\n 活动规则: "),e("br"),c._v("\n 1.使用人群:仅限续费学员使用"),e("br"),c._v("\n 2.20节课/期,老学员最多可购买2期"),e("br"),c._v("\n 3.截止日期2019年11月11日24点前"),e("br")]):e("p",{staticClass:"tip"},[c._v("活动详情:充值"+c._s(c.showPrice)+"元抵扣"+c._s(c.activePrice)+"元。20节课原价"+c._s(c.markAmount)+"元,抵扣后立减"+c._s(c.activePrice-c.showPrice)+"元~仅需"+c._s(c.amount)+"元!\n "),e("br"),c._v("重点:课程不设有效期,最多可购买两期课程;\n 名额有限,仅限77席,先到先得,错过一次等一年!")]),1012==c.branchId?e("p",{staticClass:"tip_info"},[c._v("仅限77名学员,额满为止")]):c._e(),e("div",{staticStyle:{padding:"0 .25rem"}},[e("div",{staticClass:"btn-group"},[e("div",{staticClass:"btn",class:[1012==c.branchId?"sh":""],on:{click:c.onPromotionPay}},[e("del",[c._v("原价:"+c._s(c.markAmount))]),e("p",[c._v("现仅需:"+c._s(c.amount))])])])])])},n=[],i=(r("ac6a"),[{branchId:1019,branchName:"长沙分部",branchType:"一类",branchPrice:180},{branchId:1040,branchName:"常州分部",branchType:"一类",branchPrice:180},{branchId:1032,branchName:"成都分部",branchType:"一类",branchPrice:180},{branchId:1039,branchName:"大连分部",branchType:"一类",branchPrice:180},{branchId:1036,branchName:"福州分部",branchType:"一类",branchPrice:180},{branchId:1020,branchName:"广州分部",branchType:"二类",branchPrice:220},{branchId:1013,branchName:"贵阳分部",branchType:"一类",branchPrice:180},{branchId:1025,branchName:"杭州分部",branchType:"二类",branchPrice:220},{branchId:1011,branchName:"合肥分部",branchType:"一类",branchPrice:180},{branchId:1024,branchName:"惠州分部",branchType:"一类",branchPrice:180,activePrice:111},{branchId:1008,branchName:"济南分部",branchType:"一类",branchPrice:180},{branchId:1033,branchName:"嘉兴分部",branchType:"一类",branchPrice:180},{branchId:1028,branchName:"江门分部",branchType:"一类",branchPrice:180,activePrice:111},{branchId:1035,branchName:"昆明分部",branchType:"一类",branchPrice:180},{branchId:1017,branchName:"南京分部",branchType:"二类",branchPrice:220},{branchId:1034,branchName:"青岛分部",branchType:"一类",branchPrice:180},{branchId:1012,branchName:"上海分部",branchType:"三类",branchPrice:220},{branchId:1010,branchName:"深圳分部",branchType:"三类",branchPrice:280},{branchId:1023,branchName:"沈阳分部",branchType:"一类",branchPrice:180},{branchId:1009,branchName:"石家庄分",branchType:"\t一",branchPrice:180},{branchId:1014,branchName:"苏州分部",branchType:"一类",branchPrice:180},{branchId:1015,branchName:"无锡分部",branchType:"一类",branchPrice:180},{branchId:1007,branchName:"武汉分部",branchType:"一类",branchPrice:180},{branchId:1029,branchName:"西安分部",branchType:"一类",branchPrice:180},{branchId:1043,branchName:"烟台分部",branchType:"一类",branchPrice:180},{branchId:1018,branchName:"中山分部",branchType:"一类",branchPrice:180,activePrice:111},{branchId:1016,branchName:"重庆分部",branchType:"一类",branchPrice:180},{branchId:1041,branchName:"淄博分部",branchType:"一类",branchPrice:180}]),h=i,t=r("4328"),b=r.n(t),s={name:"activepay",data:function(){return{userId:this.$route.query.userId,branchId:this.$route.query.branchId,priceList:{},activePrice:777,showPrice:11.11,amount:0,markAmount:0}},mounted:function(){var c=this;h.forEach(function(a){a.branchId==c.branchId&&(c.priceList=a,180==a.branchPrice?(c.activePrice=777,c.showPrice=a.activePrice?a.activePrice:11.11):220!=a.branchPrice&&280!=a.branchPrice||(c.activePrice=1111,c.showPrice=a.activePrice?a.activePrice:111),c.markAmount=20*a.branchPrice,1012==a.branchId?c.amount=4e3:c.amount=c.markAmount-c.activePrice+parseFloat(c.showPrice))}),this.priceList.branchPrice||(this.priceList={branchId:1030,branchName:"武汉分部",branchType:"一类",branchPrice:180},this.activePrice=777,this.showPrice=11.11,this.markAmount=20*this.priceList.branchPrice,this.amount=this.markAmount-this.activePrice+parseFloat(this.showPrice))},methods:{onPromotionPay:function(){var c=this;this.$axios.post("/yqpay/promotionPay",b.a.stringify({userId:this.userId,branchId:this.branchId,amount:this.amount})).then(function(a){var r=a.data;if(200==r.code){var e=r.data;document.querySelector("#onSubmit").action=e.host,document.querySelector("#apiContent").value=e.apiContent,document.querySelector("#merNo").value=e.merNo,document.querySelector("#notifyUrl").value=e.notifyUrl,document.querySelector("#sign").value=e.sign,document.querySelector("#signType").value=e.signType,document.querySelector("#timestamp").value=e.timestamp,document.querySelector("#version").value=e.version,document.querySelector("#onSubmit").submit()}else c.$toast(r.msg)})}}},o=s,m=(r("267e"),r("2877")),u=Object(m["a"])(o,e,n,!1,null,"17ce3a9d",null);a["default"]=u.exports},"6e45":function(c,a,r){c.exports=r.p+"img/coupon2.2eaa4c52.png"},"9f0e":function(c,a,r){c.exports=r.p+"img/coupon.ef0e9e29.png"},fbaa:function(c,a,r){}}]);
  2. //# sourceMappingURL=chunk-ab650240.33b5a2ec.js.map