-
zhangwei
2025-03-24 2d43a1df3f5ba42710e6d21c27d1e13bdb8dfd56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<template>
    <view class="">
        <view class="coreshop-ff">
            <up-list>
                <up-list-item>
                    <up-cell :title="workerInfo.userWorker.name" :border="false">
                        <template #icon v-if="workerInfo.avatar">
                            <up-avatar shape="square" size="35" :src="workerInfo.avatar"
                                customStyle="margin: -3px 5px -3px 0"></up-avatar>
                        </template>
                    </up-cell>
                </up-list-item>
                <up-list-item>
                    <up-cell title="昵称" :value="workerInfo.nickname" :border="false">
                    </up-cell>
                </up-list-item>
                <up-list-item>
                    <up-cell title="联系电话" :value="workerInfo.phone" :border="false">
                    </up-cell>
                </up-list-item>
                <up-list-item>
                    <up-cell title="地址" :value="workerInfo.userWorker.address" :border="false">
                    </up-cell>
                </up-list-item>
                <!-- <up-list-item>
                    <up-cell title="地址" :value="workerInfo.userWorker.address" :border="false">
                    </up-cell>
                </up-list-item>
                <up-list-item>
                    <up-cell title="地址" :value="workerInfo.userWorker.address" :border="false">
                    </up-cell>
                </up-list-item> -->
                <up-list-item>
                    <up-cell title="简历描述" :border="false">
                    </up-cell>
                    <view class="jianli chuany-font28 text-69">
                        {{workerInfo.userWorker.resume}}
                    </view>
                </up-list-item>
                <up-list-item v-if="detailItem.isSelected">
                    <up-cell title="工价详情" :border="false">
                    </up-cell>
                    <view class="coreshop-bg-white c-p-l-30 c-p-r-30 chuany-font28 text-69">
                        <view>
                            当前工价:{{detailItem.workPrice}} {{detailItem.workerType==0?'元/小时':'元/件'}}
                        </view>
                        <view class="c-p-t-10">
                            历史工价:
                            <view class="chuany-flex chuany-justify-between c-p-t-10"
                                v-for="item in detailItem.orderBiddingWorkPrices" :key='item.id'>
                                <view class="">
                                    {{$util.formatDate(item.effectTime)}}
                                </view>
                                <view class="">
                                    {{item.workPrice}} {{detailItem.workerType==0?'元/小时':'元/件'}}
                                </view>
                            </view>
                        </view>
                    </view>
                </up-list-item>
 
            </up-list>
            <view class="tabbtns" v-if="!detailItem.isSelected">
                <up-button color='#fece01'  text="录用" :loading='isLoading' loadingText="录用中"
                    @click="selectBtn"></up-button>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                workerId: '',
                workerInfo: {
                    userWorker: {}
                },
                detailItem: {},
                isLoading: false
            }
        },
        onLoad(option) {
            console.log(option, 'zzzzzzzzzzzzzzzzzz');
            let {
                workerid
            } = option
            this.workerId = workerid
            console.log(this.workerId, workerid, option);
            this.detailItem = this.$db.get('toudiItem') || {}
            console.log(this.detailItem, 'this.detailItem');
            this.getWorkerInfo(this.workerId)
        },
        methods: {
            getWorkerInfo(id) {
                this.$api.getUserId(id).then(res => {
                    this.workerInfo = res.data
                })
            },
 
            selectBtn() {
                this.isLoading = true
                this.$api.saveQueRen({
                    orderBiddingId: detailItem.id
                }).then(res => {
                    if (res.code == 1) {
                        this.$util.showToast({
                            title: "确认成功!",
                            icon: "success"
                        })
                    } else {
                        this.$util.showToast({
                            title: res.msg ? res.msg : '失败!'
                        })
                    }
                    this.isLoading = false
                })
            }
        }
    }
</script>
 
<style>
    .u-cell__body {
        padding: 6px 15px !important;
    }
 
    .jianli {
        margin: 3px 15px;
        padding: 8px;
        background-color: #f6f7f9;
        border-radius: 5px;
        min-height: 180rpx;
    }
</style>