index.vue 17 KB

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