(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53fc1599"],{2748:function(e,a,t){},c1f0:function(e,a,t){"use strict";t.r(a);var i=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",[t("m-breadcrumb"),t("div",{staticClass:"main-page clearfix",class:{zh:e.isZh}},[t("div",{staticClass:"feedback-con clearfix"},[t("div",{staticClass:"f-c-b-left"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.submitSuccess,expression:"!submitSuccess"}]},[t("div",{staticClass:"feedback-con-top"},[t("p",[e._v(e._s(e.$t("feedback.intro")))])]),t("div",{staticClass:"form-tip"},[e._v(e._s(e.$t("feedback.placeholder.indicatesRequiredField")))]),t("Form",{ref:"feedbackForm",attrs:{rules:e.ruleValidate,model:e.formData,"label-width":110,"label-position":"left"}},[t("Form-item",{attrs:{label:e.$t("feedback.name"),prop:"userName"}},[t("Input",{attrs:{size:"large",clearable:"",placeholder:e.$t("feedback.placeholder.name")},model:{value:e.formData.userName,callback:function(a){e.$set(e.formData,"userName",a)},expression:"formData.userName"}})],1),t("Form-item",{attrs:{label:e.$t("feedback.organization"),prop:"orgName"}},[t("Input",{attrs:{size:"large",clearable:"",placeholder:e.$t("feedback.placeholder.organization")},model:{value:e.formData.orgName,callback:function(a){e.$set(e.formData,"orgName",a)},expression:"formData.orgName"}})],1),t("Form-item",{attrs:{label:e.$t("feedback.emailAddress"),prop:"email"}},[t("Input",{attrs:{size:"large",clearable:"",placeholder:e.$t("feedback.placeholder.emailAddress")},model:{value:e.formData.email,callback:function(a){e.$set(e.formData,"email",a)},expression:"formData.email"}})],1),t("Form-item",{attrs:{label:e.$t("feedback.subject"),prop:"theme"}},[t("Input",{attrs:{size:"large",clearable:"",placeholder:e.$t("feedback.placeholder.subject")},model:{value:e.formData.theme,callback:function(a){e.$set(e.formData,"theme",a)},expression:"formData.theme"}})],1),t("Form-item",{attrs:{label:e.$t("feedback.pageorURL"),prop:"site"}},[t("Input",{attrs:{size:"large",clearable:"",placeholder:e.$t("feedback.placeholder.pageorURL")},model:{value:e.formData.site,callback:function(a){e.$set(e.formData,"site",a)},expression:"formData.site"}})],1),t("Form-item",{attrs:{label:e.$t("feedback.comments"),prop:"opinion"}},[t("Input",{attrs:{maxlength:"150",type:"textarea",autosize:{minRows:5,maxRows:5},placeholder:e.$t("feedback.placeholder.comments")},model:{value:e.formData.opinion,callback:function(a){e.$set(e.formData,"opinion",a)},expression:"formData.opinion"}}),t("span",{staticClass:"word-number"},[e._v(e._s(e.formData.opinion&&e.formData.opinion.length||0)+"/150")])],1),t("Form-item",{attrs:{label:e.$t("feedback.verificationCode"),prop:"code"}},[t("div",{staticStyle:{height:"40px"}},[t("Input",{staticStyle:{"margin-right":"10px",display:"inline-block",top:"-14px"},style:{width:e.isZh?"130px":"180px"},attrs:{clearable:"",size:"large",placeholder:e.$t("feedback.placeholder.verificationCode")},model:{value:e.formData.code,callback:function(a){e.$set(e.formData,"code",a)},expression:"formData.code"}}),t("img",{staticStyle:{height:"40px",display:"inline-block"},attrs:{src:e.validateCode,alt:""},on:{click:e.changeValidateCode}})],1)]),t("Form-item",{staticClass:"last-form-item"},[t("Button",{staticClass:"submit-opt",attrs:{type:"primary",size:"large"},on:{click:e.handleSubmit}},[e._v(e._s(e.$t("feedback.submit"))+" ")])],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.submitSuccess,expression:"submitSuccess"}]},[t("p",{staticClass:"success-title"},[e._v(e._s(e.$t("feedback.successTitle")))]),t("p",{staticClass:"success-desc"},[e._v(e._s(e.$t("feedback.successDesc")))])])]),t("div",{staticClass:"f-c-b-right"},[t("div",{staticClass:"link-item"},[t("div",{staticClass:"link-item-title"},[e._v(e._s(e.$t("feedback.queriesComplaints")))]),e._m(0)]),t("div",{staticClass:"link-item link-item-disclaimer"},[t("div",{staticClass:"link-item-title"},[e._v(e._s(e.$t("feedback.websiteTermsofUse")))]),t("div",{staticClass:"link-item-col"},[t("router-link",{attrs:{target:"_blank",to:{name:"disclaimer"}}},[e._v(e._s(e.$t("feedback.disclaimer"))+" ")]),t("span",{staticClass:"detail arrow",staticStyle:{"margin-left":"5px"}},[e._v("→")])],1)])])])])],1)},s=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"link-item-col"},[t("a",{attrs:{href:"mailto:csicslt@csindex.com.cn",target:"_blank"}},[e._v("csicslt@csindex.com.cn"),t("i",{staticClass:"iconfont iconyoujianfasong ml8"})])])}],r=(t("d3b7"),t("3191")),o=t("740e"),c=t("fda6"),l=t("2af9"),d={name:"index",components:{KeywordLink:l["b"]},data:function(){return{validateCode:"https://www.csindex.com.cn/csindex-home/"+o["a"].validateCode.code,submitSuccess:!1,formData:{userName:void 0,orgName:void 0,email:void 0,theme:void 0,site:void 0,opinion:void 0,read:!1,code:void 0}}},computed:{isZh:function(e){return"zh"===e.$i18n.locale},ruleValidate:function(e){return{userName:[{required:!1,message:e.$t("feedback.placeholder.name"),trigger:"blur"}],email:[{required:!1,message:e.$t("feedback.placeholder.emailAddress"),trigger:"blur"},{type:"email",message:e.$t("feedback.placeholder.validEmailAddress"),trigger:"blur"}],orgName:[{required:!1,message:e.$t("feedback.placeholder.organization"),trigger:"blur"}],theme:[{required:!0,message:e.$t("feedback.placeholder.subject"),trigger:"blur"}],site:[{required:!0,message:e.$t("feedback.placeholder.pageorURL"),trigger:"blur"},{type:"url",message:e.$t("feedback.placeholder.validPageorURL"),trigger:"blur"}],opinion:[{required:!0,message:e.$t("feedback.placeholder.comments"),trigger:"blur"},{type:"string",max:150,message:"介绍不能多于150字",trigger:"blur"}],code:[{required:!0,message:e.$t("feedback.placeholder.verificationCode"),trigger:"blur"}]}}},created:function(){},methods:{changeValidateCode:function(){this.validateCode="https://www.csindex.com.cn/csindex-home/"+o["a"].validateCode.code+"?t="+(new Date).getTime()},handleSubmit:function(){var e=this;this.$refs.feedbackForm.validate((function(a){a&&Object(c["o"])({validateCode:e.formData.code}).then((function(a){if(200!=a.code)throw a;Object(r["a"])({email:e.formData.email,name:e.formData.userName,opinion:e.formData.opinion,organization:e.formData.orgName,topic:e.formData.theme,website:e.formData.site}).then((function(a){e.submitSuccess=!0,e.formData={userName:void 0,orgName:void 0,email:void 0,theme:void 0,site:void 0,opinion:void 0,read:!1}})).catch((function(a){e.$Message.error(a.msg)}))})).catch((function(a){e.submitSuccess=!1,e.$Message.warning(a.msg)})).finally((function(){e.formData.code=void 0,e.changeValidateCode()}))}))}}},n=d,m=(t("fece"),t("0c7c")),f=Object(m["a"])(n,i,s,!1,null,"5c3be534",null);a["default"]=f.exports},fece:function(e,a,t){"use strict";t("2748")}}]);