jianli.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. <template>
  2. <view class="index-page">
  3. <!-- 顶部 -->
  4. <view class="index-navbar">
  5. <view style="position: relative;height: 392rpx;">
  6. <image class="index-bg" src="@/static/images/bg.png" mode=""></image>
  7. <u-navbar bgColor='rgba(0,0,0,0)' placeholder :safeAreaInsetTop="true" @leftClick="return1">
  8. </u-navbar>
  9. <view class="header-down " style="padding: 28rpx 0 0 32rpx;box-sizing: border-box;">
  10. <view class="mingpianfont">
  11. 邀请你完善基础求职名片
  12. </view>
  13. <view class="explain">
  14. <text>海量名企职位|</text>
  15. <text>优质猎头服务|</text>
  16. <text>全程隐私保护</text>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 个人信息 -->
  22. <view class="personal">
  23. <view class="body-input u-flex-col u-row-center ">
  24. <text class="input-title">姓名</text>
  25. <u-input customStyle="padding:0 !important" type="text" placeholder="请填写您的真实姓名" border
  26. placeholderClass='input-style' v-model="user.name"></u-input>
  27. </view>
  28. <view class="body-input u-flex-col u-row-center" @click="sexShow = true">
  29. <text class="input-title">性别</text>
  30. <u-input :disabled="true" disabledColor="#fff" customStyle="padding:0 !important" type="text"
  31. placeholder="请选择您的性别" border placeholderClass='input-style' suffixIcon="arrow-right"
  32. suffixIconStyle="font-size: 32rpx;font-weight: 400;color: #CACACA;"
  33. v-model="user.sexvalue"></u-input>
  34. </view>
  35. <view class="body-input u-flex-col u-row-center" @click="birthdayBtn">
  36. <text class="input-title">出生年月</text>
  37. <u--input :disabled="true" disabledColor="#fff" customStyle="padding:0 !important" type="text"
  38. placeholder="请选择您的出生年月" border placeholderClass='input-style' suffixIcon="arrow-right"
  39. suffixIconStyle="font-size: 32rpx;font-weight: 400;color: #CACACA;"
  40. v-model="user.birthday"></u--input>
  41. </view>
  42. <view class="body-input u-flex-col u-row-center" style="height: 128rpx;">
  43. <view class="u-flex u-row-between ">
  44. <view class="">
  45. <text class="input-title">求职身份</text>
  46. </view>
  47. <u-subsection :list="list" :current="current" @change="sectionChange"
  48. v-model="user.job_role"></u-subsection>
  49. </view>
  50. </view>
  51. <view class="body-input u-flex-col u-row-center" @click="cityShow = true">
  52. <text class="input-title">户口所在地</text>
  53. <u--input :disabled="true" disabledColor="#fff" customStyle="padding:0 !important" type="text"
  54. placeholder="请选择您的户口所在地" border placeholderClass='input-style' suffixIcon="arrow-right"
  55. suffixIconStyle="font-size: 32rpx;font-weight: 400;color: #CACACA;" v-model="user.city1"></u--input>
  56. </view>
  57. <view class="body-input u-flex-col u-row-center" @click="jobShow = true">
  58. <text class="input-title">当前求职状态</text>
  59. <u--input :disabled="true" disabledColor="#fff" customStyle="padding:0 !important" type="text"
  60. placeholder="请选择您当前求职状态" border placeholderClass='input-style' suffixIcon="arrow-right"
  61. suffixIconStyle="font-size: 32rpx;font-weight: 400;color: #CACACA;" v-model="user.job"></u--input>
  62. </view>
  63. <view class="body-input u-flex-col u-row-center" @click="workBtn">
  64. <text class="input-title">参加工作时间</text>
  65. <u--input :disabled="true" disabledColor="#fff" customStyle="padding:0 !important" type="text"
  66. placeholder="请选择您参加工作的时间" border placeholderClass='input-style' suffixIcon="arrow-right"
  67. suffixIconStyle="font-size: 32rpx;font-weight: 400;color: #CACACA;"
  68. v-model="user.job_time"></u--input>
  69. </view>
  70. <view class="body-input u-flex-col u-row-center">
  71. <text class="input-title">邮箱</text>
  72. <u--input customStyle="padding:0 !important" type="text" placeholder="请填写(选填)" border
  73. placeholderClass='input-style' v-model="user.email"></u--input>
  74. </view>
  75. <view class="body-input u-flex-col u-row-center">
  76. <text class="input-title">手机号</text>
  77. <u--input customStyle="padding:0 !important" type="text" placeholder="请填写" border
  78. placeholderClass='input-style' v-model="user.mobile"></u--input>
  79. </view>
  80. <view class="body-input u-flex-col u-row-center" @click="maritalShow = true">
  81. <text class="input-title">婚姻状态</text>
  82. <u--input :disabled="true" disabledColor="#fff" customStyle="padding:0 !important" type="text"
  83. placeholder="请选择(选填)" border placeholderClass='input-style' suffixIcon="arrow-right"
  84. suffixIconStyle="font-size: 32rpx;font-weight: 400;color: #CACACA;"
  85. v-model="user.status"></u--input>
  86. </view>
  87. <view class="body-input u-flex-col u-row-center" @click="politicsShow = true">
  88. <text class="input-title">政治面貌</text>
  89. <u--input :disabled="true" disabledColor="#fff" customStyle="padding:0 !important" type="text"
  90. placeholder="请选择(选填)" border placeholderClass='input-style' suffixIcon="arrow-right"
  91. suffixIconStyle="font-size: 32rpx;font-weight: 400;color: #CACACA;"
  92. v-model="user.politics"></u--input>
  93. </view>
  94. <view class="button" @click="next">
  95. 保存
  96. </view>
  97. </view>
  98. <!-- 选择器 -->
  99. <u-picker title="性别" :show="sexShow" @confirm="sexConfirm" :columns="sexdata" @cancel='close()'></u-picker>
  100. <u-picker title="政治面貌" keyName="name" :show="politicsShow" @confirm="politicsConfirm" :columns="politicslist"
  101. @cancel='close()'></u-picker>
  102. <u-picker title="婚姻状态" keyName="name" :show="maritalShow" @confirm="maritalConfirm" :columns="maritallist"
  103. @cancel='close()'>
  104. </u-picker><u-picker title="求职状态" keyName="name" :show="jobShow" @confirm="jobConfirm" :columns="joblist"
  105. @cancel='close()'></u-picker>
  106. <u-datetime-picker ref="picker" title="出生日期" :minDate="minDate" @confirm="birthdayConfirm" :show="birthdayShow"
  107. mode="date" @cancel='close()'></u-datetime-picker>
  108. <u-datetime-picker ref="pickers" title="参加工作时间" :minDate="minDate1" @confirm="workConfirm" :show="workShow"
  109. mode="date" @cancel='close()'></u-datetime-picker>
  110. <u-picker ref="uPicker" keyName="name" title="户口所在地" :defaultIndex="indexs" :show="cityShow" :columns="cityList"
  111. @confirm="cityconfirm" @cancel="cityShow = false" @change="changeHandler"></u-picker>
  112. </view>
  113. </template>
  114. <script>
  115. import {
  116. politics,
  117. marital,
  118. getAllArea,
  119. getjob,
  120. profile
  121. } from "@/units/inquire.js"
  122. export default {
  123. data() {
  124. return {
  125. addressData: {
  126. id: "",
  127. province: "",
  128. city: "",
  129. area: "",
  130. detail: "",
  131. userName: "",
  132. phone: "",
  133. isDefault: false
  134. }, //地址数据
  135. province: [], //省数据
  136. city: [], //市数据
  137. area: [], //区数据
  138. provinceid: "", //省数据
  139. cityid: "", //市数据
  140. areaid: "", //区数据
  141. indexs: [], //默认地区下标
  142. //选择器状态
  143. sexShow: false, //性别
  144. birthdayShow: false, //出生年月
  145. politicsShow: false, //政治面貌
  146. maritalShow: false, //婚姻状态
  147. workShow: false, //工作时间
  148. cityShow: false, //户口所在地
  149. jobShow: false, //工作显示
  150. user: {
  151. name: "",
  152. sex: "",
  153. birthday: "",
  154. job_name: "",
  155. industry_id: "", //行业id
  156. province_id: "", //省份id
  157. city_id: "", //城市id
  158. invitation_code: "", //邀请码
  159. avatar: "", //头像
  160. job_role: "student", //求职身份
  161. job_time: "", //参加工作时间
  162. mobile: "", //手机号
  163. domicile_province_id: "", //户籍省份
  164. domicile_city_id: "", //市
  165. political_status_id: "", //政治面貌
  166. marital_status_id: "", //婚姻状态
  167. job_status_id: "", //求职
  168. email: "", //邮箱
  169. sexvalue: "",
  170. city1: "",
  171. politics: "",
  172. status: "",
  173. job: "",
  174. },
  175. minDate: "",
  176. minDate1: "",
  177. height: '',
  178. list: ['学生', '职场人'],
  179. current: 0,
  180. sexdata: [
  181. ['男', '女', '保密']
  182. ],
  183. politicslist: [
  184. []
  185. ],
  186. maritallist: [
  187. []
  188. ],
  189. cityList: [], //数据地址
  190. cityids: [], //数据地址
  191. joblist: [],
  192. radiovalue1: ""
  193. }
  194. },
  195. onLoad(options) {
  196. this.radiovalue1 = options.radiovalue1
  197. this.minDate = Number(new Date('1900-01-01'));
  198. this.minDate1 = Number(new Date('1980-01-01'));
  199. this.getpolitics()
  200. this.getmarital()
  201. this.AllArea()
  202. this.getJob()
  203. if (uni.getStorageSync('from')) {
  204. this.user = uni.getStorageSync("from")
  205. if (this.user.job == "student") {
  206. this.current = 0
  207. } else {
  208. this.current = 1
  209. }
  210. }
  211. console.log(this.user);
  212. },
  213. methods: {
  214. workBtn() {
  215. this.workShow = true
  216. this.$refs.pickers.innerValue = new Date(1672502400000).getTime()
  217. },
  218. // 获取政治面貌
  219. getpolitics() {
  220. politics().then((res) => {
  221. this.politicslist[0] = res.data
  222. })
  223. },
  224. //婚姻状态
  225. getmarital() {
  226. marital().then((res) => {
  227. this.maritallist[0] = res.data
  228. })
  229. },
  230. //获取求职状态
  231. getJob() {
  232. getjob().then((res) => {
  233. this.joblist[0] = res.data
  234. })
  235. },
  236. //所有地区
  237. AllArea() {
  238. getAllArea().then((res) => {
  239. console.log(res);
  240. this.province = res.data.map(t => {
  241. return {
  242. name: t.name,
  243. id: t.id
  244. }
  245. })
  246. console.log("aaa", this.province);
  247. this.city = res.data.map(t => t.children.map(v => {
  248. return {
  249. name: v.name,
  250. id: v.id
  251. }
  252. }))
  253. this.area = res.data.map(t => t.children.map(v => v.children.map(i => {
  254. return {
  255. name: i.name,
  256. id: i.id
  257. }
  258. })))
  259. //默认显示数据
  260. // this.cityList = [
  261. // this.province.map(res => res.name),
  262. // this.city[0].map(res => res.name),
  263. // this.area[0][0].map(res => res.name)
  264. // ]
  265. let a = []
  266. let b = []
  267. let c = []
  268. this.province.map(res => {
  269. a.push({
  270. name: res.name,
  271. id: res.id,
  272. })
  273. })
  274. this.city[0].map(res => {
  275. b.push({
  276. name: res.name,
  277. id: res.id,
  278. })
  279. })
  280. this.area[0][0].map(res => {
  281. c.push({
  282. name: res.name,
  283. id: res.id,
  284. })
  285. })
  286. this.cityList = [a, b, c]
  287. console.log(33, this.cityList);
  288. if (this.addressData.province && this.addressData.city && this.addressData.area) {
  289. //省索引
  290. let pIdx = this.province.findIndex(v => v.name == this.addressData.province);
  291. //根据省索引设置默认市数据
  292. this.columns[1] = this.city[pIdx].map(res => res.name)
  293. //市索引
  294. let cIdx = this.city[pIdx].findIndex(v => v.name == this.addressData.city);
  295. //根据市索引设置默认区数据
  296. this.columns[2] = this.area[pIdx][cIdx].map(res => res.name)
  297. //区索引
  298. let aIdx = this.area[pIdx][cIdx].findIndex(v => v.name == this.addressData.area);
  299. this.indexs = [pIdx, cIdx, aIdx];
  300. // console.log(pIdx, cIdx, aIdx);
  301. console.log(this.indexs);
  302. }
  303. })
  304. },
  305. changeHandler(e) {
  306. const {
  307. columnIndex, //当前改变值的列下标
  308. value,
  309. values, // values为当前变化列的数组内容
  310. indexs, //当前地区值下标
  311. picker = this.$refs.uPicker
  312. } = e
  313. //columnIndex代表第几列,意思是下标为0的列发生变化
  314. if (columnIndex === 0) {
  315. picker.setColumnValues(1, this.city[indexs[0]].map(v => {
  316. return {
  317. name: v.name,
  318. id: v.id
  319. }
  320. }))
  321. picker.setColumnValues(2, this.area[indexs[0]][0].map(v => {
  322. return {
  323. name: v.name,
  324. id: v.id
  325. }
  326. }))
  327. }
  328. if (columnIndex === 1) {
  329. picker.setColumnValues(2, this.area[indexs[0]][indexs[1]].map(v => {
  330. return {
  331. name: v.name,
  332. id: v.id
  333. }
  334. }))
  335. }
  336. },
  337. // 选择器
  338. // 求职身份选择器
  339. sectionChange(index) {
  340. console.log(index);
  341. this.current = index;
  342. if (index == 0) {
  343. this.user.job_role = "student"
  344. } else {
  345. this.user.job_role = "employee"
  346. }
  347. },
  348. //性别选择器确认
  349. sexConfirm(e) {
  350. console.log(e);
  351. if (e.value[0] == '男') {
  352. this.user.sexvalue = "男",
  353. this.user.sex = "male"
  354. } else if (e.value[0] == "女") {
  355. this.user.sexvalue = "女",
  356. this.user.sex = "female"
  357. } else {
  358. this.user.sexvalue = "保密",
  359. this.user.sex = "secret"
  360. }
  361. this.sexShow = false
  362. },
  363. //点击显示时间选择器
  364. birthdayBtn() {
  365. this.birthdayShow = true
  366. //new Date(this.endDate).getTime()为你需要在选择器上显示的时间戳
  367. this.$refs.picker.innerValue = new Date(946656000000).getTime()
  368. },
  369. //出生日期选择器
  370. async birthdayConfirm(e) {
  371. const timeFormat = uni.$u.timeFormat;
  372. let timeValue = await timeFormat(e.value, 'yyyy-mm-dd');
  373. this.user.birthday = timeValue;
  374. this.birthdayShow = false
  375. },
  376. //政治面貌
  377. politicsConfirm(e) {
  378. this.user.political_status_id = e.value[0].id
  379. this.user.politics = e.value[0].name
  380. this.politicsShow = false;
  381. },
  382. //婚姻状态
  383. maritalConfirm(e) {
  384. this.user.marital_status_id = e.value[0].id
  385. this.user.status = e.value[0].name
  386. this.maritalShow = false
  387. },
  388. //参加工作时间
  389. async workConfirm(e) {
  390. const timeFormat = uni.$u.timeFormat;
  391. let timeValue = await timeFormat(e.value, 'yyyy-mm-dd');
  392. this.user.job_time = timeValue;
  393. this.workShow = false
  394. },
  395. //户口地址
  396. cityconfirm(e) {
  397. let a = e.value[0].name + e.value[1].name + e.value[2].name
  398. let ids = String(e.value[0].id) + String(e.value[1].id) + String(e.value[2].id)
  399. this.user.domicile_city_id = e.value[1].id
  400. this.user.domicile_province_id = e.value[0].id
  401. // this.city1 = e.value.join("")
  402. this.user.city1 = a
  403. this.cityShow = false
  404. },
  405. jobConfirm(e) {
  406. this.user.job = e.value[0].name
  407. this.user.job_status_id = e.value[0].id
  408. this.jobShow = false
  409. },
  410. //关闭模态框
  411. close() {
  412. this.sexShow = false;
  413. this.birthdayShow = false;
  414. this.politicsShow = false;
  415. this.maritalShow = false
  416. this.workShow = false
  417. this.cityShow = false
  418. this.jobShow = false
  419. },
  420. next() {
  421. if (!this.user.name) {
  422. this.$u.toast("请填写姓名")
  423. return
  424. }
  425. if (!this.user.sexvalue) {
  426. this.$u.toast("请选择性别")
  427. return
  428. }
  429. uni.setStorageSync("from", this.user)
  430. if (this.radiovalue1 == 1) {
  431. uni.navigateTo({
  432. url: '../pagesA/userinfo'
  433. })
  434. } else {
  435. uni.navigateTo({
  436. url: '/pagesA/upload'
  437. })
  438. }
  439. },
  440. return1() {
  441. uni.navigateBack()
  442. },
  443. getHeight() {
  444. const query = uni.createSelectorQuery().in(this);
  445. query.select('#height').boundingClientRect(data => {
  446. this.height = (data.height) * 2
  447. }).exec();
  448. }
  449. }
  450. }
  451. </script>
  452. <style lang="scss">
  453. page {
  454. background-color: #F3F3F3;
  455. }
  456. .index-page {
  457. overflow: hidden;
  458. margin-bottom: 60rpx;
  459. .mingpianfont {
  460. height: 50rpx;
  461. font-size: 36rpx;
  462. font-family: PingFangSC-Medium, PingFang SC;
  463. font-weight: 500;
  464. color: #FFFFFF;
  465. line-height: 50rpx;
  466. }
  467. .explain {
  468. margin-top: 24rpx;
  469. width: 528rpx;
  470. height: 36rpx;
  471. font-size: 26rpx;
  472. font-family: PingFangSC-Regular, PingFang SC;
  473. font-weight: 400;
  474. color: #FFFFFF;
  475. line-height: 36rpx;
  476. }
  477. //个人信息
  478. .personal {
  479. width: 750rpx;
  480. background: #FFFFFF;
  481. border-radius: 28rpx 28rpx 0rpx 0rpx;
  482. margin-top: -40rpx;
  483. position: relative;
  484. z-index: 99;
  485. padding: 40rpx 32rpx 0;
  486. margin-bottom: 60rpx;
  487. box-sizing: border-box;
  488. .body-input {
  489. height: 170rpx;
  490. border-bottom: 2rpx solid #F4F4F4;
  491. .input-title {
  492. font-size: 26rpx;
  493. font-family: PingFangSC-Regular, PingFang SC;
  494. font-weight: 400;
  495. color: #888888;
  496. margin-bottom: 20rpx;
  497. margin-top: 30rpx;
  498. box-sizing: border-box;
  499. }
  500. .input-style {
  501. font-size: 32rpx;
  502. font-family: PingFangSC-Regular, PingFang SC;
  503. font-weight: 400;
  504. color: #CACACA;
  505. }
  506. }
  507. .button {
  508. width: 686rpx;
  509. height: 88rpx !important;
  510. background: #0C66C2;
  511. border-radius: 12rpx;
  512. font-size: 32rpx;
  513. font-family: PingFangSC-Medium, PingFang SC;
  514. font-weight: 500;
  515. color: #FFFFFF;
  516. line-height: 88rpx;
  517. margin: 10rpx 0 0rpx 0;
  518. display: flex;
  519. justify-content: center;
  520. }
  521. }
  522. .index-item {
  523. // width: 702rpx;
  524. // background: #FFFFFF;
  525. // border-radius: 20rpx;
  526. // margin: 20rpx auto;
  527. // padding: 0 20rpx 24rpx 10rpx;
  528. .item-down {
  529. text:first-child {
  530. font-size: 22rpx;
  531. font-family: SFPro-Regular, SFPro;
  532. font-weight: 400;
  533. color: #666666;
  534. }
  535. text:last-child {
  536. font-size: 22rpx;
  537. font-family: PingFangSC-Regular, PingFang SC;
  538. font-weight: 400;
  539. color: #666666;
  540. }
  541. }
  542. .item-gongsi {
  543. margin-bottom: 16rpx;
  544. .text2 {
  545. font-size: 24rpx;
  546. font-family: SFPro-Regular, SFPro;
  547. font-weight: 400;
  548. color: #666666;
  549. }
  550. .logo {
  551. width: 42rpx;
  552. height: 42rpx;
  553. border-radius: 10rpx;
  554. margin-right: 16rpx;
  555. }
  556. .text1 {
  557. max-width: 192rpx;
  558. font-size: 24rpx;
  559. font-family: PingFangSC-Regular, PingFang SC;
  560. font-weight: 400;
  561. color: #444444;
  562. margin-right: 12rpx;
  563. }
  564. }
  565. .item-label {
  566. margin-bottom: 20rpx;
  567. text {
  568. margin-right: 16rpx;
  569. line-height: 46rpx;
  570. background: #F7F7F7;
  571. border-radius: 4rpx;
  572. padding: 0 14rpx;
  573. font-size: 24rpx;
  574. font-family: PingFangSC-Regular, PingFang SC;
  575. font-weight: 400;
  576. color: #5F5F5F;
  577. }
  578. }
  579. .item-top {
  580. height: 88rpx;
  581. .text1 {
  582. font-size: 32rpx;
  583. font-family: PingFangSC-Medium, PingFang SC;
  584. font-weight: 500;
  585. color: #222222;
  586. margin-right: 16rpx;
  587. }
  588. .text2 {
  589. width: 50rpx;
  590. line-height: 32rpx;
  591. background: rgba(255, 83, 53, 0.1);
  592. border-radius: 4rpx;
  593. text-align: center;
  594. font-size: 20rpx;
  595. font-family: PingFangSC-Regular, PingFang SC;
  596. font-weight: 400;
  597. color: #FF5335;
  598. margin-right: 12rpx;
  599. }
  600. .text3 {
  601. width: 90rpx;
  602. line-height: 32rpx;
  603. background: #FFF2E8;
  604. border-radius: 4rpx;
  605. text-align: center;
  606. font-size: 20rpx;
  607. font-family: PingFangSC-Regular, PingFang SC;
  608. font-weight: 400;
  609. color: #FF8620;
  610. margin-right: 12rpx;
  611. }
  612. .text4 {
  613. line-height: 32rpx;
  614. background: #E6EFF8;
  615. border-radius: 4rpx;
  616. padding: 0 4rpx;
  617. text-align: center;
  618. font-size: 20rpx;
  619. font-family: SFPro-Regular, SFPro;
  620. font-weight: 400;
  621. color: #0C66C2;
  622. }
  623. .text5 {
  624. font-size: 32rpx;
  625. font-family: JDZhengHT-Regular, JDZhengHT;
  626. font-weight: 400;
  627. color: #0C66C2;
  628. }
  629. }
  630. }
  631. .index-navbar {
  632. position: sticky;
  633. top: 0;
  634. left: 0;
  635. width: 750rpx;
  636. z-index: 10;
  637. .header-down {
  638. height: 92rpx;
  639. padding: 20rpx 24rpx;
  640. box-sizing: border-box;
  641. .font {
  642. font-size: 40rpx;
  643. font-family: PingFangSC-Medium, PingFang SC;
  644. font-weight: 500;
  645. color: #222222;
  646. }
  647. .right-item {
  648. padding: 0 16rpx;
  649. height: 52rpx;
  650. background: #F3F3F3;
  651. border-radius: 4rpx;
  652. margin-left: 20rpx;
  653. .text {
  654. margin-right: 4rpx;
  655. font-size: 26rpx;
  656. font-family: PingFangSC-Regular, PingFang SC;
  657. font-weight: 400;
  658. color: #666666;
  659. }
  660. }
  661. .down-left {
  662. .text {
  663. margin-right: 4rpx;
  664. font-size: 26rpx;
  665. font-family: PingFangSC-Medium, PingFang SC;
  666. font-weight: 500;
  667. color: #222222;
  668. }
  669. }
  670. }
  671. .index-bg {
  672. position: absolute;
  673. top: 0;
  674. left: 0;
  675. z-index: -1;
  676. width: 750rpx;
  677. height: 392rpx;
  678. }
  679. }
  680. .index-header {
  681. flex: 1;
  682. padding: 0 32rpx;
  683. height: 50rpx;
  684. .index-search {
  685. width: 200rpx;
  686. height: 64rpx;
  687. background: #FFFFFF;
  688. border-radius: 20rpx;
  689. padding: 0 28rpx;
  690. .text1 {
  691. font-size: 24rpx;
  692. font-family: PingFangSC-Regular, PingFang SC;
  693. font-weight: 400;
  694. color: #999999;
  695. margin-left: 16rpx;
  696. }
  697. }
  698. .index-tabs {
  699. text:first-child {
  700. font-size: 36rpx;
  701. font-family: PingFangSC-Medium, PingFang SC;
  702. font-weight: 500;
  703. color: #222222;
  704. }
  705. text:last-child {
  706. width: 76rpx;
  707. height: 12rpx;
  708. background: linear-gradient(270deg, #208EFF 0%, rgba(28, 159, 227, 0) 100%);
  709. margin-top: -20rpx;
  710. border-radius: 100rpx;
  711. }
  712. }
  713. }
  714. }
  715. ::v-deep .u-navbar__content__left {
  716. padding: 0 !important;
  717. }
  718. ::v-deep .u-subsection {
  719. width: 312rpx !important;
  720. }
  721. </style>