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