新增toPage方法
This commit is contained in:
parent
5053a0f8df
commit
738bc1c708
|
@ -156,6 +156,13 @@ function rpx2px(rpx) {
|
|||
return (rpx / 750) * windowWidth;
|
||||
}
|
||||
|
||||
function toPage(url, options) {
|
||||
uni.navigateTo({
|
||||
...{ url: url, },
|
||||
...options
|
||||
});
|
||||
}
|
||||
|
||||
export default {
|
||||
time,
|
||||
datetime,
|
||||
|
@ -166,4 +173,5 @@ export default {
|
|||
debounce,
|
||||
px2rpx,
|
||||
rpx2px,
|
||||
toPage,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue