12 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[82],{656:function(e,t,r){e.exports={}},767:function(e,t,r){"use strict";r(656)},834:function(e,t,r){"use strict";r.r(t);r(42),r(39),r(38),r(10),r(58),r(31),r(59);var o=r(23),l=(r(72),r(41));function n(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?n(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var m={data:function(){return{ruleForm:{company:"",contacts:"",phone:"",address:"",state:"",postcode:"",url:"",email:"",content:""},rules:{company:[{required:!0,message:"Please enter your Company Name",trigger:"blur"}],contacts:[{required:!0,message:"Please enter your Contact Person",trigger:"blur"}],phone:[{required:!0,message:"Please enter your Phone Number",trigger:"blur"}]},time:60,timer:null,butonContent:"Submit",disabledFlag:!1}},watch:{time:{handler:function(e){this.disabledFlag=0!=e}}},methods:c(c({},Object(l.c)(["openDialog"])),{},{Login:function(){this.openDialog()},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;t.timer=setInterval((function(){0==t.time?(t.butonContent="Submit",clearInterval(t.timer)):(t.butonContent="Submit "+t.time+" s",t.time--)}),1e3),t.$axios.post("/others/visitor",t.ruleForm).then((function(e){1==e.code&&(t.$notify({title:"success",message:"Your request has been sent to your nominated e mail address.",type:"success"}),t.$router.push("/"))})).catch((function(){}))}))}})},d=(r(767),r(20)),component=Object(d.a)(m,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"com-main com-width-1400 com-margin-auto"},[t("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[e._v("Home")]),e._v(" "),t("el-breadcrumb-item",[e._v(" Contact PromoCollection")])],1),e._v(" "),t("p",{staticClass:"title"},[e._v("Contact PromoCollection")]),e._v(" "),t("div",{staticClass:"line"}),e._v(" "),t("p",{staticClass:"des"},[e._v("\n We distribute through distributors only. If you\n are a registered distributor, please\n "),t("span",{on:{click:e.Login}},[e._v("login")]),e._v(" , otherwise, please fill out\n contact "),t("br"),e._v("\n details below. One of our authorized distributors would contact you\n shortly.\n "),t("span",[e._v("If you have a preferred distributor, please specify")])]),e._v(" "),t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"0px"}},[t("el-form-item",{attrs:{prop:"company"}},[t("el-input",{attrs:{placeholder:"Company Name*",clearable:""},model:{value:e.ruleForm.company,callback:function(t){e.$set(e.ruleForm,"company",t)},expression:"ruleForm.company"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"contacts"}},[t("el-input",{attrs:{placeholder:"Contact Person*",clearable:""},model:{value:e.ruleForm.contacts,callback:function(t){e.$set(e.ruleForm,"contacts",t)},expression:"ruleForm.contacts"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"phone"}},[t("el-input",{attrs:{placeholder:"Phone*",clearable:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"address"}},[t("el-input",{attrs:{placeholder:"Address",clearable:""},model:{value:e.ruleForm.address,callback:function(t){e.$set(e.ruleForm,"address",t)},expression:"ruleForm.address"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"state"}},[t("el-input",{attrs:{placeholder:"State",clearable:""},model:{value:e.ruleForm.state,callback:function(t){e.$set(e.ruleForm,"state",t)},expression:"ruleForm.state"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"postcode"}},[t("el-input",{attrs:{placeholder:"Post Code",clearable:""},model:{value:e.ruleForm.postcode,callback:function(t){e.$set(e.ruleForm,"postcode",t)},expression:"ruleForm.postcode"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"url"}},[t("el-input",{attrs:{placeholder:"Website",clearable:""},model:{value:e.ruleForm.url,callback:function(t){e.$set(e.ruleForm,"url",t)},expression:"ruleForm.url"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"email"}},[t("el-input",{attrs:{placeholder:"E-mail",clearable:""},model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"content"}},[t("el-input",{attrs:{type:"textarea",rows:5,placeholder:"Content",clearable:""},model:{value:e.ruleForm.content,callback:function(t){e.$set(e.ruleForm,"content",t)},expression:"ruleForm.content"}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{disabled:e.disabledFlag},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("\n "+e._s(e.butonContent)+"\n ")])],1)],1)],1)}),[],!1,null,"59545c22",null);t.default=component.exports}}]);
- //# sourceMappingURL=f26e2fa.js.map
|