doum
4 小时以前 116a83c60384f716cb8c988a4e8f2b30bf5d6718
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="coffee">
        <view class="coffee_item" v-for="(item, index) in 3" :key="index" @click="toDetailed">
            <image src="@/static/icon/img_baike@2x.png" mode="widthFix"></image>
            <view class="coffee_item_right">
                <text>澳白Flatwhite</text>
                <text>¥26</text>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                
            }
        },
        methods: {
            toDetailed() {
                uni.navigateTo({
                    url: '/pages/hotDishesDetails/index'
                });
            }
        }
    }
</script>
 
<style>
    page {
        background-color: #ffffff !important;
    }
</style>
 
<style lang="scss" scoped>
    .coffee {
        width: 100%;
        padding: 32rpx;
        box-sizing: border-box;
        .coffee_item {
            margin-bottom: 52rpx;
            display: flex;
            align-items: center;
            image {
                width: 264rpx;
                height: 176rpx;
                flex-shrink: 0;
                margin-right: 20rpx;
                border-radius: 15rpx;
            }
            .coffee_item_right {
                flex: 1;
                height: 176rpx;
                display: flex;
                align-items: flex-start;
                flex-direction: column;
                text {
                    &:first-child {
                        width: 100%;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        display: -webkit-box;
                        font-size: 32rpx;
                        font-family: PingFang SC-Semibold, PingFang SC;
                        font-weight: 600;
                        color: #333333;
                    }
                    &:last-child {
                        font-size: 32rpx;
                        font-family: PingFang SC-Semibold, PingFang SC;
                        font-weight: 600;
                        color: #D20A0A;
                        margin-top: 28rpx;
                    }
                }
            }
        }
    }
</style>