shop-detail.vue
1.9 KB
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
<template>
<div class="page cPageBottom page-shop-detail">
<div class="app__bgc bgc"></div>
<div class="app__bg bg"></div>
<div class="app__content main">
<div class="top-space"></div>
<!-- 大标 -->
<div class="top">
<div class="space1"></div>
<div class="search">
<div class="search-ipt">
<input type="text" placeholder="搜索店铺内单品">
</div>
<div class="search-icon">
<span class="iconfont iconicon-test9"></span>
</div>
</div>
<div class="shop">
<img class="shop-icon" :src="store.logoImage" alt="">
<div class="shop-detail">
<div class="shop-detail-title">{{store.storeName}}</div>
<div class="shop-detail-desc">
<div class="t1">{{store.storeMobile}}</div>
<div class="t1">{{store.storeAddress}}</div>
<div class="t1">{{store.email}}</div>
</div>
</div>
<div class="shop-btn-wrap">
<div @click="onFavoriteHandler" class="shop-btn">收藏店铺</div>
<div @click="onContactUsHandler" class="shop-btn shop-btn2">联系我们</div>
</div>
</div>
</div>
<div class="content">
<div class="product">
<div class="product-title">-- 全部商品 --</div>
<div class="product-list">
<div @click="toProduct(item)" v-for="item in productList" :key="item.id" class="item">
<img class="image" :src="item.imageUrl" alt="">
<div class="desc">{{item.productName}}</div>
</div>
</div>
</div>
</div>
</div>
<van-popup v-model="contactUsVisible">
<contact-us-comp></contact-us-comp>
</van-popup>
</div>
</template>
<script src="./shop-detail.js"></script>
<style lang="scss" scoped>
@import "./shop-detail.scss";
</style>