Skip to content

Commit

Permalink
Merge pull request #139 from qiu-bohong/master
Browse files Browse the repository at this point in the history
加上有图的界面
  • Loading branch information
zengsn authored Nov 1, 2017
2 parents b3dab00 + 17ca103 commit 0228303
Show file tree
Hide file tree
Showing 26 changed files with 233 additions and 0 deletions.
1 change: 1 addition & 0 deletions 1517060324/20171025/pages/example/article/article.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Page({});
1 change: 1 addition & 0 deletions 1517060324/20171025/pages/example/article/article.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
30 changes: 30 additions & 0 deletions 1517060324/20171025/pages/example/article/article.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<view class="page">
<view class="page__hd">
<view class="page__title">王者荣耀</view>
<view class="page__desc">2015年腾讯天美发行的MOBA手游</view>
</view>
<view class="page__bd">
<view class="weui-article">
<view class="weui-article__h1">腾讯游戏</view>
<view class="weui-article__section">
<view class="weui-article__title">King of Glory</view>
<view class="weui-article__section">
<view class="weui-article__h3">2015年11月26日公测</view>
<view class="weui-article__p">
《王者荣耀》是由腾讯游戏开发并运行的一款运营在Android、IOS平台上的MOBA类手游,于2015年11月26日在Android、IOS平台上正式公测,游戏前期使用名称有《英雄战迹》、《王者联盟》。
</view>
<view class="weui-article__p">
<image class="weui-article__img" src="../images/88.jpeg" mode="aspectFit" style="height: 180px" />
<image class="weui-article__img" src="../images/77.jpg" mode="aspectFit" style="height: 180px" />
</view>
</view>
<view class="weui-article__section">
<view class="weui-article__h3">King of Glory</view>
<view class="weui-article__p">
游戏是类moba手游,游戏中的玩法以竞技对战为主,玩家之间进行1V1、3V3、5V5等多种方式的PVP对战,还可以参加游戏的冒险模式,进行PVE的闯关模式,在满足拥有五个英雄的条件后可以参加游戏的季度排位赛等。
</view>
</view>
</view>
</view>
</view>
</view>
6 changes: 6 additions & 0 deletions 1517060324/20171025/pages/example/article/article.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
page{
background-color: #FFFFFF;
}
image{
margin: 4px 0;
}
5 changes: 5 additions & 0 deletions 1517060324/20171025/pages/example/grid/grid.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Page({
data: {
grids: [0, 1, 2, 3, 4, 5, 6, 7, 8]
}
});
1 change: 1 addition & 0 deletions 1517060324/20171025/pages/example/grid/grid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
16 changes: 16 additions & 0 deletions 1517060324/20171025/pages/example/grid/grid.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<view class="page">
<view class="page__hd">
<view class="page__title">王者荣耀</view>
<view class="page__desc">King of Glory</view>
</view>
<view class="page__bd">
<view class="weui-grids">
<block wx:for="{{grids}}" wx:key="*this">
<navigator url="" class="weui-grid" hover-class="weui-grid_active">
<image class="weui-grid__icon" src="../images/123.png" />
<view class="weui-grid__label">Grid</view>
</navigator>
</block>
</view>
</view>
</view>
1 change: 1 addition & 0 deletions 1517060324/20171025/pages/example/grid/grid.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* pages/example/grid/grid.wxss */
1 change: 1 addition & 0 deletions 1517060324/20171025/pages/example/icons/icons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Page({});
1 change: 1 addition & 0 deletions 1517060324/20171025/pages/example/icons/icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
53 changes: 53 additions & 0 deletions 1517060324/20171025/pages/example/icons/icons.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<view class="page">
<view class="page__hd">
<view class="page__title">Icons</view>
<view class="page__desc">图标</view>
</view>
<view class="page__bd">
<view class="icon-box">
<icon type="success" size="93"></icon>
<view class="icon-box__ctn">
<view class="icon-box__title">成功</view>
<view class="icon-box__desc">用于表示操作顺利达成</view>
</view>
</view>
<view class="icon-box">
<icon type="info" size="93"></icon>
<view class="icon-box__ctn">
<view class="icon-box__title">提示</view>
<view class="icon-box__desc">用于表示信息提示;也常用于缺乏条件的操作拦截,提示用户所需信息</view>
</view>
</view>
<view class="icon-box">
<icon type="warn" size="93" color="#FFBE00"></icon>
<view class="icon-box__ctn">
<view class="icon-box__title">普通警告</view>
<view class="icon-box__desc">用于表示操作后将引起一定后果的情况</view>
</view>
</view>
<view class="icon-box">
<icon type="warn" size="93"></icon>
<view class="icon-box__ctn">
<view class="icon-box__title">强烈警告</view>
<view class="icon-box__desc">用于表示操作后将引起严重的不可挽回的后果的情况</view>
</view>
</view>
<view class="icon-box">
<icon type="waiting" size="93"></icon>
<view class="icon-box__ctn">
<view class="icon-box__title">等待</view>
<view class="icon-box__desc">用于表示等待</view>
</view>
</view>
<view class="icon_sp_area">
<icon type="success" size="23"></icon>
<icon type="success_no_circle" size="23"></icon>
<icon type="circle" size="23"></icon>
<icon type="warn" size="23" color="#F43530"></icon>
<icon type="download" size="23"></icon>
<icon type="info_circle" size="23"></icon>
<icon type="cancel" size="23"></icon>
<icon type="search" size="20"></icon>
</view>
</view>
</view>
28 changes: 28 additions & 0 deletions 1517060324/20171025/pages/example/icons/icons.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
icon{
margin-right: 13px;
}
.page__bd {
padding-left: 40px;
padding-right: 40px;
text-align: left;
}
.icon-box{
margin-bottom: 25px;
display: flex;
align-items: center;
}
.icon-box__ctn{
flex-shrink: 100;
}
.icon-box__title{
font-size: 20px;
}
.icon-box__desc{
margin-top: 6px;
font-size: 12px;
color: #888888;
}
.icon_sp_area {
margin-top: 10px;
text-align: left;
}
Binary file added 1517060324/20171025/pages/example/images/1.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 1517060324/20171025/pages/example/images/11.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 1517060324/20171025/pages/example/images/123.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 1517060324/20171025/pages/example/images/2.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 1517060324/20171025/pages/example/images/22.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 1517060324/20171025/pages/example/images/3.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 1517060324/20171025/pages/example/images/33.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 1517060324/20171025/pages/example/images/77.jpg
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 1517060324/20171025/pages/example/images/88.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions 1517060324/20171025/pages/example/images/base64.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions 1517060324/20171025/pages/example/list/list.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var base64 = require("../images/base64");
Page({
onLoad: function(){
this.setData({
icon: base64.icon20
});
}
});
1 change: 1 addition & 0 deletions 1517060324/20171025/pages/example/list/list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
75 changes: 75 additions & 0 deletions 1517060324/20171025/pages/example/list/list.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<view class="page">
<view class="page__hd">
<view class="page__title">王者荣耀</view>
<view class="page__desc">King of Glory</view>
</view>
<view class="page__bd">
<view class="weui-cells__title">坦克</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell">
<view class="weui-cell__bd">亚瑟</view>
<view class="weui-cell__ft">坦克</view>
</view>
</view>

