继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

微信小程序开发实战(云开发)--资产管理工具

weixin_慕九州5175524
关注TA
已关注
手记 1
粉丝 0
获赞 0

添加首页 menu页面

###截图展示

menu.js源码

						// pages/menu/menu.js
						Page({

							/**
							 * 页面的初始数据
							 */
							data: {

							},

							/**
							 * 生命周期函数--监听页面加载
							 */
							onLoad: function (options) {

							},

							/**
							 * 生命周期函数--监听页面初次渲染完成
							 */
							onReady: function () {

							},

							/**
							 * 生命周期函数--监听页面显示
							 */
							onShow: function () {

							},

							/**
							 * 生命周期函数--监听页面隐藏
							 */
							onHide: function () {

							},

							/**
							 * 生命周期函数--监听页面卸载
							 */
							onUnload: function () {

							},

							/**
							 * 页面相关事件处理函数--监听用户下拉动作
							 */
							onPullDownRefresh: function () {

							},

							/**
							 * 页面上拉触底事件的处理函数
							 */
							onReachBottom: function () {

							},

							/**
							 * 用户点击右上角分享
							 */
							onShareAppMessage: function () {

							}
						})

menu.json 源码

		{
			"usingComponents": {},
			"navigationStyle": "custom",
			"backgroundColor": "#fff",
			"backgroundTextStyle": "light",
			"navigationBarBackgroundColor": "#fff",
			"navigationBarTitleText": "理财小助手",
			"navigationBarTextStyle": "black"
		}

menu.wxml 源码

								
										 你好 资产管理management购买判断judge使用说明instructions 
										联系我们Contact

								

menu.wxss 源码

						/* pages/menu/menu.wxss */
					@import "../../colorui/main.wxss";
					@import "../../colorui/icon.wxss";

					page{
						background-color: white;
					}

					.cardTitle{
						color: #fff;
						padding: 90rpx 60rpx;
						font-size: 40rpx;
						font-weight: 300;
						transform: skew(-10deg, 0deg);
						position: relative;
						text-shadow: 0px 0px 6rpx rgba(0,0,0,0.3)
					}

					.cardTitle::before{
						content: "";
						position: absolute;
						width: 60rpx;
						height: 6rpx;
						border-radius: 20rpx;
						background-color: #fff;
						display: block;
						top: 60rpx;
						left: 50rpx;  
						transform: skew(10deg, 0deg);
					}
					.cardTitle::after{
						content: "";
						position: absolute;
						width: 140rpx;
						border-radius: 6rpx;
						height: 24rpx;
						background-color: #fff;
						display: block;
						bottom: 76rpx;
						left: 90rpx;  
						transform: skew(10deg, 0deg);
						opacity: 0.1;
					}


					.scrollPage {
						height: 100vh;
					}

					.nav-list {
						display: flex;
						flex-wrap: wrap;
						padding: 0px 40rpx 0px;
						justify-content: space-between;
					}

					.nav-li {
						padding: 30rpx;
						border-radius: 12rpx;
						width: 45%;
						margin: 0 0 40rpx;
						background-image: url(https://image.weilanwl.com/color2.0/cardBg.png);
						background-size: cover;
						background-position: center;
						position: relative;
						z-index: 1;
					}

					.nav-li::after {
						content: "";
						position: absolute;
						z-index: -1;
						background-color: inherit;
						width: 100%;
						height: 100%;
						left: 0;
						bottom: -10%;
						border-radius: 10rpx;
						opacity: 0.2;
						transform: scale(0.9, 0.9);
					}

					.nav-li.cur {
						color: #fff;
						background: rgb(94, 185, 94);
						box-shadow: 4rpx 4rpx 6rpx rgba(94, 185, 94, 0.4);
					}

					.nav-title {
						font-size: 32rpx;
						font-weight: 300;
					}

					.nav-title::first-letter {
						font-size: 40rpx;
						margin-right: 4rpx;
					}

					.nav-name {
						font-size: 28rpx;
						text-transform: Capitalize;
						margin-top: 20rpx;
						position: relative;
					}

					.nav-name::before {
						content: "";
						position: absolute;
						display: block;
						width: 40rpx;
						height: 6rpx;
						background: #fff;
						bottom: 0;
						right: 0;
						opacity: 0.5;
					}

					.nav-name::after {
						content: "";
						position: absolute;
						display: block;
						width: 100rpx;
						height: 1px;
						background: #fff;
						bottom: 0;
						right: 40rpx;
						opacity: 0.3;
					}

					.nav-name::first-letter {
						font-weight: bold;
						font-size: 36rpx;
						margin-right: 1px;
					}

					.nav-li text {
						position: absolute;
						right: 30rpx;
						top: 30rpx;
						font-size: 52rpx;
						width: 60rpx;
						height: 60rpx;
						text-align: center;
						line-height: 60rpx;
					}

					.text-light {
						font-weight: 300;
					}



					.userinfo-avatar {  
						overflow:hidden;  
						display: block;  
						width: 80rpx;  
						height: 80rpx;  
						margin-left: 50rpx;  
						margin-top: 70rpx;  
						border-radius: 50%;  
						border: 2px solid #fff;  
						box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);  
					}  

					.userinfo{  
						/* color: #fff; */  
						font-size: 14px;  
						background-color: #c0c0c0;  
						border-radius:40%;  
					}
打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP