(function(e){function t(t){for(var n,a,s=t[0],o=t[1],u=t[2],l=0,d=[];l=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;t26)&&(n.mClass=20160,n.rClass=this.result.classAmount);for(var a=this.instrument.config,i=0;i