样式优化

This commit is contained in:
aihe 2023-12-02 12:32:01 +08:00
parent e7d3ca2f9a
commit 88b7d8c2ad

View File

@ -6,79 +6,80 @@
<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="com-jianju" style="margin-top: 10rpx;">
<u-row align="center" >
<u-col span="11">
<u-row>
<u-avatar size="66"></u-avatar>
<u-text margin="0 0 0 16rpx" text="快递专员01" color="#fff" size="24"></u-text>
</u-row>
</u-col>
<u-col span="1" align="end">
<image style="height: 36rpx;width: 44rpx;" :src="getCdnUrl(`home/saoma.png`)"/>
</u-col>
</u-row>
</view>
<view class="header com-jianju">
<u-row justify="between">
<u-col span="5">
<u-text size="40" :bold="true" text="香港服装专线" color="#fff"></u-text>
<button type="primary" class="btn-ljyy">了解详情</button>
</u-col>
<image class="fjhw" :src="getCdnUrl(`home/huowu.png`)"/>
</u-row>
</view>
<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-row justify="center" align="center">
<u-col v-for="(tjItem, ijIndex) in tjList" span="3" align="center"
:custom-style="'border-right: 2rpx solid #E8E8E8;' + (ijIndex+1 == tjList.length ?'border-right:0;': '')"
>
<u-text align="center" color="#B12D29" :bold="true" size="36rpx" :text="tjItem.value"></u-text>
<u-text align="center" color="#666" size="24" :text="tjItem.title"></u-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>
<view class="com-jianju btnlist1">
<u-row>
<u-col v-for="(mbItem, mIndex) in mainBtnlist" :span="6"
:custom-style="'border-right: 2rpx solid rgba(255,255,255,0.5);' + (mIndex+1 == mainBtnlist.length ?'border-right:0;': '')"
>
<u-row align="center" justify="center">
<image mode="aspectFit" style="width: 92rpx;height: 76rpx;" :src="mbItem.icon"/>
<view class="neirong">
<u-text size="24rpx" color="#fff" :text="mbItem.title"></u-text>
<u-text size="28rpx" color="#fff" :bold="true" margin= "15rpx 0 0 0" :text="mbItem.subTitle"></u-text>
</view>
</u-row>
</u-col>
</u-row>
</view>
<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">
<view class="nours com-jianju">
<u-row justify="between">
<u-col span="11">
<u-row>
<image style="height: 30rpx;width:30rpx" :src="getCdnUrl(`home/laba.png`)"/>
<image style="height: 24rpx; width: 110rpx;margin-left: 10rpx;" :src="getCdnUrl(`home/ggchxun.png`)"/>
<u-text size="22" color="#333" margin="0 0 0 30rpx">最近一周内暂未有新通告!!!</u-text>
</u-row>
</u-col>
<u-icon name="arrow-right" size="20"></u-icon>
</u-col>
</u-row>
</u-row>
</view>
<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-row justify="start" gutter="18" custom-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"/>
<u-col align="center" justify="center" custom-style="padding: 20rpx;border: 2rpx solid #F6F6F6;border-radius: 16rpx;margin-bottom: 18rpx;display: flex;">
<image :src="tlItem.icon" style="height: 66rpx;width: 66rpx" mode="aspectFit"/>
<view style="font-size: 24rpx;margin-top: 20rpx;">{{tlItem.title}}</view>
</u-col>
</u-col>
@ -99,6 +100,12 @@
},
data() {
return {
tjList: [
{ title: '未接单', value: "56", key: "" },
{ title: '已接收', value: "56", key: "" },
{ title: '派送中', value: "56", key: "" },
{ title: '已签收', value: "56", key: "" }
],
mainBtnlist: [
{ title: '计提预估', subTitle: "2888.80", icon: getCdnUrl(`home/jityugu.png`), url: '' },
{ title: '待回款', subTitle: "12888.80", icon: getCdnUrl(`home/daihuikuan.png`), url: '' }
@ -154,11 +161,6 @@
.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;
@ -185,55 +187,17 @@
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;
}
}
.neirong{
margin-left: 22rpx;
}
}
@ -242,20 +206,10 @@
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>