<template>
  <div class="dec-voice">
    <div class="weixin" :class="arg.listStyle" v-if="arg.styleArg === 'weChat'">
      <img class="image" :src="decImgDomain(arg.titleImg, 'temp-user.jpg')" />
      <div class="text">
        <img
          class="r-image"
          :src="decImgDomain('', 'wechat-' + arg.listStyle + '.png')"
        />
      </div>
    </div>
    <!-- 通用播放器 -->
    <div class="simple" v-if="arg.styleArg === 'simple'">
      <div class="wrap">
        <img class="image" :src="decImgDomain(arg.titleImg, 'ic-cover.png')" />
        <div class="text">
          {{ arg.title || "左侧编辑『标题』" }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// 设置店招
export default {
  inject: ["decImgDomain"],
  props: {
    tab: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      arg: null,
    };
  },
  created() {
    this.arg = this.tab.arg;
  },
};
</script>
