<template>
  <view class="themes-newProduct position-a" :style="{height: 'calc(100vh - ' + hearHeight + ')' }">
    <scroll-view
      class="scroll-list"
      :scroll-y="true"
      @scrolltolower="getmorecomment"
      v-if="shopProduct && shopProduct.length > 0"
    >
      <themes-shop
        :mgtop="0"
        :mgright="30"
        :mgleft="30"
        :mgbottom="2"
        :shopProduct="shopProduct"
      ></themes-shop>
      <nomore v-if="nomore"></nomore>
    </scroll-view>
    <nodata text="没有查找到相关商品" v-if="nodata"></nodata>
    <loading v-if="loading"></loading>
  </view>
</template>

<script>
import { myMixin } from "../logic/newProduct.js";
import themesShop from "./components/themes-shop.vue";

export default {
  mixins: [myMixin],
  components: {
    themesShop,
  }
};
</script>

<style lang="scss" scoped>
.themes-newProduct {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #FAF8F8;
  padding: 0 24rpx;
  border-radius: 10rpx 10rpx 0;
  flex: 1;
  left: 0;
  right: 0;
}
.scroll-list {
  flex: 1;
  overflow-y: scroll;
  padding-bottom: 40rpx;
  & ::-webkit-scrollbar {
    display: none;
  }
}
</style>