账户中心 退出系统
5.0 版本 3.0 版本
使用手册 模板中心 账户中心 合作 · 服务
快速开始
框架介绍版权要求
更新日志
常见问题
框架部署目录结构
版本差别V5 vs V3
皮肤说明
nvue 说明
数据转换格式问题
页面布局 ( 13 )
页面组件 独创 · 好用
全屏加载 + 挂件
自定义头部返回 · 主页
自定义头部动态变化
自定义头部双击回顶部
返回顶部组件组件模式
自定义底部详情模式
自定义 tabbar凸出按钮
吸顶元素插槽实现
动态吸顶逻辑演示
iPhone 底部适配自动适配
小程序胶囊按钮躲避
下拉选择筛选 · 排序
框架基础 ( 7 )
文本相关尺寸及修饰
定位样式absolute · fixed
手势操作触屏 · 缩放
内置图标
按钮样式
常用标题更多 · 换一批
动画效果
Grace.JS ( 16 )
工具介绍
网络请求
页面跳转
数据缓存
图片操作
设备信息
消息提示
头部导航 动态设置
底部导航 动态设置
元素选择 尺寸获取
字符常用
数组操作
随机数据
日期时间
延时循环
对象操作
请求工具库 ( 7 )
工具库介绍
GET 请求
POST 请求
upload 上传
签名验证
用户登录检查
后端代码 php 版本示例
常用组件 ( 18 )
图片组件等比缩放
排序按钮
搜索组件
徽章角标
标签组件
功能标签选择 · 删除
星级组件
倒计时组件
城市选择
地区联动省市区三级
链接组件
为空展示
多图选择
多图上传
头像群组
数值动画
PK 投票
抽奖转盘
常用布局 ( 10 )
Flex布局必备技能
宫格布局默认5格
普通表格
数据表格
横向公告
时间轴布局
步骤展示
骨架加载
瀑布流布局
启动页广告全屏轮播形式
列表布局 ( 8 )
列表布局样式模式
滑动列表
可选列表
全选列表
树状列表
排序列表竖向拖拽
卡片列表
名片卡片
切换布局 ( 8 )
切换导航单行
切换导航多行
局部选项卡
全屏选项卡布局原理
分段切换
折叠面板
竖向切换导航适配
分类切换
滚动 · 轮播 ( 6 )
滚动区域原生 scroll-view
滚动公告基于 swiper
无缝滚动横向文本形式
无缝滚动横向卡片形式
竖向公告顺序卡片形式
轮播组件
刷新加载 ( 5 )
下拉刷新基于页面组件
加载更多基于页面组件
刷新和加载基于页面组件
刷新和加载自定义组合
刷新和加载原生组合模式
弹层 · 对话框 ( 6 )
遮罩弹层 popup
顶部消息框
模态对话框
底部操作表
右侧菜单
弹出菜单 popup menu
表单相关 ( 12 )
表单元素 form 布局
表单验证
字数限制
动态表单 添加删除元素
分步提交
步进器
数字键盘
滑动解锁
进度滑块 单滑块
区间滑块 双滑块
功能标签 选择 · 删除
点选按钮
日期时间 ( 6 )
日历日期 带有农历及时间
日期区间 日历形式
日期时间 picker 模式
时间段选择 picker 模式
日程日历 日程 · 提醒
横向日历 布局模式
文章相关 ( 10 )
文章列表 基础用法
文章列表 切换模式
文章列表 全屏选项卡模式
编辑器 自主研发 · 多端兼容
文章详情 编辑器解析
富文本 字符串转数组
展开阅读
评论布局
评论提交
底部分享
媒体播放 ( 2 )
音乐播放器
视频播放器
地图使用 ( 3 )
位置标注
地图周边
拖拽定位
用户模板 ( 8 )
用户登录
短信登录
短信验证
个人中心
头像剪裁
证件上传
会员排行榜
手写签名
电商常用 ( 10 )
商品列表
商品详情
订单中心
购物车模板
排序与筛选
地址列表
地址添加
抽奖模板
分类图标
优惠券组件
即时通讯 ( 3 )
消息展示组件
消息输入组件
消息列表展示
二维码及条码 ( 3 )
二维码生成
条形码生成
海报模板
会员排行模板

手册版本 V5.0

组件介绍

带有“背景大图”的排行榜界面,请跟据项目实际情况进行修改;

页面配置

请开启页面自定义导航模式 :
,{
	"path" : "pages/9.templates/member/ranking-list",
	"style" :                                                                                    
	{
		"navigationBarTitleText": "GraceUI · 会员排行",
		"navigationStyle" : "custom"
	}
	
}

兼容平台

H5APP小程序NVUE
✔✔✔✔

演示代码

