m_user.vue 17 KB

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