12 |
- (function(e){function t(t){for(var n,a,s=t[0],o=t[1],u=t[2],l=0,d=[];l<s.length;l++)a=s[l],i[a]&&d.push(i[a][0]),i[a]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);m&&m(t);while(d.length)d.shift()();return c.push.apply(c,u||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,a=1;a<r.length;a++){var s=r[a];0!==i[s]&&(n=!1)}n&&(c.splice(t--,1),e=o(o.s=r[0]))}return e}var n={},a={app:0},i={app:0},c=[];function s(e){return o.p+"js/"+({}[e]||e)+"."+{"chunk-0fdda2f0":"1cbe7052","chunk-6410c4a3":"4c4eb1f5","chunk-68f47906":"264cb20a","chunk-73057ef4":"10572c61"}[e]+".js"}function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],r={"chunk-0fdda2f0":1,"chunk-6410c4a3":1,"chunk-68f47906":1,"chunk-73057ef4":1};a[e]?t.push(a[e]):0!==a[e]&&r[e]&&t.push(a[e]=new Promise(function(t,r){for(var n="css/"+({}[e]||e)+"."+{"chunk-0fdda2f0":"0729b0c7","chunk-6410c4a3":"14808612","chunk-68f47906":"0d381701","chunk-73057ef4":"ff7e01af"}[e]+".css",i=o.p+n,c=document.getElementsByTagName("link"),s=0;s<c.length;s++){var u=c[s],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===n||l===i))return t()}var d=document.getElementsByTagName("style");for(s=0;s<d.length;s++){u=d[s],l=u.getAttribute("data-href");if(l===n||l===i)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=t,m.onerror=function(t){var n=t&&t.target&&t.target.src||i,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete a[e],m.parentNode.removeChild(m),r(c)},m.href=i;var f=document.getElementsByTagName("head")[0];f.appendChild(m)}).then(function(){a[e]=0}));var n=i[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=c);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.src=s(e),u=function(t){l.onerror=l.onload=null,clearTimeout(d);var r=i[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,r[1](c)}i[e]=void 0}};var d=setTimeout(function(){u({type:"timeout",target:l})},12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var d=0;d<u.length;d++)t(u[d]);var m=l;c.push([0,"chunk-vendors"]),r()})({0:function(e,t,r){e.exports=r("56d7")},3516:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("96eb"),a=n.mock({baseInfo:{stuName:"孙镇亮",poName:"武汉测试乐团1901","tranPort|1":[0,1],"voicyPart|1":["长笛","单簧管","萨克斯管","小号","长号","圆号","上低音号","小军鼓"]},poOrderInfo:{"payMethod|1":["1.0","2.0","3.1"],validityDate:"2019-8-15",payAmount:580,monthNum:0},lessOrderInfo:{className:"萨克斯1v1孙镇亮",payAmount:1800,duration:45,teaName:"黄老师",planStartDate:"2019-09-01",planCycle:"周一"}});n.mock({orderInfo:{stuName:"孙镇亮",poName:"武汉测试乐团1901","payMethod|1":["1.0","1.5","2.0","3.0","3.1"],payAmount:1120,validityDate:"2019-10-01","voicyPart|1":["长笛","单簧管","萨克斯管","小号","长号","圆号","上低音号","小军鼓"],"isCopperPipe|1":[0,1],"groupBuy|1":[0,1,2],"tranPort|1":[0,1],"recruitNum|1":[18,20]}})},"56d7":function(e,t,r){"use strict";r.r(t);r("cadf"),r("551c"),r("f751"),r("097d");var n=r("2b0e"),a=r("bc3a"),i=r.n(a),c={},s=i.a.create(c);s.interceptors.request.use(function(e){return e.url="/api"+e.url,e},function(e){return Promise.reject(e)}),s.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)}),Plugin.install=function(e){e.axios=s,window.axios=s,Object.defineProperties(e.prototype,{axios:{get:function(){return s}},$axios:{get:function(){return s}}})},n["a"].use(Plugin);Plugin;var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"app"}},[r("router-view")],1)},u=[],l=(r("7c55"),r("2877")),d={},m=Object(l["a"])(d,o,u,!1,null,null,null),f=m.exports,h=r("2f62");n["a"].use(h["a"]);var p=new h["a"].Store({state:{},mutations:{},actions:{}}),v=r("8c4f"),_=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"home"},[r("header",[e._v("乐团注册")]),r("div",{staticClass:"section"},[r("h2",{staticClass:"title line_bottom"},[e._v("课程")]),e.result.payMethod>=26?r("p",{key:"indate-price",staticClass:"indate"},[r("span",[e._v("现价:¥"+e._s(e.result.classAmount))])]):e._e(),e.result.payMethod>=26?r("div",{key:"class-list",staticClass:"options"},[e._m(0),e._m(1),e._m(2),e._m(3)]):r("div",{key:"class-list",staticClass:"options"},[r("div",{staticClass:"option"},[e._m(4),r("div",{staticClass:"o_bd"},[e._v("乐团课")]),21==e.result.payMethod||25==e.result.payMethod?r("span",{key:"class-price",staticClass:"o_ft"},[r("del",[e._v("原价:¥23520")]),e._v(" 现价:免费\n ")]):r("span",{key:"class-price",staticClass:"o_ft"},[r("del",[e._v("原价:¥23520")]),e._v(" 现价:¥"+e._s(e.result.classAmount)+"\n ")])])]),e.result.payMethod>=26?r("div",{staticClass:"coutInfo"},[r("i",{staticClass:"trumpet_icon"}),e._v("年度安排十个月训练,共计168课时,120元/课时,原价20160元,现仅支付"+e._s(e.result.classAmount)+"元/月(约合34.5元/课时) \n ")]):e._e()]),r("div",{staticClass:"section"},[r("h2",{staticClass:"title line_bottom"},[e._v("乐器")]),21==e.result.payMethod||22==e.result.payMethod||e.result.payMethod>26||25==e.result.payMethod&&1==e.result.isCopperPipe?r("div",{staticClass:"options"},e._l(e.instrument.config,function(t,n){return r("div",{key:t.name,class:[e.instrument.config.length>1?"oc":""],on:{click:function(t){return e.instrumentF(n)}}},[r("div",{staticClass:"option"},[r("div",{staticClass:"o_"},[r("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),t.marketPrice>0?r("div",{key:"name",staticClass:"o_bd"},[e._v(e._s(e.instrument.name)+"-"),r("span",{staticClass:"c"},[e._v(e._s(t.name)+" ")])]):r("div",{key:"name",staticClass:"o_bd"},[e._v(e._s(t.name))]),t.marketPrice>0?r("span",{staticClass:"o_ft"},[r("del",[e._v("原价:¥"+e._s(t.marketPrice))]),e._v(" 现价:¥"+e._s(t.referencePrice)+"\n ")]):e._e()]),t.marketPrice>0?r("div",{staticClass:"configuration"},[r("div",{staticClass:"config"},[e._m(5,!0),r("div",{staticClass:"content"},[r("p",[e._v(e._s(e.instrument.configuration)+" "+e._s(t.texture))])])])]):e._e()])}),0):e._e(),25==e.result.payMethod&&0==e.result.isCopperPipe||26==e.result.payMethod?r("div",{staticClass:"options"},[e._l(e.instrument.config,function(t){return r("div",{key:t.name,staticClass:"oc",on:{click:function(t){return e.instrumentF2("default")}}},[t.default?r("div",{staticClass:"option"},[r("div",{staticClass:"o_"},[r("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),r("div",{staticClass:"o_bd"},[e._v(e._s(e.instrument.name)+"-"),r("span",{staticClass:"c"},[e._v(e._s(t.name)+" ")])]),25==e.result.payMethod?r("span",{staticClass:"o_ft"},[r("del",[e._v("原价:¥"+e._s(t.marketPrice))]),e._v(" 免费试用\n ")]):e._e(),"26"==e.result.payMethod?r("span",{staticClass:"o_ft"},[r("del",[e._v("原价:¥"+e._s(t.marketPrice))]),e._v(" 押金:¥800\n ")]):e._e()]):e._e(),t.default?r("span",{staticClass:"protocol",on:{click:e.protocol}},[e._v("《乐器借用协议》")]):e._e(),t.default?r("div",{staticClass:"configuration"},[r("div",{staticClass:"config"},[e._m(6,!0),r("div",{staticClass:"content"},[r("p",[e._v(e._s(e.instrument.configuration)+" "+e._s(t.texture))])])])]):e._e()])}),e._l(e.instrument.config,function(t){return r("div",{key:t.marketPrice,on:{click:function(t){return e.instrumentF2("self")}}},[t.marketPrice<=0?r("div",{staticClass:"option"},[r("div",{staticClass:"o_"},[r("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),r("div",{staticClass:"o_bd"},[e._v(e._s(t.name)+"\n ")])]):e._e()])})],2):e._e()]),r("div",{staticClass:"section"},[r("h2",{staticClass:"title line_bottom"},[e._v("辅件")]),e._l(e.instrument.auxiliaries,function(t,n){return r("div",{key:t.name,staticClass:"options",on:{click:function(t){return e.auxiliarie(n)}}},[r("div",{staticClass:"option"},[r("div",{staticClass:"o_hd"},[r("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),r("div",{staticClass:"o_bd"},[e._v(e._s(t.name))]),r("span",{staticClass:"o_ft"},[r("del",[e._v("原价:¥"+e._s(t.marketPrice))]),e._v("\n "+e._s(0==t.referencePrice?"免费":"现价:¥"+t.referencePrice)+"\n ")])])])})],2),r("div",{staticClass:"section"},[r("h2",{staticClass:"title line_bottom"},[e._v("其它")]),e._l(e.baseInfo.other,function(t){return r("div",{key:t.name,staticClass:"options"},[r("div",{staticClass:"option"},[e._m(7,!0),r("div",{staticClass:"o_bd"},[e._v(e._s(t.name))]),r("span",{staticClass:"o_ft"},[r("del",[e._v("原价:¥"+e._s(t.marketPrice))]),e._v(" \n "+e._s(0==t.referencePrice?"免费":"现价:¥"+t.referencePrice)+"\n ")])])])})],2),r("div",{staticClass:"buy"},[r("div",{staticClass:"price"},[r("p",{staticClass:"oldprice"},[r("del",{staticClass:"text"},[e._v("原价")]),r("del",[e._v("¥"+e._s(e.orderInfo.marketPrice))])]),r("p",{staticClass:"now_price"},[r("span",{staticClass:"text"},[e._v("仅需支付")]),r("span",[e._v("¥"+e._s(e.orderInfo.referencePrice))])])]),r("a",{on:{click:e.buy}},[e._v("购买")])])])},k=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"option"},[r("div",{staticClass:"0_hd"},[r("i",{staticClass:"check_default check_active"})]),r("div",{staticClass:"o_bd"},[e._v("乐团声部训练")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"option"},[r("div",{staticClass:"0_hd"},[r("i",{staticClass:"check_default check_active"})]),r("div",{staticClass:"o_bd"},[e._v("乐团合奏训练")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"option"},[r("div",{staticClass:"0_hd"},[r("i",{staticClass:"check_default check_active"})]),r("div",{staticClass:"o_bd"},[e._v("基础技能训练")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"option"},[r("div",{staticClass:"0_hd"},[r("i",{staticClass:"check_default check_active"})]),r("div",{staticClass:"o_bd"},[e._v("假期集中训练")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"0_hd"},[r("i",{staticClass:"check_default check_active"})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"title"},[r("span",[e._v("参数")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"title"},[r("span",[e._v("参数")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"o_hd"},[r("i",{staticClass:"check_default check_active"})])}],P=(r("7f7f"),r("28a5"),r("3516"),{flute:{name:"长笛",config:[{default:1,name:"初级配置",marketPrice:3150,referencePrice:2680,checked:!0,texture:"白铜管体",index:1},{default:0,name:"标准配置",marketPrice:4500,referencePrice:3570,checked:!1,texture:"进口镍白铜管体、法式键",index:2},{default:0,name:"自备",marketPrice:0,referencePrice:0,checked:!1,index:99}],configuration:"C调 表面镀银厚度:8μm 管材厚度:0.42mm",auxiliaries:[{name:"节拍器",marketPrice:120,referencePrice:95,checked:!1,index:1},{name:"谱架",marketPrice:80,referencePrice:65,checked:!1,index:2},{name:"乐器维护",marketPrice:480,referencePrice:300,checked:!1,index:8}]},clarinet:{name:"单簧管",config:[{default:1,name:"初级配置",marketPrice:3280,referencePrice:2780,checked:!0,texture:"胶木",index:3},{default:0,name:"标准配置",marketPrice:4580,referencePrice:3650,checked:!1,texture:"聚碳酸酯、蓝钢针弹簧线",index:4},{default:0,name:"自备",marketPrice:0,referencePrice:0,checked:!1,index:99}],configuration:"降B调、八字螺丝固定键柱 按键铍铜、镍白铜 喇叭口直径:8cm",auxiliaries:[{index:1,name:"节拍器",marketPrice:120,checked:!1,referencePrice:95},{index:2,name:"谱架",marketPrice:80,checked:!1,referencePrice:65},{index:4,name:"软木膏",marketPrice:30,checked:!1,referencePrice:25},{index:5,name:"哨片",marketPrice:150,checked:!1,referencePrice:120},{index:8,name:"乐器维护",marketPrice:480,checked:!1,referencePrice:300}]},saxophone:{name:"萨克斯管",config:[{default:1,name:"初级配置",marketPrice:4200,referencePrice:3550,checked:!0,texture:"/",index:5},{default:0,name:"标准配置",marketPrice:6080,referencePrice:4500,checked:!1,texture:"68铜、实心保护盖、蓝钢针弹簧线",index:6},{default:0,name:"自备",marketPrice:0,referencePrice:0,checked:!1,index:99}],configuration:"降E调、黄铜材质、表面电泳处理 喇叭口直径:11.8cm",auxiliaries:[{index:1,name:"节拍器",marketPrice:120,checked:!1,referencePrice:95},{index:2,name:"谱架",marketPrice:80,checked:!1,referencePrice:65},{index:4,name:"软木膏",marketPrice:30,checked:!1,referencePrice:25},{index:5,name:"哨片",marketPrice:150,checked:!1,referencePrice:120},{index:8,name:"乐器维护",marketPrice:480,checked:!1,referencePrice:300}]},trumpet:{name:"小号",config:[{default:1,name:"标准配置",marketPrice:4800,referencePrice:3650,checked:!0,texture:"白铜变音管磷铜发音管",index:7},{default:0,name:"自备",marketPrice:0,referencePrice:0,checked:!1,index:99}],configuration:"降B调 特殊结构:可调试调音管控制环 喇叭口直径:123mm 内管:11.66mm",auxiliaries:[{index:1,name:"节拍器",marketPrice:120,checked:!1,referencePrice:95},{index:2,name:"谱架",marketPrice:80,checked:!1,referencePrice:65},{index:3,name:"活塞油",marketPrice:30,checked:!1,referencePrice:25},{index:7,name:"调音管油",marketPrice:30,checked:!1,referencePrice:25},{index:8,name:"乐器维护",marketPrice:480,checked:!1,referencePrice:300}]},trombone:{name:"长号",config:[{default:1,name:"标准配置",marketPrice:5550,referencePrice:3870,checked:!0,texture:"白铜内外伸缩管",index:8},{default:0,name:"自备",marketPrice:0,referencePrice:0,checked:!1,index:99}],configuration:"降B/F调、喇叭口:215mm、内管:13.9mm管:13.9mm",auxiliaries:[{index:1,name:"节拍器",marketPrice:120,checked:!1,referencePrice:95},{index:2,name:"谱架",marketPrice:80,checked:!1,referencePrice:65},{index:3,name:"活塞油",marketPrice:30,checked:!1,referencePrice:25},{index:6,name:"拉杆油",marketPrice:30,checked:!1,referencePrice:25},{index:8,name:"乐器维护",marketPrice:480,checked:!1,referencePrice:300}]},horn:{name:"圆号",config:[{default:1,name:"标准配置",marketPrice:5500,referencePrice:3910,checked:!0,texture:"白铜变音管磷铜发音管",index:9},{default:0,name:"自备",marketPrice:0,referencePrice:0,checked:!1,index:99}],configuration:"降B/F调、结构:双排管 喇叭口直径:306mm 内管:11.5mm",auxiliaries:[{index:1,name:"节拍器",marketPrice:120,checked:!1,referencePrice:95},{index:2,name:"谱架",marketPrice:80,checked:!1,referencePrice:65},{index:3,name:"活塞油",marketPrice:30,checked:!1,referencePrice:25},{index:7,name:"调音管油",marketPrice:30,checked:!1,referencePrice:25},{index:8,name:"乐器维护",marketPrice:480,checked:!1,referencePrice:300}]},upperBass:{name:"上低音号",config:[{default:1,name:"标准配置",marketPrice:5800,referencePrice:3980,checked:!0,texture:"白铜变音管磷铜发音管",index:10},{default:0,name:"自备",marketPrice:0,referencePrice:0,checked:!1,index:99}],configuration:"降B调、结构:三立键 喇叭口直径:278mm、内管:13.4mm",auxiliaries:[{index:1,name:"节拍器",marketPrice:120,checked:!1,referencePrice:95},{index:2,name:"谱架",marketPrice:80,checked:!1,referencePrice:65},{index:3,name:"活塞油",marketPrice:30,checked:!1,referencePrice:25},{index:7,name:"调音管油",marketPrice:30,checked:!1,referencePrice:25},{index:8,name:"乐器维护",marketPrice:480,checked:!1,referencePrice:300}]},snareDrum:{name:"小军鼓",config:[{default:1,name:"标准配置",marketPrice:3700,referencePrice:3190,checked:!0,texture:"",index:11},{default:0,name:"自备",marketPrice:0,referencePrice:0,checked:!1,index:99}],configuration:"珍珠镍小军鼓,桦木鼓腔,高碳钢纱带",auxiliaries:[{index:1,name:"节拍器",marketPrice:120,checked:!1,referencePrice:95},{index:2,name:"谱架",marketPrice:80,checked:!1,referencePrice:65}]}}),C={other:[{name:"教材",marketPrice:7680,referencePrice:0},{name:"乐谱",marketPrice:7680,referencePrice:0}]},x=r("4328"),g=r.n(x),y={name:"home",data:function(){return{result:{},instrument:{},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0,auxiliarie:null,instrumentId:null},form:{apiContent:"",host:"",merNo:"",notifyUrl:"",sign:"",signType:"",timestamp:"",version:""}}},mounted:function(){var e=this;this.baseInfo=C,axios.post("/user/getUserRegisterViewDetail",g.a.stringify({stuId:this.$route.query.stuId})).then(function(t){var r=t.data.data;e.result={payMethod:r.fee_type_,voicyPart:r.sub_name_.split(".")[1],isCopperPipe:r.isCopperPipe,patriarchName:r.patriarch_name_,patriarchPhone:r.patriarch_phone_,stuName:r.name_,stuClass:r.g_class_,classAmount:r.fee_amount_,course_id:r.course_id_},e.instrument=P[e.cnToEn(e.result.voicyPart)],e.calcPrice()})},methods:{auxiliarie:function(e){this.instrument.auxiliaries[e].checked=!this.instrument.auxiliaries[e].checked,this.calcPrice()},instrumentF:function(e){for(var t=0;t<this.instrument.config.length;t++)this.instrument.config[t].checked=!1;this.instrument.config[e].checked=!0,this.calcPrice()},instrumentF2:function(e){for(var t=0;t<this.instrument.config.length;t++)this.instrument.config[t].checked=!1,"default"==e&&1==this.instrument.config[t].default&&(this.instrument.config[t].checked=!0),"self"==e&&"自备"==this.instrument.config[t].name&&(this.instrument.config[t].checked=!0);this.calcPrice()},buy:function(){var e=this,t=this.$route.query,r={branchId:t.branchId,userId:t.stuId,amount:this.orderInfo.referencePrice,courseId:this.result.course_id,classId:t.classId},n=this.orderInfo.instrumentIndex;n&&99!=n&&0!=n&&(r.instrument=n),this.orderInfo.auxiliarie&&(r.adjunct=this.orderInfo.auxiliarie),axios.post("/yqpay/toPay",g.a.stringify(r)).then(function(t){var r=t.data;t.data&&(e.form=r.data,e.onSubmit())})},onSubmit:function(){var e=this.form;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()},protocol:function(){this.$router.push({path:"protocol"})},cnToEn:function(e){var t={"长笛":"flute","单簧管":"clarinet","萨克斯管":"saxophone","小号":"trumpet","长号":"trombone","圆号":"horn","上低音号":"upperBass","小军鼓":"snareDrum"};return t[e]},calcPrice:function(){var e,t,r=this.result.payMethod,n={mClass:0,rClass:0,mInstrument:0,rInstrument:0,mAuxiliarie:0,rAuxiliarie:0,mOther:0,rOther:0};21!=r&&25!=r||(n.mClass=23520,n.rClass=0),22==r&&(n.mClass=23520,n.rClass=this.result.classAmount),(26==r||r>26)&&(n.mClass=20160,n.rClass=this.result.classAmount);for(var a=this.instrument.config,i=0;i<a.length;i++)a[i].checked&&(n.mInstrument=parseInt(a[i].marketPrice),t=a[i].index,0==a[i].marketPrice?n.rInstrument=0:25==r?1==this.result.isCopperPipe?n.rInstrument=parseInt(a[i].referencePrice):(n.rInstrument=0,t=99):n.rInstrument=26==r?800:parseInt(a[i].referencePrice));for(var c=this.instrument.auxiliaries,s=0;s<c.length;s++)c[s].checked&&(n.mAuxiliarie+=parseInt(c[s].marketPrice),n.rAuxiliarie+=parseInt(c[s].referencePrice),e?e+=","+c[s].index:e=c[s].index);for(var o=this.baseInfo.other,u=0;u<o.length;u++)n.mOther+=o[u].marketPrice,n.rOther+=o[u].referencePrice;this.orderInfo={marketPrice:parseInt(n.mClass+n.mInstrument+n.mAuxiliarie+n.mOther),referencePrice:parseInt(n.rClass+n.rInstrument+n.rAuxiliarie+n.rOther),auxiliarie:e,instrumentIndex:t}}}},b=y,I=(r("a84d"),Object(l["a"])(b,_,k,!1,null,"32efa15e",null)),S=I.exports,N=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"login"},[e._m(0),r("div",{staticClass:"bandSection"},[r("div",{staticClass:"school"},[e._v("\n "+e._s(e.dataList.schoolName)+"\n ")]),r("div",{staticClass:"phoneSection"},[r("i",{staticClass:"man_icon"}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.dataList.phoneNumber,expression:"dataList.phoneNumber"}],staticClass:"phone",attrs:{type:"number",pattern:"[0-9]",placeholder:"请输入手机号报名或查询进度"},domProps:{value:e.dataList.phoneNumber},on:{input:function(t){t.target.composing||e.$set(e.dataList,"phoneNumber",t.target.value)}}})])]),r("div",{staticClass:"btn-group"},[r("van-button",{staticClass:"btn",attrs:{size:"large"},on:{click:e.onSubmit}},[e._v("报名 / 查询进度")])],1),r("van-popup",{staticClass:"popup",model:{value:e.popupStatus,callback:function(t){e.popupStatus=t},expression:"popupStatus"}},[r("div",{staticClass:"pContainer"},[r("i",{staticClass:"message_icon"}),r("div",{staticClass:"content"},[r("p",{staticClass:"status"},[e._v(e._s(e.statusList(e.popupText)))]),0==e.popupText?r("p",{staticClass:"dec"},[e._v("请您耐心等待")]):e._e()])]),r("div",{staticClass:"pGroup"},[r("van-button",{staticClass:"button",on:{click:function(t){e.popupStatus=!1}}},[e._v("取消")]),r("van-button",{staticClass:"button",on:{click:function(t){e.popupStatus=!1}}},[e._v("确定")])],1)])],1)},w=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"logo"},[n("img",{attrs:{src:r("cf05"),alt:""}})])}],E=r("b650"),O=r("e41f"),$=r("d399"),A=r("2241"),M={name:"login",components:{Button:E["a"],Popup:O["a"],Toast:$["a"],Dialog:A["a"]},data:function(){return{popupStatus:!1,popupText:"",dataList:{schoolName:"",phoneNumber:"",branchId:""}}},mounted:function(){var e=this,t=this.$route.query,r={clazzId:t.classId,schoolId:t.schoolId};axios.post("/user/getClassDetail",g.a.stringify(r)).then(function(t){var r=t.data;e.dataList.schoolName=r.data.name,e.dataList.branchId=r.data.branchId})},methods:{onSubmit:function(){var e=this;if(!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.dataList.phoneNumber))return Object($["a"])("手机号输入有误"),!1;var t=this.$route.query;axios.get("/user/getUserDetailByPhone?clazzId=".concat(t.classId,"&phone=").concat(this.dataList.phoneNumber)).then(function(r){var n=r.data;console.log(1),n.data?1==parseInt(n.data.pushStatus)?A["a"].alert({title:"提示",message:"恭喜您,报名成功"}):2==parseInt(n.data.pushStatus)&&0==parseInt(n.data.status)&&e.$router.push({path:"home",query:{branchId:n.data.branchId,stuId:n.data.id,classId:n.data.classId}}):e.$router.push({path:"register",query:{phone:e.dataList.phoneNumber,cityId:t.cityId,classId:t.classId,schoolId:t.schoolId,branchId:e.dataList.branchId}})})},statusList:function(e){var t;switch(e){case 0:t="报名中";break;case 1:t="缴费中";break}return t}}},q=M,j=(r("95a7"),Object(l["a"])(q,N,w,!1,null,"52b16741",null)),L=j.exports;n["a"].use(v["a"]);var T=new v["a"]({mode:"history",base:"/",routes:[{path:"/",name:"login",component:L},{path:"/home",name:"home",component:S},{path:"/alipay",name:"alipay",component:function(){return r.e("chunk-73057ef4").then(r.bind(null,"5e84"))}},{path:"/payment",name:"payment",component:function(){return r.e("chunk-0fdda2f0").then(r.bind(null,"2b6e"))}},{path:"/protocol",name:"protocol",component:function(){return r.e("chunk-6410c4a3").then(r.bind(null,"345a"))}},{path:"/login",name:"login",component:L},{path:"/register",name:"register",component:function(){return r.e("chunk-68f47906").then(r.bind(null,"7803"))}}],scrollBehavior:function(){return{x:0,y:0}}}),B=r("b970");r("157a");n["a"].use(B["a"]),n["a"].config.productionTip=!1,new n["a"]({store:p,router:T,render:function(e){return e(f)}}).$mount("#app")},"5c48":function(e,t,r){},"7c55":function(e,t,r){"use strict";var n=r("5c48"),a=r.n(n);a.a},"95a7":function(e,t,r){"use strict";var n=r("d753"),a=r.n(n);a.a},a84d:function(e,t,r){"use strict";var n=r("e4a4"),a=r.n(n);a.a},cf05:function(e,t,r){e.exports=r.p+"img/logo.2e9164b9.png"},d753:function(e,t,r){},e4a4:function(e,t,r){}});
- //# sourceMappingURL=app.1c34d2c9.js.map
|