taro开发微信小程序,taro框架目前是移动端的混合全能框架,对于微信小程序平台编译优秀,taro结合webpack可以编译微信小程序,anroid,ios,H5等平台代码,taro ui是基于taro的一套ui界面库。本栏博客介绍如何使用使Trao和Taro UI框架来开发移动端微信小程序.
1.在项目开发文件夹中新建2个文件夹-配置2个tab页面
index/index.js
me/me.js
2.找到文件夹中的app.js
config = {
pages: [
'pages/me/me',
'pages/index/index',
],
tabBar: {
color: "#626567",
selectedColor: "#6e9eea",
backgroundColor: "#FBFBFB",
borderStyle: "white",
list: [{
pagePath: "pages/index/index",
text: "",
iconPath: "",
selectedIconPath: ""
},
{
pagePath: "pages/maine/maine",
text: "我的",
iconPath: "",
selectedIconPath: ""
}]
}
}
最好都在js文件中加点文本标签之类的看看效果
3.重新编译项目
taro开发微信小程序-解决编译报错Error: EISDIR: illegal operation on a directory(九)
taro开发微信小程序-添加开发者预览,上传测试版本(十四)
taro开发微信小程序-数据共享于缓存使用Redux(十五)
errMsg:getLocation:fail:require permission desc-小程序无法定位[解决](十六)