personal-infor.vue 22 KB

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