优化页面
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import addPrefixToHeaderIcon from './addPrefixToHeaderIcon.js'
|
||||
export default function request(urldata) {
|
||||
const { url, data, method, header, userInfo } = urldata;
|
||||
const baseUrl = "http://120.26.251.180:8086/"+ url;
|
||||
const baseUrl = "https://api.yolojt.com/"+ url;
|
||||
// const baseUrl = "http://192.168.0.218:8086/"+ url;
|
||||
if (userInfo) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
>PK大厅</view
|
||||
>
|
||||
<!-- <view @click="screening" class="Screening">筛选</view>
|
||||
<image @click="Search" src="../../static/Searching.png" class="filter-icon" /> -->
|
||||
<image @click="Search" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Searching.png" class="filter-icon" /> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user