<template>
  <view class="shopdetailToppic">
      <swiper class="pic" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration" circular="true" @change="change1">
                        <swiper-item  v-for="(item,j) in picarr" :key="j">
                            <view >
                                <img :src="item.img_path" alt  class="pic" v-if="isvideo"/>
                                   <img :src="item.img_path" alt  class="pic" v-else/>
                            </view>
                        </swiper-item>
                        <!-- <swiper-item class="pic">
                            <view class="swiper-item uni-bg-green">
                               <img src="../../static/img/caricon.png" alt class="pic" />
                            </view>
                        </swiper-item>
                        <swiper-item class="pic">
                            <view class="swiper-item uni-bg-blue">
                               <img src="../../static/img/caricon1.png" alt class="pic" />
                            </view>
                        </swiper-item> -->
                    </swiper>
    <!-- <view class="imgbox">
      <img src="../../static/img/shoplb.png" alt class="pic" />
    </view> -->
  </view>
</template>

<script>
export default {
  name: "shopdetailToppic",
  data(){
    return{
      picarr1:[]
    }
    
  },
  props:{
    isvideo:{
      type:String,
    },
      picarr:{
        
      }
  },
  beforeDestroy(){
    console.log(this.picarr,156999)
  },
  methods:{
    change1(e){
        // console.log(e)
        var ifsp=false
        if(e.detail.current==0){
          ifsp=true
        }
        this.$emit("btnchange",ifsp)
    }
  },

};
</script>

<style lang="scss">
.shopdetailToppic {
      height: 752upx;
      display: flex;
      flex-direction: column;
      justify-content:center;
  .imgbox {
      display: flex;
      flex-direction: column;
      justify-content: center;

  }
      .pic {
      width: 100%;
      height: 752upx;
    }
}
</style>