54 lines
996 B
Plaintext
54 lines
996 B
Plaintext
<!--游戏cell-->
|
|
<style lang="less">
|
|
.recent-game {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
width: 750rpx;
|
|
}
|
|
.recent-game .one-game{
|
|
width: 138rpx;
|
|
height: 138rpx;
|
|
margin-left: 10rpx;
|
|
border-radius:10rpx;
|
|
overflow:hidden;
|
|
|
|
}
|
|
.recent-game .one-game image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.comp-title {
|
|
font-size:28rpx;
|
|
margin-left:10rpx;
|
|
}
|
|
</style>
|
|
<template>
|
|
<view>
|
|
<view class="comp-title">最近在玩</view>
|
|
<view class="recent-game">
|
|
<repeat for="{{gameList}}" item="game">
|
|
<view class="one-game" @tap="gameTap({{game.image}})">
|
|
<image src="{{game.image}}"/>
|
|
</view>
|
|
</repeat>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import wepy from 'wepy'
|
|
|
|
export default class recentGameComp extends wepy.component {
|
|
props = {
|
|
gameList: []
|
|
}
|
|
data = {
|
|
|
|
}
|
|
methods = {
|
|
gameTap (url, e) {
|
|
this.$emit('gameCellTap', url)
|
|
}
|
|
}
|
|
}
|
|
</script>
|