<template>
  <view class="page">
    <mescroll-item ref="MescrollItem" v-if="flag" :i="0"  :index="0" :height="windowHeight" :renewServiceObjectId="renewServiceObjectId" :equityCardId="equityCardId">
    </mescroll-item>
  </view>
</template>

<script>

import MescrollItem from "./module/mescrollUni-item.vue";
export default {
  components: {
    MescrollItem
  },

  data() {
    return {
      windowHeight: '',
      renewServiceObjectId: null,
      equityCardId: null,
      flag:false
    }
  },
  onLoad(e) {
    if (e.renewServiceObjectId){
      this.renewServiceObjectId = e.renewServiceObjectId
    }
    if (e.equityCardId){
      this.equityCardId  = e.equityCardId
    }
    let sysInfo = uni.getSystemInfoSync()
    this.windowHeight = sysInfo.windowHeight + 'px'

    //当参数加载完成，在创建mescroll-item组件。不然第一次查询的数据有问题
    this.flag = true
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
@import '/common/css/common.css';
@import './index.rpx.scss';
</style>
