2026-03-23 16:23:40 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="content ">
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
mapState
|
|
|
|
|
} from "vuex";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
2026-03-27 10:56:18 +08:00
|
|
|
return {}
|
2026-03-23 16:23:40 +08:00
|
|
|
},
|
2026-03-27 10:56:18 +08:00
|
|
|
onTabItemTap(item) {
|
|
|
|
|
// 监听 Tab 点击,立即跳转外部小程序
|
|
|
|
|
uni.navigateToMiniProgram({
|
|
|
|
|
appId: "wxdd371c9267b7299b",
|
|
|
|
|
path: "/pages/index/index",
|
2026-03-30 10:02:10 +08:00
|
|
|
success(res) {
|
2026-03-27 10:56:18 +08:00
|
|
|
console.log('跳转成功');
|
2026-03-30 10:02:10 +08:00
|
|
|
if (res.cancel) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "您已取消操作",
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 3000
|
|
|
|
|
})
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
uni.switchTab({
|
|
|
|
|
url: "/pages/index/index"
|
|
|
|
|
})
|
|
|
|
|
}, 500)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fail() {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "您已取消操作",
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 3000
|
|
|
|
|
})
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
uni.switchTab({
|
|
|
|
|
url: "/pages/index/index"
|
|
|
|
|
})
|
|
|
|
|
}, 500)
|
2026-03-23 16:23:40 +08:00
|
|
|
}
|
2026-03-27 10:56:18 +08:00
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
methods: {}
|
2026-03-23 16:23:40 +08:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
|
|
|
|
</style>
|