xuxy
2024-06-25 d1bb68d9f9054bbf87cd84956d3240c71d8e370c
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
<!-- 一起团购,深夜食堂、挖宝专区 -->
<template>
    <view class="home-buttons p15">
        <!-- {{source}} -->
        <view class="home-buttons_top_container flex">
            <view class="p10 left"
                @click="goto(source=='bussiness'?'/pages/order/bussiness-order/bussiness-order?type=shop':'/pages/shop/shop')">
                <view class="title">一起团购</view>
                <view class="desc">一键分享,团你所团</view>
                <image class="icon" src="/static/imgs/home/home-icon-shop.png" mode="aspectFit" />
            </view>
            <view class="right">
 
 
                <view class="p10 container"
                    @click="goto(source=='bussiness'?'/pages/order/bussiness-order/bussiness-order?type=canteen':'/pages/canteen/canteen')">
                    <view class="title">每日维C</view>
                    <view class="desc">今日份维C 小狗狗帮你补齐</view>
                </view>
            <!--     <view class="p10 container home-container-canteen">
                    <view class="title">每日维C</view>
                    <view class="desc">每日维C 觅食专区</view>
                </view> -->
                <view class="p10 container"
                    @click="goto(source=='bussiness'?'/pages/order/bussiness-order/bussiness-order?type=good':'/pages/good/good')">
                    <view class="title">挖宝专区</view>
                    <view class="desc">支持各平台验货,包邮送到手</view>
                </view>
            </view>
 
        </view>
        <view class="home-buttons_bottom_container flex"
            @click="goto(source=='bussiness'?'/pages/order/bussiness-order/bussiness-order?type=travel':'/pages/travel/travel')">
            <view class="left">
                <view class="title">粗去玩</view>
                <view class="desc">小狗go!</view>
                <view class="desc">即将满员,快来抢位</view>
            </view>
            <view class="right">
                <image class="icon" src="/static/imgs/home/home-icon-travel.png" mode="aspectFit"></image>
            </view>
        </view>
    </view>
 
</template>
<script>
    export default {
        data() {
            return {
                // source: '', //bussiness
            }
        },
        props: {
            source: {
                type: String,
                default () {
                    return ''
                }
            }
        }
    }
</script>
 
<style lang="scss">
    .home-buttons {
        padding-top: 0px;
 
        .home-buttons_top_container {
            // height: 334rpx;
            // 167
            // max-height: 334rpx;
            margin-bottom: 22rpx;
            text-align: center;
 
            .left {
                width: 280rpx;
                background: #FFFFFF;
                border-radius: 20rpx;
                margin-right: 22rpx;
                padding-top: 18rpx;
 
                .desc {
                    margin-top: 4rpx;
                }
 
                .icon {
                    width: 186rpx;
                    height: 202rpx;
                    margin-top: 22rpx;
                }
            }
 
            // 334
            //  156 * 2 = 312 + 22
            .right {
                flex: 1;
 
                .container {
                    // width: 354rpx;
                    height: 156rpx;
                    max-height: 156rpx;
                    background: #FFFFFF;
                    border-radius: 20rpx;
 
                    .title {
                        margin-top: 34rpx;
                        margin-bottom: 4rpx;
                    }
                }
                .home-container-canteen{
                    // background-image: url('../../../static/imgs/home/freecompress-home-canteen-todo.png');
                    background-size: 100% 100%;
                }
 
                .container+.container {
                    margin-top: 22rpx;
                }
 
            }
        }
 
        .home-buttons_bottom_container {
            width: 690rpx;
            min-height: 169rpx;
            background: #FFFFFF;
            border-radius: 20rpx;
            // margin-top: 44px;
            padding-top: 15px;
 
            .left {
 
                flex: 1;
                text-align: center;
 
                .desc {
                    margin-top: 4rpx;
                }
            }
 
            .right {
                flex: 1;
 
                .icon {
                    width: 214rpx;
                    height: 126rpx;
                    margin: 0 auto;
                    display: block;
                }
            }
        }
 
        .title {
            font-size: 36rpx;
            font-family: PingFangSC, PingFang SC;
            font-weight: 600;
            color: #000000;
            line-height: 50rpx;
        }
 
        .desc {
            font-size: 24rpx;
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            color: #666666;
            line-height: 34rpx;
        }
    }
</style>