<template>
<view class="page">
<view class="content flex" >
<!-- D -->
<view class="left" >
<view class="left_title" @click="linkA()">
A标题
</view>
<view class="left_txt" v-if="type === 'A' ">
A内容
</view>
</view>
<!-- B -->
<view class="center">
<view class="center_title" @click="linkB()">
B标题
</view>
<view class="center_txt" v-if="type === 'B' ">
B内容
</view>
</view>
<!-- C -->
<view class="right">
<view class="right_title" @click="linkC()">
C标题
</view>
<view class="right_txt" v-if="type ===
uniapp 中tab切换多个单页面跳转v-if 和 click点击事件配合web页面也适用
![](https://img-home.csdnimg.cn/images/20240711042549.png)