You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

2 lines
5.5 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0543e7a4"],{"0648":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"contact"},[r("div",{staticClass:"contact-banner"}),r("div",{staticClass:"contact-wrapper"},[r("div",{staticClass:"zlxc-container",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"bread-crumbs"},[r("el-breadcrumb",{attrs:{separator:"/"}},[r("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[e._v("首页")]),r("el-breadcrumb-item",[e._v("投诉建议")])],1)],1),r("div",{staticClass:"form-selection"},[r("el-form",{ref:"ruleForm",staticClass:"rule-form",attrs:{"label-position":"left",model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"选择类型",prop:"type"}},[r("div",{staticClass:"type-select"},[r("p",{class:["select-radio",{"is-action":"咨询"==e.ruleForm.type}],on:{click:function(t){return e.tapChangeType("咨询")}}},[e._v("咨询")]),r("p",{class:["select-radio",{"is-action":"投诉"==e.ruleForm.type}],on:{click:function(t){return e.tapChangeType("投诉")}}},[e._v("投诉")])])]),"投诉"==e.ruleForm.type?r("el-form-item",{attrs:{label:"投诉类型",prop:"complaint"}},[r("div",{staticClass:"type-select"},[r("p",{class:["select-radio",{"is-action":"1"==e.ruleForm.complaint}],on:{click:function(t){return e.tapChangeComplaint("1")}}},[e._v("服务态度")]),r("p",{class:["select-radio",{"is-action":"2"==e.ruleForm.complaint}],on:{click:function(t){return e.tapChangeComplaint("2")}}},[e._v("教学质量")]),r("p",{class:["select-radio",{"is-action":"3"==e.ruleForm.complaint}],on:{click:function(t){return e.tapChangeComplaint("3")}}},[e._v("退费问题")])])]):e._e(),"投诉"==e.ruleForm.type?r("el-form-item",{attrs:{label:"投诉对象",prop:"beau"}},[r("div",{staticClass:"type-select"},[r("p",{class:["select-radio",{"is-action":"驾校"==e.ruleForm.beau}],on:{click:function(t){return e.tapChangeBeau("驾校")}}},[e._v("驾校")]),r("p",{class:["select-radio",{"is-action":"教练"==e.ruleForm.beau}],on:{click:function(t){return e.tapChangeBeau("教练")}}},[e._v("教练")])])]):e._e(),"投诉"==e.ruleForm.type&&"教练"==e.ruleForm.beau?r("el-form-item",{attrs:{label:"教练姓名",prop:"coachName"}},[r("el-input",{attrs:{placeholder:"请输入教练姓名"},model:{value:e.ruleForm.coachName,callback:function(t){e.$set(e.ruleForm,"coachName",t)},expression:"ruleForm.coachName"}})],1):e._e(),"投诉"==e.ruleForm.type?r("el-form-item",{attrs:{label:"驾校名称",prop:"schoolName"}},[r("el-input",{attrs:{placeholder:"请输入驾校名称"},model:{value:e.ruleForm.schoolName,callback:function(t){e.$set(e.ruleForm,"schoolName",t)},expression:"ruleForm.schoolName"}})],1):e._e(),r("el-form-item",{attrs:{label:"联系方式",prop:"connect"}},[r("el-input",{attrs:{placeholder:"请输入您的联系方式"},model:{value:e.ruleForm.connect,callback:function(t){e.$set(e.ruleForm,"connect",t)},expression:"ruleForm.connect"}})],1),r("el-form-item",{attrs:{label:"内容详情",prop:"desc"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入您要咨询或投诉的内容"},model:{value:e.ruleForm.desc,callback:function(t){e.$set(e.ruleForm,"desc",t)},expression:"ruleForm.desc"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("提交")]),r("el-button",{on:{click:function(t){return e.resetForm("ruleForm")}}},[e._v("重置")])],1)],1)],1)])])])},o=[],l=r("1825"),c={name:"About",data:function(){return{ruleForm:{type:"咨询",complaint:"",beau:"",coachName:"",schoolName:"",connect:"",desc:""},dialogImageUrl:"",dialogVisible:!1,rules:{connect:[{required:!0,message:"请输入您的联系方式",trigger:"blur"},{min:7,max:11,message:"长度在 7 到 11 个数字",trigger:"blur"}],type:[{required:!0,message:"选择类型",trigger:"change"}],complaint:[{required:!0,message:"选择投诉类型",trigger:"change"}],beau:[{required:!0,message:"选择投诉对象",trigger:"change"}],coachName:[{required:!0,message:"请输入教练姓名",trigger:"blur"}],schoolName:[{required:!0,message:"请输入驾校名称",trigger:"blur"}],desc:[{required:!0,message:"请输入您要咨询或投诉的内容",trigger:"blur"}]}}},computed:{},methods:{getQueryCreateComplaint:function(){var e=this;Object(l["d"])({complainType:this.ruleForm.complaint,userType:"驾校"==this.ruleForm.beau?1:2,content:this.ruleForm.desc,coachName:this.ruleForm.coachName,schoolName:this.ruleForm.schoolName,phone:this.ruleForm.connect,type:"咨询"==this.ruleForm.type?1:2}).then((function(t){0==t.code&&e.$alert("提交成功",e.ruleForm.type,{confirmButtonText:"确定",callback:function(t){e.$router.push({name:"Wrapper"})}})}))},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.getQueryCreateComplaint()}))},resetForm:function(e){this.$refs[e].resetFields()},tapChangeType:function(e){this.ruleForm.type!=e&&("咨询"==e&&(this.ruleForm.complaint="",this.ruleForm.beau=""),this.ruleForm.type=e)},tapChangeComplaint:function(e){this.ruleForm.complaint!=e&&(this.ruleForm.complaint=e)},tapChangeBeau:function(e){this.ruleForm.beau!=e&&(this.ruleForm.beau=e)},handleRemove:function(e,t){},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleSuccess:function(e,t,r){}}},i=c,s=(r("cb43"),r("2877")),n=Object(s["a"])(i,a,o,!1,null,"9fd1f170",null);t["default"]=n.exports},1114:function(e,t,r){},cb43:function(e,t,r){"use strict";r("1114")}}]);
//# sourceMappingURL=chunk-0543e7a4.64d37d8e.js.map