Skip to content

Commit

Permalink
1. 界面美化
Browse files Browse the repository at this point in the history
2. 修复某些手机上游戏页面会滚动的bug
  • Loading branch information
zhuobinggang committed Oct 18, 2017
1 parent cea6edc commit 98c0ab7
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 10 deletions.
17 changes: 9 additions & 8 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,24 @@

],
"window":{
"navigationBarBackgroundColor":"#ffffff",
"navigationBarTextStyle":"#1AAD16",
"navigationBarTitleText":"微信接口功能演示",
"backgroundColor":"#eeeeee",
"backgroundTextStyle":"light"
"navigationBarBackgroundColor":"#333",
"navigationBarTitleText":"2048小游戏"
},
"tabBar": {
"color": "#353535",
"selectedColor": "#3cc51f",
"borderStyle": "white",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages/index/index",
"text": "游戏"
"text": "游戏",
"iconPath": "./assets/diamond.png",
"selectedIconPath": "./assets/diamond.png"
}, {
"pagePath": "pages/logs/logs",
"text": "日志"
"text": "日志",
"iconPath": "./assets/star.png",
"selectedIconPath": "./assets/star.png"
}]
},
"networkTimeout": {
Expand Down
Binary file added assets/diamond.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/star.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion pages/2048/2048.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"navigationBarTitleText": "2048小游戏",
"backgroundColor":"#faf8ef",
"backgroundTextStyle":"#776e65"
"backgroundTextStyle":"#776e65",
"disableScroll":"true"
}
2 changes: 2 additions & 0 deletions pages/2048/2048.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
</view>

<view class="game-container">

<!--游戏结束显示 -->
<view class="game-message game-{{over ? (win ? 'won' : 'over') : ''}}">
<text class="over-msg">{{overMsg}}</text>
<view class="lower">
Expand Down
1 change: 1 addition & 0 deletions pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var config = {
}
};

//设置属性名"startName"到相应游戏页面的映射
config.data.gameList.forEach(function(v) {
config['start' + v] = function() {

Expand Down
3 changes: 2 additions & 1 deletion pages/index/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"navigationBarTitleText":"游戏列表"
"navigationBarTitleText":"游戏列表",
"disableScroll": "true"
}
1 change: 1 addition & 0 deletions pages/index/index.wxss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**index.wxss**/
.more{
/*浅灰色*/
color: #aaa;
font-size: 14px;
position:fixed;
Expand Down
27 changes: 27 additions & 0 deletions project.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"description": "项目配置文件。",
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true
},
"compileType": "weapp",
"libVersion": "1.5.4",
"appid": "touristappid",
"projectname": "wxapp-2048",
"condition": {
"weapp": {
"current": -1,
"list": []
},
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
}
}
}

0 comments on commit 98c0ab7

Please sign in to comment.