m_user.vue 15 KB

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