调整首页游戏图标的显示模式

This commit is contained in:
zhl 2019-03-22 19:55:08 +08:00
parent 97f5088557
commit abc814871f
3 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<template>
<view class="game-cell" @tap="gameTap({{item.gid}})">
<view class="game-icon">
<image src="{{item.icon}}" mode="aspectFit"></image>
<image src="{{item.icon}}" mode="aspectFill"></image>
</view>
<view class="content-view">
<view class="title">{{item.name}}</view>

View File

@ -40,7 +40,7 @@
<scroll-view scroll-x="true" class="recent-game-list ">
<repeat for="{{gameList}}" item="game">
<view class="one-game" @tap="gameTap({{game.gid}})">
<image src="{{game.icon}}"></image>
<image src="{{game.icon}}" mode="aspectFill"></image>
</view>
</repeat>
</scroll-view>

View File

@ -12,6 +12,7 @@
text-align:center;
margin-left: 15px;
height:60px;
margin-top:10rpx;
}
.game-cell .game-icon image {
width: 100%;