zhengkaixin há 1 mês atrás
pai
commit
03a1b4cee3
4 ficheiros alterados com 117 adições e 6 exclusões
  1. 1 1
      config/.env.dev.js
  2. 39 2
      pages/business/center.vue
  3. 39 2
      pages/business/index.vue
  4. 38 1
      pages/business/main.vue

+ 1 - 1
config/.env.dev.js

@@ -2,7 +2,7 @@ const UNI_APP = {
 	ProjectName :"智泊e家",
 	BASE_URL: 'http://192.168.8.162:8081/floorlock/',
 	BASE_URL:"https://youdian-test.hbjp.com.cn/floorlock-server/",
-	//BASE_URL:"https://zbyj.hbjp.com.cn/floorlock-server/",
+	BASE_URL:"https://zbyj.hbjp.com.cn/floorlock-server/",
 	
 	PREFIX : "jp-floorlock-phone",
 	NODE_ENV :"dev",

+ 39 - 2
pages/business/center.vue

@@ -60,7 +60,11 @@
 			</view>
 
 		</view>
-		<tabbar   ></tabbar>
+		<u-tabbar  v-model="current"  :list="tabbarList"
+		 mid-button-size="112" :mid-button="true"
+		 @input="gotoinput"
+		 inactive-color="#ADB8C2" active-color="#5098FF">
+		</u-tabbar>
 	</view>
 </template>
 
@@ -78,13 +82,38 @@
 	
 		data() {
 			return {
+				 current: 2,
 				isReady:false,
 				userInfo:{},
 				userInfoPlus:{
 					whiteList:[],
 					myAllList:[]
 				},
-				whiteNum:0,
+				whiteNum:0,
+				tabbarList: [{
+				
+						iconPath:require("@/assets/img/tabBar/index1.png") ,
+						selectedIconPath: require( "@/assets/img/tabBar/index1-HL.png"),
+						text: '附近 ',
+						pagePath2: "/pages/business/index",
+					},
+					 {
+					 	iconPath: require("@/assets/img/tabBar/parking_icon.png"),
+					 	selectedIconPath: require("@/assets/img/tabBar/parking_icon.png"),
+					 	text: '',
+						pagePath2: "/pages/business/main",
+					 	midButton: true,
+					 },
+					
+					
+					{
+						iconPath: require("@/assets/img/tabBar/center.png"),
+						selectedIconPath: require("@/assets/img/tabBar/center-HL.png"),
+				
+						text: '我的',
+						pagePath2: "/pages/business/center",
+					}
+				],
 			}
 		},
 		onLoad() {
@@ -107,6 +136,14 @@
 		
 		},
 		methods: {
+			gotoinput(i){
+				var item=this.tabbarList[i]
+				if(!item.pagePath){
+					uni.reLaunch({
+						url:item.pagePath2
+					})
+				}
+			},
 			gotoInformation(){
 				if(this.jphelp.getPersonInfo().id){
 					this.gotoUrl('pages/information/information',1)

+ 39 - 2
pages/business/index.vue

@@ -84,7 +84,11 @@
 
 			</view>
 		</view>
-		<tabbar  ></tabbar>
+		<u-tabbar v-model="current" :list="tabbarList"
+		 mid-button-size="112" :mid-button="true"
+		 @input="gotoinput"
+		 inactive-color="#ADB8C2" active-color="#5098FF">
+		</u-tabbar>
 	</view>
 </template>
 
@@ -100,6 +104,7 @@
 		},
 		data() {
 			return {
+				 current: 0,
 				pointAuthorize:true,
 				latitude: 30.337053,
 
@@ -107,7 +112,31 @@
 			
 				allList: [],
 				isReady:true,
-				point: false, //是否获取了定位
+				point: false, //是否获取了定位
+				tabbarList: [{
+				
+						iconPath:require("@/assets/img/tabBar/index1.png") ,
+						selectedIconPath: require( "@/assets/img/tabBar/index1-HL.png"),
+						text: '附近 ',
+						pagePath2: "/pages/business/index",
+					},
+					 {
+					 	iconPath: require("@/assets/img/tabBar/parking_icon.png"),
+					 	selectedIconPath: require("@/assets/img/tabBar/parking_icon.png"),
+					 	text: '',
+						pagePath2: "/pages/business/main",
+					 	midButton: true,
+					 },
+					
+					
+					{
+						iconPath: require("@/assets/img/tabBar/center.png"),
+						selectedIconPath: require("@/assets/img/tabBar/center-HL.png"),
+				
+						text: '我的',
+						pagePath2: "/pages/business/center",
+					}
+				],
 			}
 		},
 		onLoad() {
@@ -170,6 +199,14 @@
 			}
 		},
 		methods: {
+			gotoinput(i){
+				var item=this.tabbarList[i]
+				if(!item.pagePath){
+					uni.reLaunch({
+						url:item.pagePath2
+					})
+				}
+			},
 			gotoInfo(item){
 				var url='pages/business/lockInfo?from=1&id='+item.id;
 				if (this.point) {

+ 38 - 1
pages/business/main.vue

@@ -39,7 +39,11 @@
 		<u-modal v-model="loginBl" @confirm="loginconfirm"  :show-cancel-button="true"
 			ref="uModal" title="提示" content="当前用户未登录,是否前往登录" confirm-text="登录"></u-modal>
 		
-		<tabbar   ></tabbar>
+		<u-tabbar  v-model="current"  :list="tabbarList"
+		 mid-button-size="112" :mid-button="true"
+		 @input="gotoinput"
+		 inactive-color="#ADB8C2" active-color="#5098FF">
+		</u-tabbar>
 	</view>
 </template>
 
@@ -66,6 +70,7 @@
 
 		data() {
 			return {
+				 current: 1,
 				isBack:false,
 				isMy:0,
 				showtabbar:false,
@@ -104,6 +109,30 @@
 				openModalBl: false,
 				formX:0,
 				loginBl: false,
+				tabbarList: [{
+				
+						iconPath:require("@/assets/img/tabBar/index1.png") ,
+						selectedIconPath: require( "@/assets/img/tabBar/index1-HL.png"),
+						text: '附近 ',
+						pagePath2: "/pages/business/index",
+					},
+					 {
+					 	iconPath: require("@/assets/img/tabBar/parking_icon.png"),
+					 	selectedIconPath: require("@/assets/img/tabBar/parking_icon.png"),
+					 	text: '',
+						pagePath2: "/pages/business/main",
+					 	midButton: true,
+					 },
+					
+					
+					{
+						iconPath: require("@/assets/img/tabBar/center.png"),
+						selectedIconPath: require("@/assets/img/tabBar/center-HL.png"),
+				
+						text: '我的',
+						pagePath2: "/pages/business/center",
+					}
+				],
 				
 			}
 		},
@@ -142,6 +171,14 @@
 			}
 		},
 		methods: {
+			gotoinput(i){
+				var item=this.tabbarList[i]
+				if(!item.pagePath){
+					uni.reLaunch({
+						url:item.pagePath2
+					})
+				}
+			},
 			loginconfirm(){
 				this.$refs.refLogin.ashow()
 			},