{"version":3,"sources":["webpack:///js/index.a7ae97.js","webpack:///./src/view/index/index.js"],"names":["webpackJsonp","10","module","exports","9","__webpack_require__","i","Vue","el","data","dialogVisible","formInline","brand","business","relation","medicineCreateReqList","name","specifCreateReqList","specification","shortKey","platformIds","times","mobile","code","remark","email","company","platFormList","methods","submited","this","$message","error","axios","post","BASEURL","brandCreateReqList","then","res","success","msg","catch","e","getPlatformList","get","addpp","push","deletepp","index","splice","addyp","num","deleteyp","addgg","deletegg","getma","w","setTimeout","clearTimeout","scene","response","open","handleClose","$","tId","window","onScrollElement","dataHandle","onscroll","elementArry","clientHeight","height","lazyLoad","forEach","obj","onScrollAuto","Element","document","createElement","addClass","mouseenter","commonjs","switchToke","removeClass","Swiper","pagination","grabCursor","paginationClickable","autoplay","click","reg","telephone","val","demand","test","putInfo","VtMessage","info","duration","content","offset","find","telePhone","url"],"mappings":"AAAAA,cAAc,IAERC,GACA,SAAUC,EAAQC,KAMlBC,EACA,SAAUF,EAAQC,EAASE,GAEjC,YCZAC,GAAA,GACA,OAAAA,EAAA,EAEA,IAAIC,MACFC,GAAI,OAIJC,KAAM,WACJ,OACEC,eAAcA,EACdC,aAEIC,MAAO,GACPC,SAAU,GACVC,SAAU,GACVC,wBAEIC,KAAM,GACNC,sBACIC,cAAe,GAAIC,SAAU,GAAIC,qBAM7CC,MAAO,EACPC,OAAQ,GACRN,KAAM,GACNO,KAAM,GACNC,OAAQ,GACRC,MAAO,GACPC,QAAS,GACTC,kBAGJC,SACEC,SADO,WACI,UACT,OAAiB,IAAbC,KAAKd,MACPc,KAAKC,SAASC,MAAM,cAGH,IAAfF,KAAKR,QAA6B,IAAbQ,KAAKP,MAC5BO,KAAKC,SAASC,MAAM,uBAGtBC,OACGC,KAAKC,UAAU,6BACdnB,KAAMc,KAAKd,KACXM,OAAQQ,KAAKR,OACbI,QAASI,KAAKJ,QACdH,KAAMO,KAAKP,KACXE,MAAOK,KAAKL,MACZD,OAAQM,KAAKN,OACbY,mBAAoBN,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,2BAA2B6B,KAC7C,IAAiB,IAAbU,EAAiB,CACnBvC,EAAE,2BAA2B6B,IAAI,GACjC,IAAIW,GAAM,iBAAmBD,CAE7BrC,QAAOJ,KAAK0C,EAAK,cAEjBP,WAAUC,MACRC,SAAU,IACVC,QAAS,WACTC,OAAQ,kCDMf","file":"js/index.a7ae97.js","sourcesContent":["webpackJsonp([4],{\n\n/***/ 10:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 9:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(10);\n\nvar _api = __webpack_require__(0);\n\n// import Verify from \"../../components/Verifition/Verify.vue\";\nnew Vue({\n el: \"#app\",\n // components: {\n // Verify,\n // },\n data: function data() {\n return {\n dialogVisible: false,\n formInline: [{\n brand: \"\",\n business: \"\",\n relation: \"\",\n medicineCreateReqList: [{\n name: \"\",\n specifCreateReqList: [{ specification: \"\", shortKey: \"\", platformIds: [] }]\n }]\n }],\n times: 0,\n mobile: \"\",\n name: \"\",\n code: \"\",\n remark: \"\",\n email: \"\",\n company: \"\",\n platFormList: []\n };\n },\n methods: {\n submited: function submited() {\n var _this = this;\n\n if (this.name == \"\") {\n this.$message.error(\"请输入姓名!\");\n return false;\n }\n if (this.mobile == \"\" || this.code == \"\") {\n this.$message.error(\"请输入手机号、验证码!\");\n return false;\n }\n axios.post(_api.BASEURL + \"/admin-api/website/submit\", {\n name: this.name,\n mobile: this.mobile,\n company: this.company,\n code: this.code,\n email: this.email,\n remark: this.remark,\n brandCreateReqList: this.formInline\n }).then(function (res) {\n if (res.data.code === 0) {\n _this.$message.success(\"提交成功!\");\n } else {\n _this.$message.error(res.data.msg);\n }\n _this.dialogVisible = false;\n }).catch(function (e) {\n return _this.$message.error(e.msg);\n });\n },\n getPlatformList: function getPlatformList() {\n var _this2 = this;\n\n axios.get(_api.BASEURL + \"/admin-api/drug/platform/list-all-simple\").then(function (res) {\n _this2.platFormList = res.data.data;\n });\n },\n addpp: function addpp() {\n this.formInline.push({\n brand: \"\",\n business: \"\",\n relation: \"\",\n medicineCreateReqList: [{\n name: \"\",\n specifCreateReqList: [{ specification: \"\", shortKey: \"\", platformIds: [] }]\n }]\n });\n },\n deletepp: function deletepp(index) {\n this.formInline.splice(index, 1);\n },\n addyp: function addyp(index, num) {\n this.formInline[index].medicineCreateReqList.push({\n name: \"\",\n specifCreateReqList: [{ specification: \"\", shortKey: \"\", platformIds: [] }]\n });\n },\n deleteyp: function deleteyp(index, num) {\n this.formInline[index].medicineCreateReqList.splice(num, 1);\n },\n addgg: function addgg(index, num) {\n this.formInline[index].medicineCreateReqList[num].specifCreateReqList.push({\n specification: \"\",\n shortKey: \"\",\n platformIds: []\n });\n },\n deletegg: function deletegg(index, num, i) {\n this.formInline[index].medicineCreateReqList[num].specifCreateReqList.splice(i, 1);\n },\n getma: function getma() {\n var _this3 = this;\n\n if (this.mobile == \"\") {\n this.$message.error(\"请输入手机号!\");\n return false;\n }\n this.times = 60;\n var w = setTimeout(function () {\n _this3.times--;\n }, 1000);\n if (!this.times) {\n clearTimeout(w);\n }\n\n axios.post(_api.BASEURL + \"/admin-api/system/auth/send-sms-code\", {\n mobile: this.mobile,\n scene: \"22\"\n }).then(function (response) {\n return _this3.$message.success(\"发送成功!\");\n });\n },\n open: function open() {\n\n this.dialogVisible = true;\n\n this.getPlatformList();\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n }\n }\n});\n$(function () {\n var tId = null; //\n\n // 初始化数字跳动动画的变量\n window.onScrollElement.dataHandle();\n\n // 图片懒加载和移动到数字处跳动动画\n window.onscroll = function () {\n //获取window.onScrollElement.dataHandle()方法存储的数字对象的集合\n var elementArry = window.onScrollElement.elementArry;\n var clientHeight = $(window).height(); //获取窗口的高度\n clearTimeout(tId);\n tId = setTimeout(function () {\n window.lazyLoad(clientHeight); //图片懒加载的方法\n\n // 遍历数字的集合\n elementArry.forEach(function (obj, i) {\n // 调用监听数字滚动函数\n window.onScrollElement.onScrollAuto(obj, clientHeight);\n });\n }, 100);\n };\n\n window.lazyLoad(window.onScrollElement.clientHeight);\n\n // 切换页面的拓客线索、智能触达等菜单\n var Element = document.createElement(\"div\");\n var targetElement = \"home-data-logo\";\n var activeElement = \"home-data-active\";\n var switchElement = \"home-toke-clue\";\n $(\".home-data-logo > div:nth-child(1)\").addClass(activeElement);\n $(\".home-data-logo > div\").mouseenter(function () {\n window.commonjs.switchToke($(this), //当前点击的div\n Element, //添加的倒三角图标\n targetElement, //切换的目标类名\n activeElement, //选中目标类名\n switchElement //切换的目标类名\n );\n });\n\n $(\".home-assistance-statistic > div\").mouseenter(function () {\n $(\".home-assistance-statistic > div\").removeClass(\"assistance-statistic-active\");\n $(this).addClass(\"assistance-statistic-active\");\n });\n\n swiper2();\n function swiper2() {\n var mySwiper = new Swiper(\".home-banner-swipe\", {\n pagination: \".banner-pagination\",\n // loop:true,\n grabCursor: true,\n paginationClickable: true,\n autoplay: 3000\n });\n }\n\n $(\".home-consult-input > button\").click(function () {\n var reg = /^1[3456789]\\d{9}$/;\n var telephone = $(\"#telephone\").val();\n var name = $(\"#name\").val();\n var demand = $(\"#demand\").val();\n if (reg.test(telephone) === true) {\n if (name != \"\") {\n if (demand != \"\") {\n putInfo();\n } else {\n VtMessage.info({\n duration: 2000,\n content: \"帮助内容不能为空\",\n offset: \"vt-top-center vt-fixed\"\n });\n }\n } else {\n VtMessage.info({\n duration: 2000,\n content: \"请输入联系人姓名\",\n offset: \"vt-top-center vt-fixed\"\n });\n }\n } else {\n VtMessage.info({\n duration: 2000,\n content: \"请填入有效手机号码\",\n offset: \"vt-top-center vt-fixed\"\n });\n }\n });\n\n $(\".home-swipe-left\").find(\"button\").click(function () {\n var telePhone = $(\".home-swipe-left input \").val();\n if (telePhone != \"\") {\n $(\".home-swipe-left input \").val(\"\");\n var url = \"register.html#\" + telePhone;\n // location.href = url;\n window.open(url, \"_blank\");\n } else {\n VtMessage.info({\n duration: 2000,\n content: \"手机号码不能为空\",\n offset: \"vt-top-center vt-fixed\"\n });\n }\n });\n});\n\n/***/ })\n\n},[9]);\n\n\n// WEBPACK FOOTER //\n// js/index.a7ae97.js","import \"./index.less\";\r\nimport { BASEURL } from \"../../api/api.js\";\r\n// import Verify from \"../../components/Verifition/Verify.vue\";\r\nnew Vue({\r\n el: \"#app\",\r\n // components: {\r\n // Verify,\r\n // },\r\n data: function () {\r\n return {\r\n dialogVisible: false,\r\n formInline: [\r\n {\r\n brand: \"\",\r\n business: \"\",\r\n relation: \"\",\r\n medicineCreateReqList: [\r\n {\r\n name: \"\",\r\n specifCreateReqList: [\r\n { specification: \"\", shortKey: \"\", platformIds: [] },\r\n ],\r\n },\r\n ],\r\n },\r\n ],\r\n times: 0,\r\n mobile: \"\",\r\n name: \"\",\r\n code: \"\",\r\n remark: \"\",\r\n email: \"\",\r\n company: \"\",\r\n platFormList: [],\r\n };\r\n },\r\n methods: {\r\n submited() {\r\n if (this.name == \"\") {\r\n this.$message.error(\"请输入姓名!\");\r\n return false;\r\n }\r\n if (this.mobile == \"\" || this.code == \"\") {\r\n this.$message.error(\"请输入手机号、验证码!\");\r\n return false;\r\n }\r\n axios\r\n .post(BASEURL + \"/admin-api/website/submit\", {\r\n name: this.name,\r\n mobile: this.mobile,\r\n company: this.company,\r\n code: this.code,\r\n email: this.email,\r\n remark: this.remark,\r\n brandCreateReqList: this.formInline,\r\n })\r\n .then((res) => {\r\n if (res.data.code === 0) {\r\n this.$message.success(\"提交成功!\");\r\n } else {\r\n this.$message.error(res.data.msg);\r\n }\r\n this.dialogVisible = false;\r\n })\r\n .catch((e) => this.$message.error(e.msg));\r\n },\r\n getPlatformList() {\r\n axios\r\n .get(BASEURL + \"/admin-api/drug/platform/list-all-simple\")\r\n .then((res) => {\r\n this.platFormList = res.data.data;\r\n });\r\n },\r\n addpp() {\r\n this.formInline.push({\r\n brand: \"\",\r\n business: \"\",\r\n relation: \"\",\r\n medicineCreateReqList: [\r\n {\r\n name: \"\",\r\n specifCreateReqList: [\r\n { specification: \"\", shortKey: \"\", platformIds: [] },\r\n ],\r\n },\r\n ],\r\n });\r\n },\r\n\r\n deletepp(index) {\r\n this.formInline.splice(index, 1);\r\n },\r\n addyp(index, num) {\r\n this.formInline[index].medicineCreateReqList.push({\r\n name: \"\",\r\n specifCreateReqList: [\r\n { specification: \"\", shortKey: \"\", platformIds: [] },\r\n ],\r\n });\r\n },\r\n deleteyp(index, num) {\r\n this.formInline[index].medicineCreateReqList.splice(num, 1);\r\n },\r\n addgg(index, num) {\r\n this.formInline[index].medicineCreateReqList[\r\n num\r\n ].specifCreateReqList.push({\r\n specification: \"\",\r\n shortKey: \"\",\r\n platformIds: [],\r\n });\r\n },\r\n deletegg(index, num, i) {\r\n this.formInline[index].medicineCreateReqList[\r\n num\r\n ].specifCreateReqList.splice(i, 1);\r\n },\r\n getma() {\r\n if (this.mobile == \"\") {\r\n this.$message.error(\"请输入手机号!\");\r\n return false;\r\n }\r\n this.times = 60;\r\n let w = setTimeout(() => {\r\n this.times--;\r\n }, 1000);\r\n if (!this.times) {\r\n clearTimeout(w);\r\n }\r\n\r\n axios\r\n .post(BASEURL + \"/admin-api/system/auth/send-sms-code\", {\r\n mobile: this.mobile,\r\n scene: \"22\",\r\n })\r\n .then((response) => this.$message.success(\"发送成功!\"));\r\n },\r\n open() {\r\n \r\n this.dialogVisible = true;\r\n\r\n this.getPlatformList();\r\n },\r\n handleClose() {\r\n this.dialogVisible = false;\r\n },\r\n },\r\n});\r\n$(function () {\r\n var tId = null; //\r\n\r\n // 初始化数字跳动动画的变量\r\n window.onScrollElement.dataHandle();\r\n\r\n // 图片懒加载和移动到数字处跳动动画\r\n window.onscroll = function () {\r\n //获取window.onScrollElement.dataHandle()方法存储的数字对象的集合\r\n var elementArry = window.onScrollElement.elementArry;\r\n var clientHeight = $(window).height(); //获取窗口的高度\r\n clearTimeout(tId);\r\n tId = setTimeout(function () {\r\n window.lazyLoad(clientHeight); //图片懒加载的方法\r\n\r\n // 遍历数字的集合\r\n elementArry.forEach((obj, i) => {\r\n // 调用监听数字滚动函数\r\n window.onScrollElement.onScrollAuto(obj, clientHeight);\r\n });\r\n }, 100);\r\n };\r\n\r\n window.lazyLoad(window.onScrollElement.clientHeight);\r\n\r\n // 切换页面的拓客线索、智能触达等菜单\r\n var Element = document.createElement(\"div\");\r\n var targetElement = \"home-data-logo\";\r\n var activeElement = \"home-data-active\";\r\n var switchElement = \"home-toke-clue\";\r\n $(\".home-data-logo > div:nth-child(1)\").addClass(activeElement);\r\n $(\".home-data-logo > div\").mouseenter(function () {\r\n window.commonjs.switchToke(\r\n $(this), //当前点击的div\r\n Element, //添加的倒三角图标\r\n targetElement, //切换的目标类名\r\n activeElement, //选中目标类名\r\n switchElement //切换的目标类名\r\n );\r\n });\r\n\r\n $(\".home-assistance-statistic > div\").mouseenter(function () {\r\n $(\".home-assistance-statistic > div\").removeClass(\r\n \"assistance-statistic-active\"\r\n );\r\n $(this).addClass(\"assistance-statistic-active\");\r\n });\r\n\r\n swiper2();\r\n function swiper2() {\r\n var mySwiper = new Swiper(\".home-banner-swipe\", {\r\n pagination: \".banner-pagination\",\r\n // loop:true,\r\n grabCursor: true,\r\n paginationClickable: true,\r\n autoplay: 3000,\r\n });\r\n }\r\n\r\n $(\".home-consult-input > button\").click(function () {\r\n const reg = /^1[3456789]\\d{9}$/;\r\n var telephone = $(\"#telephone\").val();\r\n var name = $(\"#name\").val();\r\n var demand = $(\"#demand\").val();\r\n if (reg.test(telephone) === true) {\r\n if (name != \"\") {\r\n if (demand != \"\") {\r\n putInfo();\r\n } else {\r\n VtMessage.info({\r\n duration: 2000,\r\n content: \"帮助内容不能为空\",\r\n offset: \"vt-top-center vt-fixed\",\r\n });\r\n }\r\n } else {\r\n VtMessage.info({\r\n duration: 2000,\r\n content: \"请输入联系人姓名\",\r\n offset: \"vt-top-center vt-fixed\",\r\n });\r\n }\r\n } else {\r\n VtMessage.info({\r\n duration: 2000,\r\n content: \"请填入有效手机号码\",\r\n offset: \"vt-top-center vt-fixed\",\r\n });\r\n }\r\n });\r\n\r\n $(\".home-swipe-left\")\r\n .find(\"button\")\r\n .click(function () {\r\n var telePhone = $(\".home-swipe-left input \").val();\r\n if (telePhone != \"\") {\r\n $(\".home-swipe-left input \").val(\"\");\r\n var url = \"register.html#\" + telePhone;\r\n // location.href = url;\r\n window.open(url, \"_blank\");\r\n } else {\r\n VtMessage.info({\r\n duration: 2000,\r\n content: \"手机号码不能为空\",\r\n offset: \"vt-top-center vt-fixed\",\r\n });\r\n }\r\n });\r\n});\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/view/index/index.js"],"sourceRoot":""}