emis-app/pages/tabBar/home/home.vue
2023-12-02 01:10:34 +08:00

262 lines
6.8 KiB
Vue

<template>
<view style="position: relative;background-color: #fff;">
<view class="customer_nav_bar">
<!-- 这里是状态栏 -->
</view>
<image class="hdbg" :src="getCdnUrl(`home/hdbg.png`)"/>
<view class="pg-container">
<u-row align="center" class="com-jianju" style="margin-top: 10rpx;">
<u-col span="11">
<u-row>
<u-avatar size="66"></u-avatar>
<u-text style="margin-left: 16rpx;" text="快递专员01" color="#fff" size="24"></u-text>
</u-row>
</u-col>
<u-col span="1" align="end">
<image style="height: 36rpx;" mode="heightFix" :src="getCdnUrl(`home/saoma.png`)"/>
</u-col>
</u-row>
<u-row justify="between" class="header com-jianju">
<u-col span="5">
<view class="title1">香港服装专线 </view>
<button type="primary" class="btn-ljyy">了解详情</button>
</u-col>
<image class="fjhw" :src="getCdnUrl(`home/huowu.png`)"/>
</u-row>
<view class="pbody">
<u-row class="tj-text-list">
<u-col span="3" align="center" class="tjtl-item">
<text class="tj-tl1">56</text>
<text class="tj-tl2">未接单</text>
</u-col>
<u-col span="3" align="center" class="tjtl-item">
<text class="tj-tl1">56</text>
<text class="tj-tl2">已接收</text>
</u-col>
<u-col span="3" align="center" class="tjtl-item">
<text class="tj-tl1">56</text>
<text class="tj-tl2">派送中</text>
</u-col>
<u-col span="3" align="center" class="tjtl-item">
<text class="tj-tl1">56</text>
<text class="tj-tl2">已签收</text>
</u-col>
</u-row>
<u-row class="btnlist1 com-jianju">
<u-col v-for="mbItem in mainBtnlist" :span="12/mainBtnlist.length" class="mbitem" align="center">
<u-row >
<image mode="aspectFit" class="tb1" :src="mbItem.icon"/>
<view class="neirong">
<view class="nr1">{{mbItem.title}}</view>
<view class="nr2">{{mbItem.subTitle}}</view>
</view>
</u-row>
</u-col>
</u-row>
<u-row class="nours com-jianju">
<u-col span="11" class="flw-dec">
<u-row>
<image style="height: 30rpx;" mode="heightFix" :src="getCdnUrl(`home/laba.png`)"/>
<image style="height: 24rpx;margin-left: 10rpx;" mode="heightFix" :src="getCdnUrl(`home/ggchxun.png`)"/>
<text style="margin-left: 30rpx;">最近一周内暂未有新通告!!!</text>
</u-row>
</u-col>
<u-col span="1" align="end">
<u-icon name="arrow-right" size="20"></u-icon>
</u-col>
</u-row>
<view class="com-jianju">
<u-text :bold="true" size="32" color="#333" margin="40rpx 0 0 0" text="网点扫描"></u-text>
</view>
<view class="btnlist2 com-jianju">
<u-row justify="start" gutter="18" style="flex-wrap: wrap;">
<u-col span="3" v-for="tlItem in toolBtnlist" align="center">
<u-col align="center" class="tlitem">
<image :src="tlItem.icon" style="height: 66rpx;" mode="heightFix"/>
<view style="font-size: 24rpx;margin-top: 20rpx;">{{tlItem.title}}</view>
</u-col>
</u-col>
</u-row>
</view>
</view>
</view>
</view>
</template>
<script>
import getCdnUrl from "@/common/getCdnUrl"
export default {
props: {
// hasLeftWin: {
// type: Boolean
// }
},
data() {
return {
mainBtnlist: [
{ title: '计提预估', subTitle: "2888.80", icon: getCdnUrl(`home/jityugu.png`), url: '' },
{ title: '待回款', subTitle: "12888.80", icon: getCdnUrl(`home/daihuikuan.png`), url: '' }
],
toolBtnlist: [
{ title: '运单录入', subTitle: "", icon: getCdnUrl(`home/ydluru.png`), url: '' },
{ title: '问题件', subTitle: "", icon: getCdnUrl(`home/wentijian.png`), url: '' },
{ title: '货物图片', subTitle: "", icon: getCdnUrl(`home/hwtup.png`), url: '' },
{ title: '发件扫描', subTitle: "", icon: getCdnUrl(`home/fajiansm.png`), url: '' },
{ title: '到件扫描', subTitle: "", icon: getCdnUrl(`home/daojsm.png`), url: '' },
{ title: '派件扫描', subTitle: "", icon: getCdnUrl(`home/paijsm.png`), url: '' },
{ title: '签收扫描', subTitle: "", icon: getCdnUrl(`home/qianshsm.png`), url: '' },
{ title: '到货扫描', subTitle: "", icon: getCdnUrl(`home/daohsm.png`), url: '' },
{ title: '快件查询', subTitle: "", icon: getCdnUrl(`home/kdchxun.png`), url: '' },
{ title: '面单补打', subTitle: "", icon: getCdnUrl(`home/mdbuda.png`), url: '' },
{ title: '收货入库', subTitle: "", icon: getCdnUrl(`home/shhruku.png`), url: '' },
{ title: '运单修改', subTitle: "", icon: getCdnUrl(`home/ydxiugai.png`), url: '' }
]
}
},
onShareAppMessage() {
return {
title: '探路物流 速运全球',
// path: 'TODO'
}
},
methods: {
getCdnUrl,
}
}
</script>
<style lang="scss">
@import '../../../common/uni-nvue.scss';
</style>
<style scoped lang="scss">
.com-jianju {
margin-left: 28rpx;
margin-right: 28rpx;
}
.hdbg{
position: absolute;
height: 400rpx;
top: 0;
z-index: 1;
width: 100%;
}
.pg-container{
position: relative;
z-index: 2;
overflow-x: hidden;
}
.header{
color: #FFF;
.title1{
font-size: 40rpx;
font-weight: bold;
text-shadow: 3rpx 4rpx 0rpx rgba(92,15,12,0.2);
}
.btn-ljyy{
margin-left: 0;
width: 144rpx;
margin-top: 26rpx;
box-sizing: content-box;
background: #FFF;
border-radius: 21rpx;
font-size: 24rpx;
color: #B12D29;
padding: 8rpx 0;
text-align: center;
line-height: normal;
}
.fjhw{
margin-top: 20rpx;
height: 162rpx;
width: 328rpx;
}
}
.pbody{
background: #FFF;
border-radius: 30rpx;
padding-top: 40rpx;
padding-bottom: 80rpx;
.tj-tl1 {
color: $uni-color-primary;
font-size: 36rpx;
}
.tj-tl2{
font-size: 24rpx;
color: #666;
}
.tj-text-list {
.tjtl-item {
border-right: 2rpx solid #E8E8E8;;
&:last-child {
border-right: 0;
}
}
}
.btnlist1 {
margin-top: 38rpx;
background: linear-gradient(0deg, #1D1818 0%, #0E0708 100%);
border-radius: 20rpx;
padding: 30rpx;
.mbitem{
border-right: 2rpx solid rgba(255,255,255,0.5);
&:last-child {
border-right: 0;
}
.tb1 {
width: 92rpx;
height: 76rpx;
}
.neirong{
margin-left: 22rpx;
.nr1{
font-size: 24rpx;
font-weight: 400;
color: #fff;
}
.nr2{
margin-top: 15rpx;
font-size: 28rpx;
font-weight: 600;
color: #fff;
}
}
&:last-child {
.mb-bord{
border: 0;
}
}
}
}
.nours {
margin-top: 40rpx;
background: #F6F6F6;
border-radius: 20rpx;
padding: 18rpx 22rpx;
.flw-dec{
font-size: 22rpx;
color: #333;
}
}
.btnlist2{
margin-top: 40rpx;
.tlitem {
padding: 20rpx;
border: 2rpx solid #F6F6F6;
border-radius: 16rpx;
margin-bottom: 18rpx;
}
}
}
</style>