12 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[82],{667:function(e,t,r){e.exports={}},775:function(e,t,r){"use strict";r(667)},842:function(e,t,r){"use strict";r.r(t);r(41),r(40),r(62),r(63),r(46),r(11),r(32);var o=r(24),l=(r(79),r(43));function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){Object(o.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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(775),r(22)),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=b1fb72c.js.map
|