1 |
- {"version":3,"sources":["webpack:///./src/views/contact-online.vue?233d","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:///./node_modules/core-js/modules/es6.function.name.js","webpack:///./node_modules/core-js/modules/es6.function.bind.js","webpack:///./node_modules/core-js/modules/_bind.js","webpack:///./src/assets/return.png"],"names":["render","_vm","this","_c","_self","staticClass","attrs","require","on","$event","$router","back","_v","staticRenderFns","components","data","huanxin","userInfo","mounted","UserCenterService","Toast","setTimeout","window","hide","configId","user","username","password","visitor","trueName","qq","phone","companyName","userNickname","description","email","console","methods","getUserInfo","toHuanxin","beforeRouteLeave","next","component","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","match","e","$export","P","bind","aFunction","isObject","invoke","arraySlice","slice","factories","construct","F","len","args","n","i","join","module","exports","that","fn","partArgs","call","arguments","bound","concat","length"],"mappings":"kHAAA,W,yCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaC,MAAM,CAAC,IAAMC,EAAQ,SAAyBC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,QAAQC,WAAWR,EAAG,IAAI,CAACE,YAAY,gBAAgB,CAACJ,EAAIW,GAAG,eAEvTC,EAAkB,G,0DCYtB,GACAC,cACAC,gBACA,OACAC,sGAEAC,cAGAC,mBAAA,WACAC,uCAEA,MAKA,OAJAC,4BACAC,uBACA,mBACA,KAGAC,yBACAC,QACAC,gDAEAC,MAEAC,gCACAC,iCAGAC,SACAC,yBACAC,MACAC,uBACAC,eACAC,gBACAC,eACAC,WAIAb,uBAAAE,qDAGA,mBACAY,mBACAhB,uBACAC,uBACA,wBACA,SAIAgB,SACAC,uBAAA,W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file":"js/chunk-45affde8.f9bc934d.js","sourcesContent":["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=7452f0c4&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('div',{staticClass:\"header\"},[_c('img',{staticClass:\"return-img\",attrs:{\"src\":require(\"../assets/return.png\")},on:{\"click\":function($event){return _vm.$router.back()}}}),_c('p',{staticClass:\"header-title\"},[_vm._v(\"在线客服\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- 联系我们 -->\r\n<template>\r\n\t<div class=\"wrap\">\r\n <div class=\"header\">\r\n <img src=\"../assets/return.png\" class=\"return-img\" @click=\"$router.back()\">\r\n <p class=\"header-title\">在线客服</p>\r\n </div>\r\n\t</div>\r\n</template>\r\n<script>\r\nimport {ExpediteService, RecruitService, SupplierService, UserCenterService} from \"@/common/service\";\r\n import {copy} from \"@/common/util\";\r\n import {Toast} from \"vant\";\r\n\r\n export default {\r\n\t\tcomponents: {},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n huanxin: 'https://104968.kefu.easemob.com/webim/im.html?configId=3cf9af90-d18a-4ace-8a05-eeaa3cd43206',\r\n\r\n userInfo: {},\r\n\t\t\t};\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tUserCenterService.getUserInfo().then((data) => {\r\n\t\t\r\n\t\tif(!data){\r\n\t\t\tToast('请先登录');\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.$router.back()\r\n\t\t\t\t}, 2000);\r\n\t\t\t\treturn\r\n\t\t\t}else{\r\n\t\t\t\twindow.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 };\r\n\r\n window.easemobim.bind({configId: '3cf9af90-d18a-4ace-8a05-eeaa3cd43206'});\r\n\t\t\t}\r\n \r\n }).catch(err=>{\r\n\t\t\tconsole.log(131,err);\r\n\t\t\tToast('请先登录');\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.$router.push('/my')\r\n\t\t\t\t}, 2000);\r\n\t\t\t\treturn\r\n\t\t});;\r\n\t\t},\r\n\t\tmethods: {\r\n getUserInfo() {\r\n return UserCenterService.getUserInfo().then(({ data }) => {\r\n\t\t\tif(data){\r\n\t\t\t\tthis.userInfo = data.detail;\r\n\r\n\t\t\t}\r\n\r\n\t\t\t\r\n }).catch(err=>{\r\n\t\t\tconsole.log(121,err);\r\n\t\t\tToast('请先登录');\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.$router.back()\r\n\t\t\t\t}, 2000);\r\n\t\t\t\treturn\r\n\t\t});\r\n },\r\n toHuanxin() {\r\n window.open(this.huanxin);\r\n },\r\n\t\t},\r\n beforeRouteLeave(to, from, next) {\r\n window.easemobim.minimize();\r\n next();\r\n },\r\n\t}\r\n</script>\r\n\r\n<style scoped>\r\n\t.wrap {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t\tpadding: 74px 37px 37px;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t/* 头部样式 */\r\n\t.header {\r\n\t\twidth: 100%;\r\n\t\theight: 44px;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tposition: fixed;\r\n\t\ttop: 0;\r\n\t\tleft: 0;\r\n\t\tbackground-color: #FFFFFF;\r\n\t\tz-index: 999;\r\n\t}\r\n\r\n\t.return-img {\r\n\t\tposition: absolute;\r\n\t\tleft: 15px;\r\n\t\ttop: 50%;\r\n\t\ttransform: translate(0, -50%);\r\n\t\twidth: 20px;\r\n\t}\r\n\r\n\t.header-title {\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 18px;\r\n\t\tfont-weight:bold;\r\n\t}\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=7452f0c4&scoped=true&\"\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=7452f0c4&prod&scoped=true&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 \"7452f0c4\",\n null\n \n)\n\nexport default component.exports","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX+JWLFRSmJBUoYyLCjDQoREQgghikQiQ4/OW8eXvPfe976fV31ne8+9z+8+59xzn3O6dHjr6nCfXmCrI9RTGeyH2XiEl2XQPQEci5MJ+AlLcKkost3AcTiH6RloN3Z0AnACzmNqhvmBFTj1r4ETE25KBvmObdhbFBf92jHEgYrMBbLRvmEL9pfBtQM4LeHGZ5Cv2ITDZXF1A2fgLOLDaLQv2IhjVXB1AmfhDMZkkM9YW+aD+NNL1DEH5+I0RmYBPmJ1WmKqJu/Xfa0C5+MEhmWKD2kpudiSLN3cCnARjmNIBnmHZbhaB66VDC7HEQzKIG/Tb+x6XbiqwDU4hAEZ5BUW43aduCrA9TiIqE4a7TliuO/VjSsLjA8hSqV8zj3BQjxsB64scDRiKPPs3UzZe9MJwDBEmbSz2/J0JyFLFaJFX6jKMrMdu7oh76ehflY0cNF+VYDx7K3Ygz5ZoCjnYz4+Lhq8SL+qwHj2ZuxD3yzQ04R8UCR4kT6tAOP5G3AA/bNgL9KcvFsE0KxPq8B4fhQFUesNzIK9Tgv3rWaAZtfrAEaM+P8exeAsYPz6luJaM8TfrtcFjBjxgUTxMDQL+D7hr1RF1gkMw7xUfg3PQFF+rcSFKsi6gWGYkwrYURkoNuwxV2NLUKq1AxiAmWkLEKcKjRZbgHUpw4WR7QIGIE4T4lSh+yZqAS4XFbYTGIY4VYg9cpwyNFrHHH00QJMTchLidGFVOkwqlMR2Z7CBGIHYJsTf5UYhWerUU8Aypt/69gIrp+5/GeKfiUBcKeCBb1YAAAAASUVORK5CYII=\""],"sourceRoot":""}
|