1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <home-frame @toPath="toPath">
- app
- </home-frame>
- </template>
- <script>
- import homeFrame from "../components/home-frame.vue";
- export default {
- components: {
- homeFrame
- },
- data() {
- return {
- };
- },
- onLoad() {
- },
- onShow() {
- },
- methods: {
- // 跳转页面
- toPath(e) {
- let url = `/${e.route}`;
- if (e.type == '0') uni.navigateTo({
- url
- })
- else if (e.type == '1') uni.redirectTo({
- url
- })
- else if (e.type == '2') uni.reLaunch({
- url
- })
- else if (e.type == '3') uni.switchTab({
- url
- })
- }
- },
- };
- </script>
- <style lang="scss">
- .content {}
- </style>
|