cshenfu
2024-05-21 09d8c671d5e6e6045677bfb5218a5fb78c26aa0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
    methods: {
        navigateTo(page, auth = true) {
            uni.vk.navigateTo(page, auth)
        },
        redirectTo(page, auth = true) {
            uni.vk.redirectTo(page, auth)
        },
        goWebview(url, title) {
            // #ifdef H5
            window.location.href = url;
            // #endif
 
            // #ifdef APP-PLUS || MP
            this.navigateTo(
                "/pages/webview/webview?url=" + encodeURIComponent(url) + "&title=" + title,
                false
            )
            // #endif
        }
    }
}