zhangwei
2024-08-28 91a6d368073912a2e54bbd8c8a39c44d783881d8
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<template>
    <view class="">
        <view class="coreshop-ff">
            <up-list>
                <up-list-item>
                    <up-cell title="周先生">
                        <template #icon>
                            <up-avatar shape="square" size="35" src="https://uview-plus.jiangruyi.com/album/1.jpg"
                                customStyle="margin: -3px 5px -3px 0"></up-avatar>
                        </template>
                    </up-cell>
                </up-list-item>
                <view class="c-p-20">
                    <view class="chuany-flex chuany-justify-between chuany-flex-wrap">
                        <text class="chuany-font34 chuany-text-bold">
                            临时工
                        </text>
                        <text class="">
                            日期:2024-08-12
                        </text>
                    </view>
                </view>
                <view class="c-p-20">
                    <view class="">
                        <text class="">
                            打卡记录:
                        </text>
                        <view class="chuany-flex chuany-justify-between c-p-t-20">
                            <view
                                class="chuany-flex chuany-flex-direction chuany-align-center textclo chuany-font24 step_item"
                                v-for="(item,index) in 4">
                                <up-avatar shape="square" size="38" src="https://uview-plus.jiangruyi.com/album/1.jpg"
                                    @click="previewImage"></up-avatar>
                                <view class="line line-active" v-if="index!==3">
 
                                </view>
                                <up-icon name="checkmark-circle-fill" color="#2979ff" size="22"></up-icon>
                                <text>已打卡</text>
                                <text>10:00</text>
                            </view>
 
                        </view>
 
                    </view>
                </view>
 
                <view class="stepwit">
                    <tem-steps></tem-steps>
                </view>
            </up-list>
            <view class="tabbtns">
                <up-button color='#fece01' class="text-69" text="工资审核"></up-button>
            </view>
        </view>
    </view>
</template>
 
<script setup>
    import {
        onLoad,
        onShow,
        onReachBottom,
        onPullDownRefresh
    } from "@dcloudio/uni-app";
    import {
        reactive,
        ref,
        getCurrentInstance
    } from 'vue';
    const {
        $upload,
        $api,
        $util,
        $db
    } = getCurrentInstance().appContext.config.globalProperties
    onLoad(() => {
        getDaka()
    })
    let state = reactive({
        currentIdex: 0
    })
    let dakaList = reactive([])
    let show = ref(true)
    const urls = ['https://uview-plus.jiangruyi.com/album/1.jpg']
    const list2 = reactive([{
        id: 1,
        time: '明天 19:00-23:00',
        name: '临时工',
        tags: ['4小时', '可无经验', '手脚麻利'],
        adress: '武侯区桂溪街道4.0km',
        yaoqiu: '不限',
        price: 50,
        peoplenum: 3,
        zhaodao: 1
    }]);
    const click = () => {
 
    }
    const change = (e) => {
        state.currentIdex = e.index
    }
    const toDetail = (e) => {
        uni.navigateTo({
            url: '/pages/detail/detail'
        })
    }
    const previewImage = () => {
        uni.previewImage({
            urls: ['https://uview-plus.jiangruyi.com/album/1.jpg']
        })
    }
    const getDaka = (id) => {
        $api.getDaka({
            orderId: id
        }).then(res => {
            dakaList = res.data.orderBiddingDetailCheck
            dakaList.length = 3
            if (dakaList.length % 2 !== 0) {
                dakaList.push({})
            }
            console.log(res, '打卡');
        })
    }
</script>
 
<style lang='scss'>
    .list {
        background-color: #fff;
        padding: 30rpx 30rpx 0 30rpx;
    }
 
    .content {
        height: 430rpx;
        width: 100%;
        background-color: #fff;
        border-radius: 20rpx;
        /* margin: 30rpx 30rpx 0 30rpx; */
        box-shadow: 0rpx 4rpx 12rpx 3rpx rgba(85, 85, 85, 0.10);
    }
 
    .bgblue {
        background-color: #4e96f5;
        border-radius: 20rpx 20rpx 0 0;
        color: #fff;
    }
 
    .redcla {
        color: #f05348;
    }
 
    .textclo {
        color: #606266;
    }
 
    .stepwit {
        width: 50%;
        margin: 0 auto
    }
 
    .step_item {
        position: relative;
        /* width: 144rpx; */
        display: flex;
 
        .line {
            position: absolute;
            top: 92rpx;
            left: 52rpx;
            content: "";
            height: 4rpx;
            width: 192rpx;
 
        }
 
        .line-active {
            background-color: #2979ff;
        }
    }
</style>