颜色、标题可以自定
"window": { "navigationBarTextStyle": "white", "navigationBarTitleText": "Our Wedding", "navigationBarBackgroundColor": "#ff5d73" }
"pages": [ "pages/index/index", "pages/photo/photo", "pages/video/video", "pages/guest/guest" ]
"tabBar": { "color": "#000000", "selectedColor": "#ff5d73", "list": [{ "pagePath": "pages/index/index", "text": "love", "iconPath": "imgs/wedding0.png", "selectedIconPath": "imgs/wedding1.png" },{ "pagePath": "pages/photo/photo", "text": "photo", "iconPath": "imgs/photo0.png", "selectedIconPath": "imgs/photo1.png" },{ "pagePath": "pages/video/video", "text": "video", "iconPath": "imgs/video0.png", "selectedIconPath": "imgs/video1.png" },{ "pagePath": "pages/guest/guest", "text": "guest", "iconPath": "imgs/guest0.png", "selectedIconPath": "imgs/guest1.png" }] }
盒模型
表单元素
字体
图片
布局
导入@import
"navigationBarTitleText": "Our Wedding"
<view>
<text>
<image>
无
弹性盒子布局flex
网格布局grid
对齐text-align
圆角border-radius
负margin
margin-top: -180rpx;
背景渐变linear-gradient
background-image: linear-gradient(#ec2c66, #690422);
"navigationBarTitleText": "Photos"
<swiper>
<swiper-item>
<image>
图片列表数据
或直接在wxml里指定
"navigationBarTitleText": "Videos"
<video>
<view>
<text>
视频列表数据
或直接在wxml里指定
"navigationBarTitleText": "Guests"
<form>
<input>
<radio>
<radio-group>
<checkbox>
<checkbox-group>
<button>
文字两端对齐
text-align-last: justify;