55ade9a.js.map 8.4 KB

1
  1. {"version":3,"sources":["webpack:///./pages/home/contactus.vue?a02f","webpack:///./pages/home/contactus.vue?9de3","webpack:///./pages/home/contactus.vue?8639","webpack:///./pages/home/contactus.vue","webpack:///./pages/home/contactus.vue?9975"],"names":["module","exports","data","siteID","info","submitLoading","config","long","autoInput","prop","type","placeholder","rules","email","required","message","trigger","phone","name","enquiry","formData","fetch","_this","_asyncToGenerator","regeneratorRuntime","mark","_callee","wrap","_context","prev","next","$store","dispatch","then","res","contactus","id","stop","methods","submit","_this2","this","$refs","form","validate","valid","f","JSON","parse","stringify","site_id","$axios","post","$message","success","finally","component","_vm","_c","_self","staticClass","staticStyle","domProps","_s","_v","ref","attrs","_l","item","key","label","class","model","value","callback","$$v","$set","expression","on"],"mappings":"8EACAA,EAAOC,QAAU,CAAC,C,mCCDlB,M,4DCA+P,G,kBCChP,CACbC,KAAI,WACF,MAAO,CACLC,OAAQ,GACRC,KAAM,GACNC,eAAe,EACfC,OAAQ,CACN,CACEC,MAAM,EACNC,WAAW,EACXC,KAAM,OACNC,KAAM,QACNC,YAAa,QAEf,CACEJ,MAAM,EACNE,KAAM,QACNC,KAAM,QACNC,YAAa,SAEf,CACEJ,MAAM,EACNE,KAAM,QACNC,KAAM,QACNC,YAAa,SAEf,CACEJ,MAAM,EACNE,KAAM,UACNC,KAAM,WACNC,YAAa,YAGjBC,MAAO,CACLC,MAAO,CACL,CACEC,UAAU,EACVC,QAAS,eACTC,QAAS,SAGbC,MAAO,CACL,CACEH,UAAU,EACVC,QAAS,eACTC,QAAS,SAGbE,KAAM,CACJ,CACEJ,UAAU,EACVC,QAAS,eACTC,QAAS,SAGbG,QAAS,CACP,CACEL,UAAU,EACVC,QAAS,eACTC,QAAS,UAIfI,SAAU,CAKRF,KAAM,GACNL,MAAO,GACPI,MAAO,GACPE,QAAS,IAGf,EACME,MAAK,WAAG,IAAAC,EAAA,YAAAC,YAAAC,mBAAAC,MAAA,SAAAC,IAAA,OAAAF,mB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AM,CAACG,YAAY,CAAC,gBAAgB,MAAM,cAAc,OAAO,YAAY,SAAS,CAACJ,EAAIO,GAAG,iCAAiCP,EAAIO,GAAG,KAAKN,EAAG,MAAM,CAACG,YAAY,CAAC,eAAe,OAAO,YAAY,OAAO,gBAAgB,QAAQ,CAACJ,EAAIO,GAAG,eAAeP,EAAIM,GAAGN,EAAIrC,SAASH,OAAO,gBAAgBwC,EAAIO,GAAG,KAAKN,EAAG,MAAM,CAACG,YAAY,CAAC,gBAAgB,MAAM,cAAc,OAAO,YAAY,SAAS,CAACJ,EAAIO,GAAG,iCAAiCP,EAAIO,GAAG,KAAKN,EAAG,MAAM,CAACG,YAAY,CAAC,eAAe,OAAO,YAAY,OAAO,gBAAgB,QAAQ,CAACJ,EAAIO,GAAG,eAAeP,EAAIM,GAAGN,EAAIrC,SAASP,OAAO,gBAAgB4C,EAAIO,GAAG,KAAKN,EAAG,MAAM,CAACG,YAAY,CAAC,gBAAgB,MAAM,cAAc,OAAO,YAAY,SAAS,CAACJ,EAAIO,GAAG,2CAA2CP,EAAIO,GAAG,KAAKN,EAAG,MAAM,CAACG,YAAY,CAAC,eAAe,OAAO,YAAY,OAAO,gBAAgB,QAAQ,CAACJ,EAAIO,GAAG,eAAeP,EAAIM,GAAGN,EAAIrC,SAASD,SAAS,qBAAqB,IACp0D,GACsB,ICOpB,EACA,KACA,WACA,MAIa,UAAAqC,U","file":"55ade9a.js","sourcesContent":["// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","export * from \"-!../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contactus.vue?vue&type=style&index=0&id=3119e84e&prod&lang=scss\"","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contactus.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contactus.vue?vue&type=script&lang=js\"","\nexport default {\n data() {\n return {\n siteID: '',\n info: '',\n submitLoading: false,\n config: [\n {\n long: true,\n autoInput: true,\n prop: 'name',\n type: 'input',\n placeholder: 'Name',\n },\n {\n long: true,\n prop: 'phone',\n type: 'input',\n placeholder: 'Phone',\n },\n {\n long: true,\n prop: 'email',\n type: 'input',\n placeholder: 'Email',\n },\n {\n long: true,\n prop: 'enquiry',\n type: 'textarea',\n placeholder: 'Enquiry',\n },\n ],\n rules: {\n email: [\n {\n required: true,\n message: 'Please input',\n trigger: 'blur',\n },\n ],\n phone: [\n {\n required: true,\n message: 'Please input',\n trigger: 'blur',\n },\n ],\n name: [\n {\n required: true,\n message: 'Please input',\n trigger: 'blur',\n },\n ],\n enquiry: [\n {\n required: true,\n message: 'Please input',\n trigger: 'blur',\n },\n ],\n },\n formData: {\n // name: 'name',\n // email: 'peter@gmail.com',\n // phone: 'phone',\n // enquiry: 'enquiry',\n name: '',\n email: '',\n phone: '',\n enquiry: '',\n },\n }\n },\n async fetch() {\n await this.$store.dispatch('getShopInfo').then(res => {\n this.info = res.contactus\n this.siteID = res.id\n })\n },\n methods: {\n submit() {\n this.$refs.form.validate(valid => {\n if (!valid) return\n\n const f = JSON.parse(JSON.stringify(this.formData))\n f.site_id = this.siteID\n this.submitLoading = true\n this.$axios\n .post('/c-api/quote/sendenquiry', f)\n .then(() => {\n this.$message.success('submit success')\n this.formData = {\n name: '',\n email: '',\n phone: '',\n enquiry: '',\n }\n })\n .finally(() => {\n this.submitLoading = false\n })\n })\n },\n },\n}\n","import { render, staticRenderFns } from \"./contactus.vue?vue&type=template&id=3119e84e&scoped=true\"\nimport script from \"./contactus.vue?vue&type=script&lang=js\"\nexport * from \"./contactus.vue?vue&type=script&lang=js\"\nimport style0 from \"./contactus.vue?vue&type=style&index=0&id=3119e84e&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3119e84e\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}