付延余
2023-03-21 d36eb757af8867278125c6999fcaa5bdb902151c
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
<template>
    <!-- 打卡 -->
    <view class="punchTheClock">
        <!-- 打卡按钮 -->
        <view class="punchTheClock_container">
            <view class="punchTheClock_btn">
                <view class="">
                    <p>签到/打卡</p>
                    <p>{{ nowTime }}</p>
                </view>
            </view>
            <view class="punchTheClock_text">
                <u-icon name="map" color="#51e30d" size="30"></u-icon>
                <text>未进入矿场区域</text>
            </view>
        </view>
    </view>
</template>
 
<script>
import { todayDate } from '@/utils/util.js';
export default {
    onLoad(params){
        if(params.orderPlanId){
            this.orderPlanId = params.orderPlanId
        }
    },
    data() {
        return {
            nowTime: '',
            orderPlanId:null
        };
    },
    onShow() {
        this.todayDate();
    },
    methods: {
        todayDate() {
            setInterval(() => {
                this.nowTime = todayDate('hms');
            }, 1000);
        },
        // 签到
        arrive(){
            this.$reqPost('arrive', { id: this.orderPlanId }, 'params').then(res => {
                console.log(res, '签到');
            });
        }
    }
};
</script>
 
<style lang="scss" scoped>
.punchTheClock {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    .punchTheClock_container {
        .punchTheClock_btn {
            width: vww(240);
            height: vww(240);
            color: #ffffff;
            font-size: vww(20);
            border-radius: 50%;
            background-color: #36d4e5;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .punchTheClock_text {
            display:flex;
            justify-content: center;
            margin-top: vww(20);
            color: #b8b8b8;
            .text{
                margin-left:vww(5);
            }
        }
    }
}
</style>