添加通用的载入webview的方法

This commit is contained in:
zhl 2019-04-22 21:06:07 +08:00
parent 60d2a74fc5
commit 0f8ccea56b

View File

@ -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='
})
}
}