75

parent be6a69c0
...@@ -4,14 +4,23 @@ ...@@ -4,14 +4,23 @@
<span>邀请记录</span> <span>邀请记录</span>
<span>购买时间</span> <span>购买时间</span>
</div> </div>
<div class="container" :style="{height: height+'px'}"> <scroll
<ul> ref="scrollItem"
<li v-for="(item,index) in list" :key="index"> class="scrollItem"
<p>{{item.name}}</p> :data="list"
<p>{{item.buy_date}}</p> :pullup="pullup"
</li> :bounce="false"
</ul> @pullup="onReachBottom">
</div> <div class="container" >
<ul>
<li v-for="(item,index) in list" :key="index">
<p>{{item.name}}</p>
<p>{{item.buy_date}}</p>
</li>
</ul>
</div>
</scroll>
</div> </div>
</template> </template>
<script> <script>
...@@ -163,10 +172,17 @@ export default { ...@@ -163,10 +172,17 @@ export default {
font-weight: 400; font-weight: 400;
color: #eb7162; color: #eb7162;
} }
.scrollItem{
height: 80vh;
width: 100%;
margin-top: 0;
overflow: hidden;
}
.container { .container {
margin: 0; margin: 0;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
// height: 200px;
ul { ul {
li { li {
height: 65 * @tocurrentvh; height: 65 * @tocurrentvh;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment