quanwei
2025-10-29 76ed09d116f484b261d44219de300b79eb2013b3
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
<template>
    <view class="diy-store" :style="{ background: itemData.style.background }">
        <view class="diy-head d-b-c">
            <view class="left d-s-c">
                <view class="name">
                    线下门店
                </view>
            </view>
        </view>
        <view class="store-item d-s-c p-30-0" :key="index" v-for="(store, index) in itemData.data" @click="gotoDetail(store.store_id)">
            <view class="store-item-logo mr30"><image :src="store.logo_image" mode="aspectFill"></image></view>
            <view class="flex-1 o-h">
                <view class="ww100 f34 gray3 text-ellipsis">
                    <text>{{ store.store_name }}</text>
                </view>
                <view class="text-ellipsis mt10 f24 gray3">门店地址:{{ store.region.province }}{{ store.region.city }}{{ store.region.region }}{{ store.address }}</view>
                <view class="mt10 f24">
                    <text>联系电话:{{ store.phone }}</text>
                </view>
            </view>
        </view>
    </view>
</template>
 
<script>
export default {
    data() {
        return {};
    },
    props: ['itemData'],
    methods: {
        /*跳转门店详情*/
        gotoDetail(e) {
            let url = 'pages/store/detail/detail?store_id=' + e;
            this.gotoPage(url);
        }
    }
};
</script>
 
<style>
.diy-store {
    margin: 20rpx;
    border-radius: 20rpx;
    padding: 0 20rpx 20rpx;
    background: #ffffff;
    box-shadow: 0 0 8rpx rgba(0, 0, 0, 0.1);
}
.diy-store .diy-head {
    height: 100rpx;
}
.diy-store .diy-head .name {
    font-size: 36rpx;
    font-weight: bold;
}
.diy-store .store-item {
    border-top: 1rpx solid #eeeeee;
}
.diy-store .store-item-logo,
.diy-store .store-item-logo image {
    width: 120rpx;
    height: 120rpx;
}
</style>