m_user.vue 23 KB

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