添加通用的载入webview的方法
This commit is contained in:
parent
60d2a74fc5
commit
0f8ccea56b
@ -39,4 +39,10 @@ export default class navMixin extends wepy.mixin {
|
||||
url: '/pages/webview?link=' + encodeURIComponent(link) + '&title=' + encodeURIComponent(title)
|
||||
})
|
||||
}
|
||||
|
||||
$toWebView(url) {
|
||||
wepy.navigateTo({
|
||||
url: '/pages/webview?link=' + encodeURIComponent(url) + '&title='
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user