UNI 普通版本
NVUE 版本
<template>
	<gui-page :customHeader="true" :fullPage="true" 
	headerStyle="background-color:rgba(255,255,255,0)" 
	statusBarStyle="background-color:rgba(255,255,255,0)" 
	:isHeaderSized="false">
		<!-- 自定义头部导航 -->
		<view slot="gHeader">
			<!-- 返回按钮 -->
			<view style="margin-left:20rpx; margin-top:20rpx;">
				<gui-header-leading :onlyBack="true" 
				buttonStyle="color:#FFFFFF;"></gui-header-leading>
			</view>
		</view>
		<!-- 页面主体 -->
		<view slot="gBody" class="gui-flex1" style="background-color:#F5F6F8;">
			<!-- 背景图片 -->
			<image src="https://staticimgs.oss-cn-beijing.aliyuncs.com/ydbg.png" 
			class="bgimg"></image>
			<!-- 列表主体 -->
			<view class="ranking-list gui-absolute-lt" 
			:style="{top:'440rpx', left:'30rpx', height:mainHeight+'px'}">
				<!-- 头部个人信息 -->
				<view class="gui-flex gui-rows gui-justify-content-center" 
				style="margin-top:38rpx;">
					<view class="header-msg-item gui-flex">
						<text class="header-msg-text">19000</text>
						<text class="header-msg-text-small">步</text>
					</view>
					<view class="header-msg-item gui-flex">
						<image class="header-msg-face" 
						src="https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png" mode="widthFix"></image>
					</view>
					<view class="header-msg-item gui-flex">
						<text class="header-msg-text">18</text>
						<text class="header-msg-text-small">名</text>
					</view>
				</view>
				<view class="ranking-lists">
					<scroll-view :scroll-y="true" 
					:style="{height : (mainHeight - 100) + 'px'}">
						<view class="ranking-lists-item gui-flex" 
						v-for="(item,index) in rankingList" :key="index">
							<view class="ranking-lists-num gui-block-text" 
							:style="{color:item.color?item.color:''}">{{index+1}}</view>
							<image class="ranking-lists-image" 
							:src="item.face" mode="widthFix"></image>
							<view class="ranking-lists-content">
								<text class="ranking-lists-content-name gui-block-text">{{item.name}}</text>
								<text class="ranking-lists-content-desc gui-block-text gui-color-gray">{{item.num}} 步</text>
							</view>
							<view class="ranking-lists-zan">
								<text 
								:class="[
									'gui-icons', 'gui-block-text', 
									'ranking-lists-zan-icon', 
									item.iszan ? 'zan-active':'']">&#xe605;</text>
								<text class="ranking-lists-zan-num gui-block-text gui-color-gray">{{item.zan}}</text>
							</view>
						</view>
						<view class="" style="height:60rpx;"></view>
					</scroll-view>
				</view>
			</view>
		</view>
	</gui-page>
</template>
<script>
var graceJS = require('@/GraceUI5/js/grace.js');
export default {
	data() {
		return {
			mainHeight:300,
			rankingList : [
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/2.png', 
				name:'小花儿', num:'30000', zan:999, iszan:true, color:'#FF0036'},
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png', 
				name:'武哥哥', num:'28000', zan:952, iszan:false, color:'#FF9B00'},
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/2.png', 
				name:'李喜梅', num:'26000', zan:900, iszan:false, color:'#FFCC00'},
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png', 
				name:'南宫喵', num:'25000', zan:822, iszan:false},
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/2.png', 
				name:'吴小莉', num:'23000', zan:605, iszan:false},
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png', 
				name:'静默茶', num:'20000', zan:582, iszan:false},
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/2.png', 
				name:'小甜甜', num:'18000', zan:521, iszan:false},
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png', 
				name:'九国公', num:'16000', zan:500, iszan:false},
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/2.png', 
				name:'冷风孙', num:'15000', zan:388, iszan:false},
				{face:'https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png', 
				name:'布谷鸟', num:'10000', zan:219, iszan:false}
			]
		}
	},
	onLoad:function () {
		var systemInfo = graceJS.system();
		this.mainHeight = systemInfo.windowHeight - uni.upx2px(500);
	},
	methods: {
		
	}
}
</script>
<style scoped>
.bgimg{width:750rpx; height:750rpx;}
.ranking-list{width:690rpx; background-color:rgba(255,255,255,1); border-radius:20rpx; overflow:hidden;}
.header-msg-item{width:200rpx; flex-direction:row; justify-content:center; align-items:center;}
.header-msg-text{font-size:32rpx; font-weight:bold; color:#666666;}
.header-msg-text-small{font-size:22rpx; margin:10rpx; color:#666666;}
.header-msg-face{width:138rpx; height:138rpx; border-radius:120rpx;}
.ranking-lists{padding:25rpx;}
.ranking-lists-item{margin-bottom:28rpx; flex-direction:row; justify-content:space-between; flex-wrap:nowrap; align-items:center;}
.ranking-lists-num{width:60rpx; line-height:80rpx; font-size:50rpx; color:#666666; font-weight:bold; font-style:italic; text-align:center;}
.ranking-lists-image{width:100rpx; height:100rpx; border-radius:80rpx; margin:0 20rpx;}
.ranking-lists-content{width:200rpx; margin:0 10rpx; flex:1;}
.ranking-lists-content-name{font-size:30rpx; line-height:56rpx; color:#333333; line-height:50rpx;}
.ranking-lists-content-desc{font-size:24rpx; line-height:36rpx}
.ranking-lists-zan{width:80rpx;}
.ranking-lists-zan-icon{font-size:50rpx; line-height:60rpx; text-align:center;}
.ranking-lists-zan-num{font-size:22rpx; text-align:center;}
.zan-active{color:#FF0036;}
</style>