1234567891011121314151617181920212223242526272829 |
- 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
- })
- },
- },
- methods: {
- toAndroidLogin() {
- wx.redirectTo({
- url: '/pages/donutLogin/index',
- })
- }
- }
- })
|