<view :class="{'active': tabType!=1}" @click="changeTab(0)"><text class="title">{{'修改登录密码'+tabType}}</text></view>
<view :class="{'active': tabType==1}" @click="changeTab(1)"><text v-else class="title">{{'设置支付密码'+tabType}}</text></view>
const tabType = ref(0)
const changeTab = (type)=>{
tabType.value = type
}
z***@gmail.com (作者)
感谢,已经解决
2024-09-25 23:51