doum
2025-09-04 9d901b4215323c97a00a068cd962f5c9c04dadfa
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
<template>
    <view class="success">
        <image src="/static/icon/ic_success@2x.png" mode="widthFix"></image>
        <text class="success-a">发单成功</text>
        <text class="success-b">请等待接单</text>
        <view class="success-footer">
            <view class="success-footer-btn" @click="toIndex">回到首页</view>
            <view style="width: 20rpx; height: 100%;"></view>
            <view class="success-footer-btn1" @click="toDesc">查看详情</view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                orderId: null
            };
        },
        onLoad(option) {
            this.orderId = option.orderId
        },
        methods: {
            toIndex() {
                uni.$emit('clear')
                uni.switchTab({
                    url: '/pages/index/index'
                });
            },
            toDesc() {
                uni.navigateTo({
                    url: `/pages/order-details/order-details?id=${this.orderId}`
                })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .success {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        image {
            width: 180rpx;
            height: 180rpx;
            margin-top: 180rpx;
            margin-bottom: 40rpx;
        }
        .success-a {
            font-weight: 500;
            font-size: 36rpx;
            color: #111111;
            margin-bottom: 20rpx;
        }
        .success-b {
            font-weight: 400;
            font-size: 26rpx;
            color: #999999;
            margin-bottom: 94rpx;
        }
        .success-footer {
            display: flex;
            align-items: center;
            .success-footer-btn {
                width: 200rpx;
                height: 72rpx;
                line-height: 72rpx;
                text-align: center;
                border-radius: 36rpx;
                border: 1rpx solid #00BC12;
                font-weight: 400;
                font-size: 28rpx;
                color: #00BC12;
            }
            .success-footer-btn1 {
                width: 200rpx;
                height: 72rpx;
                line-height: 72rpx;
                text-align: center;
                background: #00BC12;
                border-radius: 36rpx;
                font-weight: 400;
                font-size: 28rpx;
                color: #FFFFFF;
            }
        }
    }
</style>