优化页面

This commit is contained in:
pengxiaolong
2025-06-10 23:06:51 +08:00
parent 8c70c2c850
commit 3c2d7e5959
974 changed files with 353 additions and 87597 deletions

View File

@@ -29,7 +29,8 @@
</template>
<script setup>
import NewAddedPk from '../../pages/NewAddedPk/NewAddedPk.vue'
import NewAddedPk from "../../pages/NewAddedPk/NewAddedPk.vue";
import VerifyLogin from "../VerifyLogin.js";
import { getCurrentInstance, defineProps, onMounted, reactive, ref } from "vue";
let showMiddleButton = ref(false);
@@ -38,34 +39,34 @@ const props = defineProps({
});
let tabList = reactive([
{
iconPath: "../../static/Pk.png",
selectedIconPath: "../../static/PkClick.png",
iconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Pk.png",
selectedIconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/PkClick.png",
text: "PK",
pagePath: "/pages/Home/Home",
middleClass: "",
},
{
iconPath: "../../static/Forum.png",
selectedIconPath: "../../static/Forumclick.png",
iconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forum.png",
selectedIconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forumclick.png",
text: "论坛",
pagePath: "/pages/Forum/Forum",
middleClass: "",
},
{
iconPath: "../../static/jiahao.png",
selectedIconPath: "../../static/jiahao.png",
iconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",
selectedIconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",
text: "",
pagePath: "/pages/c/c",
middleClass: "",
},
{
iconPath: "../../static/Message.png",
selectedIconPath: "../../static/Messageclick.png",
iconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Message.png",
selectedIconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Messageclick.png",
text: "消息",
},
{
iconPath: "../../static/Mine.png",
selectedIconPath: "../../static/Mineclick.png",
iconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mine.png",
selectedIconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mineclick.png",
text: "我的",
pagePath: "/pages/Mine/Mine",
middleClass: "",
@@ -95,11 +96,11 @@ function setTabBar() {
tabList[middleIndex].middleClass = "mid-button";
}
}
const createModule = ref()
const createModule = ref();
function openPopupQuantity() {
createModule.value.open()
}
function openPopupQuantity() {
createModule.value.open();
}
//组件返回关闭指令
function closeSuccess() {
// addSuccess.value.close();
@@ -110,18 +111,33 @@ const disabledScroll = () => {
};
//tab点击事件
function handlePush(item, index) {
if (index === 2) {
//打开弹窗
// addSuccess.value.open();
openPopupQuantity()
return;
}
if (item.text === "消息") {
uni.navigateTo({
url: "/TUIKit/components/TUIConversation/index",
animationType: 'none',
});
}else {
if (index === 3) {
VerifyLogin().then((res) => {
if (res) {
uni.navigateTo({
url: "/TUIKit/components/TUIConversation/index",
animationType: "none",
});
}
});
} else if (index === 2) {
//打开弹窗
VerifyLogin().then((res) => {
if (res) {
openPopupQuantity();
return;
}
});
} else if (index === 4) {
VerifyLogin().then((res) => {
if (res) {
uni.switchTab({
url: "/pages/Mine/Mine",
animationType: "none",
});
}
});
} else {
uni.switchTab({
url: item.pagePath,
});
@@ -168,7 +184,7 @@ function handlePush(item, index) {
padding: 0; //解决偏移
z-index: 0;
}
.createModule{
.createModule {
position: fixed;
bottom: 0;
right: 0;
@@ -182,8 +198,6 @@ function handlePush(item, index) {
.tab-list-middle {
position: relative;
// background: url('https://res.paquapp.com/popmartvip/home/nav_bar_bg_2x.png') no-repeat center center;
background-size: cover;
}