From 2be61f0b6ce27c370dda0bd3ce768721c65345a7 Mon Sep 17 00:00:00 2001 From: 396316021 <396316021@qq.com> Date: Tue, 8 Aug 2023 19:05:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A0=E7=89=A9=E5=88=97=E8=A1=A8=20?= =?UTF-8?q?=E6=9D=83=E7=9B=8A=E5=8D=A1=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 10 + pages/Card/index.vue | 11 +- pages/CardDetail/components/index.scss | 316 +++++++++++++++++++++++++ pages/CardDetail/index.vue | 186 +++++++++++++++ pages/Pet/components/index.scss | 250 +++++++++++++++++++ pages/Pet/index.vue | 121 ++++++++++ pages/UserCoupons/index.vue | 2 +- 7 files changed, 892 insertions(+), 4 deletions(-) create mode 100644 pages/CardDetail/components/index.scss create mode 100644 pages/CardDetail/index.vue create mode 100644 pages/Pet/components/index.scss create mode 100644 pages/Pet/index.vue diff --git a/pages.json b/pages.json index e8cfe4a..dc941a5 100644 --- a/pages.json +++ b/pages.json @@ -36,6 +36,16 @@ "style" : { "navigationBarTitleText" : "付款权益卡" } + },{ + "path" : "pages/CardDetail/index", + "style" : { + "navigationBarTitleText" : "付款权益卡详情" + } + },{ + "path" : "pages/Pet/index", + "style" : { + "navigationBarTitleText" : "萌宠画册" + } } ], "globalStyle" : { diff --git a/pages/Card/index.vue b/pages/Card/index.vue index 9cc663d..c8a05a1 100644 --- a/pages/Card/index.vue +++ b/pages/Card/index.vue @@ -34,7 +34,7 @@ 抵扣券有效期:购卡后 - + + class="card-button" + > @@ -119,7 +120,11 @@ }, methods: { - + navTo(url){ + wx.navigateTo({ + url:url + }) + }, }, onPageScroll(res) { if(res.scrollTop <= 20){ diff --git a/pages/CardDetail/components/index.scss b/pages/CardDetail/components/index.scss new file mode 100644 index 0000000..74614a5 --- /dev/null +++ b/pages/CardDetail/components/index.scss @@ -0,0 +1,316 @@ +.app-wallpaper{ + position: relative; + background:{ + size: 100% 100%; + repeat: no-repeat; + }; + padding:0; + padding-bottom: 30rpx; + padding-top: 30rpx; + .item-end{ + font-size: 28rpx; + font-weight: 400; + color: #ACB4B6; + line-height: 30rpx; + justify-content: center; + margin-top:8rpx; + } + .detail-box-top{ + //height:300rpx; + width:100%; + position: relative; + bottom:30rpx; + + .top-shadow{ + width:100%; + height:70rpx; + background: #F7F7F7; + clip-path: polygon(95% 0%, 100% 100%, 0% 100%, 5% 0%); + box-shadow: 0rpx -9rpx 27rpx 0rpx rgba(51,72,70,0.2); + position: absolute; + bottom:0; + left:0; + z-index: 1; + border-top-left-radius: 150rpx; + border-top-right-radius: 150rpx; + } + .card-padding{ + padding:30rpx; + padding-top:0; + padding-bottom:0; + } + .card-container{ + background:{ + position: 0 0; + size: 100% 100%; + } + .card-container-background{ + + } + + width:100%; + box-sizing: border-box; + padding:30rpx 30rpx; + padding-bottom: 0; + position: relative; + z-index: 2; + .card-container-background{ + + width:100%; + height:90%; + position: absolute; + left:0rpx; + z-index: -1; + bottom:0rpx; + //border: 3rpx solid #262626; + //box-shadow: 2rpx 6rpx 11rpx 0rpx rgba(159,167,185,0.3); + border-radius: 26rpx; + //background: { + // color:#EED9AD; + //}; + } + .card-container-background-main{ + + width:100%; + //background:{ + // color:#FFFFFF; + //} + border-radius: 26rpx; + //border: 3rpx solid #262626; + padding:7rpx; + box-sizing:border-box; + .card-col{ + width:100%; + box-sizing: border-box; + padding:30rpx; + background:{ + size:100% 100%; + position: center center; + repeat:no-repeat; + } + } + } + + + .card-right{ + padding-bottom:30rpx; + width:100%; + .card-title{ + font-size: 40rpx; + font-weight: bold; + color: #18181B; + } + .card-desc-container{ + display: flex; + padding:20rpx 0rpx; + .card-desc{ + padding:10rpx 0; + position: relative; + .card-desc-text{ + position: relative; + z-index: 2; + font-size: 30rpx; + font-weight: 500; + color: #18181B; + } + .card-desc-background{ + position: absolute; + bottom:0; + left:0; + z-index: 1; + width:100%; + height:50%; + background:{ + color:#E3BF77; + } + } + } + + } + .card-content-container{ + + justify-content: flex-start; + .card-avatar{ + width:70rpx; + height:70rpx; + .img{ + width:70rpx; + height:70rpx; + } + } + .card-content{ + font-size: 24rpx; + font-weight: 400; + color: #656565; + margin-left:22rpx; + } + } + .card-title{ + padding-top:5px; + font-size:32rpx; + font-weight: 500; + line-height: 1; + color:#131313; + } + + } + } + } + .detail-box-bottom{ + background:{ + color:#ffffff; + } + min-height:200rpx; + .coupons-list{ + padding:50rpx 30rpx; + box-sizing: border-box; + .coupons-item-container{ + padding:{ + bottom:7rpx; + } + background:{ + size: 100% 100%; + repeat: no-repeat; + }; + .coupons-item{ + box-sizing: border-box; + + height:178rpx; + padding:{ + top:28rpx; + bottom:46rpx; + left:10rpx; + right:59rpx; + } + .coupons-left{ + width:170rpx; + padding-top:0rpx; + .coupons-big-title-group{ + align-items: flex-end; + justify-content: center; + .coupons-big-title{ + text-align: center; + font-size: 62rpx; + font-weight: 800; + color: #FFFFFF; + line-height: 1; + text-shadow: 0rpx 0rpx 14rpx rgba(209,145,70,0.21); + } + .coupons-big-desc{ + font-size: 32rpx; + font-weight: bold; + color: #FFFFFF; + line-height: 70rpx; + text-shadow: 0rpx 0rpx 14rpx rgba(209,145,70,0.21); + } + } + .coupons-cause{ + margin-top:15rpx; + text-align: center; + font-size: 26rpx; + font-family: Source Han Sans CN; + font-weight: 400; + color: #FFFFFF; + } + } + .coupons-right{ + padding:10rpx 0 0 20rpx; + justify-content: space-between; + .coupons-gq{ + width:80rpx; + height:80rpx; + .img{ + width:75rpx; + height:75rpx; + } + } + .coupons-title{ + font-size: 32rpx; + font-weight: 500; + color: #161616; + } + .coupons-btn{ + margin-left:auto; + color:#4EC2B7; + font-size:28rpx; + font-weight: 400; + border:1rpx dashed #4EC2B7; + border-radius: 10rpx; + background:{ + color:#E3FEFB; + } + padding:3rpx 15rpx; + } + .coupons-desc{ + margin:20rpx 0; + font-size: 24rpx; + font-weight: 400; + color: #999999; + } + .coupons-bottom{ + border-top: 1px solid #F0F1F6; + align-items: center; + justify-content: space-between; + margin:15rpx 0; + .coupons-rule{ + + font-size: 24rpx; + font-weight: 400; + color: #999999; + .u-icon{ + margin-left:3rpx; + position: relative; + top:2rpx; + flex-direction: row; + align-items: center; + + } + } + .coupons-button{ + padding:10rpx; + font-size: 26rpx; + font-weight: 500; + color: #FFFFFF; + line-height: 30rpx; + text-shadow: 0rpx 3rpx 2rpx rgba(77,195,184,0.16); + } + } + } + } + } + } + } +} +.body-background{ + background:{ + size: 110% 110%; + repeat: no-repeat; + }; + height:500rpx; +} +.footer-menu{ + align-items: center; + padding:30rpx; + position: fixed; + bottom:0; + left:0; + width: 100%; + background: #FFFFFF; + border: 2rpx solid #262626; + box-shadow: 0rpx -2rpx 20rpx 0rpx rgba(0,0,0,0.06); + border-radius: 26rpx 26rpx 0rpx 0rpx; + .foot-menu-checkbox{ + margin-right:8rpx; + width: 28rpx; + height: 28rpx; + background: #FFFFFF; + border: 2px solid #131313; + border-radius: 50%; + } + .foot-menu-title{ + font-size: 26rpx; + .foot-menu-url{ + color:#4DC3B8; + } + } +} \ No newline at end of file diff --git a/pages/CardDetail/index.vue b/pages/CardDetail/index.vue new file mode 100644 index 0000000..9e5bb08 --- /dev/null +++ b/pages/CardDetail/index.vue @@ -0,0 +1,186 @@ + + + + + \ No newline at end of file diff --git a/pages/Pet/components/index.scss b/pages/Pet/components/index.scss new file mode 100644 index 0000000..95f366a --- /dev/null +++ b/pages/Pet/components/index.scss @@ -0,0 +1,250 @@ +.app-wallpaper{ + position: relative; + background:{ + size: 100% 100%; + repeat: no-repeat; + }; + .order-capsule-container{ + position: sticky; + + box-sizing: border-box; + width:100%; + padding:10rpx; + border:2rpx solid #262626; + border-radius: 45rpx; + box-shadow: 1rpx 4rpx 12rpx 0rpx rgba(90,104,103,0.24); + background-color: #F8FAFA; + .order-capsule{ + box-sizing: border-box; + padding:20rpx; + text-align: center; + font: { + size:30rpx; + weight:500; + } + line-height:30rpx; + border:2rpx solid rgba(0,0,0,0); + &.active{ + background:{ + color:#4DC3B8; + } + color:#FFFFFF; + border:2rpx solid #262626; + border-radius:35rpx; + } + } + } + .order-screen-container{ + .order-screen{ + padding:40rpx 0 20rpx 0; + padding-right: 66rpx; + font-size: 28rpx; + line-height: 53rpx; + color:#646464; + font-weight: 400; + &.active{ + color:#000000; + font-size: 32rpx; + font-weight: 500; + .order-screen-active{ + display:flex; + } + } + .order-screen-active{ + display: none; + align-items: center; + justify-content: center; + .img{ + width:37rpx; + } + } + + } + .order-screen-time-container{ + flex:1; + margin-left:auto; + justify-content: flex-end; + .order-screen{ + // padding-right:0; + } + } + .order-screen-time-title{ + color:#B5B5B5; + font-size:26rpx; + font-weight: 400; + line-height:53rpx; + padding-right: 16rpx; + } + .order-screen-time-buttton-container{ + padding-right: 0; + } + .order-screen-time-buttton{ + padding:8rpx 19rpx; + color:#4EC2B7; + font-size: 28rpx; + font-weight: 400; + background-color:#ffffff; + border:1px solid #4EC2B7; + border-radius: 10rpx; + line-height: 28rpx; + box-shadow: 0rpx 4rpx 5rpx 0rpx rgba(82,84,84,0.1), 2rpx -4rpx 0rpx 0rpx rgba(78,194,183,0.2); + } + } + .order-list-container{ + width:100%; + max-height: 1000rpx; + height: 100%; + overflow: auto; + box-sizing: border-box; + + .order-list-item{ + position: relative; + .pet-gun{ + background:{ + size: 80% 100%; + repeat: no-repeat; + position: center center; + } + height:90rpx; + width:100%; + position: absolute; + top:-60rpx; + z-index: 1; + } + margin-bottom:30rpx; + width:100%; + box-sizing: border-box; + .order-card-container{ + width:100%; + box-sizing: border-box; + padding:10rpx 10rpx; + position: relative; + box-sizing: border-box; + .order-card-container-background{ + + width:100%; + height:90%; + position: absolute; + left:0rpx; + z-index: -1; + bottom:0rpx; + border: 3rpx solid #262626; + box-shadow: 2rpx 6rpx 11rpx 0rpx rgba(159,167,185,0.3); + border-radius: 26rpx; + background: { + color:#EED9AD; + }; + } + .order-card-container-background-main{ + + width:100%; + background:{ + color:#FFFFFF; + } + border-radius: 26rpx; + border: 3rpx solid #262626; + padding:7rpx; + box-sizing:border-box; + .order-card-col{ + width:100%; + box-sizing: border-box; + padding:20rpx; + background:{ + size:100% 100%; + position: center center; + repeat:no-repeat; + } + } + } + + + .order-card-left{ + align-items: center; + .left-background{ + box-sizing: border-box; + width:135rpx; + height:135rpx; + border-radius: 50%; + align-items: center; + justify-content: center; + display: flex; + background:{ + color:#EED9AD; + } + } + + //height:auto; + margin-right: 25rpx; + .img{ + width:110rpx; + height:110rpx; + border-radius: 50%; + } + } + .order-card-right{ + border-radius: 30rpx; + align-items: center; + justify-content: center; + background:{ + color:#FBF5E7; + } + text-align: center; + padding:30rpx; + padding-left:20rpx; + .order-card-title{ + padding-top:5px; + font-size:32rpx; + font-weight: 500; + line-height: 30rpx; + color:#131313; + } + .order-card-tag-container{ + padding-top:18rpx; + .order-card-tag{ + padding:9rpx 20rpx; + background:{ + color:#E9FBF7; + } + color:#4DC3B8; + font-size:26rpx; + font-weight:400; + line-height:1; + border-radius:6rpx; + &+.order-card-tag{ + margin-left:9rpx; + } + } + } + .order-card-day{ + + } + .order-card-pay-time{ + + } + .order-card-day,.order-card-pay-time{ + padding-top:20rpx; + font-size:28rpx; + font-weight:400; + line-height:30rpx; + color:#767676; + .card-label{ + color:#1B1B1B; + } + } + } + .order-card-bottom{ + padding-top:30rpx; + justify-content: center; + } + .card-button{ + &:nth-child(1){ + padding-right:23rpx; + } + &:nth-child(2){ + padding-left:23rpx; + } + } + } + } + } +} \ No newline at end of file diff --git a/pages/Pet/index.vue b/pages/Pet/index.vue new file mode 100644 index 0000000..0f98f2c --- /dev/null +++ b/pages/Pet/index.vue @@ -0,0 +1,121 @@ + + + + + \ No newline at end of file diff --git a/pages/UserCoupons/index.vue b/pages/UserCoupons/index.vue index 9782b63..747226e 100644 --- a/pages/UserCoupons/index.vue +++ b/pages/UserCoupons/index.vue @@ -141,5 +141,5 @@ \ No newline at end of file