123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <template>
- <view>
- <u-navbar back-text="我的报名" back-icon-size="28" back-icon-color="#ffffff"
- :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
- <!-- 标签 -->
- <view class="tabs">
- <u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
- </view>
- <!-- 我的报名 -->
- <view class="my-registration" v-for="(item,i) in list[current].list" :key="i">
-
- <view class="card">
- <view class="positon-salary">
- <view class="positon">
- <span class="positonSpan positonSpan2" v-if="!item.recruitInformationInfo.isOnline">已下架</span>
- {{item.recruitInformationInfo.positionName}}
- </view>
- <view class="salary">
- {{item.recruitInformationInfo.salary}}{{getUnit(item.recruitInformationInfo)}}
- </view>
- </view>
- <view class="tags-date">
- <view class="company">
- {{item.recruitInformationInfo.enterpriseName}}
- </view>
- <view class="date">
- {{current==0?'报名时间':'邀请时间'}}:{{item.createTime.substring(0,10)}}
- </view>
- <view class="tags" v-if="current==0&&false">
- <view class="item">
- 企业
- </view>
- <view class="item">
- 周结
- </view>
- </view>
-
- </view>
- <u-line color="#E6E6E6"></u-line>
- <view style="display: flex;
- justify-content: space-between;" >
- <span class="tag" v-if="current==1&&!item.isRead">未读</span>
-
- <view class="check" @click="ckInfo(item.recruitInformationInfo,item)">
- 查看
- </view>
- </view>
- </view>
- </view>
- <u-divider v-if="list[current].recordsTotal==list[current].list.length" :isnone="list[current].recordsTotal==0"
- nonetext="没有找到相关内容" border-color="#CFD2D5">已经到底了</u-divider>
- </view>
- </template>
- <script>
- import * as API from '@/apis/pagejs/packages.js'
- export default {
- data() {
- return {
- list: [{
- name: '我的报名',
- pageIndex: 1,
- pageSize: 20,
- recordsTotal: 1,
- type: "0",
- list: []
- }, {
- name: '收到的邀请',
- pageIndex: 1,
- pageSize: 20,
- recordsTotal: 1,
- type: "1",
- list: []
- }],
- current: 0
- }
- },
- onLoad(op) {
- if (op.c) {
- this.current = op.c
- }
- this.getList();
- },
- onReachBottom() {
- var obj = this.list[this.current]
- if (obj.list.length < obj.recordsTotal) {
- this.myLoadmore();
- }
- },
- methods: {
- ckInfo(item,item2) {
- var isread=""
- if(this.current==1&&!item2.isRead){
- item2.isRead=true
- isread="&isread=1&readid="+item2.id
- }
- var url = "/pages/packages/jobInformation/jobDetails?id="
- uni.navigateTo({
- url: url + item.id+isread
- })
- },
- getList() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- var list = this.list[this.current].list
- var obj = this.list[this.current]
- var listForm = {
- ...obj
- }
- delete listForm.list
- API.myRegistration(listForm).then((res) => {
- if (listForm.pageIndex == 1) {
- list = res.data.data;
- } else {
- list = [
- ...list,
- ...res.data.data
- ];
- }
- this.list[this.current].list = list
- this.list[this.current].recordsTotal = res.data.recordsTotal;
- uni.hideLoading();
- }).catch(error => {
- uni.showToast({
- icon: 'none',
- title: error,
- icon: "none"
- })
- })
- },
- myLoadmore() {
- this.list[this.current].pageIndex += 1;
- this.getList();
- },
- change(index) {
- this.current = index;
- var list = this.list[this.current].list
- this.list[this.current].pageIndex = 1;
- this.list[this.current].list = [];
- this.getList();
- }
- }
- }
- </script>
- <style>
- page {
- background: #F0F0F2;
- padding-bottom: 150px;
- }
- </style>
- <style scoped lang="scss">
- .card {
- margin: 24rpx 32rpx;
- background-color: #fff;
- padding: 24rpx;
- border-radius: 12px;
- .positon-salary {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .positon {
- color: rgba(16, 16, 16, 1);
- font-size: 36rpx;
- font-family: 'PingFangSC-medium';
- .positonSpan{
- padding:0 6rpx;
- font-size: 24rpx;
- text-align: center;
- border-radius: 4px;
- color: rgba(255, 255, 255, 1);
-
- }
- .positonSpan1{
- background-color: rgba(34, 149, 255, 1);
- }
- .positonSpan2{
- background-color: rgba(178, 184, 190, 1);
- }
- }
- .salary {
- min-width: 280rpx;
- text-align: end;
- color: rgba(255, 61, 0, 1);
- font-size: 32rpx;
- font-family: 'PingFangSC-medium';
- }
- }
- .tags-date {
- //display: flex;
- //justify-content: space-between;
- align-items: center;
- margin-top: 16rpx;
- margin-bottom: 24rpx;
- .tags {
- display: flex;
- .item {
- border-radius: 4px;
- background-color: rgba(241, 241, 247, 1);
- color: rgba(129, 127, 153, 1);
- font-size: 12px;
- text-align: center;
- line-height: 36rpx;
- height: 36rpx;
- padding: 0 12rpx;
- margin-right: 8rpx;
- }
- }
- .company {
- color: rgba(51, 51, 51, 1);
- font-size: 24rpx;
- }
- .date {
- color: rgba(153, 153, 153, 1);
- font-size: 24rpx;
- }
- }
- // 查看
- .check {
- width: 120rpx;
- height: 56rpx;
- line-height: 56rpx;
- margin-left: auto;
- //margin-top: 24rpx;
- border-radius: 50px;
- background-color: rgba(255, 255, 255, 1);
- color: rgba(119, 119, 119, 1);
- text-align: center;
- font-family: Microsoft Yahei;
- border: 1px solid rgba(207, 210, 213, 1);
- }
- }
- .tag {
- top: -190rpx;
- left: -40rpx;
- position: relative;
- border-radius: 4px 4px 4px 0px;
- color: #fff;
- padding: 2px 6px;
- font-size: 20rpx;
- line-height: 20rpx;
- height: 30rpx;
- background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.4), transparent) var(--bg, #EA3447);
- background-blend-mode: soft-light;
- }
- .tag::before {
- content: '';
- position: absolute;
- width: 3px;
- height: 3px;
- left: 0;
- bottom: -3px;
- background-color: inherit;
- filter: brightness(.7);
- clip-path: polygon(0 0, 100% 0, 100% 100%);
- }
- </style>
|