const app = getApp() Component({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ ready: function (options) { }, methods:{ }, })