This commit is contained in:
pengxiaolong
2025-05-21 17:03:19 +08:00
parent 829199a197
commit 0b9353de84
96 changed files with 9172 additions and 30 deletions

View File

@@ -1,5 +1,9 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Math) {
NewAddedPk();
}
const NewAddedPk = () => "../../pages/NewAddedPk/NewAddedPk2.js";
const _sfc_main = {
__name: "tabBar",
props: {
@@ -61,11 +65,18 @@ const _sfc_main = {
tabList[middleIndex].middleClass = "mid-button";
}
}
common_vendor.ref();
const createModule = common_vendor.ref();
function openPopupQuantity() {
createModule.value.open();
}
const disabledScroll = () => {
return false;
};
function handlePush(item, index) {
if (index === 2) {
openPopupQuantity();
return;
}
if (item.text === "消息") {
common_vendor.index.navigateTo({ url: "/TUIKit/components/TUIConversation/index" });
} else {
@@ -82,12 +93,15 @@ const _sfc_main = {
b: common_vendor.t(item.text),
c: __props.tabIndex == index ? "#1DD2F9" : "#A7A3A3",
d: common_vendor.n("list-item flex flex-column flex-middle " + item.middleClass),
e: common_vendor.o$1(($event) => handlePush(item), index),
e: common_vendor.o$1(($event) => handlePush(item, index), index),
f: index
};
}),
b: common_vendor.n(common_vendor.unref(showMiddleButton) === true ? "tab-list-middle" : "tab-list-default"),
c: common_vendor.o$1(disabledScroll)
c: common_vendor.o$1(disabledScroll),
d: common_vendor.sr(createModule, "c497a889-0", {
"k": "createModule"
})
};
};
}

View File

@@ -1,4 +1,6 @@
{
"component": true,
"usingComponents": {}
"usingComponents": {
"new-added-pk": "../../pages/NewAddedPk/NewAddedPk"
}
}

View File

@@ -1 +1 @@
<view class="tab-block data-v-c497a889"><view class="{{['tab-list', 'flex', 'flex-center', 'data-v-c497a889', b]}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="{{['data-v-c497a889', item.d]}}" bindtap="{{item.e}}"><view class="item-img-box data-v-c497a889"><image class="item-img data-v-c497a889" src="{{item.a}}"/></view><view class="item-text font-20 data-v-c497a889" style="{{'color:' + item.c}}">{{item.b}}</view></view></view><view class="data-v-c497a889" catchtouchmove="{{c}}"></view></view>
<view class="tab-block data-v-c497a889"><view class="{{['tab-list', 'flex', 'flex-center', 'data-v-c497a889', b]}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="{{['data-v-c497a889', item.d]}}" bindtap="{{item.e}}"><view class="item-img-box data-v-c497a889"><image class="item-img data-v-c497a889" src="{{item.a}}"/></view><view class="item-text font-20 data-v-c497a889" style="{{'color:' + item.c}}">{{item.b}}</view></view></view><view class="data-v-c497a889" catchtouchmove="{{c}}"></view><new-added-pk class="createModule r data-v-c497a889" u-r="createModule" u-i="c497a889-0" bind:__l="__l"></new-added-pk></view>

View File

@@ -57,6 +57,13 @@
padding: 0;
z-index: 0;
}
.tab-block .createModule.data-v-c497a889 {
position: fixed;
bottom: 0;
right: 0;
z-index: 998;
width: 100vw;
}
.tab-block .tab-list-default.data-v-c497a889 {
background-color: #ffffff;
border-top: 1px #dddddd solid;