| | |
| | | import { http } from "@kit.NetworkKit" |
| | | import { LvMarkdownIn } from "@luvi/lv-markdown-in" |
| | | import { HttpResponseResult } from "../../data/HttpResponse" |
| | | import { ROMAIN } from "../../utils/config" |
| | | import { DOMAIN } from "../../utils/config" |
| | | |
| | | class JobItem { |
| | | ability: string = '' |
| | |
| | | getJobList() { |
| | | let httpRequest = http.createHttp(); |
| | | httpRequest.request( |
| | | `${ROMAIN}/quiz-community/public/v1.0/home/seek/job`, |
| | | `${DOMAIN}/quiz-community/public/v1.0/home/seek/job`, |
| | | { |
| | | method: http.RequestMethod.GET, |
| | | header: { 'Content-Type': 'application/json', 'x-jwt-token': `Bearer ${AppStorage.get('x-jwt-token')}` }, |
| | |
| | | return ele.companyName.includes(this.searchKeyword) || ele.jobName.includes(this.searchKeyword) |
| | | }) |
| | | this.jobList = list |
| | | console.log(JSON.stringify(list)) |
| | | } else { |
| | | this.jobList = this.origJobList |
| | | } |
| | |
| | | .border({ width: 1, style: BorderStyle.Solid, color: this.expandIndex == index ? '#1756f4' : '#f2f2f2' }) |
| | | .borderRadius(10) |
| | | } |
| | | }, (index: number) => index.toString()) |
| | | }) |
| | | } |
| | | .listDirection(Axis.Vertical) // 排列方向 |
| | | .scrollBar(BarState.Off) |