cshenfu
2024-06-27 58aa6e282bb343503be3cb198948328ea3ed7b79
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
        }
    }
}