doum
3 天以前 7c626e30b790489978150e57a2c7359934df32c7
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
<template>
    <view class="info" @click="toPage">
        <image :src="info.img" mode="widthFix"></image>
        <view class="info_shop">
            <view class="info_shop_title">
                <text>{{info.name}}</text>
            </view>
            <view class="info_shop_divide">
                <uni-rate :value="info.divide" size="18" color="#bbb" active-color="red" />
                <text>{{info.divide}}</text>
            </view>
            <view class="info_shop_address">
                <text>{{info.address}}</text>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        props: {
            info: {
                type: Object
            }
        },
        methods: {
            toPage() {
                this.$emit('getId', 12345678)
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .info {
        width: 100%;
        height: 148rpx;
        background: #FFFFFF;
        box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0,0,0,0.04);
        border-radius: 12rpx;
        border: 2rpx solid #F5F5F5;
        display: flex;
        align-items: center;
        padding: 18rpx;
        box-sizing: border-box;
        image {
            width: 112rpx;
            height: 112rpx;
            flex-shrink: 0;
            border-radius: 10rpx;
            margin-right: 16rpx;
        }
        .info_shop {
            flex: 1;
            height: 100%;
            .info_shop_title {
                width: 540rpx;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                text {
                    font-size: 28rpx;
                    font-family: PingFang SC-Semibold, PingFang SC;
                    font-weight: 600;
                    color: #333333;
                }
            }
            .info_shop_divide {
                display: flex;
                align-items: center;
                text {
                    font-size: 24rpx;
                    font-family: PingFang SC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #D20A0A;
                    margin-left: 10rpx;
                }
            }
            .info_shop_address {
                width: 540rpx;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                text {
                    font-size: 24rpx;
                    font-family: PingFang SC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #999999;
                }
            }
        }
    }
</style>