<view class="weui-cells__title">射手</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell">
<view class="weui-cell__hd">
<image src="{{icon}}" style="margin-right: 5px;vertical-align: middle;width:20px; height: 20px;"></image>
</view>
<view class="weui-cell__bd">虞姬</view>
<view class="weui-cell__ft">射手</view>
</view>
<view class="weui-cell">
<view class="weui-cell__hd">
<image src="{{icon}}" style="margin-right: 5px;vertical-align: middle;width:20px; height: 20px;"></image>
</view>
<view class="weui-cell__bd">孙尚香</view>
<view class="weui-cell__ft">射手</view>
</view>
</view>

<view class="weui-cells__title">刺客</view>
<view class="weui-cells weui-cells_after-title">
<navigator url="" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__bd">李白</view>
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
</navigator>
<navigator url="" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__bd">荆轲</view>
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
</navigator>
</view>

<view class="weui-cells__title">法师</view>
<view class="weui-cells weui-cells_after-title">
<navigator url="" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__bd">小乔</view>
<view class="weui-cell__ft weui-cell__ft_in-access">法师</view>
</navigator>
<navigator url="" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__bd">梦奇</view>
<view class="weui-cell__ft weui-cell__ft_in-access">法师</view>
</navigator>
</view>

<view class="weui-cells__title">辅助</view>
<view class="weui-cells weui-cells_after-title">
<navigator url="" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__hd">
<image src="{{icon}}" style="margin-right: 5px;vertical-align: middle;width:20px; height: 20px;"></image>
</view>
<view class="weui-cell__bd">庄周</view>
<view class="weui-cell__ft weui-cell__ft_in-access">辅助</view>
</navigator>
<navigator url="" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__hd">
<image src="{{icon}}" style="margin-right: 5px;vertical-align: middle;width:20px; height: 20px;"></image>
</view>
<view class="weui-cell__bd">孙膑</view>
<view class="weui-cell__ft weui-cell__ft_in-access">辅助</view>
</navigator>
</view>
</view>
</view>
1 change: 1 addition & 0 deletions 1517060324/20171025/pages/example/list/list.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* pages/example/list/list.wxss */

0 comments on commit 0228303

Please sign in to comment.