2024-06-15 11:25:51 +08:00
|
|
|
<template>
|
2024-06-18 19:06:14 +08:00
|
|
|
<view class="content">
|
|
|
|
|
|
|
|
<view @click="ToReutn()" class="viewimage">
|
2024-06-15 11:25:51 +08:00
|
|
|
<image src="../../static/images/sign/return.png" />
|
|
|
|
</view>
|
2024-06-18 19:06:14 +08:00
|
|
|
|
|
|
|
<view class="content_title">
|
|
|
|
<!-- <u-tabs :lineWidth="25" :lineHeight="2" itemStyle="padding:11px;" lineColor="#B3D7FF" :list="list1"
|
|
|
|
@change="tabChange"></u-tabs> -->
|
|
|
|
|
|
|
|
<u-tabs lineColor="#B3D7FF" lineWidth="24" lineHeight="4" :scrollable="false"
|
|
|
|
:activeStyle="{ fontWeight: '600',fontSize:'40rpx',color: '#000000'}"
|
|
|
|
:inactiveStyle="{fontWeight: '400',fontSize:'36rpx',color: '#999999'}" :list="list1"
|
2024-06-15 11:25:51 +08:00
|
|
|
@change="tabChange"></u-tabs>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
2024-06-18 19:06:14 +08:00
|
|
|
|
|
|
|
<view style="margin-top: 30rpx;">
|
|
|
|
<view v-if="NewIndex === 1">
|
|
|
|
<view
|
|
|
|
style="position: fixed; top: 0;bottom: 1122rpx; left: 0; right: 0;background: linear-gradient(0deg, #ffffff, #c9f6f5); z-index: -1;">
|
|
|
|
</view>
|
|
|
|
<messagenotificationVue></messagenotificationVue>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view v-if="NewIndex === 0">
|
|
|
|
<addressbookVue></addressbookVue>
|
|
|
|
</view>
|
2024-06-15 11:25:51 +08:00
|
|
|
</view>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import {
|
|
|
|
reactive,
|
2024-06-18 19:06:14 +08:00
|
|
|
ref,
|
|
|
|
getCurrentInstance
|
2024-06-15 11:25:51 +08:00
|
|
|
} from "vue";
|
2024-06-18 19:06:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
const {
|
|
|
|
proxy
|
|
|
|
} = getCurrentInstance();
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-15 11:25:51 +08:00
|
|
|
import messagenotificationVue from "./messagenotification.vue";
|
|
|
|
import addressbookVue from "./addressbook.vue";
|
|
|
|
const list1 = reactive([{
|
|
|
|
name: '通讯录'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: '消息'
|
|
|
|
}
|
|
|
|
])
|
2024-06-18 19:06:14 +08:00
|
|
|
|
|
|
|
|
2024-06-15 11:25:51 +08:00
|
|
|
const NewIndex = ref(0);
|
2024-06-18 19:06:14 +08:00
|
|
|
|
2024-06-15 11:25:51 +08:00
|
|
|
function tabChange(index) {
|
|
|
|
console.log('当前选中的选项卡索引:', index);
|
|
|
|
NewIndex.value = index.index;
|
|
|
|
}
|
2024-06-18 19:06:14 +08:00
|
|
|
|
|
|
|
function ToReutn() {
|
|
|
|
// proxy.$tab.navigateTo(1)
|
|
|
|
uni.navigateBack({
|
|
|
|
delta: 1
|
|
|
|
});
|
|
|
|
}
|
2024-06-15 11:25:51 +08:00
|
|
|
</script>
|
|
|
|
|
2024-06-18 19:06:14 +08:00
|
|
|
<style scoped>
|
|
|
|
.u-tabs__wrapper__nav__line[data-v-0de61367] {
|
|
|
|
position: absolute !important;
|
|
|
|
bottom: 0rpx !important;
|
|
|
|
}
|
|
|
|
|
2024-06-15 11:25:51 +08:00
|
|
|
image {
|
|
|
|
width: 31rpx;
|
|
|
|
height: 44rpx;
|
|
|
|
}
|
2024-06-18 19:06:14 +08:00
|
|
|
|
|
|
|
.viewimage {
|
|
|
|
/* margin-left: 24rpx; */
|
|
|
|
vertical-align: middle;
|
|
|
|
display: block;
|
|
|
|
margin-left: 32rpx;
|
|
|
|
line-height: 88rpx;
|
|
|
|
padding-top: 20rpx;
|
|
|
|
}
|
|
|
|
.content {
|
|
|
|
/* margin-top: 110rpx; */
|
|
|
|
/* position: fixed; */
|
|
|
|
display: flex;
|
|
|
|
margin-right: 32rpx;
|
|
|
|
width: 750rpx;
|
|
|
|
height: 88rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content_title {
|
|
|
|
margin: auto;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-left: 186rpx;
|
|
|
|
}
|
2024-06-15 11:25:51 +08:00
|
|
|
</style>
|