app.json 全局配置
"pages": [
"pages/index/index",
"pages/mine/mine",
"pages/login/login",
页面定义【js json wxml wxss 包含】
标题状态栏设置
"window": {
"navigationBarBackgroundColor": "#EDEDED",
"navigationBarTitleText": "圈圈商城",
"navigationBarTextStyle": "black"
}
权限设置
"permission": {
定位相关
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
底部Tab设置
"tabBar": {
"backgroundColor": "#ffffff",
"color": "#999999",
"selectedColor": "#999999",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "tabbarComponent/icon/icon_home.png",
"selectedIconPath": "tabbarComponent/icon/icon_home_HL.png"
},
{
"pagePath": "pages/mine/mine",
"text": "我的",
"iconPath": "tabbarComponent/icon/icon_mine.png",
"selectedIconPath": "tabbarComponent/icon/icon_mine_HL.png"
} ]
}
【?】
“sitemapLocation”: “sitemap.json”
app.wxss 全局CSS
@import "/miniprogram_npm/vant-weapp/common/index.wxss";
@import "/utils/iconfont.wxss";
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
page{
font-family:-apple-system-font,Helvetica Neue,sans-serif
}
app.js 程序入口
App({
onLaunch: function() {
globalData: {
phone: '15858608007',
systemInfo: null, //客户端设备信息
userInfo: null,
code: null,
encryptedData: null,
执行完这个 开始执行 page下的主要
project.config.json项目的配置
项目的配置
如APPID 等基本配置