游戏cell增加显示开通和去玩按钮

This commit is contained in:
zhl 2019-02-21 10:08:08 +08:00
parent 51c8e43361
commit 791588894e
2 changed files with 14 additions and 0 deletions

View File

@ -11,6 +11,14 @@
<view class="title">{{item.name}}</view>
<view class="content">{{item.introduce}}</view>
</view>
<view class="left-btn">
<view wx:if="{{item.owned}}" class="zan-btn zan-btn--mini zan-btn--plain zan-btn--primary ">
去玩
</view>
<view wx:else class="zan-btn zan-btn--mini zan-btn--plain zan-btn--warn">
开通
</view>
</view>
</view>
</template>
<script>

View File

@ -57,3 +57,9 @@
background: #e5e5e5;
content: ' ';
}
.left-btn {
margin-right: 0.8rem;
display: flex;
justify-content: center;
align-items: center;
}