配置基本环境
1、下载微信开发工具,注册成为管理员
2、
3、app.js
App({
})
4、app.josn
{
"pages": [
"pages/index/index",
"pages/wode/wode",
"pages/pay/pay",
"pages/pay1/pay",
"pages/faxian/faxian",
"pages/payResult/payResult",
"pages/Propay/Propay"
],
"window": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "江通农业",
"navigationBarBackgroundColor": "#69c3aa",
"backgroundColor": "#fbf9fe"
},
"tabBar": {
"color": "#929292",
"backgroundColor": "#ffffff",
"selectedColor": "#69C3AA",
"borderStyle": "white",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "image/shouye1.png",
"selectedIconPath": "image/shouye.png"
},
{
"pagePath": "pages/faxian/faxian",
"text": "活动",
"iconPath": "image/huodong1.png",
"selectedIconPath": "image/huodong.png"
},
{
"pagePath": "pages/wode/wode",
"text": "我的",
"iconPath": "image/wode1.png",
"selectedIconPath": "image/wode.png"
}
]
},
"sitemapLocation": "sitemap.json"
}
5、app.wxss
@import "colorui/main.wxss";#引入colorui模板
@import "colorui/icon.wxss";#引入colorui图标
page {
background-color: #f5f6f7;
height: 100%;
letter-spacing: 1px;
}