shop-detail.vue 1.91 KB

<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 :store="store"></contact-us-comp>
    </van-popup>
  </div>
</template>

<script src="./shop-detail.js"></script>
<style lang="scss" scoped>
@import "./shop-detail.scss";
</style>