index.vue 16 KB

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