index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782
  1. <template>
  2. <div class="flex w-full h-[100px] title fixed top-0 left-0 bottom-0 z-20 bg-[#fff]"
  3. style="border-bottom: 1px solid #E1E1E1;">
  4. <div class="flex-[1]"></div>
  5. <div class="h-[100px] bg-[#fff] flex items-center justify-between w-[1200px]"
  6. style="border-bottom: 1px solid #E1E1E1;">
  7. <!-- 头部title -->
  8. <div class="flex items-center">
  9. <img src="~/public/favicon.ico" class="w-[50px] h-[50px] mr-[10px]" alt="">
  10. <div class="flex flex-col">
  11. <span class="text-[#333333] text-[24px] font-medium">惠融易客</span>
  12. <span class="text-[16px] font-light">
  13. HUIRONG CRM
  14. </span>
  15. </div>
  16. </div>
  17. <!-- 右边 -->
  18. <ul class='flex items-center'>
  19. <li v-for="i in headerTitle" :key="i.go" @mouseenter="mouseenterFn(i.go)" @mouseleave="mouseleaveFn"
  20. :class="headerClass == i.go ? 'text-[#1f4df5!important]' : ''" @click="titleRight(i.go)"
  21. class="pr-[70px] text-[#999999] cursor-pointer text-[18px]">
  22. {{ i.title }}
  23. </li>
  24. <li class="px-[16px] text-[#999999] font-medium" @click="loginBtn">
  25. <!-- <n-button type="info" class="bg-[#165DFF] text-[18px] w-[130px] h-[42px]" style="border-radius: 6px;" >
  26. 登录/注册
  27. </n-button> -->
  28. <van-button type="primary"> 登录/注册</van-button>
  29. </li>
  30. </ul>
  31. </div>
  32. <div class="flex-[1]">
  33. </div>
  34. </div>
  35. <!-- 图片 -->
  36. <div id="home" class="mt-[100px]">
  37. <div class="relatives flex ">
  38. <div class="flex-[1]">
  39. </div>
  40. <!-- <img src="~/public/image/img_home.png" class="w-full" alt=""> -->
  41. <div class="w-[1200px] flex flex-col text-[#fff] mt-[160px]">
  42. <div class="text-[54px] font-normal flex">
  43. <h1 class="pr-[15px]">惠融易客</h1>
  44. <div>
  45. 数字金融服务商
  46. </div>
  47. </div>
  48. <span class="mt-[12px] mb-[50px] text-[20px] font-light"
  49. style="letter-spacing: 1px;">提交申请,立即开启企业数字化升级/提供专家1V1服务,提供企业定制化数字解决方案</span>
  50. <!-- <n-button type="info" class="bg-[#165DFF] w-[256px] h-[67px] text-[26px]" @click="btn">
  51. 立即申请试用
  52. </n-button>
  53. <br> -->
  54. <van-button type="primary" class="bg-[#165DFF] w-[256px] h-[67px] text-[26px]" @click="btn">立即申请试用</van-button>
  55. </div>
  56. <div class="flex-[1]">
  57. </div>
  58. </div>
  59. </div>
  60. <!-- 传统问题 traditional-->
  61. <div class="flex flex-col items-center justify-center py-[100px] bg-[#fafafa]">
  62. <h2 class="text-[36px] font-medium">传统方式管理难点</h2>
  63. <span class="text-[#999999] pt-[10px] pb-[60px] text-[18px]">传统方式管理过程中有哪些问题?</span>
  64. <div class="flex">
  65. <div></div>
  66. <ul class="flex items-center justify-between w-[1200px]">
  67. <li class="w-[386px] h-[286px]">
  68. <img src="~/public/image/p_img_home_qs_0_0.png" alt="">
  69. </li>
  70. <li class="w-[386px] h-[286px]">
  71. <img src="~/public/image/p_img_home_qs_0_1.png" alt="">
  72. </li>
  73. <li class="w-[386px] h-[286px]">
  74. <img src="~/public/image/p_img_home_qs_0_2.png" alt="">
  75. </li>
  76. </ul>
  77. <div></div>
  78. </div>
  79. </div>
  80. <div class="w-full advantage flex flex-col items-center justify-center text-[#fff]">
  81. <h2 class="text-[36px] font-medium mt-[100px]">我们的优势</h2>
  82. <span class=" pb-[60px] text-[18px] mt-[10px]">与传统方式相比较,惠融易客的优势又有哪些?</span>
  83. <div class="flex mb-[102px]">
  84. <div></div>
  85. <ul class="flex items-center justify-between w-[1200px]">
  86. <li class="w-[386px] h-[294px]">
  87. <img src="~/public/image/advant-01.png" alt="">
  88. </li>
  89. <li class="w-[386px] h-[294px]">
  90. <img src="~/public/image/advant-02.png" alt="">
  91. </li>
  92. <li class="w-[386px] h-[294px]">
  93. <img src="~/public/image/advant-03.png" alt="">
  94. </li>
  95. </ul>
  96. <div></div>
  97. </div>
  98. <!-- <img src="~/public/image/advantage-title.png" class="w-[1200px] mx-auto" alt=""> -->
  99. </div>
  100. <!-- 精准获客 -->
  101. <div id="solution" class="flex flex-col items-center justify-center pt-[100px] pb-[100px]">
  102. <h2 class="text-[36px] font-medium">精准获客</h2>
  103. <span class="text-[#999999] pt-[10px] pb-[60px] text-[18px]">多渠道投放对接,帮助企业精准推广产品矩阵</span>
  104. <div class="flex w-full">
  105. <div class="flex-[1]"></div>
  106. <ul class="w-[1200px] flex items-center flex-wrap justify-center mx-auto">
  107. <li class="w-[285px] h-[150px] mr-[20px] mb-[20px]">
  108. <img src="~/public/image/img_home_ad_0.png" alt="">
  109. </li>
  110. <li class="w-[285px] h-[150px] mr-[20px] mb-[20px]">
  111. <img src="~/public/image/img_home_ad_1.png" alt="">
  112. </li>
  113. <li class="w-[285px] h-[150px] mr-[20px] mb-[20px]">
  114. <img src="~/public/image/img_home_ad_2.png" alt="">
  115. </li>
  116. <li class="w-[285px] h-[150px] mb-[20px]">
  117. <img src="~/public/image/img_home_ad_3.png" alt="">
  118. </li>
  119. <li class="w-[285px] h-[150px] mr-[20px]">
  120. <img src="~/public/image/img_home_ad_4.png" alt="">
  121. </li>
  122. <li class="w-[285px] h-[150px] mr-[20px]">
  123. <img src="~/public/image/img_home_ad_5.png" alt="">
  124. </li>
  125. <li class="w-[285px] h-[150px] mr-[20px]">
  126. <img src="~/public/image/img_home_ad_6.png" alt="">
  127. </li>
  128. <li class="w-[285px] h-[150px]">
  129. <img src="~/public/image/img_home_ad_7.png" alt="">
  130. </li>
  131. </ul>
  132. <div class="flex-[1]">
  133. </div>
  134. </div>
  135. </div>
  136. <!-- 免费试用 trial-->
  137. <div class="w-full h-full trial">
  138. <div></div>
  139. <div class="w-[1200px] mx-auto flex flex-col items-center text-[#161616] pt-[100px] pb-[110px]">
  140. <h2 class="font-medium text-[36px]" @click="btn">免费试用</h2>
  141. <div class="mt-[10px] mb-[18px] text-[18px] text-[#999999]">
  142. 立即免费试用惠融易客CRM 提升企业业绩
  143. </div>
  144. <div class="mb-[25px] flex items-center font-medium text-[30px]">
  145. <span>已有</span>
  146. <ul class="flex justify-center items-center mx-[5px] my-[20px]">
  147. <li v-for="item in freeList"
  148. class=" bg-[#fff] w-[50px] h-[60px] text-[36px] text-center mx-[5px] rounded-[4px]">
  149. {{ item }}
  150. </li>
  151. </ul>
  152. <!-- <div class="flex justify-center items-center mx-[5px] my-[20px]">
  153. <section class="text-center">
  154. <number-roll ref="numberRollRef" class="custom" custom-class="num-item"
  155. start-number="00000000" end-number="30701374"
  156. transition-timing-function="ease-in-out"
  157. min-length="5" roll-height="60"
  158. :reverse-direction="false" :autoplay="false" />
  159. </section>
  160. </div> -->
  161. <span>
  162. 人加入
  163. </span>
  164. </div>
  165. <!-- <n-button type="info" class="bg-[#165DFF] w-[400px] h-[70px] text-[24px]" @click="btn">
  166. 立即申请试用
  167. </n-button>
  168. <br> -->
  169. <van-button type="primary">立即申请试用</van-button>
  170. </div>
  171. <div>
  172. </div>
  173. </div>
  174. <!-- 咨询信息 message-->
  175. <div class="flex flex-col items-center justify-center pt-[70px] pb-[70px] mx-[50px] message" v-if="homeList[0]">
  176. <h2 class="text-[36px] font-medium">资讯信息</h2>
  177. <span class="text-[#999999] px-[10px] pt-[10px] pb-[40px] text-[18px]">点击了解惠融易客的更多信息</span>
  178. <div class="flex flex-row items-center w-[100%] 2xl:px-[100px] box-border">
  179. <div @click="go(-1)" class="w-[50px]">
  180. <img src="~/public/image/left.png" class="w-[50px] h-[40px]" alt="">
  181. </div>
  182. <div class="flex w-[1200px] flex-col items-center mx-auto">
  183. <div class="flex justify-center pb-[20px]">
  184. <n-carousel autoplay :currentIndex="currentIndex">
  185. <img v-for="item in homeList" class="carousel-img" :src="item.images">
  186. </n-carousel>
  187. <div class="flex flex-col justify-between ml-[30px] font-medium text-[24px] w-[500px]">
  188. <h1>{{ homeList[currentIndex].title }}</h1>
  189. <div class="flex items-center justify-between h-[50px]">
  190. <span class="text-[18px] text-[#666] text1">
  191. {{ homeList[currentIndex].summary }}
  192. </span>
  193. <!-- <n-button type="info" class="bg-[#165DFF] text-[18px] w-[130px] h-[42px]" @click="btnContent(currentIndex)">
  194. 查看详情
  195. </n-button> -->
  196. <van-button type="primary" @click="btnContent(currentIndex)">查看详情</van-button>
  197. </div>
  198. </div>
  199. </div>
  200. <ul class="custom-dots">
  201. <li v-for="(i, index) in homeList" :key="index" :class="{ ['is-active']: currentIndex === index }"
  202. @click="customFn(index)">
  203. </li>
  204. </ul>
  205. </div>
  206. <div @click="go(+1)" class="w-[50px]">
  207. <img src="~/public/image/right.png" class="w-[50px] h-[40px]" alt="">
  208. </div>
  209. </div>
  210. </div>
  211. <div class="w-full bg-[#1f1d2a] pt-[20px] pb-[10px] relative" id="contact">
  212. <div class="w-[1200px] m-auto">
  213. <div class="flex justify-between my-[20px]">
  214. <!-- 左侧 -->
  215. <div class="flex">
  216. <!-- 左边 -->
  217. <div class="flex flex-col text-[#999999] mr-[30px]">
  218. <h3 class="text-[17px] font-medium text-[#fff]">
  219. 联系方式
  220. </h3>
  221. <span class="text-[13px] my-[20px]">
  222. 客服: kefu@meloinfo.com
  223. </span>
  224. <span class="text-[13px]">
  225. 商务: 17723267692(微信同号)
  226. </span>
  227. </div>
  228. <!-- 地址 -->
  229. <div class="text-[#999999]">
  230. <h3 class="text-[17px] font-medium mb-[20px] text-[#fff]">
  231. 公司地址
  232. </h3>
  233. <span class="text-[13px]">
  234. 重庆市两江新区大竹林街道清枫北路10号3幢双子座A座1406
  235. </span>
  236. </div>
  237. </div>
  238. <!-- 二维码 -->
  239. <div class="flex items-center justify-center">
  240. <div class="flex flex-col items-center justify-center ml-" v-if="bottomCode.wxQrUrl">
  241. <!-- <div class="flex flex-col items-center justify-center"> -->
  242. <span class="text-[#fff] text-[17px] mb-[20px]">
  243. 关注公众号
  244. </span>
  245. <n-popover trigger="hover">
  246. <template #trigger>
  247. <img :src="bottomCode.wxQrUrl" class="w-[100px] h-[100px]" alt="">
  248. </template>
  249. <img :src="bottomCode.wxQrUrl" class="w-[200px] h-[200px]" alt="">
  250. </n-popover>
  251. </div>
  252. <div class="flex flex-col items-center justify-center mx-[50px]" v-if="bottomCode.iosQrUrl">
  253. <span class="text-[#fff] text-[17px] mb-[20px]">
  254. iosAPP下载
  255. </span>
  256. <n-popover trigger="hover">
  257. <template #trigger>
  258. <img :src="bottomCode.iosQrUrl" class="w-[100px] h-[100px]" alt="">
  259. </template>
  260. <img :src="bottomCode.wxQrUrl" class="w-[200px] h-[200px]" alt="">
  261. </n-popover>
  262. </div>
  263. <div class="flex flex-col items-center justify-center" v-if="bottomCode.androidQrUrl">
  264. <!-- <div class="flex flex-col items-center justify-center"> -->
  265. <span class="text-[#fff] text-[17px] mb-[20px]">
  266. 安卓APP下载
  267. </span>
  268. <n-popover trigger="hover">
  269. <template #trigger>
  270. <img :src="bottomCode.androidQrUrl" class="w-[100px] h-[100px]" alt="">
  271. </template>
  272. <img :src="bottomCode.androidQrUrl" class="w-[200px] h-[200px]" alt="">
  273. </n-popover>
  274. </div>
  275. </div>
  276. </div>
  277. <!-- 备案号 -->
  278. <div class="h-[154px] flex flex-col items-center justify-center text-[#585667] text-[13px] py-[60px]">
  279. <div class="pt-[30px]">
  280. <span>Copyright © 2023 重庆惠融数字科技有限公司版权所有</span>
  281. <span>
  282. 渝ICP备2023000211号-4
  283. </span>
  284. <span class="mx-[10px]">
  285. 营业执照:91500000MA5UJ59N6Q
  286. </span>
  287. </div>
  288. <div class="my-[20px]">
  289. 违法和不良信息举报邮箱:tousu@meloinfo.com
  290. </div>
  291. <div>
  292. <!-- <span class="ml-[20px]">
  293. 联网备案号:50019002502299
  294. </span> -->
  295. <span>
  296. 中国互联网违法和不良信息举报中心
  297. </span>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="absolute bottom-[140px] left-0 w-full">
  302. <div class="w-full h-0 opacity-[1] border-[0.5px] border-[#2B374A]">
  303. </div>
  304. </div>
  305. </div>
  306. <n-modal v-model:show="showModal" class="modalCss">
  307. <n-card style="width: 800px" title="申请试用" :bordered="false" size="huge" role="dialog" aria-modal="true">
  308. <div class="text-[#999999] text-[18px] pt-[15px] pb-[12px]">
  309. 为了我们能更好的服务您,请您填写以下信息,如遇到问题,请您拨打免费服务热线
  310. </div>
  311. <n-form ref="formRef" :model="customer" :rules="rules">
  312. <n-form-item path="companyName" label="公司名称">
  313. <n-input v-model:value="customer.companyName" @keydown.enter.prevent class="h-[55px] leading-[55px]"
  314. placeholder="请输入公司名称" />
  315. </n-form-item>
  316. <n-form-item path="city" label="所在城市">
  317. <n-input v-model:value="customer.city" class="h-[55px] leading-[55px]" placeholder="请选择所在城市" />
  318. <!-- <n-cascader v-model:value="customer.city" placeholder="请选择所在城市" class="h-[55px] leading-[55px]"
  319. :options="provice" check-strategy="child" :show-path="true" value-field="name" label-field="name" @update:value="handleUpdateValue"
  320. /> -->
  321. </n-form-item>
  322. <n-form-item path="customName" label="姓名">
  323. <n-input v-model:value="customer.customName" class="h-[55px] leading-[55px]" placeholder="请输入姓名" />
  324. </n-form-item>
  325. <n-form-item path="phone" label="联系方式">
  326. <n-input v-model:value="customer.phone" class="h-[55px] leading-[55px]" placeholder="请输入联系方式" />
  327. </n-form-item>
  328. <n-form-item path="verifyCode" label="验证码" class="">
  329. <n-input v-model:value="customer.verifyCode" class="h-[55px] leading-[55px]" placeholder="请输入验证码" />
  330. <n-button type="info" class="w-[150px] h-[55px] text-[#fff] bg-[#1f4df5] ml-[20px] rounded-[4px] text-[18px]"
  331. :disabled="countdown != 0" @click="verifyCodeFn">
  332. {{ countdown == 0 ? '获取验证码' : countdown }}
  333. </n-button>
  334. </n-form-item>
  335. <div class="flex justify-center mt-[20px] submission">
  336. <n-button type="info" class="w-[700px] h-[55px] text-[20px] text-[#fff] bg-[#1f4df5] rounded-[4px]"
  337. @click="handleValidateButtonClick">
  338. 立即提交
  339. </n-button>
  340. </div>
  341. </n-form>
  342. </n-card>
  343. </n-modal>
  344. <!-- <nuxt-link to="/list/123">news-1</nuxt-link> -->
  345. </template>
  346. <script lang="ts" setup>
  347. import { reactive, ref } from 'vue'
  348. import { useRouter } from 'vue-router'
  349. import { postListData, downInfo, sendSms, postCustomer } from '~/server/api/index'
  350. import { provice } from '~/utils/city'
  351. // import NumberRoll from '~/composables/NumberRoll.vue'
  352. import {
  353. FormRules,
  354. useMessage,
  355. FormInst,
  356. } from 'naive-ui'
  357. // 滚动
  358. // const numberRollRef = ref<typeof NumberRoll>()
  359. const goTo = () => {
  360. // @ts-ignore
  361. numberRollRef.value.start()
  362. }
  363. // console.log('provice',provice)
  364. const router = useRouter()
  365. const headerTitle = reactive([
  366. {
  367. title: '首页',
  368. go: 'home'
  369. },
  370. {
  371. title: '解决方案',
  372. go: 'solution'
  373. },
  374. {
  375. title: '联系我们',
  376. go: 'contact'
  377. },
  378. {
  379. title: '申请试用',
  380. go: 'probation'
  381. }
  382. ]
  383. )
  384. const headerClass = ref<string>('')
  385. const titleRight = (i: string) => {
  386. if (i == 'probation') {
  387. btn()
  388. return
  389. }
  390. document.querySelector('#' + i)?.scrollIntoView()
  391. }
  392. const mouseenterFn = (i: string) => {
  393. // console.log('mouseenterFn')
  394. headerClass.value = i
  395. }
  396. const mouseleaveFn = () => {
  397. headerClass.value = ''
  398. }
  399. const freeList = reactive(['3', '0', '7', '0', '1', '3', '7', '4'])
  400. const message = useMessage()
  401. const num = reactive([{
  402. img: '~/public/image/p_img_home_qs_0_0.png'
  403. },
  404. {
  405. img: '~/public/image/p_img_home_qs_0_1.png'
  406. },
  407. {
  408. img: '~/public/image/p_img_home_qs_0_2.png'
  409. }
  410. ])
  411. // console.log('import.meta.url', import.meta.url)
  412. const getImg = (name: number) => {
  413. return new URL(`/public/image/p_img_home_qs_0_${name}.png`, import.meta.url).href;
  414. }
  415. const loginBtn = () => {
  416. console.log('跳转')
  417. // window.location.replace('http://p.daicrm.com/#/login')
  418. window.open('http://p.daicrm.com/#/login')
  419. // window.location.href('http://p.daicrm.com/#/login')
  420. }
  421. const currentIndex = ref(1)
  422. const customFn = (i: number) => {
  423. console.log('i', i)
  424. currentIndex.value = i
  425. }
  426. const go = (i: number) => {
  427. currentIndex.value = currentIndex.value + i
  428. if (currentIndex.value > homeList.value.length - 1) {
  429. currentIndex.value = 0
  430. return
  431. }
  432. if (currentIndex.value < 0) {
  433. currentIndex.value = homeList.value.length - 1
  434. return
  435. }
  436. }
  437. const btnContent = (i: number) => {
  438. // 跳转
  439. console.log('跳转', i)
  440. localStorage.setItem('hryk-id', homeList.value[i].id)
  441. router.push({
  442. path: '/list/'
  443. })
  444. }
  445. let homeList: any = ref([])
  446. const postListDataFn = async () => {
  447. let list = await postListData({
  448. "categoryId": 1
  449. })
  450. console.log('postListDataFn', list)
  451. list.data.data ? homeList.value = list.data.data.list : ''
  452. }
  453. let bottomCode: any = ref([])
  454. postListDataFn()
  455. const downInfoFn = async () => {
  456. const list = await downInfo()
  457. console.log('list', list)
  458. bottomCode.value = list.data.data
  459. }
  460. downInfoFn()
  461. // 框显示隐藏
  462. let showModal = ref<boolean>(false)
  463. const rules: FormRules = {
  464. companyName: [
  465. {
  466. required: true,
  467. trigger: ['blur', 'input'],
  468. message: '请输入公司名称'
  469. }
  470. ],
  471. customName: [
  472. {
  473. required: true,
  474. trigger: ['blur', 'input'],
  475. message: '请输入姓名'
  476. }
  477. ],
  478. city: [
  479. {
  480. required: true,
  481. trigger: ['blur', 'input'],
  482. message: '请选择所在城市'
  483. }
  484. ],
  485. phone: [
  486. {
  487. required: true,
  488. trigger: ['blur', 'input'],
  489. message: '请输入手机号'
  490. }
  491. ],
  492. verifyCode: [
  493. {
  494. required: true,
  495. trigger: ['blur', 'input'],
  496. message: '请输入验证码'
  497. }
  498. ],
  499. }
  500. interface customerType {
  501. sceneType?: string;
  502. companyName?: null | string;
  503. customName?: null | string;
  504. city?: null | string;
  505. phone?: null | string;
  506. verifyCode?: null | string;
  507. channel?: number;
  508. }
  509. let countdown = ref(0)
  510. const customer = ref<customerType>({
  511. sceneType: "loanofficial", // 场景
  512. companyName: null,// 公司名称
  513. customName: null, // 姓名
  514. city: null, // 所在城市
  515. phone: null, // 手机号
  516. verifyCode: null, //验证码
  517. channel: 16, //pc官网16 手机端17
  518. })
  519. const verifyCodeFn = async () => {
  520. if (customer.value.phone) {
  521. if (new RegExp('^1[0-9]{10}$').test(customer.value.phone)) {
  522. let z = await sendSms({
  523. sceneType: "loanofficial",
  524. userMobile: customer.value.phone
  525. })
  526. if (z.data.code == 0) {
  527. message.success('发送成功')
  528. countdown.value = 60
  529. // this.countDown()
  530. countDown()
  531. // console.log('进来了', this.countdown)
  532. } else {
  533. message.error('发送失败')
  534. }
  535. } else {
  536. message.error('请输入正确手机号')
  537. }
  538. } else {
  539. // 唤起提示
  540. message.error('请输入手机号')
  541. }
  542. }
  543. const intervalBtn = ref()
  544. // 倒计时
  545. const countDown = () => {
  546. // 设置倒计时
  547. intervalBtn.value = setInterval(() => {
  548. if (countdown.value == 1) {
  549. // 清除定时器
  550. clearInterval(intervalBtn.value)
  551. // 重置倒计时状态
  552. countdown.value = 1
  553. };
  554. // 倒计时
  555. countdown.value--
  556. }, 1000)
  557. }
  558. const formRef = ref<FormInst | null>(null)
  559. const handleValidateButtonClick = (e: MouseEvent) => {
  560. e.preventDefault()
  561. formRef.value?.validate(async (errors) => {
  562. if (!errors) {
  563. message.success('验证成功')
  564. console.log('customer.value', customer.value)
  565. let z = await postCustomer(customer.value)
  566. console.log('zzz', z)
  567. if (z.data.msg == '成功') {
  568. // 关闭页面
  569. fouse()
  570. }
  571. } else {
  572. console.log(errors)
  573. message.error('验证失败')
  574. }
  575. })
  576. }
  577. const fouse = () => {
  578. showModal.value = false
  579. }
  580. const btn = () => {
  581. customer.value = {
  582. sceneType: "loanofficial", // 场景
  583. companyName: null,// 公司名称
  584. customName: null, // 姓名
  585. city: null, // 所在城市
  586. phone: null, // 手机号
  587. verifyCode: null, //验证码
  588. channel: 16, //pc官网16 手机端17
  589. }
  590. clearInterval(intervalBtn.value)
  591. countdown.value = 0
  592. showModal.value = true
  593. }
  594. const handleUpdateValue = (value: string) => {
  595. console.log(value, '进来了')
  596. }
  597. </script>
  598. <style scoped lang="scss">
  599. .num-item {
  600. border-radius: 4px;
  601. width: 50px;
  602. height: 60px;
  603. margin: 10px;
  604. background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgba(244, 244, 255, 0.961) 50%, rgb(255, 255, 255) 100%);
  605. font-size: 36px;
  606. color: #fff;
  607. }
  608. p {
  609. color: var(--link-color)
  610. }
  611. .trial {
  612. background: url(~/public/image/try_out.png) no-repeat;
  613. background-size: cover;
  614. }
  615. .advantage {
  616. background: url(~/public/image/advantage.png) no-repeat;
  617. background-size: cover;
  618. }
  619. img {
  620. height: 100%;
  621. }
  622. .n-carousel {
  623. width: 529px !important;
  624. }
  625. .carousel-img {
  626. width: 509px;
  627. height: 306px;
  628. border-radius: 4px;
  629. }
  630. .custom-dots {
  631. display: flex;
  632. margin: 0;
  633. padding: 0;
  634. }
  635. .custom-dots li {
  636. display: inline-block;
  637. width: 20px;
  638. height: 4px;
  639. margin: 0 5px;
  640. // border-radius: 4px;
  641. background: #0000001d;
  642. transition: width 0.3s, background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  643. cursor: pointer;
  644. }
  645. .custom-dots li.is-active {
  646. width: 40px;
  647. background: #0047FF;
  648. }
  649. .text1 {
  650. display: inline-block;
  651. white-space: nowrap;
  652. width: 300px;
  653. overflow: hidden;
  654. text-overflow: ellipsis;
  655. }
  656. ::v-deep(.n-button) {
  657. border-radius: 4px !important;
  658. }
  659. // 框
  660. ::v-deep(.n-card-header__main) {
  661. flex: inherit !important;
  662. margin: 0 auto !important;
  663. }
  664. ::v-deep(.n-card-header) {
  665. padding: 0 !important;
  666. padding-top: 50px !important;
  667. }
  668. ::v-deep(.n-card__content) {
  669. flex: inherit;
  670. margin: 0 auto;
  671. margin-bottom: 50px !important;
  672. }
  673. ::v-deep(.n-form-item-label) {
  674. display: none !important;
  675. }
  676. ::v-deep(.n-form-item) {
  677. --n-label-height: 10px !important;
  678. }
  679. ::v-deep(.n-carousel__dots) {
  680. display: none !important;
  681. }
  682. ::v-deep(.n-input__input-el) {
  683. height: 55px !important;
  684. line-height: 55px !important;
  685. }
  686. ::v-deep(.n-card-header__main) {
  687. font-size: 30px;
  688. }
  689. // 按钮样式
  690. ::v-deep(.van-button--normal) {
  691. border-radius: 6px;
  692. background: #0047FF;
  693. border: 0;
  694. height: 67px;
  695. }
  696. .trial ::v-deep(.van-button--normal) {
  697. border-radius: 6px;
  698. background: #0047FF;
  699. border: 0;
  700. width: 400px;
  701. height: 67px;
  702. }
  703. ::v-deep(.van-button__content) {
  704. font-size: 24px;
  705. }
  706. .title ::v-deep(.van-button--normal) {
  707. border-radius: 6px;
  708. background: #0047FF;
  709. border: 0;
  710. width: 130px;
  711. height: 42px;
  712. }
  713. .title ::v-deep(.van-button__content) {
  714. font-size: 16px;
  715. }
  716. .message ::v-deep(.van-button--normal) {
  717. border-radius: 6px;
  718. background: #0047FF;
  719. border: 0;
  720. width: 130px;
  721. height: 42px;
  722. }
  723. .message ::v-deep(.van-button__content) {
  724. font-size: 16px;
  725. }
  726. .modalCss ::v-deep(.n-button) {
  727. border-radius: 4px !important;
  728. height: 55px !important;
  729. }
  730. .submission ::v-deep(.n-button) {
  731. width: 700px !important;
  732. }
  733. </style>