<template>
  <div class="enterprise" :style="styleData.goToShopStyle" v-lz-click="'4'" @click="goShop" v-if="shopLogo != ''">
    <div class="shop-logo-box" :style="styleData.logoStyle" v-if="logoShow">
      <img :src="shopLogo" alt="" class="shop-logo" :style="styleData.shopLogoStyle">
    </div>
    <div :style="styleData.shopBtnStyle" v-else v-lz-click="'4'" @click="goShop">
    </div>
  </div>
</template>
<script>
import apis1 from "../../../util/apis1.js";
import { goToShopPage } from "../../../util/tools.js";
import store from "../../../store/store";
import bus from '../../../util/bus.js'
let {storeGoodsPoint} = apis1

export default {
  props:['datas','keyData','styleData','isTemplate'],
  data() {
    return {
      shopLogo : '',
      goToShopList:[],
      shareFlag:false,
      shareUserId:'',
      shopId:'',
      logoShow : true
    };
  },

  created() {
    this.initData();
    console.log(this.datas.shopList)
  },
  mounted() {
    this.goToShopList = [];
  },
  methods: {
    initData() {
      bus.$on('shopLogo',(content)=>{
        this.shopLogo = content
      })
      bus.$on('shopId',(content)=>{
        this.shopId = content
      })
    },

    goShop() {
      console.log(this.shopId,21111111111111)
      storeGoodsPoint(4)
      goToShopPage(this.shopId);
    },
  },
};
</script>
<style lang="scss" scoped>
</style>
