<template>
  <view>
    <view class="orderShop">
      <view class="shops">
        <view>
          <img v-for="item in shops" :key="item" :src="item.imgpaththumb" alt class="shop" />
        </view>
        <view class="sum">共{{shops.length}}件商品、1项服务</view>
      </view>
      <!-- <img src="../../static/img/arrow.png" alt class="arrow" /> -->
    </view>
  </view>
  <!-- shops 传字符串，不同图片用，分割 -->
</template>

<script>
export default {
  name: "ordersubShop",
  data() {
    return {
      shopsarr:[]
    };
  },
  props: {
    shops: {
      type: Array
    }
  },
  created() {
    // this.shopsarr=this.shops.split(',')
    console.log(this.shopsarr)
  }
};
// shops 提交订单的商品图片数组 字符串形式，不同图片用， 分割
</script>

<style lang="scss">
.orderShop {
  height: 267upx;
  background-color: white;
  display: flex;
  justify-content: space-between;
  .shops {
    height: 194upx;
    margin-top: 30upx;
    margin-left: 29upx;
    .shop {
      width: 140upx;
      height: 140upx;
      margin-right: 8upx;
    }
  }
  .sum {
    color: #333333;
    font-size: 27upx;
    margin-top: 28upx;
  }
  .arrow {
    width: 17upx;
    height: 31upx;
    margin: auto 0;
    margin-right: 25upx;
  }
}
</style>