submit
This commit is contained in:
parent
0fc9c9883c
commit
e07213fbd4
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="tabbar">
|
||||||
<u-tabbar class="tabbar-ios-fix" activeColor='#22bf8e' :value="current?current:0" :fixed="true"
|
<u-tabbar class="tabbar-ios-fix" activeColor='#22bf8e' :value="current?current:0" :fixed="true"
|
||||||
:placeholder="true" :safeAreaInsetBottom="true" @change="handleTabClick">
|
:placeholder="true" :safeAreaInsetBottom="true" @change="handleTabClick">
|
||||||
<u-tabbar-item v-for='(item,index) in tabList' :key="index" :text="item.text">
|
<u-tabbar-item v-for='(item,index) in tabList' :key="index" :text="item.text">
|
||||||
@ -25,21 +25,11 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.tabList,'tabList')
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleTabClick(index) {
|
handleTabClick(index) {
|
||||||
console.log(index)
|
|
||||||
if (index >= 3) {
|
|
||||||
switch (index) {
|
|
||||||
case 3:
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/mine/index',
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
// 使用 uni.switchTab 方法切换页面
|
// 使用 uni.switchTab 方法切换页面
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/' + this.tabList[index].pagePath,
|
url: '/' + this.tabList[index].pagePath,
|
||||||
|
File diff suppressed because one or more lines are too long
@ -9504,7 +9504,7 @@ Object.defineProperty(exports, "__esModule", {
|
|||||||
});
|
});
|
||||||
exports.default = void 0;
|
exports.default = void 0;
|
||||||
var tab1 = [{
|
var tab1 = [{
|
||||||
"text": "首页",
|
"text": "寄存",
|
||||||
"pagePath": "pages/home/index",
|
"pagePath": "pages/home/index",
|
||||||
"iconPath": "../../static/tabbar/home.png",
|
"iconPath": "../../static/tabbar/home.png",
|
||||||
"selectedIconPath": "../../static/tabbar/home-active.png"
|
"selectedIconPath": "../../static/tabbar/home-active.png"
|
||||||
@ -9515,12 +9515,12 @@ var tab1 = [{
|
|||||||
"selectedIconPath": "../../static/tabbar/home-active.png"
|
"selectedIconPath": "../../static/tabbar/home-active.png"
|
||||||
}, {
|
}, {
|
||||||
"text": "合同",
|
"text": "合同",
|
||||||
"pagePath": "pages/mine/index",
|
"pagePath": "pages/contract/index",
|
||||||
"iconPath": "../../static/tabbar/home.png",
|
"iconPath": "../../static/tabbar/home.png",
|
||||||
"selectedIconPath": "../../static/tabbar/home-active.png"
|
"selectedIconPath": "../../static/tabbar/home-active.png"
|
||||||
}, {
|
}, {
|
||||||
"text": "我的",
|
"text": "我的",
|
||||||
"pagePath": "pages/contract/index",
|
"pagePath": "pages/mine/index",
|
||||||
"iconPath": "../../static/tabbar/home.png",
|
"iconPath": "../../static/tabbar/home.png",
|
||||||
"selectedIconPath": "../../static/tabbar/home-active.png"
|
"selectedIconPath": "../../static/tabbar/home-active.png"
|
||||||
}];
|
}];
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
let tab1 = [{
|
let tab1 = [{
|
||||||
"text": "首页",
|
"text": "寄存",
|
||||||
"pagePath": "pages/home/index",
|
"pagePath": "pages/home/index",
|
||||||
"iconPath": "../../static/tabbar/home.png",
|
"iconPath": "../../static/tabbar/home.png",
|
||||||
"selectedIconPath": "../../static/tabbar/home-active.png"
|
"selectedIconPath": "../../static/tabbar/home-active.png"
|
||||||
@ -12,14 +12,14 @@ let tab1 = [{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "合同",
|
"text": "合同",
|
||||||
"pagePath": "pages/mine/index",
|
"pagePath": "pages/contract/index",
|
||||||
"iconPath": "../../static/tabbar/home.png",
|
"iconPath": "../../static/tabbar/home.png",
|
||||||
"selectedIconPath": "../../static/tabbar/home-active.png"
|
"selectedIconPath": "../../static/tabbar/home-active.png"
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
"text": "我的",
|
"text": "我的",
|
||||||
"pagePath": "pages/contract/index",
|
"pagePath": "pages/mine/index",
|
||||||
"iconPath": "../../static/tabbar/home.png",
|
"iconPath": "../../static/tabbar/home.png",
|
||||||
"selectedIconPath": "../../static/tabbar/home-active.png"
|
"selectedIconPath": "../../static/tabbar/home-active.png"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user