Browse Source

feat customAppletsShowEvent 埋点

erekook 1 year ago
parent
commit
827dde8b7c
1 changed files with 5 additions and 0 deletions
  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) => {