index.vue 22 KB

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