index.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  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" width="400px" @afterClose="fouse" destroyOnClose centered>
  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-from-item>
  14. <div style="height: 100px; display: flex; align-items: center; justify-content: center;color: #959595;">
  15. 为了我们能更好的服务您,请您填写以下信息,如遇问题,请您拨打免费服务热线:
  16. </div>
  17. </a-from-item>
  18. <a-form-item label="CompanyName">
  19. <!-- 公司名称 -->
  20. <a-input v-decorator="['companyName', { rules: [{ required: true, message: '请输入您的公司名称' }] }]"
  21. v-model="customer.companyName" placeholder="请输入您的公司名称*">
  22. <img src="../static/image/img_home_modal_0.png" class="w-15 h-15" slot="prefix" alt="">
  23. </a-input>
  24. </a-form-item>
  25. <a-form-item label="City">
  26. <!-- 选择所在城市 -->
  27. <a-input v-decorator="['city', { rules: [{ required: true, message: '请输入所在城市' }] }]" v-model="customer.city"
  28. placeholder="请输入所在城市*">
  29. <!-- <a-icon slot="prefix" type="bank" /> -->
  30. <img src="../static/image/img_home_modal_1.png" class="w-15 h-15" slot="prefix" alt="">
  31. </a-input>
  32. </a-form-item>
  33. <a-form-item label="CustomName">
  34. <!-- 姓名 -->
  35. <a-input v-decorator="['customName', { rules: [{ required: true, message: '请输入您的姓名' }] }]"
  36. v-model="customer.customName" placeholder="请输入您的姓名*">
  37. <!-- <a-icon slot="prefix" type="UserOutlined" /> -->
  38. <img src="../static/image/img_home_modal_2.png" class="w-15 h-15" slot="prefix" alt="">
  39. </a-input>
  40. </a-form-item>
  41. <a-form-item label="Phone">
  42. <!-- 手机号 -->
  43. <a-input v-decorator="['phone', { rules: [{ required: true, message: '请输入您的联系方式' }] }]" v-model="customer.phone"
  44. placeholder="请输入您的联系方式*">
  45. <!-- <a-icon slot="prefix" type="phone" /> -->
  46. <img src="../static/image/img_home_modal_3.png" class="w-15 h-15" slot="prefix" alt="">
  47. </a-input>
  48. </a-form-item>
  49. <!-- 验证码 -->
  50. <a-form-item label="VerifyCode">
  51. <a-input v-decorator="['verifyCode', { rules: [{ required: true, message: '请输入验证码' }] }]" placeholder="输入验证码"
  52. v-model="customer.verifyCode" size="large">
  53. <img src="../static/image/img_home_modal_4.png" class="w-15 h-15" slot="prefix" alt="">
  54. <div slot="suffix" style="cursor: pointer; color: #1890ff;" @click="verifyCodeFn">
  55. {{ countdown == 0 ? '获取验证码' : countdown }}
  56. </div>
  57. </a-input>
  58. </a-form-item>
  59. </a-form>
  60. </a-modal>
  61. <div class="home-back">
  62. <img src="../static/image/img_home1.png" style="cursor: pointer;width: 100%;" alt="" @click="amodalFn">
  63. <!-- <img src="../static/image/img_home1.png" style="cursor: pointer;width: 100%;" alt="" @click="amodalFn"> -->
  64. <div class="home-head">
  65. <div>
  66. <img src="../static/image/hryk.png" style="width: 200px;" alt="">
  67. </div>
  68. <div class="home-right">
  69. <span>
  70. <a href="#"> 首页</a>
  71. </span>
  72. <span>
  73. <a href="#solution"> 解决方案</a>
  74. </span>
  75. <span>
  76. <a href="#contact">联系我们</a>
  77. </span>
  78. <span @click="amodalFn">
  79. 申请试用
  80. </span>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="home-qa" id="solution">
  85. <div class="home-title">为什么选择惠融易客</div>
  86. <div class="home-title-sub">
  87. 与传统方式相比较,惠融易客的优势又都有哪些?
  88. </div>
  89. <div class="home-img">
  90. <div class="home-qa-img-row">
  91. <div class="container">
  92. <div v-for="(p, i) in homeList0" :key="i" class="container-row">
  93. <div class='home-qa-img-row-item'>
  94. <img :src="require('../static/image/p_img_home_qs_0_' + i + '.png')" alt="">
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="home-qa-img-row">
  100. <div class="container">
  101. <div v-for="(p, i) in homeList1" :key="i" class="container-row">
  102. <div class='home-qa-img-row-item'>
  103. <img :src="require('../static/image/p_img_home_qs_1_' + i + '.png')" alt="">
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="home-ad">
  110. <div>
  111. <div class="home-title">精准获客</div>
  112. <div class="home-title-sub">
  113. 多渠道投放对接,帮助企业搭建推广产品矩阵
  114. </div>
  115. <div class="home-ad-row">
  116. <div v-for="(index, i) in 6" :key="i" class="home-row-single">
  117. <img :src="require('../static/image/img_home_ad_' + i + '.png')" alt="">
  118. </div>
  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" v-show="homeList3[0]">
  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" id="contact">
  186. <div class="home-bottom-c">
  187. <div class="header-contact">
  188. <!-- 左侧 -->
  189. <div>
  190. <!-- 联系我们 -->
  191. <div class="contact">
  192. <span class="contact-1">
  193. 联系我们
  194. </span>
  195. <span class="contact-2">不要犹豫,现在就来联系我们吧 !</span>
  196. </div>
  197. <!-- 咨询 -->
  198. <div class="home-consult">
  199. <!-- 左边 -->
  200. <div class="consult-tel">
  201. <!-- <div style="width: 40%;">
  202. <span>
  203. <img src="../static/image/001.png" alt="" class="w-20 h-20">
  204. </span>
  205. <span class="color-fff-12">
  206. 咨询: 23232322
  207. </span>
  208. </div> -->
  209. <div style="margin-right: 30px;">
  210. <span>
  211. <img src="../static/image/002.png" alt="" class="w-20 h-20">
  212. </span>
  213. <span class="color-fff-12">
  214. 客服: kefu@meloinfo.com
  215. </span>
  216. </div>
  217. <!-- <div style="width: 40%;">
  218. <span>
  219. <img src="../static/image/003.png" alt="" class="w-20 h-20">
  220. </span>
  221. <span class="color-fff-12">
  222. 市场: 3333 44333 4311
  223. </span>
  224. </div> -->
  225. <div>
  226. <span>
  227. <img src="../static/image/004.png" alt="" class="w-20 h-20">
  228. </span>
  229. <span class="color-fff-12">
  230. 商务: 17723267692(微信同号)
  231. </span>
  232. </div>
  233. </div>
  234. </div>
  235. <!-- 地址 -->
  236. <div class="site color-fff">
  237. <img src="../static/image/005.png" class="w-20 h-20 " alt="">
  238. <span>
  239. 地址 重庆市两江新区大竹林街道清枫北路10号3幢双子座A座1406
  240. </span>
  241. </div>
  242. </div>
  243. <!-- 二维码 -->
  244. <div class="consult-code">
  245. <div class="code-content" v-if="bottomCode.wxQrUrl">
  246. <span class="color-fff-12" style="font-size: 11px; margin-bottom: 5px;">
  247. 关注公众号
  248. </span>
  249. <img :src="bottomCode.wxQrUrl" style="width:100px;height:100px" alt="">
  250. </div>
  251. <div class="code-content" v-if="bottomCode.iosQrUrl" style="margin: 0 30px">
  252. <span class="color-fff-12" style="font-size: 11px; margin-bottom: 5px;">
  253. iosAPP下载
  254. </span>
  255. <img :src="bottomCode.iosQrUrl" style="width:100px;height:100px" alt="">
  256. </div>
  257. <div class="code-content" v-if="bottomCode.androidQrUrl">
  258. <span class="color-fff-12" style="font-size: 11px; margin-bottom: 5px;">
  259. 安卓APP下载
  260. </span>
  261. <img :src="bottomCode.androidQrUrl" style="width:100px;height:100px" alt="">
  262. </div>
  263. </div>
  264. </div>
  265. <!-- 备案号 -->
  266. <div class="reference">
  267. <span>重庆惠融数字科技有限公司版权所有</span>
  268. <span>
  269. 渝ICP备2023000211号-4
  270. </span>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. </template>
  276. <script>
  277. import { postListData, sendSms, postCustomer, downInfo } from '../api/index'
  278. import { message } from 'ant-design-vue'
  279. export default {
  280. name: 'IndexPage',
  281. data() {
  282. return {
  283. homeList0: [
  284. {
  285. title: '传统获得客效率低,成本高',
  286. content:
  287. '3000个白名单里可能只能挖掘出一个意向客户,员工信心不足,线路成本与人工成本均居高不下',
  288. },
  289. {
  290. title: '客户资源易流失',
  291. content:
  292. '高价挖掘的意向客户,面临员工离职带走客户和员工飞单的风险,无法形成客户资产,资源全部在业务员手上',
  293. },
  294. {
  295. title: '跨部门沟通成本高',
  296. content:
  297. '线下上门客户填写个人信息受法律监管,机构对于各类纸质资料不易保存,上门客户服务情况无法掌握,跨部门沟通成本高',
  298. },
  299. ],
  300. homeList1: [
  301. {
  302. title: '轻松获客',
  303. content: '通过惠融易客推广获客,轻松获取意向客户,有效降低获客成本95%',
  304. },
  305. {
  306. title: '客户管理',
  307. content:
  308. '通过惠融易客客户管理系统,科学高效管理企业客户资料,开成公司资产,员工离职一键收回所有权限,客户跟进情况一目了然',
  309. },
  310. {
  311. title: '业务管理',
  312. content:
  313. '通过惠融易客客户管理系统记录跟进,客户从上门到成交的各个环节均可清晰化、信息化记录,有效提高效率与服务质量',
  314. },
  315. ],
  316. freeList: ['3', '0', '7', '0', '1', '3', '7', '4'],
  317. homeList3: [],
  318. activeKey: [0],
  319. 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.`,
  320. amodal: false, //申请试用弹窗
  321. countdown: 0,
  322. customer: {
  323. sceneType: "loanofficial", // 场景
  324. companyName: '',// 公司名称
  325. customName: '', // 姓名
  326. city: '', // 所在城市
  327. phone: '', // 手机号
  328. verifyCode: '', //验证码
  329. channel: 16, //pc官网16 手机端17
  330. },
  331. bottomCode: {
  332. },
  333. // 定时器
  334. intervalBtn: {},
  335. formLayout: 'horizontal',
  336. form: this.$form.createForm(this, { name: 'coordinated' }),
  337. }
  338. },
  339. created() {
  340. this.postListDataFn()
  341. this.downInfoFn()
  342. },
  343. methods: {
  344. async postListDataFn() {
  345. let list = await postListData({
  346. "categoryId": 1
  347. })
  348. list.data.data ? this.homeList3 = list.data.data.list : ''
  349. // console.log('this.homeList3',this.homeList3)
  350. },
  351. // 底部内容
  352. async downInfoFn() {
  353. // const list = await this.$axios.$get(`https://official.webapi.bicredit.xin/api/app/down/info`)
  354. const list = await downInfo()
  355. console.log('list', list)
  356. this.bottomCode = list.data.data
  357. },
  358. collapseChange(e) {
  359. console.log(this.activeKey, 'collapseChange', e)
  360. },
  361. btnContent(item) {
  362. console.log('item', item)
  363. this.$router.push({ path: `/user/content?id=${item.id}` })
  364. },
  365. // 发送
  366. handleSubmit(e) {
  367. e.preventDefault();
  368. this.form.validateFields(async (err, values) => {
  369. if (!err) {
  370. // console.log('Received values of form: ', values);
  371. let z = await postCustomer(this.customer)
  372. console.log('zzz', z)
  373. if (z.data.msg == '成功') {
  374. // 关闭页面
  375. this.fouse()
  376. }
  377. } else {
  378. console.log('进来了')
  379. }
  380. });
  381. },
  382. // 打开
  383. amodalFn() {
  384. this.amodal = true
  385. },
  386. // 关闭
  387. fouse() {
  388. console.log('关闭了')
  389. this.amodal = false
  390. },
  391. handleSelectChange(value) {
  392. console.log(value);
  393. this.form.setFieldsValue({
  394. note: `Hi, ${value === 'male' ? 'man' : 'lady'}!`,
  395. });
  396. },
  397. // 验证码
  398. async verifyCodeFn() {
  399. if (this.customer.phone) {
  400. if (new RegExp('^1[0-9]{10}$').test(this.customer.phone)) {
  401. let z = await sendSms({
  402. sceneType: "loanofficial",
  403. userMobile: this.customer.phone
  404. })
  405. // console.log('zzz', z)
  406. if (z.data.code == 0) {
  407. message.success('发送成功')
  408. this.countdown = 60
  409. this.countDown()
  410. // console.log('进来了', this.countdown)
  411. } else {
  412. message.error('发送失败')
  413. }
  414. } else {
  415. message.error('请输入正确的手机号');
  416. }
  417. } else {
  418. message.error('请输入手机号')
  419. }
  420. },
  421. // 倒计时
  422. countDown() {
  423. // 设置倒计时
  424. this.intervalBtn = setInterval(() => {
  425. if (this.countdown == 1) {
  426. // 清除定时器
  427. clearInterval(this.intervalBtn)
  428. // 重置倒计时状态
  429. // this.countdown = 0
  430. };
  431. // 倒计时
  432. this.countdown--
  433. }, 1000)
  434. },
  435. }
  436. }
  437. </script>
  438. <style lang="less">
  439. @import '../static/index.less';
  440. .ant-collapse-header {
  441. white-space: nowrap !important;
  442. text-overflow: ellipsis !important;
  443. overflow: hidden !important;
  444. }
  445. .ad-free-content .ant-btn-primary {
  446. background-color: #526eea !important;
  447. border-color: #526eea !important;
  448. color: #fff !important;
  449. }
  450. .ant-btn-primary {
  451. background-color: #fff !important;
  452. border-color: #fff !important;
  453. color: #1890ff !important;
  454. }
  455. .ant-form-item-label {
  456. display: none !important;
  457. }
  458. .ant-modal-footer {
  459. text-align: center !important;
  460. }
  461. .sub .ant-btn-primary {
  462. background-color: #526eea !important;
  463. border-color: #526eea !important;
  464. color: #fff !important;
  465. width: 150px;
  466. height: 60px;
  467. }
  468. .ant-collapse {
  469. background: #fff !important;
  470. }
  471. .ant-modal-title{
  472. display: flex;
  473. align-items: center;
  474. justify-content: center;
  475. font-size: 40px !important;
  476. }
  477. .ant-modal-header{
  478. // padding: 0 !important;
  479. border-bottom: 0 !important;
  480. padding-top: 40px;
  481. }
  482. .ant-modal-body{
  483. padding-top: 0 !important;
  484. }
  485. .ant-modal-footer{
  486. border-top: 0 !important;
  487. }
  488. </style>