@ -0,0 +1,171 @@
|
||||
<template>
|
||||
<view class="tabbar-container">
|
||||
<block>
|
||||
<view class="tabbar-item" v-for="(item, index) in tabbarList"
|
||||
:class="[item.centerItem ? ' center-item' : '']" @click="changeItem(item)">
|
||||
<view class="item-top">
|
||||
<image :style="{width:item.width+'rpx',height:item.height+'rpx'}"
|
||||
:src="currentItem == item.id ? item.selectedIconPath : item.iconPath"></image>
|
||||
</view>
|
||||
<view class="item-bottom" :class="[currentItem == item.id ? 'item-active' : '']">
|
||||
<text>{{ item.text }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
currentPage: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentItem: 0,
|
||||
tabbarList: [{
|
||||
id: 0,
|
||||
centerItem: false,
|
||||
width: 56,
|
||||
height: 56,
|
||||
"pagePath": "/pages/index/index",
|
||||
"text": "首页",
|
||||
"iconPath": "/static/resource/menu/icon_home.png",
|
||||
"selectedIconPath": "/static/resource/menu/icon_home_on.png"
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
centerItem: false,
|
||||
width: 54,
|
||||
height: 54,
|
||||
"pagePath": "/pages/info/index",
|
||||
"text": "护理知识",
|
||||
"iconPath": "/static/resource/menu/icon_zhishi.png",
|
||||
"selectedIconPath": "/static/resource/menu/icon_zhishi_on.png"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
centerItem: true,
|
||||
width: 120,
|
||||
height: 124,
|
||||
"pagePath": "/pages/find/index",
|
||||
"text": "找护工",
|
||||
"iconPath": "/static/resource/menu/icon_center.png",
|
||||
"selectedIconPath": "/static/resource/menu/icon_center_on.png"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
centerItem: false,
|
||||
width: 56,
|
||||
height: 56,
|
||||
"pagePath": "/pages/order/index",
|
||||
"text": "订单",
|
||||
"iconPath": "/static/resource/menu/icon_order.png",
|
||||
"selectedIconPath": "/static/resource/menu/icon_zhishi_on.png"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
centerItem: false,
|
||||
width: 56,
|
||||
height: 54,
|
||||
"pagePath": "/pages/mine/index",
|
||||
"text": "我的",
|
||||
"iconPath": "/static/resource/menu/icon_mine.png",
|
||||
"selectedIconPath": "/static/resource/menu/icon_mine_on.png"
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.currentItem = this.currentPage;
|
||||
uni.hideTabBar();
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
let _this = this;
|
||||
console.log(item.pagePath)
|
||||
//_this.currentItem = item.id;
|
||||
uni.switchTab({
|
||||
url: item.pagePath
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
view {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tabbar-container {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 160rpx;
|
||||
box-shadow: 0 0 10px #999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10rpx 0 60rpx;
|
||||
color: #6E6E6E;
|
||||
z-index: 9999;
|
||||
background: #fff;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.tabbar-container .tabbar-item {
|
||||
width: 20%;
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* justify-content: center; */
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tabbar-container .item-active {
|
||||
color: #cf995a;
|
||||
}
|
||||
|
||||
.tabbar-container .center-item {
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tabbar-container .tabbar-item .item-top {
|
||||
width: 56rpx;
|
||||
height: 44rpx;
|
||||
margin: 10rpx 0 15rpx;
|
||||
}
|
||||
|
||||
.tabbar-container .center-item .item-top {
|
||||
flex-shrink: 0;
|
||||
width: 120rpx;
|
||||
height: 124rpx;
|
||||
position: absolute;
|
||||
top: -80rpx;
|
||||
left: calc(50% - 50rpx);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 5px #999;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.tabbar-container .tabbar-item .item-top image {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.tabbar-container .tabbar-item .item-bottom {
|
||||
font-size: 28rpx;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tabbar-container .center-item .item-bottom {
|
||||
position: absolute;
|
||||
bottom: -1rpx;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<view>
|
||||
<tabbar :current-page="2"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tabbar from "../../components/tabbar/tabbar.vue"
|
||||
export default {
|
||||
components: {
|
||||
tabbar
|
||||
},
|
||||
data() {},
|
||||
onShareAppMessage() {},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
onReady() {},
|
||||
onHide() {},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<view>
|
||||
<tabbar :current-page="0"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tabbar from "../../components/tabbar/tabbar.vue"
|
||||
export default {
|
||||
components: {
|
||||
tabbar
|
||||
},
|
||||
data() {},
|
||||
onShareAppMessage() {},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
onReady() {},
|
||||
onHide() {},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<view>
|
||||
<tabbar :current-page="1"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tabbar from "../../components/tabbar/tabbar.vue"
|
||||
export default {
|
||||
components: {
|
||||
tabbar
|
||||
},
|
||||
data() {},
|
||||
onShareAppMessage() {},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
onReady() {},
|
||||
onHide() {},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,8 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<view>
|
||||
<tabbar :current-page="4"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tabbar from "../../components/tabbar/tabbar.vue"
|
||||
export default {
|
||||
components: {
|
||||
tabbar
|
||||
},
|
||||
data() {},
|
||||
onShareAppMessage() {},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
onReady() {},
|
||||
onHide() {},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<view>
|
||||
<tabbar :current-page="3"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tabbar from "../../components/tabbar/tabbar.vue"
|
||||
export default {
|
||||
components: {
|
||||
tabbar
|
||||
},
|
||||
data() {},
|
||||
onShareAppMessage() {},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
onReady() {},
|
||||
onHide() {},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -1,106 +0,0 @@
|
||||
.tomap {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
background: rgba(242, 214, 188, .4);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.iconfont {
|
||||
color: #6EAC97;
|
||||
font-size: 24rpx;
|
||||
margin-right: 19rpx;
|
||||
}
|
||||
|
||||
.icon-ditu-dibiao {
|
||||
color: #787BA2;
|
||||
}
|
||||
|
||||
.tag {
|
||||
height: 37rpx;
|
||||
background: #ccc;
|
||||
border-radius: 8rpx;
|
||||
padding: 7rpx 16rpx;
|
||||
font-size: 24rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.activityBox-row {
|
||||
font-size: 24rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #828282;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
|
||||
.activityBox_btn {
|
||||
|
||||
background: #EF9525;
|
||||
}
|
||||
|
||||
.activityBox {
|
||||
background-color: #ffffff;
|
||||
margin-bottom: 26rpx;
|
||||
}
|
||||
|
||||
.activityBox-title {
|
||||
flex: 1;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #4E4E4E;
|
||||
}
|
||||
|
||||
|
||||
.activityBox-content {
|
||||
padding: 31rpx 24rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.activityBox-top {
|
||||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.book-status {
|
||||
background: url("@/static/img/status_bg.png") no-repeat;
|
||||
background-size: cover;
|
||||
width: 255rpx;
|
||||
height: 48rpx;
|
||||
position: absolute;
|
||||
margin-left: -127.5rpx;
|
||||
left: 50%;
|
||||
top: 142.5rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
line-height: 48rpx;
|
||||
}
|
||||
|
||||
.book-num {
|
||||
background: #FFFFFF;
|
||||
opacity: 0.85;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 21rpx;
|
||||
padding: 12rpx 34rpx;
|
||||
border-top-left-radius: 53rpx;
|
||||
border-bottom-left-radius: 53rpx;
|
||||
font-size: 20rpx;
|
||||
color: #4E4E4E;
|
||||
}
|
||||
|
||||
.book-num-y {
|
||||
color: #D98012;
|
||||
font-size: 34rpx;
|
||||
}
|
||||
@ -1,146 +0,0 @@
|
||||
.book-box{
|
||||
font-size: 24rpx ;
|
||||
}
|
||||
.book-box-title {
|
||||
font-weight: 400;
|
||||
color: #828282;
|
||||
}
|
||||
|
||||
.book-box-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-top: 38rpx;
|
||||
}
|
||||
|
||||
.book-box-selectInfo {
|
||||
background: #FCF6E3;
|
||||
height: 66rpx;
|
||||
width: 100vw;
|
||||
padding: 0rpx 42rpx;
|
||||
margin-bottom: 20rpx;
|
||||
display: flex;
|
||||
color: #828282;
|
||||
line-height: 66rpx;
|
||||
font-size: 24rpx;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.book-box-selectInfo-right {
|
||||
display: flex;
|
||||
color: #EF9525;
|
||||
}
|
||||
|
||||
.book-box-selectInfo-righttxt {
|
||||
text-decoration: underline;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
|
||||
.book-box-row .book-box-row-date {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex: 1;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.book-box-row .book-box-row-date .book-box-row-dateitem {
|
||||
background: #F7F6F4;
|
||||
border-radius: 5rpx;
|
||||
padding: 24rpx 32rpx;
|
||||
color: #4E4E4E;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.book-box-timerow {
|
||||
display: flex;
|
||||
margin-top: 36rpx;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.book-box-row-timeitem {
|
||||
background: #F7F6F4;
|
||||
border-radius: 5ppx;
|
||||
padding: 19rpx 39rpx;
|
||||
font-size: 24rpx;
|
||||
color: #4E4E4E;
|
||||
position: relative;
|
||||
margin-right: 9rpx;
|
||||
margin-bottom: 19rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.book-box-row-timeitem-on {
|
||||
background: #FCF6E3;
|
||||
border: 2rpx solid #EF9525;
|
||||
padding: 17rpx 37rpx !important;
|
||||
}
|
||||
|
||||
.book-box-row-timeitem-txt {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.book-box-row-timeitem-status {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
background: #EF9525;
|
||||
border-top-right-radius: 5rpx;
|
||||
border-bottom-left-radius: 5rpx;
|
||||
font-size: 20rpx;
|
||||
color: #828282;
|
||||
padding: 7rpx;
|
||||
}
|
||||
|
||||
.book-box-row .book-box-row-date .book-box-row-dateitem-none {
|
||||
|
||||
color: #CFCFCF !important;
|
||||
}
|
||||
|
||||
.book-box-row .book-box-row-date .book-box-row-dateitem-on {
|
||||
|
||||
padding: 22rpx 30rpx;
|
||||
background: #FCF6E3;
|
||||
border: 2rpx solid #EF9525;
|
||||
border-radius: 5rpx;
|
||||
color: #4E4E4E;
|
||||
}
|
||||
|
||||
.book-box-row-select {
|
||||
padding: 24rpx 9rpx 24rpx 29rpx;
|
||||
background: #F7F6F4;
|
||||
border-radius: 5rpx;
|
||||
margin-left: 16rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: #4E4E4E !important;
|
||||
}
|
||||
|
||||
.book-box-row .book-box-row-date .book-box-row-dateitem-on .book-box-row-dateitem-status {
|
||||
|
||||
background: #EF9525 !important;
|
||||
color: #ffffff !important;
|
||||
font-size: 20rpx !important;
|
||||
}
|
||||
|
||||
.book-box-row-dateitem-status {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
background: #E3E3E3;
|
||||
border-top-right-radius: 5rpx;
|
||||
border-bottom-left-radius: 5rpx;
|
||||
font-size: 20rpx;
|
||||
color: #828282;
|
||||
padding: 7rpx;
|
||||
}
|
||||
|
||||
.book-box-row-select-more {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 22rpx;
|
||||
}
|
||||
|
||||
.book-box-card {
|
||||
margin-bottom: 50rpx;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 579 B |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 242 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 99 KiB |