Explorar el Código

feat customAppletsShowEvent 埋点

erekook hace 1 año
padre
commit
827dde8b7c
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      app.js

+ 5 - 0
app.js

@@ -34,6 +34,11 @@ App({
         wx.setStorageSync('scene', options.scene)// 储存场景值
     },
 
+    onShow: function (opt) {
+        console.log('onShow-小程序进入前台', opt)
+        SendEvent('customAppletsShowEvent', {}, this)
+    },
+
     // 登录方法
     login(promotionid) {
         return new Promise((resolve, reject) => {