小程序可以通过 options 参数,判断用户通过何种方式进入小程序
options
例:1001 - 发现栏小程序主入口
onShow(options) { // 作用一: 判断小程序的进入场景 console.log("onShow:", options); },