personal-infor.vue 22 KB

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