From d66a8c6f69f0d57aceca6f837b4fa014275cdfcc Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Wed, 8 May 2024 23:44:43 +0800 Subject: [PATCH] uu --- common/api/common.js | 8 ++ common/api/url.js | 3 + pages/tabBar/deal/deal.vue | 42 ++++---- pages/tabBar/home/home.vue | 97 +++++++++++++++---- .../components/u-notice-bar/u-notice-bar.vue | 2 +- 5 files changed, 114 insertions(+), 38 deletions(-) diff --git a/common/api/common.js b/common/api/common.js index e662674..2def30c 100644 --- a/common/api/common.js +++ b/common/api/common.js @@ -46,5 +46,13 @@ export const parseAddress = (data = {})=> { return coreRequest(url.parseAddress, data, {}, "GET") } +export const getAppHomeStatData = (data = {})=> { + return coreRequest(url.getAppHomeStatData, data, {}, "GET") +} + +export const getLatestNotices = (data = {})=> { + return coreRequest(url.getLatestNotices, data, {}, "GET") +} + diff --git a/common/api/url.js b/common/api/url.js index b56fe2c..c0d65e7 100644 --- a/common/api/url.js +++ b/common/api/url.js @@ -10,6 +10,9 @@ export default { getEmisRegion: `/emis/emisRegion/list`,// 获取省市区列表 getDicDataJson: `/common/getDicDataJson`, // 获取枚举字段 + getAppHomeStatData: `/emis/commonTools/getAppHomeStatData`,// 首页统计数据 + getLatestNotices: `/emis/commonTools/getLatestNotices`,// 首页统计数据 + getCustomerUserAddressList: `/emis/emisCustomerAddress/listSimple`, // 获取客户地址列表 setDefaultAddressById: `/emis/emisCustomerAddress/setDefaultAddressById`, // 设置默认地址 deleteAddressById: `/emis/emisCustomerAddress/deleteAddressById`, // 删除地址 diff --git a/pages/tabBar/deal/deal.vue b/pages/tabBar/deal/deal.vue index d893796..6186c30 100644 --- a/pages/tabBar/deal/deal.vue +++ b/pages/tabBar/deal/deal.vue @@ -7,12 +7,14 @@ 网点发件 - - - - {{item.title}} - - + + + + + {{item.title}} + + + @@ -21,12 +23,14 @@ 网点到件 - - - - {{item.title}} - - + + + + + {{item.title}} + + + @@ -35,12 +39,14 @@ 其他 - - - - {{item.title}} - - + + + + + {{item.title}} + + + diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index c6fc135..301983f 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -66,7 +66,12 @@ - 最近一周内暂未有新通告!!! + + + @@ -79,11 +84,11 @@ - - + + - {{tlItem.title}} - + {{tlItem.title}} + @@ -92,15 +97,41 @@ + + + + + + @@ -230,4 +279,14 @@ margin-top: 40rpx; } } + .dlb-item{ + margin-top:20rpx; + flex-direction: column; + display: flex; + justify-content: center; + align-items: center; + border: 2rpx solid #F6F6F6; + border-radius: 16rpx; + height: 140rpx; + } diff --git a/uni_modules/uview-plus/components/u-notice-bar/u-notice-bar.vue b/uni_modules/uview-plus/components/u-notice-bar/u-notice-bar.vue index b377dc1..7c5b4e3 100644 --- a/uni_modules/uview-plus/components/u-notice-bar/u-notice-bar.vue +++ b/uni_modules/uview-plus/components/u-notice-bar/u-notice-bar.vue @@ -98,7 +98,7 @@ .u-notice-bar { overflow: hidden; - padding: 9px 12px; + padding: 9rpx 12rpx; flex: 1; }