Browse Source

feat customAppletsShowEvent 埋点

erekook 1 năm trước cách đây
mục cha
commit
827dde8b7c
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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) => {