From 4dd499d43a67da8ab8fd8593fe83d8e578720c47 Mon Sep 17 00:00:00 2001 From: yuanshun <1422672890@qq.com> Date: Mon, 25 Dec 2023 18:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/style.css | 170 +++++++++++++++++++++++++++++++ src/components/list/TaskList.vue | 20 ++-- src/main.ts | 4 +- src/utils/rem.ts | 19 ++-- src/view/task/index.vue | 12 ++- 5 files changed, 206 insertions(+), 19 deletions(-) diff --git a/src/assets/css/style.css b/src/assets/css/style.css index e69de29..df422ef 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -0,0 +1,170 @@ +body,div,h3,h4,h5,input,textarea,select,p,dl,dt,dd,a,i,strong,img,button,form,table,th,tr,td,tbody{ + margin:0; + padding:0; + } + input{ + resize: none; + border: none; + } + img{ + border: none; + } + a{ + text-decoration: none; + color: #fe9527; + } + body { + color: #333333; + min-height: 100vh; + background: #ffffff; + font-size: 0.64rem; + font-family: 'Microsoft YaHei'; + } + textarea{ + line-height: 1.2rem !important; + } + .van-nav-bar .van-icon{ + color: #333333; + } + .van-button--primary{ + background: linear-gradient(90deg, #FEA829, #FE8F27); + border-radius: 1.17rem; + border: none; + font-size: 0.96rem; + } + .van-checkbox__icon{ + height: 0.75rem; + font-size: 0.8rem; + } + .van-checkbox__icon .van-icon{ + width: 0.75rem; + height: 0.75rem; + line-height: 0.75rem; + } + .van-checkbox__icon--checked .van-icon{ + background-color: #FE9527; + border-color: #FE9527; + } + .van-loading{ + text-align: center; + margin-top: 1rem; + } + .wy-no-data{ + width: 8.96rem; + height: 5.73rem; + background: url('@/assets/img/icon/icon-no-data.png') no-repeat; + background-size: 100%; + padding-top: 7.5rem; + text-align: center; + font-size: 0.75rem; + font-weight: 400; + color: #666666; + margin: 6rem auto 0; + } + .resume-label{ + padding: 1.28rem 0 1.09rem; + margin: 0 0.56rem; + border-bottom: 1px solid #F3F3F3; + } + .resume-label h3{ + font-size: 0.96rem; + line-height: 0.96rem; + font-weight: 400; + color: #333333; + display: flex; + justify-content: space-between; + margin-bottom: 0.77rem; + } + .resume-label h4{ + line-height: 0.8rem; + font-size: 0.8rem; + font-weight: 400; + color: #333333; + margin-bottom: 0.59rem; + display: flex; + justify-content: space-between; + } + .resume-label h5{ + font-size: 0.8rem; + line-height: 0.8rem; + font-weight: 300; + color: #333333; + margin-bottom: 0.93rem; + } + .resume-label p{ + font-size: 0.64rem; + line-height: 0.64rem; + font-weight: 300; + color: #666666; + margin-bottom: 0.69rem; + } + .resume-label textarea{ + font-size: 0.75rem; + font-weight: 100; + color: #666666; + line-height: 1.39rem; + margin-top: 0; + } + .resume-label .van-swipe-cell{ + border-bottom: 1px solid #f3f3f3; + margin-bottom: 1.5rem; + } + .resume-label .van-swipe-cell:last-child{ + border: none; + margin-bottom: 0; + } + .resume-label .van-swipe-cell__right{ + display: flex; + align-items: center; + } + .resume-label .van-cell{ + padding-top: 0; + } + .resume-label .van-cell:after{ + border: none; + } + .resume-label .delete{ + width: 1.87rem; + height: 1.87rem; + margin-left: 0.2rem; + } + .resume-label label{ + font-size: 0.75rem; + line-height: 0.75rem; + font-weight: 100; + color: #999999; + } + .resume-label .van-cell{ + padding: 0.8rem 0 0.6rem; + font-size: 0.8rem; + line-height: 0.8rem; + font-weight: 100; + color: #999999; + } + .user-item{ + margin-bottom: 1.47rem; + border-bottom: 1px solid #f3f3f3; + } + .user-item .van-cell{ + padding-left: 0; + } + .user-item h5{ + font-size: 0.75rem; + line-height: 0.75rem; + font-weight: 300; + color: #666666; + } + .wy-submit{ + height: 2.35rem; + background: linear-gradient(90deg, #FEA829, #FE8F27); + border-radius: 0.27rem; + margin: 0 0.64rem 0.64rem; + position: fixed; + bottom: 0; + left:0; + width: calc(100vw - 1.28rem); + border: none; + font-size: 0.8rem; + font-weight: 400; + color: #FFFFFF; + } \ No newline at end of file diff --git a/src/components/list/TaskList.vue b/src/components/list/TaskList.vue index 1d734bd..ec6bcaa 100644 --- a/src/components/list/TaskList.vue +++ b/src/components/list/TaskList.vue @@ -1,5 +1,5 @@