index.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. <template>
  2. <div class="home">
  3. <!-- <img class="home-back" src={require('../../assets/img_home.png')} /> -->
  4. <a-modal v-model="amodal" title="申请试用" on-ok="handleOk" centered @afterClose="fouse" destroyOnClose>
  5. <template slot="footer">
  6. <div class="sub">
  7. <a-button key="submit" type="primary" @click="handleSubmit">
  8. 立即提交
  9. </a-button>
  10. </div>
  11. </template>
  12. <a-form :form="form" :label-col="{ span: 5 }" :wrapper-col="{ span: 50 }" @submit="handleSubmit">
  13. <a-form-item label="CompanyName">
  14. <!-- 公司名称 -->
  15. <a-input v-decorator="['companyName', { rules: [{ required: true, message: '请输入您的公司名称' }] }]"
  16. v-model="customer.companyName" placeholder="请输入您的公司名称*">
  17. <img src="../../static/image/img_home_modal_0.png" class="w-15 h-15" slot="prefix" alt="">
  18. </a-input>
  19. </a-form-item>
  20. <a-form-item label="City">
  21. <!-- 选择所在城市 -->
  22. <a-input v-decorator="['city', { rules: [{ required: true, message: '请输入所在城市' }] }]" v-model="customer.city"
  23. placeholder="请输入所在城市*">
  24. <!-- <a-icon slot="prefix" type="bank" /> -->
  25. <img src="../../static/image/img_home_modal_1.png" class="w-15 h-15" slot="prefix" alt="">
  26. </a-input>
  27. </a-form-item>
  28. <a-form-item label="CustomName">
  29. <!-- 姓名 -->
  30. <a-input v-decorator="['customName', { rules: [{ required: true, message: '请输入您的姓名' }] }]"
  31. v-model="customer.customName" placeholder="请输入您的姓名*">
  32. <!-- <a-icon slot="prefix" type="UserOutlined" /> -->
  33. <img src="../../static/image/img_home_modal_2.png" class="w-15 h-15" slot="prefix" alt="">
  34. </a-input>
  35. </a-form-item>
  36. <a-form-item label="Phone">
  37. <!-- 手机号 -->
  38. <a-input v-decorator="['phone', { rules: [{ required: true, message: '请输入您的联系方式' }] }]" v-model="customer.phone"
  39. placeholder="请输入您的联系方式*">
  40. <!-- <a-icon slot="prefix" type="phone" /> -->
  41. <img src="../../static/image/img_home_modal_3.png" class="w-15 h-15" slot="prefix" alt="">
  42. </a-input>
  43. </a-form-item>
  44. <!-- 验证码 -->
  45. <a-form-item label="VerifyCode">
  46. <a-input v-decorator="['verifyCode', { rules: [{ required: true, message: '请输入验证码' }] }]" placeholder="输入验证码"
  47. v-model="customer.verifyCode" size="large">
  48. <img src="../../static/image/img_home_modal_4.png" class="w-15 h-15" slot="prefix" alt="">
  49. <div slot="suffix" style="cursor: pointer; color: #1890ff;" @click="verifyCodeFn">
  50. {{ countdown == 0 ? '获取验证码' : countdown }}
  51. </div>
  52. </a-input>
  53. </a-form-item>
  54. </a-form>
  55. </a-modal>
  56. <img src="../../static/image/img_home.png" class="home-back" style="cursor: pointer;" alt="" @click="amodalFn">
  57. <div class="home-qa">
  58. <div class="home-title">为什么选择惠融易客</div>
  59. <div class="home-title-sub">
  60. 与传统方式相比较,惠融易客的优势又都有哪些?
  61. </div>
  62. <div class="home-qa-img-row">
  63. <div class="container">
  64. <div v-for="(p, i) in homeList0" :key="i" class="container-row">
  65. <!-- <a-row :gutter="[24,24]" wrap justify="center">
  66. <a-col span='10'> -->
  67. <!-- ../static/image/img_home_ad_0.png -->
  68. <div class='home-qa-img-row-item'>
  69. <img :src="require('../../static/image/img_home_qs_0_' + i + '.png')" alt="">
  70. <!-- <img src="../static/image/img_home_qs_0_0.png" alt=""> -->
  71. <div class="home-qa-img-row-item-absolute">
  72. <div class="home-qa-img-row-item-absolute-title">
  73. {{ p.title }}
  74. </div>
  75. <div class="home-qa-img-row-item-absolute-subtitle yc-4">
  76. {{ p.content }}
  77. </div>
  78. </div>
  79. </div>
  80. <!-- </a-col>
  81. </a-row> -->
  82. </div>
  83. </div>
  84. </div>
  85. <div class="home-qa-img-row">
  86. <div class="container">
  87. <div v-for="(p, i) in homeList1" :key="i" class="container-row">
  88. <!-- <a-row :gutter="[24,24]" wrap justify="center">
  89. <a-col span='10'> -->
  90. <!-- ../static/image/img_home_ad_0.png -->
  91. <div class='home-qa-img-row-item'>
  92. <!-- img_home_qs_1_0 -->
  93. <img :src="require('../../static/image/img_home_qs_1_' + i + '.png')" alt="">
  94. <!-- <img src="../static/image/img_home_qs_0_0.png" alt=""> -->
  95. <div class="home-qa-img-row-item-absolute">
  96. <div class="home-qa-img-row-item-absolute-title">
  97. <span>0{{ i + 1 }}</span> {{ p.title }}
  98. </div>
  99. <div class="home-qa-img-row-item-absolute-subtitle yc-4">
  100. {{ p.content }}
  101. </div>
  102. </div>
  103. </div>
  104. <!-- </a-col>
  105. </a-row> -->
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="home-ad">
  111. <div>
  112. <div class="home-title">精准获客</div>
  113. <div class="home-title-sub">
  114. 多渠道投放对接,帮助企业搭建推广产品矩阵
  115. </div>
  116. <div class="home-ad-row">
  117. <div v-for="(index, i) in 6" :key="i" class="home-row-single">
  118. <img :src="require('../../static/image/img_home_ad_' + i + '.png')" alt="">
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="home-static">
  124. <div class="home-content">
  125. <div class="home-title">免费试用</div>
  126. <div class="home-title-sub">
  127. 立即免费试用惠融易客CRM 提升企业业绩
  128. </div>
  129. <div class="home-ad-free">
  130. <div class="home-static-title">
  131. 已加入
  132. </div>
  133. <div v-for="(index, i) in freeList" :key="i" class="home-row-single">
  134. <div class="home-static-num">
  135. <div class="home-static-num-wrap">{{ index }}</div>
  136. </div>
  137. </div>
  138. <div class="home-static-title">人</div>
  139. </div>
  140. <div style="text-align: center">
  141. <a-button class="home-static-btn" shape="round" @click="amodalFn">立即申请试用</a-button>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="home-qa">
  146. <div class="home-content">
  147. <div class="home-title">咨询信息</div>
  148. <div class="home-title-sub" @click="amodalFn">
  149. 点击了解惠融易客的更多信息
  150. </div>
  151. <div class="home-ad-xw" v-if="homeList3[0]">
  152. <div class="ad-free-img">
  153. <img v-if="activeKey" :src="homeList3[activeKey].images" style="width:100%;height: 100%;" alt="">
  154. <img v-else :src="homeList3[0].images" style="width:100%;height: 100%;" alt="">
  155. </div>
  156. <div class="ad-free-content">
  157. <a-collapse v-model="activeKey" accordion @change="collapseChange">
  158. <a-collapse-panel key="0" :header="homeList3[0].title" :showArrow="false">
  159. <div class="add-title yc-3">
  160. {{ homeList3[0].summary }}
  161. </div>
  162. <a-button type="primary" style="margin-top: 5px;" @click="btnContent(homeList3[0])">
  163. 查看详情
  164. </a-button>
  165. </a-collapse-panel>
  166. <template v-for="(item, index) in homeList3">
  167. <a-collapse-panel v-if="index !== 0" :key="index + ''" :header="item.title" :showArrow="false">
  168. <!-- <p>{{ item.title }}</p> -->
  169. <div class="add-title yc-3">
  170. {{ item.summary }}
  171. </div>
  172. <a-button type="primary" @click="btnContent(item)">
  173. 查看详情
  174. </a-button>
  175. </a-collapse-panel>
  176. </template>
  177. </a-collapse>
  178. <div>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <!-- 底部 -->
  185. <div class="home-bottom">
  186. <!-- 联系我们 -->
  187. <div class="contact">
  188. <span class="contact-1">
  189. 联系我们
  190. </span>
  191. <span class="contact-2">不要犹豫,现在就来联系我们吧 !</span>
  192. </div>
  193. <!-- 咨询 -->
  194. <div class="home-consult">
  195. <!-- 左边 -->
  196. <div class="consult-tel">
  197. <div>
  198. <span>
  199. <img src="../../static/image/001.png" alt="" class="w-20 h-20">
  200. </span>
  201. <span class="color-fff-12">
  202. 咨询: 23232322
  203. </span>
  204. </div>
  205. <div>
  206. <span>
  207. <img src="../../static/image/002.png" alt="" class="w-20 h-20">
  208. </span>
  209. <span class="color-fff-12">
  210. 客服: 3333 44333 4311
  211. </span>
  212. </div>
  213. <div>
  214. <span>
  215. <img src="../../static/image/003.png" alt="" class="w-20 h-20">
  216. </span>
  217. <span class="color-fff-12">
  218. 市场: 3333 44333 4311
  219. </span>
  220. </div>
  221. <div>
  222. <span>
  223. <img src="../../static/image/004.png" alt="" class="w-20 h-20">
  224. </span>
  225. <span class="color-fff-12">
  226. 商务: 3333 44333 4311
  227. </span>
  228. </div>
  229. </div>
  230. <!-- 二维码 -->
  231. <div class="consult-code">
  232. <div class="code-content">
  233. <span class="color-fff-12" style="font-size: 11px; margin-bottom: 5px;">
  234. 关注公众号
  235. </span>
  236. <img src="https://img.atobo.com/ProductImg/EWM/UWeb/1/5/4/4/5124/15445124/1.gif"
  237. style="width:100px;height:100px" alt="">
  238. </div>
  239. <div class="code-content" style="margin: 0 15px 0 45px">
  240. <span class="color-fff-12" style="font-size: 11px; margin-bottom: 5px;">
  241. iosAPP下载
  242. </span>
  243. <img src="https://img.atobo.com/ProductImg/EWM/UWeb/1/5/4/4/5124/15445124/1.gif"
  244. style="width:100px;height:100px" alt="">
  245. </div>
  246. <div class="code-content">
  247. <span class="color-fff-12" style="font-size: 11px; margin-bottom: 5px;">
  248. 安卓APP下载
  249. </span>
  250. <img src="https://img.atobo.com/ProductImg/EWM/UWeb/1/5/4/4/5124/15445124/1.gif"
  251. style="width:100px;height:100px" alt="">
  252. </div>
  253. </div>
  254. </div>
  255. <!-- 地址 -->
  256. <div class="site color-fff">
  257. <img src="../../static/image/005.png" class="w-20 h-20 " alt="">
  258. <span>
  259. 地址 重庆市两江新区大竹林街道清枫北路10号3幢双子座A座1406
  260. </span>
  261. </div>
  262. <!-- 备案号 -->
  263. <div class="reference">
  264. <span>重庆惠融数字科技有限公司版权所有</span>
  265. <span>
  266. 渝ICP备2023000211号-4
  267. </span>
  268. </div>
  269. </div>
  270. </div>
  271. </template>
  272. <script>
  273. import { postListData, sendSms,postCustomer } from '../../api/index'
  274. import { message } from 'ant-design-vue'
  275. export default {
  276. name: 'IndexPage',
  277. data() {
  278. return {
  279. homeList0: [
  280. {
  281. title: '传统获得客效率低,成本高',
  282. content:
  283. '3000个白名单里可能只能挖掘出一个意向客户,员工信心不足,线路成本与人工成本均居高不下',
  284. },
  285. {
  286. title: '客户资源易流失',
  287. content:
  288. '高价挖掘的意向客户,面临员工离职带走客户和员工飞单的风险,无法形成客户资产,资源全部在业务员手上',
  289. },
  290. {
  291. title: '跨部门沟通成本高',
  292. content:
  293. '线下上门客户填写个人信息受法律监管,机构对于各类纸质资料不易保存,上门客户服务情况无法掌握,跨部门沟通成本高',
  294. },
  295. ],
  296. homeList1: [
  297. {
  298. title: '轻松获客',
  299. content: '通过惠融易客推广获客,轻松获取意向客户,有效降低获客成本95%',
  300. },
  301. {
  302. title: '客户管理',
  303. content:
  304. '通过惠融易客客户管理系统,科学高效管理企业客户资料,开成公司资产,员工离职一键收回所有权限,客户跟进情况一目了然',
  305. },
  306. {
  307. title: '业务管理',
  308. content:
  309. '通过惠融易客客户管理系统记录跟进,客户从上门到成交的各个环节均可清晰化、信息化记录,有效提高效率与服务质量',
  310. },
  311. ],
  312. freeList: ['3', '0', '7', '0', '1', '3', '7', '4'],
  313. homeList3: [],
  314. activeKey: [0],
  315. text: `A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.`,
  316. amodal: false, //申请试用弹窗
  317. countdown: 0,
  318. customer: {
  319. sceneType: "loanofficial", // 场景
  320. companyName: '',// 公司名称
  321. customName: '', // 姓名
  322. city: '', // 所在城市
  323. phone: '', // 手机号
  324. verifyCode: '', //验证码
  325. channel:16, //pc官网16 手机端17
  326. },
  327. // 定时器
  328. intervalBtn: {},
  329. formLayout: 'horizontal',
  330. form: this.$form.createForm(this, { name: 'coordinated' }),
  331. }
  332. },
  333. created() {
  334. this.postListDataFn()
  335. },
  336. methods: {
  337. async postListDataFn() {
  338. let list = await postListData({
  339. "categoryId": 1
  340. })
  341. list.data.data ? this.homeList3 = list.data.data.list : ''
  342. // console.log('this.homeList3',this.homeList3)
  343. },
  344. collapseChange(e) {
  345. console.log(this.activeKey, 'collapseChange', e)
  346. },
  347. btnContent(item) {
  348. console.log('item', item)
  349. this.$router.push({ path: `/user/content?id=${item.id}`})
  350. },
  351. // 发送
  352. handleSubmit(e) {
  353. e.preventDefault();
  354. this.form.validateFields(async(err, values) => {
  355. if (!err) {
  356. // console.log('Received values of form: ', values);
  357. let z = await postCustomer(this.customer)
  358. console.log('zzz',z)
  359. if(z.data.msg=='成功'){
  360. // 关闭页面
  361. this.fouse()
  362. }
  363. } else {
  364. console.log('进来了')
  365. }
  366. });
  367. },
  368. // 打开
  369. amodalFn(){
  370. this.amodal = true
  371. },
  372. // 关闭
  373. fouse(){
  374. console.log('关闭了')
  375. this.amodal = false
  376. },
  377. handleSelectChange(value) {
  378. console.log(value);
  379. this.form.setFieldsValue({
  380. note: `Hi, ${value === 'male' ? 'man' : 'lady'}!`,
  381. });
  382. },
  383. // 验证码
  384. async verifyCodeFn() {
  385. if (this.customer.phone) {
  386. if (new RegExp('^1[0-9]{10}$').test(this.customer.phone)) {
  387. let z = await sendSms({
  388. sceneType: "loanofficial",
  389. userMobile: this.customer.phone
  390. })
  391. // console.log('zzz', z)
  392. if (z.data.code == 0) {
  393. message.success('发送成功')
  394. this.countdown = 60
  395. this.countDown()
  396. // console.log('进来了', this.countdown)
  397. } else {
  398. message.error('发送失败')
  399. }
  400. } else {
  401. message.error('请输入正确的手机号');
  402. }
  403. } else {
  404. message.error('请输入手机号')
  405. }
  406. },
  407. // 倒计时
  408. countDown() {
  409. // 设置倒计时
  410. this.intervalBtn = setInterval(() => {
  411. if (this.countdown == 1) {
  412. // 清除定时器
  413. clearInterval(this.intervalBtn)
  414. // 重置倒计时状态
  415. // this.countdown = 0
  416. };
  417. // 倒计时
  418. this.countdown--
  419. }, 1000)
  420. },
  421. }
  422. }
  423. </script>
  424. <style lang="less">
  425. @import '../../static/index.less';
  426. .ant-collapse-header {
  427. white-space: nowrap !important;
  428. text-overflow: ellipsis !important;
  429. overflow: hidden !important;
  430. }
  431. .ant-btn-primary {
  432. background-color: #526eea !important;
  433. border-color: #526eea !important;
  434. }
  435. .ant-btn-primary {
  436. background-color: #fff !important;
  437. border-color: #fff !important;
  438. color: #1890ff !important;
  439. }
  440. .ant-form-item-label {
  441. display: none !important;
  442. }
  443. .ant-modal-footer {
  444. text-align: center !important;
  445. }
  446. .sub .ant-btn-primary {
  447. background-color: #526eea !important;
  448. border-color: #526eea !important;
  449. color: #fff !important;
  450. width: 150px;
  451. height: 40px;
  452. }
  453. </style>