From 21a3701c4717ce73283b44879d217243a3ab8f61 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Mon, 27 Mar 2023 16:59:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../driverDetails/driverDetails.vue | 19 +- driverManagement/index/index.vue | 15 ++ pages/index/newindex.css | 229 +++++++++++++++--- pages/index/newindex.vue | 185 +++++++------- static/copy.png | Bin 0 -> 347 bytes 5 files changed, 322 insertions(+), 126 deletions(-) create mode 100644 static/copy.png diff --git a/driverManagement/driverDetails/driverDetails.vue b/driverManagement/driverDetails/driverDetails.vue index 039e536..df340e7 100644 --- a/driverManagement/driverDetails/driverDetails.vue +++ b/driverManagement/driverDetails/driverDetails.vue @@ -35,7 +35,10 @@ inactive-color="#BBBBBB" size='35' v-model="switchOpen" @change="change"> - {{dirverDetails.customerInfoVo.phone}} + + {{dirverDetails.customerInfoVo.phone}} + + {{dirverDetails.customerInfoVo.createTime}} @@ -328,6 +331,11 @@ // } }, methods: { + copy(text) { + uni.setClipboardData({ + data: text, + }); + }, dirverIndexFn(e){ if(e){ this.dirverIndex = 1;this.current=1 @@ -852,4 +860,13 @@ position: relative; font-size: 28rpx; } + .copy { + position: relative; + top: 7rpx; + display: inline-block; + margin-left: 15rpx; + width: 32rpx; + height: 32rpx; + background: url('../../static/copy.png') 100%/ 100%; + } diff --git a/driverManagement/index/index.vue b/driverManagement/index/index.vue index 6a665bd..6079c6d 100644 --- a/driverManagement/index/index.vue +++ b/driverManagement/index/index.vue @@ -39,6 +39,7 @@ {{item.userName?item.userName:' 无设置'}} {{item.phone?item.phone:'无设置'}} + {{item.companyName?item.companyName :'无直属公司'}} @@ -130,6 +131,11 @@ this.getList(); }, methods: { + copy(text) { + uni.setClipboardData({ + data: text, + }); + }, scrolltolower() { this.getData.currentPage+=1 console.log('触底了') @@ -379,4 +385,13 @@ .top { height: var(--status-bar-height); } + .copy { + position: relative; + top: 7rpx; + display: inline-block; + margin-left: 15rpx; + width: 32rpx; + height: 32rpx; + background: url('../../static/copy.png') 100%/ 100%; + } diff --git a/pages/index/newindex.css b/pages/index/newindex.css index 132d484..eef6673 100644 --- a/pages/index/newindex.css +++ b/pages/index/newindex.css @@ -1,11 +1,20 @@ +/* page { + background: ; +} */ + .home_page_container { position: relative; + padding-top: 330rpx; width: 100vw; - /* height: 100vh; */ overflow: hidden; + + +/* display: flex; + height: 100vh; + flex-direction: column; */ } -.home_page_header { +/* .home_page_header { width: 100%; height: 703rpx; background-color: #ADCEFF; @@ -30,10 +39,8 @@ .home_page_menu_circular { width: 600rpx; height: 600rpx; - /* background-color:#2866FF ; */ border-radius: 50%; position: relative; - /* transform: rotateZ(180deg); */ transition: all 1s; z-index: 2; display: flex; @@ -45,8 +52,7 @@ Width: 100; Height: 52rpx; text-align: end; - /* padding-right:34rpx ; */ -} +} */ .iconclass { font-weight: 600; @@ -55,7 +61,7 @@ right: 34rpx; } -.home_page_header_title { +/* .home_page_header_title { font-size: 62rpx; font-weight: 500; display: flex; @@ -99,10 +105,8 @@ .home_page_menu_item { position: absolute; - /* width: fit-content;; */ width: 60rpx; height: 60rpx; - /* background-color: #007AFF; */ border-radius: 50%; display: flex; align-items: center; @@ -152,42 +156,208 @@ border-radius: 0px 0px 10px 10px; width: 290rpx; padding: 15rpx ; +} */ + + +.header { + position: fixed; + top: 0; + left: 0; + /* position: relative; */ + width: 100%; + height: 336rpx; + background: #2866FF; + z-index: 10; } -.collection{ - /* padding: 27rpx; */ - height: 260rpx; - margin: 0 auto; +.info-frame { + position: absolute; + left: 50%; + bottom: -44rpx; + transform: translateX(-50%); + padding: 20rpx 0 20rpx 200rpx; display: flex; + flex-direction: column; + justify-content: space-evenly; + width: 670rpx; + height: 160rpx; + border-radius: 20rpx; + background: #fff; +} + +.info-frame > view:nth-of-type(1), +.info-frame > view:nth-of-type(3) { + /* font-size: 32rpx; */ + overflow: hidden; + width: 320rpx; + text-overflow: ellipsis; + /* margin-top: 60rpx; */ + white-space: nowrap; + color: #666; +} +.info-frame > view:nth-of-type(2) { + /* font-size: 32rpx; */ + color: #bbb; +} + +.info-frame > image { + position: absolute; + left: 40rpx; + top: -30rpx; + width: 120rpx; + height: 120rpx; + /* border-radius: 50%; */ +} +.domain { + /* flex: 1; */ + + padding-bottom: 320rpx; +} +.domain > .item { margin-top: 30rpx; - padding: 0 27rpx; +} +.domain > .item:nth-of-type(1) { + margin-top: 90rpx; +} + +.domain > .item > .title { + padding-left: 40rpx; + font-size: 32rpx; + color: #666; +} +.options-frame { + margin-top: 10rpx; + padding-left: 106rpx; + display: flex; +} +.options-frame > .option { position: relative; - box-sizing: border-box; - /* justify-content: space-between; */ + margin-left: 20rpx; + padding: 10rpx 14rpx; + width: 240rpx; + height: 140rpx; + background: #fff; + border-radius: 20rpx; +} +.options-frame > .option:nth-of-type(1) { + margin-left: 0; +} +.options-frame > .option > .star { + position: absolute; + top: 0; + right: 0; + width: 80rpx; + height: 80rpx; + line-height: 80rpx; + text-align: center; + background: #ffffff; + border-radius: 20rpx; + z-index: 5; + +} +.options-frame > .option > .wall { + position: relative; + padding-left: 20rpx; + padding-top: 9rpx; + width: 212rpx; + height: 120rpx; + background: rgba(40, 102, 255, .1) ; + border-radius: 20rpx; +} +.options-frame > .option > .wall > .name { + position: absolute; + left: 24rpx; + bottom: 12rpx; + font-size: 28rpx; + color: #666; +} + + +.collection{ + position: fixed; + left: 0; + bottom: 0; + width: 100%; + height: 318rpx; + background: #F0F2FF; + z-index: 10; +} +.collection > .collect-frame { + display: flex; + justify-content: space-between; + position: absolute; + left: 0; + bottom: 0; + padding: 0 54rpx; + width: 100%; + height: 218rpx; + background: #adceff; + border-radius: 30rpx 30rpx 0 0; +} +.collection_item { + position: relative; + top: -74rpx; + display: flex; + justify-content: center; + align-items: center; + /* margin-left: calc((100% - 60/* 0rpx) / 2); */ + width: 200rpx; + height: 240rpx; + background-color: #FFF; + border-radius: 20rpx; + animation: name 0.5s; } -.collectionbg{ +.collection-empty { + position: relative; + top: -74rpx; + + width: 200rpx; + height: 240rpx; + + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + + background-color: #FFF; + border: 6rpx dashed #BBBBBB; + border-radius: 20rpx; +} + + + + + + + + + + + + +/* .collectionbg{ width: calc(100% - 54rpx); height: 100%; position: absolute; z-index: -1; box-sizing: border-box; display: flex; -} -.collection_item{ - width: 200rpx; - height: 100%; - background-color: #FFFFFF; - border-radius: 10px; +} */ +/* .collection_item{ + position: relative; display: flex; justify-content: center; align-items: center; margin-left: calc((100% - 600rpx) / 2); - position: relative; + width: 200rpx; + height: 100%; + background-color: #FFFFFF; + border-radius: 10px; animation: name 0.5s; -} -.collection_itembg{ +} */ + +/* .collection_itembg{ width: 200rpx; height: 100%; - /* background-color: #BBBBBB; */ border-radius: 10px; display: flex; justify-content: center; @@ -199,7 +369,10 @@ color: #BBBBBB; flex-direction: column; -} +} */ + + + @keyframes name{ from{opacity: 0;} to{opacity: 1;} diff --git a/pages/index/newindex.vue b/pages/index/newindex.vue index 4aa8e1d..fddfd53 100644 --- a/pages/index/newindex.vue +++ b/pages/index/newindex.vue @@ -1,6 +1,6 @@