6.17(第一次提交

This commit is contained in:
Hong
2024-06-17 10:29:45 +08:00
parent 525a02c761
commit 5256365fdb
28 changed files with 63 additions and 39 deletions

View File

@@ -52,22 +52,23 @@ export const carShopList = [
export const driverList = [
{
text: '发现',
text: '首页',
iconPath: '../../../static/images/driver/tabbar/index.png',
activeIconPath: '../../../static/images/driver/tabbar/index_active.png',
path: '/pages/driver/index/index'
path: '/pages/driver/home/home'
}, {
text: '惊喜',
text: '滴友圈',
iconPath: '../../../static/images/driver/tabbar/welfare.png',
activeIconPath: '../../../static/images/driver/tabbar/welfare_active.png',
path: '/pages/driver/welfare/index'
// path: '/pages/driver/welfare/index'
path: '/pages/driver/index/index'
}, {
text: '展厅',
text: '租买车',
iconPath: '../../../static/images/driver/tabbar/showroom.png',
activeIconPath: '../../../static/images/driver/tabbar/showroom_active.png',
path: '/pages/driver/showroom/index'
}, {
text: '服务',
text: '服务',
iconPath: '../../../static/images/driver/tabbar/serve.png',
activeIconPath: '../../../static/images/driver/tabbar/serve_active.png',
path: '/pages/driver/serve/index'

View File

@@ -1,8 +1,18 @@
{
"pages": [{
"pages": [
{
"path" : "pages/driver/home/home",
"style": {
"navigationBarTitleText": "首页",
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},{
"path": "pages/driver/index/index",
"style": {
"navigationBarTitleText": "发现",
"navigationBarTitleText": "滴友圈",
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
@@ -1436,16 +1446,20 @@
"color": "#000000",
"selectedColor": "#000000",
"list": [
//车商
{"pagePath": "pages/carShop/community/community"},
{"pagePath": "pages/carShop/maintain_order/maintain_order"},
{"pagePath": "pages/carShop/order/order"},
{"pagePath": "pages/carShop/message/message"},
{"pagePath": "pages/carShop/mine/mine"},
//司机
{"pagePath": "pages/driver/home/home"},
{"pagePath": "pages/driver/index/index"},
{"pagePath": "pages/driver/welfare/index"},
// {"pagePath": "pages/driver/welfare/index"},
{"pagePath": "pages/driver/showroom/index"},
{"pagePath": "pages/driver/serve/index"},
{"pagePath": "pages/driver/mine/index"},
//维修店
{"pagePath": "pages/repair/tabbar/repair"},
{"pagePath": "pages/repair/tabbar/accessory"},
{"pagePath": "pages/repair/tabbar/procure"},

View File

@@ -0,0 +1,25 @@
<template>
<view>
<z-paging ref="paging" v-model="dataList" @query="queryList" default-page-size="5"
>
<view>首页</view>
<view slot='bottom'>
<tabbar-driver current="/pages/driver/home/home"></tabbar-driver>
</view>
</z-paging>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

View File

@@ -648,20 +648,6 @@
onShow() {
this.getUserInfo1()
},
onShareAppMessage(res) {
// console.log(res,'123456');
if (res.from === 'button') {
// 来自页面内分享按钮
getNoteShare(this.noteId).then(res => {
console.log(res, '分享成功');
})
}
return {
title: this.shareItem.content, //分享的名称
path: '/pages/driver/index/index',
imageUrl: this.shareItem.image.length ? this.shareItem.image[0] : '',
};
},
methods: {
shareBtnInfo(item) {
// console.log(item,'小程序分享');

View File

@@ -27,7 +27,7 @@
methods: {
toHomePage() {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
});
}
},

View File

@@ -20,7 +20,7 @@
methods: {
navBackFn() {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
})
}
}

View File

@@ -24,7 +24,7 @@
},
toHomePage() {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
});
}
}

View File

@@ -86,7 +86,7 @@
//返回首页
returnIndexFn() {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
});
},
//提交

View File

@@ -72,7 +72,7 @@
},
toHomePage() {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
});
}
},

View File

@@ -89,7 +89,7 @@
},
toHomePage() {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
});
}
}

View File

@@ -50,7 +50,7 @@
this.$store.dispatch('WorkingDay', '')
this.$store.dispatch('WorkingTime', '')
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
});
}
}

View File

@@ -146,7 +146,7 @@
navBackFn(type) {
if (type == 'tabbar') {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
})
} else {
uni.navigateBack()

View File

@@ -503,7 +503,7 @@
navBackFn(type) {
if (type == 'tabbar') {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
})
} else {
uni.navigateBack()

View File

@@ -46,7 +46,7 @@
},
toHomePage() {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
});
}
},

View File

@@ -203,7 +203,7 @@
navBackFn(type) {
if (type == 'tabbar') {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
})
} else {
uni.navigateBack()

View File

@@ -124,7 +124,7 @@
})
} else {
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
})
}
}

View File

@@ -133,15 +133,13 @@
},
// 登录
loginSumbit() {
// uni.$u.toast('司机模块开发中')
// return
if (this.agree) {
this.$refs.uForm.validate().then(res => {
userLogin(this.form).then(res => {
setToken(res.data.token)
uni.setStorageSync('userType', 'driver')
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
});
})
}).catch(err => {

View File

@@ -37,7 +37,7 @@ list.forEach(item => {
})
}else if(userType == 'driver'){
uni.switchTab({
url: '/pages/driver/index/index'
url: '/pages/driver/home/home'
})
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB