|
@@ -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) {
|