chunk-76922480.1e9f8106.js.map 5.2 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/contact-online.vue","webpack:///src/views/contact-online.vue","webpack:///./src/views/contact-online.vue?fe80","webpack:///./src/views/contact-online.vue?4084","webpack:///./src/views/contact-online.vue?c729"],"names":["render","_vm","this","_c","_self","staticClass","staticRenderFns","computed","_objectSpread","mapState","mounted","$store","commit","methods","getUserInfo","_this","UserCenterService","then","_ref","data","userInfo","detail","catch","err","$message","error","beforeRouteLeave","to","from","next","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,UAErFC,EAAkB,G,wrBCKP,OACfC,SAAAC,EAAA,GACAC,eAAA,yBAEAC,QAAA,WAgCA,KAAAC,OAAAC,OAAA,iBAMAC,QAAA,CACAC,YAAA,eAAAC,EAAA,KACA,OAAAC,OAAAF,cACAG,MAAA,SAAAC,GAAA,IAAAC,EAAAD,EAAAC,KACAA,IACAJ,EAAAK,SAAAD,EAAAE,WAGAC,OAAA,SAAAC,GACAR,EAAAS,SAAAC,MAAA,aAIAC,iBAAA,SAAAC,EAAAC,EAAAC,GACA,KAAAlB,OAAAC,OAAA,iBACAiB,MChEwV,I,wBCQpVC,EAAY,eACd,EACA9B,EACAM,GACA,EACA,KACA,KACA,MAIa,aAAAwB,E,6CCnBf","file":"js/chunk-76922480.1e9f8106.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- 联系我们 -->\r\n<template>\r\n <div class=\"wrap\"></div>\r\n</template>\r\n<script>\r\nimport { UserCenterService } from \"@/common/service\";\r\nimport { mapState } from \"vuex\";\r\nexport default {\r\n computed: {\r\n ...mapState([\"contact\", \"userInfo\"]),\r\n },\r\n mounted() {\r\n // UserCenterService.getUserInfo().then((data) => {\r\n // window.easemobim.config = {\r\n // hide: true,\r\n // configId: \"3cf9af90-d18a-4ace-8a05-eeaa3cd43206\",\r\n // // 用户所在的 appKey 需要与 configId 中指定的关联的 appKey 一致\r\n // user: {\r\n // // username 必填,password 和 token 任选一项填写\r\n // username: this.userInfo.hx_username,\r\n // password: this.userInfo.hx_password,\r\n // },\r\n // // 访客信息(可选)\r\n // visitor: {\r\n // trueName: this.userInfo.name,\r\n // qq: \"\",\r\n // phone: this.userInfo.phone,\r\n // companyName: \"\",\r\n // userNickname: \"\",\r\n // description: \"\",\r\n // email: \"\",\r\n // },\r\n // minimum: false,\r\n // dialogWidth: \"600px\",\r\n // onmessage: (message) => {\r\n // console.log(message);\r\n // },\r\n // onready: () => {\r\n // console.log();\r\n // },\r\n // };\r\n // this.$store.commit(\"SET_CONFIG\", this.userInfo);\r\n // window.easemobim.config = this.contact.config;\r\n this.$store.commit(\"OPEN_CONTACT\");\r\n // window.easemobim.bind({\r\n // configId: \"3cf9af90-d18a-4ace-8a05-eeaa3cd43206\",\r\n // });\r\n // });\r\n },\r\n methods: {\r\n getUserInfo() {\r\n return UserCenterService.getUserInfo()\r\n .then(({ data }) => {\r\n if (data) {\r\n this.userInfo = data.detail;\r\n }\r\n })\r\n .catch((err) => {\r\n this.$message.error(\"请先登录\");\r\n });\r\n },\r\n },\r\n beforeRouteLeave(to, from, next) {\r\n this.$store.commit(\"CLOSE_CONTACT\");\r\n next();\r\n },\r\n};\r\n</script>\r\n\r\n<style>\r\n.wrap {\r\n width: 100%;\r\n}\r\nbody .window-demo .em-widget-wrapper {\r\n width: 100%;\r\n min-width: 340px !important;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contact-online.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contact-online.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./contact-online.vue?vue&type=template&id=16c6e253&\"\nimport script from \"./contact-online.vue?vue&type=script&lang=js&\"\nexport * from \"./contact-online.vue?vue&type=script&lang=js&\"\nimport style0 from \"./contact-online.vue?vue&type=style&index=0&id=16c6e253&prod&lang=css&\"\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 null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contact-online.vue?vue&type=style&index=0&id=16c6e253&prod&lang=css&\""],"sourceRoot":""}