This commit is contained in:
pengxiaolong
2025-05-12 22:19:21 +08:00
parent 033cb649f8
commit c45c7c4de1
33 changed files with 322 additions and 58 deletions

View File

@@ -18,13 +18,13 @@
<imgSuccess @closeSuccess="closeSuccess"></imgSuccess>
</uni-popup> -->
</view>
<moduleSelect ref="createModule"></moduleSelect>
<!-- <moduleSelect ref="createModule"></moduleSelect> -->
</view>
</template>
<script setup>
import moduleSelect from './moduleSelect.vue'
// import moduleSelect from './moduleSelect.vue'
import {
getCurrentInstance,
defineProps,
@@ -42,39 +42,39 @@
tabIndex: Number
})
let tabList = reactive([{
iconPath: '/static/mh/img/tabbar1.png',
selectedIconPath: '/static/mh/img/tabbarSetl1.png',
text: '探索',
pagePath: '/pages/index/index',
iconPath: '../../static/Pk.png',
selectedIconPath: '../../static/PkClick.png',
text: 'PK',
pagePath: '../../pages/Home/Home',
middleClass: ''
},
{
iconPath: '/static/mh/img/tabbar3.png',
selectedIconPath: '/static/mh/img/tabbarSetl3.png',
iconPath: '../../static/Forum.png',
selectedIconPath: '../../static/Forumclick.png',
// text: '消息',
text: 'AI绘图',
pagePath: '/pages/messages/messages',
text: '论坛',
pagePath: '',
middleClass: ''
},
{
iconPath: '/static/mh/img/add.png',
selectedIconPath: '/static/mh/img/add.png',
iconPath: '../../static/jiahao.png',
selectedIconPath: '../../static/jiahao.png',
text: '',
pagePath: '/pages/c/c',
middleClass: ''
},
{
iconPath: '/static/mh/img/tabbar2.png',
selectedIconPath: '/static/mh/img/tabbarSetl2.png',
text: '换背景',
iconPath: '../../static/Message.png',
selectedIconPath: '../../static/Messageclick.png',
text: '消息',
// text: '社区',
pagePath: '/pages/like/like'
pagePath: ''
},
{
iconPath: '/static/mh/img/tabbar4.png',
selectedIconPath: '/static/mh/img/tabbarSetl4.png',
iconPath: '../../static/Mine.png',
selectedIconPath: '../../static/Mineclick.png',
text: '我的',
pagePath: '/pages/my/my',
pagePath: '',
middleClass: ''
}
]);
@@ -104,28 +104,28 @@
tabList[middleIndex].middleClass = 'mid-button';
}
}
//点击按钮
function handlePush(item, index) {
if (index === 2) {
//打开弹窗
// addSuccess.value.open();
openPopupQuantity()
return;
} else if (index === 1) {
uni.navigateTo({
url: "/pages/create/wenshengPicture/wenshengPicture"
})
} else if (index === 3) {
uni.navigateTo({
url: "/pages/create/backgroundPicture/backgroundPicture"
})
} else {
uni.switchTab({
url: item.pagePath
});
}
// //点击按钮
// function handlePush(item, index) {
// if (index === 2) {
// //打开弹窗
// // addSuccess.value.open();
// openPopupQuantity()
// return;
// } else if (index === 1) {
// uni.navigateTo({
// url: "/pages/create/wenshengPicture/wenshengPicture"
// })
// } else if (index === 3) {
// uni.navigateTo({
// url: "/pages/create/backgroundPicture/backgroundPicture"
// })
// } else {
// uni.switchTab({
// url: item.pagePath
// });
// }
}
// }
const createModule = ref()
function openPopupQuantity() {
@@ -185,7 +185,7 @@
z-index: 999;
background-size: contain;
width: 100vw;
background-color: #111111;
background-color: #ffffff;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
.tab-list {
@@ -230,7 +230,7 @@
.item-img-box {
width: 150rpx;
height: 148rpx;
height: 150rpx;
margin-bottom: 9rpx;
position: absolute;
z-index: 10;
@@ -239,7 +239,7 @@
.item-img {
width: 150rpx;
height: 116rpx;
height: 150rpx;
}
.item-text {