Browse Source

tabBar 调整

zhengkaixin 1 year ago
parent
commit
3853ded4cc

+ 0 - 123
components/Tabbar.vue

@@ -1,123 +0,0 @@
-<template >
-	<view>
-		<u-tabbar v-model="myCurrent" 	 :list="tabbarList" 
-		:before-switch="beforeSwitch" active-color="#2795FD" inactive-color="#B3BED1"  ></u-tabbar>
-		
-	</view>
-</template>
-
-<script>
-	
-    var img1=require('@/components/home-3-line.png')
-	var img2=require('@/components/home-3-fill.png')
-	var img3=require('@/components/todo-line.png')
-	var img4=require('@/components/todo-fill.png')
-	var img5=require('@/components/add-circle-line.png')
-	var img6=require('@/components/add-circle-fill.png')
-	var img7=require('@/components/user-search-line.png')
-	var img8=require('@/components/user-search-fill.png')
-	var img9=require('@/components/user-4-line.png')
-	var img10=require('@/components/user-4-fill.png')
-	
- 	export default {
-		name:"tabbarJob",
-		props:{
-			current: 0,
-			elderStatus: false
-		},
-		data() {
-			return {
-				activeColor:"#1F4A99",
-				oldindex:this.current,
-				 myCurrent:this.current,
-				 tabbarList: [
-					 {
-					 
-				 		iconPath: img1,
-				 		selectedIconPath: img2,
-				 		text: '主页 ',
-						pagePath2:"/",
-						login:false,
-				 	},
-					{
-					 
-						iconPath: img3,
-						selectedIconPath: img4,
-						text: '招工 ',
-						pagePath2:"/pages/jobInformation/jobInformation",
-						login:false,
-					},
-					{
-					 
-						iconPath: img5,
-						selectedIconPath: img6,
-						text: '发布 ',
-						pagePath2:"/pages/issue/issue",
-						login:false,
-					},
-					{
-					 
-						iconPath: img7,
-						selectedIconPath: img8,
-						text: '找人 ',
-						pagePath2:"/pages/choreInformation/choreInformation",
-						login:false,
-					},
-					
-				 	{
-				 		iconPath:img9,
-				 		selectedIconPath: img10,
-				 		text: '我的',
-						login:false,
-						pagePath2:"/pages/mine/mine",
-				 	}
-			 ],
-			};
-			
-		},methods:{
-			setcount(c){
-				//this.myCurrent=c
-			},
-			beforeSwitch(index){
-			
-				var bl=false
-				
-				if(index==this.current){
-					
-					return false
-				}
-				//this.myCurrent=index
-				var url =this.tabbarList[index].pagePath2;
-				
-				if(this.tabbarList[index].login){
-					var userInfo=this.carhelp.getPersonInfo()
-					if(userInfo){
-						
-					}else{
-						url="/pages/login/index"
-						bl=true	
-					}
-					
-				}
-				uni.navigateTo({
-					url: url
-				})
-			
-				
-				
-			},
-			
-		},
-		mounted(){
-			
-		},destroyed(){
-			
-		}
-		
-		
-	}
-</script>
-
-<style>
-	 
-</style>

+ 12 - 12
pages.json

