12345678910111213141516171819202122 |
- const app = getApp()
- import {
- userEvent
- } from '~/api/global'
- module.exports = Behavior({
- data: {
- isIos: app.globalData.isIOS,
- },
- pageLifetimes: {
- show() {
-
- var pages = getCurrentPages()
- var currentPage = pages[pages.length - 1]
- var url = currentPage.route
- userEvent({
- action: this.data.isIos ? 'PV_IOS' : 'PV_ANDROID',
- targetContent: url
- })
- },
- },
- })
|