m_user.vue 23 KB

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