修改首页各板块的背景色和间隔
This commit is contained in:
parent
bff1afa742
commit
161e2cbddb
@ -1,6 +1,7 @@
|
|||||||
const env = 'test'; //product, test
|
const env = 'test'; //product, test
|
||||||
export default {
|
export default {
|
||||||
env: env,
|
env: env,
|
||||||
|
// apiBase: env === 'test'? 'http://192.168.100.226' : 'https://ghost.kingsome.cn',
|
||||||
apiBase: env === 'test'? 'https://ghost-test.kingsome.cn' : 'https://ghost.kingsome.cn',
|
apiBase: env === 'test'? 'https://ghost-test.kingsome.cn' : 'https://ghost.kingsome.cn',
|
||||||
cdnBase: 'https://h5games-al.kingsome.cn/emulator-static/',
|
cdnBase: 'https://h5games-al.kingsome.cn/emulator-static/',
|
||||||
version: '1.0.0',
|
version: '1.0.0',
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<!--游戏cell-->
|
<!--游戏cell-->
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
.recent-game-container {
|
||||||
|
background-color:#FFFFFF;
|
||||||
|
margin-bottom:8px;
|
||||||
|
}
|
||||||
.recent-game {
|
.recent-game {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
@ -25,28 +29,46 @@
|
|||||||
}
|
}
|
||||||
.comp-title {
|
.comp-title {
|
||||||
font-size:30rpx;
|
font-size:30rpx;
|
||||||
color:#777777;
|
color:#aaa;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
padding:13rpx 20rpx;
|
padding:15rpx 20rpx;
|
||||||
border-top:1px solid #eee;
|
|
||||||
background-color:#EFEFF4;
|
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.comp-title::after {
|
||||||
|
position: absolute;
|
||||||
|
left: 10px;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
border-top: 1rpx solid #eee;
|
||||||
|
background: #eee;
|
||||||
|
content: ' ';
|
||||||
}
|
}
|
||||||
.title-divider {
|
.title-divider {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
.selected {
|
.selected {
|
||||||
color: green;
|
color: #777777;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.selected::after{
|
||||||
|
position: absolute;
|
||||||
|
left: 15px;
|
||||||
|
right: 15px;
|
||||||
|
bottom: -6px;
|
||||||
|
border-top: 3px solid #777777;
|
||||||
|
background: #777777;
|
||||||
|
content: ' ';
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="recent-game-container">
|
||||||
<view class="comp-title">
|
<view class="comp-title">
|
||||||
<i class="icon-bookmark"></i>
|
<i class="icon-bookmark"></i>
|
||||||
<repeat for="{{titleList}}" item="titleStr" index="index">
|
<repeat for="{{titleList}}" item="titleStr" index="index">
|
||||||
<text class="{{idx === index ? 'selected': ''}}" @tap="selectTitle({{index}})">{{titleStr}}</text>
|
<text class="{{idx === index ? 'selected': ''}}" @tap="selectTitle({{index}})">{{titleStr}}</text>
|
||||||
<text class="title-divider {{titleStr? '' : 'hidden'}} {{index === titleList.length - 1 ? 'hidden' : ''}}">|</text>
|
<text class="title-divider {{titleStr? '' : 'hidden'}} {{index === titleList.length - 1 ? 'hidden' : ''}}"></text>
|
||||||
</repeat>
|
</repeat>
|
||||||
</view>
|
</view>
|
||||||
<view class="recent-game">
|
<view class="recent-game">
|
||||||
@ -67,7 +89,7 @@
|
|||||||
props = {
|
props = {
|
||||||
gameList: [],
|
gameList: [],
|
||||||
titleList: [],
|
titleList: [],
|
||||||
idx: {type: Number, default: -1}
|
idx: {type: Number, default: 0}
|
||||||
}
|
}
|
||||||
data = {
|
data = {
|
||||||
|
|
||||||
|
@ -40,10 +40,12 @@
|
|||||||
<view class="left"><i class="icon-bookmark"></i> 热门游戏</view>
|
<view class="left"><i class="icon-bookmark"></i> 热门游戏</view>
|
||||||
<view class="right" @tap="toSearch"><i class="icon-search"></i> 搜索</view>
|
<view class="right" @tap="toSearch"><i class="icon-search"></i> 搜索</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="record-list">
|
||||||
<repeat for="{{records}}" item="item" >
|
<repeat for="{{records}}" item="item" >
|
||||||
<recordCell :item="item" @gameCellTap.user="gameTap" :showAll.sync = 'showAll'/>
|
<recordCell :item="item" @gameCellTap.user="gameTap" :showAll.sync = 'showAll'/>
|
||||||
</repeat>
|
</repeat>
|
||||||
<zanLoadmore :loading.sync="loading" :nodata.sync="noData" :nomore.sync="noMore" nodata_str="暂无数据"></zanLoadmore>
|
<zanLoadmore :loading.sync="loading" :nodata.sync="noData" :nomore.sync="noMore" nodata_str="暂无数据"></zanLoadmore>
|
||||||
|
</view>
|
||||||
<toast/>
|
<toast/>
|
||||||
<inviteView :config.sync="inviteViewCfg" :btnList.sync="inviteBtns" @inviteBtnClick.user="inviteBtnClick" @needHideMe.user="hideInviteView"></inviteView>
|
<inviteView :config.sync="inviteViewCfg" :btnList.sync="inviteBtns" @inviteBtnClick.user="inviteBtnClick" @needHideMe.user="hideInviteView"></inviteView>
|
||||||
<zanToptips/>
|
<zanToptips/>
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row nowrap;
|
flex-flow: row nowrap;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
.game-cell .game-icon {
|
.game-cell .game-icon {
|
||||||
margin-right:10px;
|
margin-right:10px;
|
||||||
@ -53,11 +53,11 @@
|
|||||||
}
|
}
|
||||||
.game-cell::after {
|
.game-cell::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 15rpx;
|
left: 10px;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
border-top: 1rpx solid #e5e5e5;
|
border-top: 1rpx solid #eee;
|
||||||
background: #e5e5e5;
|
background: #eee;
|
||||||
content: ' ';
|
content: ' ';
|
||||||
}
|
}
|
||||||
.left-btn {
|
.left-btn {
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
page {
|
page {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
.container {
|
||||||
|
background-color: #EFEFF4;
|
||||||
|
}
|
||||||
.userinfo {
|
.userinfo {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -32,7 +35,7 @@ page {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
margin-bottom:15px;
|
margin-bottom:8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.zan-loadmore--nodata {
|
.zan-loadmore--nodata {
|
||||||
@ -43,7 +46,27 @@ page {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
font-size:30rpx;
|
font-size:30rpx;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
background-color:#EFEFF4;
|
background-color:#ffffff;
|
||||||
|
margin-bottom:1px;
|
||||||
|
margin-top: 1px;
|
||||||
|
}
|
||||||
|
.list-title::after{
|
||||||
|
position: absolute;
|
||||||
|
left: 15rpx;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
border-top: 1rpx solid #e5e5e5;
|
||||||
|
background: #e5e5e5;
|
||||||
|
content: ' ';
|
||||||
|
}
|
||||||
|
.list-title::before{
|
||||||
|
position: absolute;
|
||||||
|
left: 15rpx;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
border-top: 1rpx solid #e5e5e5;
|
||||||
|
background: #e5e5e5;
|
||||||
|
content: ' ';
|
||||||
}
|
}
|
||||||
.list-title .left{
|
.list-title .left{
|
||||||
margin-left:10rpx;
|
margin-left:10rpx;
|
||||||
@ -86,4 +109,7 @@ page {
|
|||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
.record-list {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user