小程序传统开发模式云开发模式什么是Serverless?云开发与 Serverless什么是小程序云开发?云开发优势与基础能力云开发优势
云开发基础能力云开发开通及控制台功能
代码结构初始化把调试基础库的版本改为最新: "tabBar":{"color": "#474747", "selectedColor": "#d43c43", "list":[{ "pagePath": "pages/playlist/playlist", "text":"音乐", "iconPath": "images/music.png", "selectedIconPath": "images/music-actived.png" },{ "pagePath": "pages/blog/blog", "text":"发现", "iconPath": "images/blog.png", "selectedIconPath": "images/blog-actived.png" },{ "pagePath": "pages/profile/profile", "text":"我的", "iconPath": "images/profile.png", "selectedIconPath": "images/profile-actived.png" } ] }, 调试可以看到,坐标栏的基本功能实现就差不多了: 代码规范
wx.cloud.callFunction({ name: 'login' }).then((res) => { console.log(res) this.setData({ openid: res.result.openid }) })
|
|