@@ -220,42 +220,42 @@
 		
 	},
 	"tabBar":{
-		"color":"#009891",
-		"selectedColor":"#2B8300",
+		"color":"#817F99",
+		"selectedColor":"#4696f6",
 		"list":[
 			{
 				"text":"首页",
 				"pagePath":"pages/index/index",
-				"iconPath":"static/home-3-line.png",
-				"selectedIconPath": "static/home-3-fill.png"
+				"iconPath":"static/img/home-3-line.png",
+				"selectedIconPath": "static/img/home-3-fill.png"
 				
 			},
 			{
 				"text":"招工",
 				"pagePath":"pages/jobInformation/jobInformation",
-				"iconPath":"static/todo-line.png",
-				"selectedIconPath": "static/todo-fill.png"
+				"iconPath":"static/img/todo-line.png",
+				"selectedIconPath": "static/img/todo-fill.png"
 				
 			},
 			{
 				"text":"发布",
 				"pagePath":"pages/issue/issue",
-				"iconPath":"static/add-circle-line.png",
-				"selectedIconPath": "static/add-circle-fill.png"
+				"iconPath":"static/img/add-circle-line.png",
+				"selectedIconPath": "static/img/add-circle-fill.png"
 				
 			},
 			{
 				"text":"找人",
 				"pagePath":"pages/choreInformation/choreInformation",
-				"iconPath":"static/user-search-line.png",
-				"selectedIconPath": "static/user-search-fill.png"
+				"iconPath":"static/img/user-search-line.png",
+				"selectedIconPath": "static/img/user-search-fill.png"
 				
 			},
 			{
 				"text":"我的",
 				"pagePath":"pages/mine/mine",
-				"iconPath":"static/user-4-line.png",
-				"selectedIconPath": "static/user-4-fill.png"
+				"iconPath":"static/img/user-4-line.png",
+				"selectedIconPath": "static/img/user-4-fill.png"
 				
 			}
 		]

+ 1 - 2
pages/choreInformation/choreInformation.vue

@@ -111,11 +111,10 @@
 
 <script>
 	import nxsearch from "../../components/nx-search.vue"
-import tabbar from "../../components/Tabbar.vue"
 	export default {
 		components: {
 			nxsearch,
-			tabbar
+			
 		},
 
 		data() {

+ 1 - 2
pages/index/index.vue

@@ -144,11 +144,10 @@
 </template>
 
 <script>
-	import tabbar from "../../components/Tabbar.vue";
 	
 	export default {
 		components: {
-			tabbar,
+		
 			
 		},
 		data() {

+ 2 - 3
pages/issue/issue.vue

@@ -73,11 +73,10 @@
 </template>
 
 <script>
-	import tabbar from "../../components/Tabbar.vue";
-
+	
 	export default {
 		components: {
-			tabbar,
+		
 
 		},
 		data() {

+ 1 - 2
pages/jobInformation/jobInformation.vue

@@ -128,12 +128,11 @@
 </template>
 
 <script>
-	import tabbar from "../../components/Tabbar.vue"
 	import nxsearch from "../../components/nx-search.vue"
 	export default {
 		components: {
 			nxsearch,
-			tabbar
+			
 
 		},
 		data() {

+ 2 - 2
pages/mine/mine.vue

@@ -139,10 +139,10 @@
 </template>
 
 <script>
-	import tabbar from "../../components/Tabbar.vue"
+	
 	export default {
 		components: {
-			tabbar
+		
 		},
 		data() {
 			return {

BIN
static/add-circle-fill.png


BIN
static/add-circle-line.png


BIN
static/home-3-fill.png


BIN
static/home-3-line.png


+ 0 - 0
components/add-circle-fill.png → static/img/add-circle-fill.png


+ 0 - 0
components/add-circle-line.png → static/img/add-circle-line.png


+ 0 - 0
components/home-3-fill.png → static/img/home-3-fill.png


+ 0 - 0
components/home-3-line.png → static/img/home-3-line.png


+ 0 - 0
components/todo-fill.png → static/img/todo-fill.png


+ 0 - 0
components/todo-line.png → static/img/todo-line.png


+ 0 - 0
components/user-4-fill.png → static/img/user-4-fill.png


+ 0 - 0
components/user-4-line.png → static/img/user-4-line.png


+ 0 - 0
components/user-search-fill.png → static/img/user-search-fill.png


+ 0 - 0
components/user-search-line.png → static/img/user-search-line.png


BIN
static/todo-fill.png


BIN
static/todo-line.png


BIN
static/user-4-fill.png


BIN
static/user-4-line.png


BIN
static/user-search-fill.png


BIN
static/user-search-line.png