index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  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. <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" class="modalCss">
  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] submission">
  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.open('http://p.daicrm.com/#/login')
  403. // window.location.href('http://p.daicrm.com/#/login')
  404. }
  405. const currentIndex = ref(1)
  406. const customFn = (i: number) => {
  407. console.log('i', i)
  408. currentIndex.value = i
  409. }
  410. const go = (i: number) => {
  411. currentIndex.value = currentIndex.value + i
  412. if (currentIndex.value > homeList.value.length - 1) {
  413. currentIndex.value = 0
  414. return
  415. }
  416. if (currentIndex.value < 0) {
  417. currentIndex.value = homeList.value.length - 1
  418. return
  419. }
  420. }
  421. const btnContent = (i: number) => {
  422. // 跳转
  423. console.log('跳转', i)
  424. localStorage.setItem('hryk-id', homeList.value[i].id)
  425. router.push({
  426. path: '/list/'
  427. })
  428. }
  429. let homeList: any = ref([])
  430. const postListDataFn = async () => {
  431. let list = await postListData({
  432. "categoryId": 1
  433. })
  434. console.log('postListDataFn', list)
  435. list.data.data ? homeList.value = list.data.data.list : ''
  436. }
  437. let bottomCode: any = ref([])
  438. postListDataFn()
  439. const downInfoFn = async () => {
  440. const list = await downInfo()
  441. console.log('list', list)
  442. bottomCode.value = list.data.data
  443. }
  444. downInfoFn()
  445. // 框显示隐藏
  446. let showModal = ref<boolean>(false)
  447. const rules: FormRules = {
  448. companyName: [
  449. {
  450. required: true,
  451. trigger: ['blur', 'input'],
  452. message: '请输入公司名称'
  453. }
  454. ],
  455. customName: [
  456. {
  457. required: true,
  458. trigger: ['blur', 'input'],
  459. message: '请输入姓名'
  460. }
  461. ],
  462. city: [
  463. {
  464. required: true,
  465. trigger: ['blur', 'input'],
  466. message: '请选择所在城市'
  467. }
  468. ],
  469. phone: [
  470. {
  471. required: true,
  472. trigger: ['blur', 'input'],
  473. message: '请输入手机号'
  474. }
  475. ],
  476. verifyCode: [
  477. {
  478. required: true,
  479. trigger: ['blur', 'input'],
  480. message: '请输入验证码'
  481. }
  482. ],
  483. }
  484. interface customerType {
  485. sceneType?: string;
  486. companyName?: null | string;
  487. customName?: null | string;
  488. city?: null | string;
  489. phone?: null | string;
  490. verifyCode?: null | string;
  491. channel?: number;
  492. }
  493. let countdown = ref(0)
  494. const customer = ref<customerType>({
  495. sceneType: "loanofficial", // 场景
  496. companyName: null,// 公司名称
  497. customName: null, // 姓名
  498. city: null, // 所在城市
  499. phone: null, // 手机号
  500. verifyCode: null, //验证码
  501. channel: 16, //pc官网16 手机端17
  502. })
  503. const verifyCodeFn = async () => {
  504. if (customer.value.phone) {
  505. if (new RegExp('^1[0-9]{10}$').test(customer.value.phone)) {
  506. let z = await sendSms({
  507. sceneType: "loanofficial",
  508. userMobile: customer.value.phone
  509. })
  510. if (z.data.code == 0) {
  511. message.success('发送成功')
  512. countdown.value = 60
  513. // this.countDown()
  514. countDown()
  515. // console.log('进来了', this.countdown)
  516. } else {
  517. message.error('发送失败')
  518. }
  519. } else {
  520. message.error('请输入正确手机号')
  521. }
  522. } else {
  523. // 唤起提示
  524. message.error('请输入手机号')
  525. }
  526. }
  527. // 倒计时
  528. const countDown = () => {
  529. // 设置倒计时
  530. const intervalBtn = setInterval(() => {
  531. if (countdown.value == 1) {
  532. // 清除定时器
  533. clearInterval(intervalBtn)
  534. // 重置倒计时状态
  535. countdown.value = 0
  536. };
  537. // 倒计时
  538. countdown.value--
  539. }, 1000)
  540. }
  541. const formRef = ref<FormInst | null>(null)
  542. const handleValidateButtonClick = (e: MouseEvent) => {
  543. e.preventDefault()
  544. formRef.value?.validate(async (errors) => {
  545. if (!errors) {
  546. message.success('验证成功')
  547. console.log('customer.value', customer.value)
  548. let z = await postCustomer(customer.value)
  549. console.log('zzz', z)
  550. if (z.data.msg == '成功') {
  551. // 关闭页面
  552. fouse()
  553. }
  554. } else {
  555. console.log(errors)
  556. message.error('验证失败')
  557. }
  558. })
  559. }
  560. const fouse = () => {
  561. showModal.value = false
  562. }
  563. const btn = () => {
  564. showModal.value = true
  565. }
  566. const handleUpdateValue = (value: string) => {
  567. console.log(value, '进来了')
  568. }
  569. </script>
  570. <style scoped lang="scss">
  571. p {
  572. color: var(--link-color)
  573. }
  574. .trial {
  575. background: url(~/public/image/try_out.png) no-repeat;
  576. background-size: cover;
  577. }
  578. .advantage {
  579. background: url(~/public/image/advantage.png) no-repeat;
  580. background-size: cover;
  581. }
  582. img {
  583. height: 100%;
  584. }
  585. .n-carousel {
  586. width: 529px !important;
  587. }
  588. .carousel-img {
  589. width: 509px;
  590. height: 306px;
  591. border-radius: 4px;
  592. }
  593. .custom-dots {
  594. display: flex;
  595. margin: 0;
  596. padding: 0;
  597. }
  598. .custom-dots li {
  599. display: inline-block;
  600. width: 20px;
  601. height: 4px;
  602. margin: 0 5px;
  603. // border-radius: 4px;
  604. background: #0000001d;
  605. transition: width 0.3s, background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  606. cursor: pointer;
  607. }
  608. .custom-dots li.is-active {
  609. width: 40px;
  610. background: #0047FF;
  611. }
  612. .text1 {
  613. display: inline-block;
  614. white-space: nowrap;
  615. width: 300px;
  616. overflow: hidden;
  617. text-overflow: ellipsis;
  618. }
  619. ::v-deep(.n-button) {
  620. border-radius: 4px !important;
  621. }
  622. // 框
  623. ::v-deep(.n-card-header__main) {
  624. flex: inherit !important;
  625. margin: 0 auto !important;
  626. }
  627. ::v-deep(.n-card-header) {
  628. padding: 0 !important;
  629. padding-top: 50px !important;
  630. }
  631. ::v-deep(.n-card__content) {
  632. flex: inherit;
  633. margin: 0 auto;
  634. margin-bottom: 50px !important;
  635. }
  636. ::v-deep(.n-form-item-label) {
  637. display: none !important;
  638. }
  639. ::v-deep(.n-form-item) {
  640. --n-label-height: 10px !important;
  641. }
  642. ::v-deep(.n-carousel__dots) {
  643. display: none !important;
  644. }
  645. ::v-deep(.n-input__input-el) {
  646. height: 55px !important;
  647. line-height: 55px !important;
  648. }
  649. ::v-deep(.n-card-header__main) {
  650. font-size: 30px;
  651. }
  652. // 按钮样式
  653. ::v-deep(.van-button--normal) {
  654. border-radius: 6px;
  655. background: #0047FF;
  656. border: 0;
  657. height: 67px;
  658. }
  659. .trial ::v-deep(.van-button--normal) {
  660. border-radius: 6px;
  661. background: #0047FF;
  662. border: 0;
  663. width: 400px;
  664. height: 67px;
  665. }
  666. ::v-deep(.van-button__content) {
  667. font-size: 24px;
  668. }
  669. .title ::v-deep(.van-button--normal) {
  670. border-radius: 6px;
  671. background: #0047FF;
  672. border: 0;
  673. width: 130px;
  674. height: 42px;
  675. }
  676. .title ::v-deep(.van-button__content) {
  677. font-size: 16px;
  678. }
  679. .message ::v-deep(.van-button--normal) {
  680. border-radius: 6px;
  681. background: #0047FF;
  682. border: 0;
  683. width: 130px;
  684. height: 42px;
  685. }
  686. .message ::v-deep(.van-button__content) {
  687. font-size: 16px;
  688. }
  689. .modalCss ::v-deep(.n-button) {
  690. border-radius: 4px !important;
  691. height: 55px !important;
  692. }
  693. .submission ::v-deep(.n-button) {
  694. width: 700px !important;
  695. }
  696. </style>