|
@@ -39,7 +39,11 @@
|
|
<u-modal v-model="loginBl" @confirm="loginconfirm" :show-cancel-button="true"
|
|
<u-modal v-model="loginBl" @confirm="loginconfirm" :show-cancel-button="true"
|
|
ref="uModal" title="提示" content="当前用户未登录,是否前往登录" confirm-text="登录"></u-modal>
|
|
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>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -66,6 +70,7 @@
|
|
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ current: 1,
|
|
isBack:false,
|
|
isBack:false,
|
|
isMy:0,
|
|
isMy:0,
|
|
showtabbar:false,
|
|
showtabbar:false,
|
|
@@ -104,6 +109,30 @@
|
|
openModalBl: false,
|
|
openModalBl: false,
|
|
formX:0,
|
|
formX:0,
|
|
loginBl: false,
|
|
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: {
|
|
methods: {
|
|
|
|
+ gotoinput(i){
|
|
|
|
+ var item=this.tabbarList[i]
|
|
|
|
+ if(!item.pagePath){
|
|
|
|
+ uni.reLaunch({
|
|
|
|
+ url:item.pagePath2
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
loginconfirm(){
|
|
loginconfirm(){
|
|
this.$refs.refLogin.ashow()
|
|
this.$refs.refLogin.ashow()
|
|
},
|
|
},
|