Commit 2e1ebbc2 by 前端

积分权益

1 parent ddd16a8e
Showing 45 changed files with 1059 additions and 62 deletions
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
.icon-aito { width: 320rpx; height: 36rpx; background-position: -830rpx -617rpx;} .icon-aito { width: 320rpx; height: 36rpx; background-position: -830rpx -617rpx;}
.icon-arrow-bottom { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;} .icon-arrow-bottom { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1212rpx -617rpx;} .icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1212rpx -617rpx;}
.icon-avatar { width: 96rpx; height: 96rpx; background-position: -635rpx -726rpx;} .icon-avatar { width: 96rpx; height: 96rpx; background-position: -762rpx -726rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -333rpx -853rpx;} .icon-back { width: 128rpx; height: 50rpx; background-position: -444rpx -853rpx;}
.icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;} .icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;}
.icon-boutique-config-0 { width: 44rpx; height: 44rpx; background-position: -476rpx -853rpx;} .icon-boutique-config-0 { width: 44rpx; height: 44rpx; background-position: -587rpx -853rpx;}
.icon-boutique-config-1 { width: 44rpx; height: 44rpx; background-position: -535rpx -853rpx;} .icon-boutique-config-1 { width: 44rpx; height: 44rpx; background-position: -646rpx -853rpx;}
.icon-boutique-config-2 { width: 44rpx; height: 44rpx; background-position: -594rpx -853rpx;} .icon-boutique-config-2 { width: 44rpx; height: 44rpx; background-position: -705rpx -853rpx;}
.icon-byd { width: 184rpx; height: 36rpx; background-position: -1041rpx -557rpx;} .icon-byd { width: 184rpx; height: 36rpx; background-position: -1041rpx -557rpx;}
.icon-certificate { width: 64rpx; height: 64rpx; background-position: -1216rpx -477rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1259rpx -617rpx;} .icon-change-account { width: 32rpx; height: 32rpx; background-position: -1259rpx -617rpx;}
.icon-clone { width: 24rpx; height: 24rpx; background-position: -781rpx -509rpx;} .icon-clone { width: 24rpx; height: 24rpx; background-position: -781rpx -509rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;} .icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
...@@ -18,12 +19,13 @@ ...@@ -18,12 +19,13 @@
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -830rpx -668rpx;} .icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -830rpx -668rpx;}
.icon-customer-file-active { width: 112rpx; height: 112rpx; background-position: -638rpx -558rpx;} .icon-customer-file-active { width: 112rpx; height: 112rpx; background-position: -638rpx -558rpx;}
.icon-customer-file { width: 112rpx; height: 112rpx; background-position: 0rpx -726rpx;} .icon-customer-file { width: 112rpx; height: 112rpx; background-position: 0rpx -726rpx;}
.icon-day-points { width: 64rpx; height: 64rpx; background-position: -372rpx -964rpx;}
.icon-detail-start { width: 80rpx; height: 80rpx; background-position: 0rpx -964rpx;} .icon-detail-start { width: 80rpx; height: 80rpx; background-position: 0rpx -964rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -746rpx -726rpx;} .icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -873rpx -726rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -857rpx -726rpx;} .icon-face-error { width: 96rpx; height: 96rpx; background-position: -984rpx -726rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -968rpx -726rpx;} .icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -1095rpx -726rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -1079rpx -726rpx;} .icon-face-success { width: 96rpx; height: 96rpx; background-position: -1206rpx -726rpx;}
.icon-feedback { width: 64rpx; height: 64rpx; background-position: -1216rpx -477rpx;} .icon-feedback { width: 64rpx; height: 64rpx; background-position: -451rpx -964rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -830rpx -191rpx;} .icon-first-nav { width: 464rpx; height: 176rpx; background-position: -830rpx -191rpx;}
.icon-home-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;} .icon-home-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;}
.icon-home { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;} .icon-home { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;}
...@@ -33,41 +35,41 @@ ...@@ -33,41 +35,41 @@
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;} .icon-icon-male { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;} .icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;} .icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -653rpx -853rpx;} .icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -764rpx -853rpx;}
.icon-info_shield { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;} .icon-info_shield { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;}
.icon-invisible { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;} .icon-invisible { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -700rpx -853rpx;} .icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -811rpx -853rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -747rpx -853rpx;} .icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -858rpx -853rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -794rpx -853rpx;} .icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -905rpx -853rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -841rpx -853rpx;} .icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -952rpx -853rpx;}
.icon-level { width: 64rpx; height: 64rpx; background-position: -530rpx -964rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;} .icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;}
.icon-mask-del { width: 80rpx; height: 80rpx; background-position: -95rpx -964rpx;} .icon-mask-del { width: 80rpx; height: 80rpx; background-position: -95rpx -964rpx;}
.icon-mask-edit { width: 80rpx; height: 80rpx; background-position: -190rpx -964rpx;} .icon-mask-edit { width: 80rpx; height: 80rpx; background-position: -190rpx -964rpx;}
.icon-medal { width: 64rpx; height: 64rpx; background-position: -609rpx -964rpx;}
.icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;} .icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;}
.icon-pause { width: 40rpx; height: 40rpx; background-position: -995rpx -668rpx;} .icon-pause { width: 40rpx; height: 40rpx; background-position: -995rpx -668rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;} .icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -503rpx -558rpx;} .icon-pen { width: 120rpx; height: 120rpx; background-position: -503rpx -558rpx;}
.icon-play { width: 40rpx; height: 40rpx; background-position: -1050rpx -668rpx;} .icon-play { width: 40rpx; height: 40rpx; background-position: -1050rpx -668rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -1190rpx -726rpx;} .icon-points { width: 64rpx; height: 64rpx; background-position: -688rpx -964rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -621rpx;} .icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -621rpx;}
.icon-ranking { width: 64rpx; height: 64rpx; background-position: -767rpx -964rpx;}
.icon-record-active { width: 112rpx; height: 112rpx; background-position: -381rpx -726rpx;} .icon-record-active { width: 112rpx; height: 112rpx; background-position: -381rpx -726rpx;}
.icon-record { width: 112rpx; height: 112rpx; background-position: -508rpx -726rpx;} .icon-record { width: 112rpx; height: 112rpx; background-position: -508rpx -726rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -888rpx -853rpx;} .icon-scan { width: 32rpx; height: 32rpx; background-position: -999rpx -853rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;} .icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -111rpx -853rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -111rpx -853rpx;} .icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -222rpx -853rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1105rpx -668rpx;} .icon-search { width: 40rpx; height: 40rpx; background-position: -1105rpx -668rpx;}
.icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;} .icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;}
.icon-setting { width: 64rpx; height: 64rpx; background-position: -372rpx -964rpx;} .icon-setting { width: 64rpx; height: 64rpx; background-position: -846rpx -964rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -222rpx -853rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: -333rpx -853rpx;}
.icon-tag-checked { width: 60rpx; height: 32rpx; background-position: -1240rpx -557rpx;} .icon-tag-checked { width: 60rpx; height: 32rpx; background-position: -1240rpx -557rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -925rpx -964rpx;} .icon-tool-file { width: 60rpx; height: 60rpx; background-position: -925rpx -964rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -1000rpx -964rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -1000rpx -964rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -1075rpx -964rpx;} .icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -1075rpx -964rpx;}
.icon-total { width: 32rpx; height: 32rpx; background-position: -935rpx -853rpx;} .icon-total { width: 32rpx; height: 32rpx; background-position: -1046rpx -853rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -1160rpx -668rpx;} .icon-visible { width: 40rpx; height: 40rpx; background-position: -1160rpx -668rpx;}
.icon-certificate { width: 64rpx; height: 64rpx; background-position: -451rpx -964rpx;}
.icon-day-points { width: 64rpx; height: 64rpx; background-position: -530rpx -964rpx;}
.icon-level { width: 64rpx; height: 64rpx; background-position: -609rpx -964rpx;}
.icon-medal { width: 64rpx; height: 64rpx; background-position: -688rpx -964rpx;}
.icon-points { width: 64rpx; height: 64rpx; background-position: -767rpx -964rpx;}
.icon-ranking { width: 64rpx; height: 64rpx; background-position: -846rpx -964rpx;}
\ No newline at end of file \ No newline at end of file
.icon-rule { width: 28rpx; height: 28rpx; background-position: -1093rpx -853rpx;}
.icon-point-active { width: 112rpx; height: 112rpx; background-position: -635rpx -726rpx;}
\ No newline at end of file \ No newline at end of file

1.24 MB | W: | H:

1.27 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

6.89 KB | W: | H:

6.42 KB | W: | H:

assets/spritesmith/certificate.png
assets/spritesmith/certificate.png
assets/spritesmith/certificate.png
assets/spritesmith/certificate.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
<view class="point-month"> <view class="point-month">
<view class="month-box"> <view class="month-box">
<view class="month-up" @click="jump('day')"> <view class="month-up" @click="jump('day')">
<view class="month-logo"></view> <view class="sprite-icon icon-points"></view>
<view class="month-text">本月积分</view> <view class="month-text">本月积分</view>
<uni-icons type="right"></uni-icons> <uni-icons type="right"></uni-icons>
</view> </view>
<view class="month-num">9</view> <view class="month-num">9</view>
<view class="month-up"> <view class="month-up">
<view class="month-logo"></view> <view class="sprite-icon icon-ranking"></view>
<view class="month-text">本月排名</view> <view class="month-text">本月排名</view>
<uni-icons type="right"></uni-icons> <uni-icons type="right"></uni-icons>
</view> </view>
...@@ -22,36 +22,55 @@ ...@@ -22,36 +22,55 @@
<view class="point-up"> <view class="point-up">
<view class="card-box"> <view class="card-box">
<view class="card-top"> <view class="card-top">
<image src="/static/reward.png" class="card-logo" /> <view class="sprite-icon icon-level"></view>
<view class="card-title">成长级别</view> <view class="card-title">成长级别</view>
</view> </view>
<view class="card-content"></view> <view class="card-content level-box" :style="levelList[level].style">
<view class="level-logo"><image :src="levelList[level].logo"></image></view>
<view class="level-name">{{ levelList[level].title }}</view>
<view class="level-month">11月</view>
</view>
</view> </view>
<view class="card-box"> <view class="card-box">
<view class="card-top"> <view class="card-top">
<image src="/static/reward.png" class="card-logo" /> <view class="sprite-icon icon-medal"></view>
<view class="card-title">我的勋章</view> <view class="card-title">我的勋章</view>
</view> </view>
<view class="card-content"></view> <view class="card-content star-box">
<view class="card-item" v-for="(item, index) in starList" :key="index">
<image :src="myStar.includes(index + 1) ? item.logo : item.logo_grey" />
<view :class="{ 'card-text': true, grey: !myStar.includes(index + 1) }">{{ item.title }}</view>
</view>
</view>
</view> </view>
</view> </view>
</view> </view>
<view class="card-box coupon-box"> <view class="card-box coupon-box">
<view class="card-top"> <view class="card-top">
<image src="/static/reward.png" class="card-logo" /> <view class="sprite-icon icon-certificate"></view>
<view class="card-title">我的兑换券</view> <view class="card-title">我的兑换券</view>
<view class="card-tips">即将开通</view> <view class="card-wait">敬请期待</view>
</view> </view>
<view class="card-content"></view> <view class="card-content"></view>
</view> </view>
</view> </view>
<view class="point-right"> <view class="point-right">
<view class="card-box"> <view class="card-box rule-box">
<view class="card-top"> <view class="card-top">
<image src="/static/reward.png" class="card-logo" /> <view class="sprite-icon icon-day-points"></view>
<view class="card-title">每日积分</view> <view class="card-title">每日积分</view>
<view class="card-tips">
<view class="sprite-icon icon-rule"></view>
<text>积分规则</text>
</view>
</view>
<view class="card-content day-rate">
3
<text>/7</text>
</view>
<view class="process-box">
<view class="process-inter" :style="{ width: 10 + '%' }"></view>
</view> </view>
<view class="card-content"></view>
</view> </view>
<view class="point-record"> <view class="point-record">
<view class="record-title">积分记录</view> <view class="record-title">积分记录</view>
...@@ -77,6 +96,42 @@ export default { ...@@ -77,6 +96,42 @@ export default {
name: '', name: '',
data () { data () {
return { return {
level: 3,
levelList: [
{
title: '青铜级萌新',
titleStyle: 'background: linear-gradient(129deg, #88696B 13%, #665253 91%);color: transparent; background-clip: text;-webkit-background-clip: text; ',
detailStyle: 'color: #995737;background-image: linear-gradient(93deg, rgba(255, 255, 255, 0.3) 2%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.15) 99%);',
style: 'background-image: linear-gradient(138deg, #F5E7DE 0%, #F1DBCF 20%, #F1DACD 39%, #EACEC0 40%, #EACDBF 70%, #F3DBD0 100%);',
logo: require('@/assets/images/point/bronze.png'),
},
{
title: '白银级熟手',
titleStyle: 'background: linear-gradient(129deg, #4A668F 13%, #333B43 91%);color: transparent; background-clip: text;webkit-background-clip: text;',
detailStyle: 'color: #556985;background-image: linear-gradient(93deg, rgba(255, 255, 255, 0.3) 2%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.15) 99%);;',
style: 'background-image: linear-gradient(138deg, #EDF0F5 0%, #E0E7EF 25%, #E4EAF2 39%, #DDE4ED 40%, #CCD7E6 74%, #D8E1ED 100%);',
logo: require('@/assets/images/point/silver.png'),
},
{
title: '黄金级能手',
titleStyle: 'background: linear-gradient(129deg, #B17813 13%, #794308 91%);color: transparent; background-clip: text;webkit-background-clip: text;',
detailStyle: 'color: #855A1B;background-image: linear-gradient(97deg, rgba(255, 255, 255, 0.3) 2%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.15) 99%);',
style: 'background-image: linear-gradient(138deg, #F7EFD7 0%, #F1E3C0 25%, #F1E4C1 39%, #EAD6A8 40%, #EAD6A6 74%, #F0E3C0 100%);',
logo: require('@/assets/images/point/gold.png'),
},
{
title: '钻石级专家',
titleStyle: 'background: linear-gradient(111deg, #E7E8FD 11%, #C7CDF2 53%, #F4D8E8 100%);color: transparent; background-clip: text;webkit-background-clip: text;',
detailStyle: 'color: #E7E8FD;background: rgba(255, 255, 255, .5);',
style: 'background-image: linear-gradient(138deg, #7162B6 0%, #433C94 25%, #313279 39%, #272A5B 40%, #2F356B 74%, #363E7A 100%);',
logo: require('@/assets/images/point/masonry.png'),
}
],
starList:[ { title: '学习之星', logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), },
{ title: '全勤之星', logo: require('@/assets/images/point/time_star.png'), logo_grey: require('@/assets/images/point/time_grey.png'), },
{ title: '零售导师', logo: require('@/assets/images/point/teacher_star.png'), logo_grey: require('@/assets/images/point/teacher_grey.png'), },
{ title: '平板接待', logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), }],
myStar: [1,2,3],
recordList:[{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10}], recordList:[{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10},{title:'签到',time:'2021-09-09',num:10}],
} }
}, },
...@@ -113,6 +168,37 @@ export default { ...@@ -113,6 +168,37 @@ export default {
border: 4rpx solid #ffffff; border: 4rpx solid #ffffff;
box-shadow: inset 0 4rpx 8rpx 0 #ffffff80; box-shadow: inset 0 4rpx 8rpx 0 #ffffff80;
border-radius: 48rpx; border-radius: 48rpx;
&.rule-box {
background-image: url('../../../assets//images/point/rule_bg.png');
background-size: 100% 100%;
border: none;
background-color: transparent;
box-shadow: none;
}
&.coupon-box {
background-image: url('../../../assets//images/point/ticket_bg.png');
background-size: 100% 100%;
border: none;
background-color: transparent;
box-shadow: none;
height: calc(100vh - 1150rpx);
.card-title {
font-size: 36rpx;
color: #ffffff !important;
}
.card-wait {
width: 144rpx;
height: 48rpx;
background: #ffffff59;
border-radius: 24rpx;
font-size: 24rpx;
color: #c17d1e;
line-height: 48rpx;
text-align: center;
margin-left: auto;
margin-right: 40rpx;
}
}
.card-top { .card-top {
display: flex; display: flex;
line-height: 64rpx; line-height: 64rpx;
...@@ -125,8 +211,99 @@ export default { ...@@ -125,8 +211,99 @@ export default {
color: #1a1a1a; color: #1a1a1a;
margin-left: 32rpx; margin-left: 32rpx;
} }
.card-tips {
margin-left: auto;
width: 176rpx;
height: 56rpx;
background: #ffffff;
box-shadow:
inset 0 4rpx 0 0 #dde3eb,
inset 0 0 0 0 #ffffff,
inset 0 -4rpx 0 0 #f0f2f5;
border-radius: 28rpx;
display: flex;
align-items: center;
justify-content: center;
text {
font-size: 24rpx;
color: #808291;
margin-left: 12rpx;
}
}
}
.card-content { .card-content {
margin-top: 40rpx; margin-top: 40rpx;
&.day-rate {
font-size: 80rpx;
color: #4673ff;
font-weight: 600;
margin-left: 80rpx;
text {
font-size: 64rpx;
}
}
&.level-box {
position: relative;
border-radius: 24rpx;
width: 552rpx;
height: 192rpx;
padding: 48rpx 64rpx;
box-sizing: border-box;
.level-logo {
position: absolute;
top: 0rpx;
right: 30rpx;
image {
width: 120rpx;
height: 144rpx;
}
}
.level-name {
font-size: 32rpx;
}
.level-month {
width: 130rpx;
height: 40rpx;
border-radius: 20rpx;
font-size: 24rpx;
color: #676f7a;
line-height: 40rpx;
margin-top: 20rpx;
text-align: center;
background-image: linear-gradient(94deg, #ffffff4d 2%, #ffffff80 51%, #ffffff26 99%);
}
}
&.star-box {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20rpx;
.card-item {
image {
width: 117rpx;
height: 117rpx;
margin: 6rpx 0rpx;
}
}
.card-text {
font-size: 26rpx;
color: #181a1f;
&.grey {
color: #181a1f;
}
}
}
}
.process-box {
height: 16rpx;
width: 100%;
position: relative;
background: #dfe9f7;
border-radius: 8rpx;
margin-top: 64rpx;
.process-inter {
height: 16rpx;
background-image: linear-gradient(90deg, #bcaffb 3%, #7aabff 95%);
border-radius: 8rpx;
} }
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-08 11:30:30 * @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-17 11:36:08 * @LastEditTime: 2024-12-18 16:03:00
--> -->
<template> <template>
<view class="point-box"> <view class="point-box">
...@@ -18,10 +18,8 @@ ...@@ -18,10 +18,8 @@
<uni-icons type="left" size="20"></uni-icons> <uni-icons type="left" size="20"></uni-icons>
</view> </view>
</view> </view>
<view class="tab-body"> <view class="tab-mid">11月</view>
<view class="month-name">{{ getValue('customerName') }}</view> <view :class="{ 'tab-next': true, disabled: currentIndex == detail.length - 1 }" @click="nextTab(currentIndex == detail.length - 1)">
</view>
<view :class="{ 'tab-next': true, disabled: currentIndex == detail.receptionpriproCusCaseList.length - 1 }" @click="nextTab(currentIndex == detail.receptionpriproCusCaseList.length - 1)">
<view class="tab-icon"> <view class="tab-icon">
<uni-icons type="right" size="20"></uni-icons> <uni-icons type="right" size="20"></uni-icons>
</view> </view>
...@@ -29,6 +27,34 @@ ...@@ -29,6 +27,34 @@
</view> </view>
</view> </view>
</view> </view>
<view class="point-body">
<view class="body-top">
<!-- <view class="sprite-icon icon-day-points"></view> -->
<image :src="levelImg[0]" class="level-image" />
<view class="level-desc">
<view class="level-name">11月积分:白银级熟手</view>
<view class="level-num">第 35 名</view>
</view>
<view class="level-score">180</view>
</view>
<view class="point-detail">
<view class="point-item" v-for="(item, index) in pointList" :key="index">
<view class="item-header">
<view class="point-class">{{ item.name }}</view>
<view class="class-score">{{ item.num }}积分</view>
</view>
<view class="desc-wrap">
<view class="item-body" v-for="(l, i) in 20" :key="i">
<view class="item-left">
<view class="item-title">参与培训</view>
<view class="item-time">2024-12-10 10:05:30</view>
</view>
<view class="item-num">+1</view>
</view>
</view>
</view>
</view>
</view>
</view> </view>
</template> </template>
<script> <script>
...@@ -36,7 +62,69 @@ export default { ...@@ -36,7 +62,69 @@ export default {
data() { data() {
return { return {
selectItem: {}, selectItem: {},
currentIndex: 0 levelImg: [require('@/assets/images/point/bronze.png'), require('@/assets/images/point/silver.png'), require('@/assets/images/point/gold.png'), require('@/assets/images/point/masonry.png')],
detail: [],
currentIndex: 0,
pointList: [
{
name: '课程学习类',
num: 6,
list: [
{
name: '参与培训',
time: '2024-12-10 10:05:30',
socre: 1
},
{
name: '参与培训',
time: '2024-12-10 10:05:30',
socre: 1
},
{
name: '参与培训',
time: '2024-12-10 10:05:30',
socre: 1
},
{
name: '参与培训',
time: '2024-12-10 10:05:30',
socre: 1
},
{
name: '参与培训',
time: '2024-12-10 10:05:30',
socre: 1
},
{
name: '参与培训',
time: '2024-12-10 10:05:30',
socre: 1
}
]
},
{
name: '课程学习类',
num: 6,
list: [
{
name: '参与培训',
time: '2024-12-10 10:05:30',
socre: 1
}
]
},
{
name: '课程学习类',
num: 6,
list: [
{
name: '参与培训',
time: '2024-12-10 10:05:30',
socre: 1
}
]
}
]
} }
}, },
mounted() {}, mounted() {},
...@@ -57,10 +145,14 @@ export default { ...@@ -57,10 +145,14 @@ export default {
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.point-box {
position: relative;
}
.nav-bar { .nav-bar {
width: 100%; width: 100%;
height: 96rpx; height: 96rpx;
margin-top: 48rpx; margin-top: 48rpx;
margin-bottom: 12rpx;
display: flex; display: flex;
align-items: center; align-items: center;
.back { .back {
...@@ -71,13 +163,118 @@ export default { ...@@ -71,13 +163,118 @@ export default {
justify-content: center; justify-content: center;
pointer-events: auto; pointer-events: auto;
} }
.title { .month-box {
font-weight: 700; flex: 1;
.month-tabs {
display: flex;
justify-content: center;
align-items: center;
.tab-mid {
font-size: 32rpx; font-size: 32rpx;
color: #1a1a1a; color: #1a1a1a;
flex: 1; margin: 0 120rpx;
text-align: center; }
margin-left: -96rpx; }
.tab-prev,
.tab-next {
display: flex;
align-items: center;
justify-content: center;
width: 48rpx;
border-radius: 50%;
height: 48rpx;
background: #ffffff;
}
}
}
.point-body {
background-image: linear-gradient(180deg, #ffffff59 0%, #ffffff00 100%);
border-radius: 32rpx;
width: calc(100vw - 128rpx);
margin: 0 64rpx;
height: calc(100vh - 100rpx);
.body-top {
display: flex;
align-items: center;
margin-left: 80rpx;
.level-image {
width: 136rpx;
height: 162.6rpx;
}
.level-desc {
margin-left: 40rpx;
.level-name {
font-size: 36rpx;
color: #1a1a1a;
line-height: 60rpx;
font-weight: 700;
}
.level-num {
font-size: 24rpx;
color: #808291;
}
}
.level-score {
font-weight: 700;
font-size: 80rpx;
color: #4673ff;
margin-left: 64rpx;
}
}
.point-detail {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 68rpx;
margin: 32rpx;
.point-item {
background: #ffffff73;
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 32rpx;
padding: 24rpx 48rpx;
height: calc(100vh - 360rpx);
.item-header {
display: flex;
justify-content: space-between;
align-items: center;
line-height: 56rpx;
margin-bottom: 26rpx;
.point-class {
font-size: 36rpx;
color: #1a1a1a;
}
.class-score {
font-size: 32rpx;
color: #181a1f;
}
}
.desc-wrap {
height: calc(100% - 102rpx);
overflow-y: auto;
}
.item-body {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2rpx solid #edf3ff;
padding: 20rpx 0;
.item-left {
.item-title {
font-size: 26rpx;
line-height: 40rpx;
color: #181a1f;
}
.item-time {
font-size: 24rpx;
color: #808291;
line-height: 40rpx;
}
}
.item-num {
font-size: 32rpx;
color: #181a1f;
}
}
}
} }
} }
</style> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-08 11:30:30 * @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-14 16:20:48 * @LastEditTime: 2024-12-17 13:48:57
--> -->
<template> <template>
<view class="point-box"> <view class="point-box">
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'DayPoint',
data() { data() {
return { return {
selectItem: {}, selectItem: {},
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-18 15:28:34
-->
<template>
<view class="point-box">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="month-box">
<view class="month-tabs">
<view :class="{ 'tab-prev': true, disabled: currentIndex == 0 }" @click="prevTab(currentIndex == 0)">
<view class="tab-icon">
<uni-icons type="left" size="20"></uni-icons>
</view>
</view>
<view class="tab-mid">11月</view>
<view :class="{ 'tab-next': true, disabled: currentIndex == detail.length - 1 }" @click="nextTab(currentIndex == detail.length - 1)">
<view class="tab-icon">
<uni-icons type="right" size="20"></uni-icons>
</view>
</view>
</view>
</view>
</view>
<view class="point-body">
<view class="level-box">
<view class="level-logo">
<view class="sprite-icon icon-level"></view>
<view class="level-title">成长级别</view>
</view>
<view class="level-desc">
<view class="level-item" :style="index == levelIndex || isHigh ? item.style : ''" v-for="(item, index) in levelList">
<view class="item-name" :style="index == levelIndex || isHigh ? item.titleStyle : ''">{{ item.title }}</view>
<view class="item-logo"><image :src="index == levelIndex || isHigh ? item.logo : item.logo_grey"></image></view>
<view :class="{ 'item-desc': true, grey: index != levelIndex && !isHigh }">{{ item.title }}</view>
<view class="item-detail" :style="index == levelIndex || isHigh ? item.detailStyle : ''">
<ul>
<li class="item-coupon" v-for="(coupon, index) in item.coupon.list">{{ coupon }}</li>
</ul>
</view>
</view>
</view>
</view>
<view class="level-box">
<view class="level-logo">
<view class="sprite-icon icon-medal"></view>
<view class="level-title">成长勋章</view>
</view>
<view class="level-desc">
<view class="level-item" :style="index == groupIndex || isHigh ? item.style : ''" v-for="(item, index) in groupList">
<view class="star-logo"><image :src="index == groupIndex || isHigh ? item.logo : item.logo_grey"></image></view>
<view :class="{ 'star-name': true, grey: index != groupIndex && !isHigh }">{{ item.title }}</view>
<view :class="{ 'star-desc': true, grey: index != groupIndex && !isHigh }">{{ item.content }}</view>
<view class="star-coupon">
<view class="coupon-box">
<image :src="require('@/assets/images/point/coupon_bg.png')" v-if="index == groupIndex || isHigh"></image>
<image :src="require('@/assets/images/point/coupon_grey.png')" v-else></image>
<view :class="{ 'coupon-title': true, grey: index != groupIndex && !isHigh }">50元话费券</view>
<view :class="{ 'coupon-num': true, grey: index != groupIndex && !isHigh }">1张</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
selectItem: {},
detail: [],
isHigh: false,
currentIndex: 0,
levelIndex: 1,
levelList: [
{
title: '青铜级萌新',
titleStyle: 'background: linear-gradient(129deg, #88696B 13%, #665253 91%);color: transparent; background-clip: text;-webkit-background-clip: text; ',
content: '每月度奖励',
detailStyle: 'color: #995737;background-image: linear-gradient(93deg, rgba(255, 255, 255, 0.3) 2%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.15) 99%);',
coupon: {
list: ['咖啡奶茶券 1 张', '美团外卖直兑券 1 张']
},
style: 'color:#995737;background-image: linear-gradient(149deg, #FAF2ED 0%, #F1DBCF 30%, #F1DACD 39%, #EBCEC0 40%, #EACCBE 74%, #F7E4DA 100%);box-shadow: inset 0 0 4rpx 0 rgba(255, 255, 255, 0.3);',
logo: require('@/assets/images/point/bronze.png'),
logo_grey: require('@/assets/images/point/star_grey.png')
},
{
title: '白银级熟手',
titleStyle: 'background: linear-gradient(129deg, #4A668F 13%, #333B43 91%);color: transparent; background-clip: text;webkit-background-clip: text;',
detailStyle: 'color: #556985;background-image: linear-gradient(93deg, rgba(255, 255, 255, 0.3) 2%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.15) 99%);;',
coupon: {
list: ['咖啡奶茶券 1 张', '美团外卖直兑券 1 张'],
style: 'color: #995737'
},
style: 'color:#2D4566;background-image: linear-gradient(149deg, #F7F8FA 0%, #E4EAF2 30%, #E4EAF2 39%, #DDE4ED 40%, #CAD7E8 74%, #DCE6F2 100%);box-shadow: inset 0 0 2rpx 0 #ffffff4d;',
logo: require('@/assets/images/point/silver.png'),
logo_grey: require('@/assets/images/point/star_grey.png')
},
{
title: '黄金级能手',
titleStyle: 'background: linear-gradient(129deg, #B17813 13%, #794308 91%);color: transparent; background-clip: text;webkit-background-clip: text;',
detailStyle: 'color: #855A1B;background-image: linear-gradient(97deg, rgba(255, 255, 255, 0.3) 2%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.15) 99%);',
coupon: {
list: ['咖啡奶茶券 1 张', '美团外卖直兑券 1 张'],
style: 'color: #995737'
},
style: 'color:#855A1B;background-image: linear-gradient(149deg, #FAF7ED 0%, #F1E3BF 30%, #F1E4C1 39%, #EAD6A8 40%, #EAD6A5 74%, #F4EAD0 100%);box-shadow: inset 0 0 2rpx 0 #ffffff4d;',
logo: require('@/assets/images/point/gold.png'),
logo_grey: require('@/assets/images/point/star_grey.png')
},
{
title: '钻石级专家',
titleStyle: 'background: linear-gradient(111deg, #E7E8FD 11%, #C7CDF2 53%, #F4D8E8 100%);color: transparent; background-clip: text;webkit-background-clip: text;',
detailStyle: 'color: #E7E8FD;background: rgba(255, 255, 255, .5);',
coupon: {
list: ['拥有晋升、评优资格', '咖啡奶茶券 6 张', '生日月专享生日餐券', '闭门课分享活动参加资格', '美团外卖直兑券 6 张', '公司定制公仔礼包'],
style: 'color: #995737'
},
style: 'color:#fff;background-image: linear-gradient(148deg, #7061AD 0%, #42398F 26%, #292B66 56%, #242752 57%, #242752 65%, #282E5C 93%);box-shadow: inset 0 0 2rpx 0 #ffffff4d;',
logo: require('@/assets/images/point/masonry.png'),
logo_grey: require('@/assets/images/point/star_grey.png')
}
],
groupList: [
{ title: '学习之星', logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), content: '月度学习类积分排名前10名' },
{ title: '全勤之星', logo: require('@/assets/images/point/time_star.png'), logo_grey: require('@/assets/images/point/time_grey.png'), content: '月度学习类积分排名前10名' },
{ title: '零售导师', logo: require('@/assets/images/point/teacher_star.png'), logo_grey: require('@/assets/images/point/teacher_grey.png'), content: '月度学习类积分排名前10名' },
{ title: '平板接待精英', logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), content: '月度学习类积分排名前10名' }
],
groupIndex: 1
}
},
mounted() {},
methods: {
prevTab(val) {
if (val) return
this.currentIndex--
this.currentStep = 0
this.updateStage()
},
nextTab(val) {
if (val) return
this.currentIndex++
this.currentStep = 0
this.updateStage()
}
}
}
</script>
<style scoped lang="scss">
.point-box {
position: relative;
}
.nav-bar {
width: 100%;
height: 96rpx;
margin-top: 48rpx;
margin-bottom: 12rpx;
display: flex;
align-items: center;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.month-box {
flex: 1;
.month-tabs {
display: flex;
justify-content: center;
align-items: center;
.tab-mid {
font-size: 32rpx;
color: #1a1a1a;
margin: 0 120rpx;
}
}
.tab-prev,
.tab-next {
display: flex;
align-items: center;
justify-content: center;
width: 48rpx;
border-radius: 50%;
height: 48rpx;
background: #ffffff;
}
}
}
.point-body {
padding: 0 64rpx;
margin-top: 30rpx;
.level-box {
height: calc(50vh - 136rpx);
display: flex;
&:first-child {
margin-bottom: 48rpx;
}
.level-logo {
.sprite-icon {
transform: scale(0.8);
}
.level-title {
font-weight: 600;
font-size: 36rpx;
color: #333333;
letter-spacing: 0;
line-height: 44rpx;
width: 64rpx;
text-align: center;
margin-top: 16prx;
}
}
.level-desc {
height: 100%;
background: #ffffffe6;
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 40rpx;
margin-left: 32rpx;
width: calc(100vw - 200rpx);
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 32rpx;
padding: 56rpx 48rpx;
.level-item {
background: #f7f7f7;
border: 4rpx solid #ffffff33;
border-radius: 36rpx;
position: relative;
.item-name {
font-size: 40rpx;
color: #a2a2a8;
position: absolute;
left: 32rpx;
top: 80rpx;
font-weight: 600;
}
.star-logo {
margin-top: 44rpx;
text-align: center;
image {
width: 168rpx;
height: 168rpx;
}
}
.star-coupon {
position: absolute;
bottom: 30rpx;
left: 0rpx;
display: flex;
justify-content: center;
width: 100%;
.coupon-box {
width: 390rpx;
height: 96rpx;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32rpx;
z-index: 0;
image {
position: absolute;
left: 0;
top: 0;
width: 390rpx;
height: 96rpx;
z-index: -1;
}
.coupon-title {
font-size: 28rpx;
color: #5c3537;
&.grey {
color: #fdfdff;
}
}
.coupon-num {
font-size: 28rpx;
color: #db832c;
&.grey {
color: #fdfdff;
}
}
}
}
.star-name {
text-align: center;
font-size: 40rpx;
line-height: 60rpx;
color: #292d33;
font-weight: 600;
&.grey {
color: #a2a2a8;
}
}
.star-desc {
font-size: 24rpx;
color: #181a1f;
text-align: center;
line-height: 60rpx;
&.grey {
color: #a2a2a8;
}
}
.item-logo {
position: absolute;
top: 0rpx;
right: 0rpx;
image {
width: 184rpx;
height: 220rpx;
}
}
.item-desc {
bottom: calc(100% - 260rpx);
left: 40rpx;
position: absolute;
&.grey {
color: #a2a2a8;
}
}
.item-detail {
position: absolute;
left: 0;
bottom: 26rpx;
width: calc(100% - 48rpx);
box-sizing: border-box;
border-radius: 16rpx;
max-height: calc(100% - 320rpx);
overflow-y: auto;
margin: 16rpx 24rpx;
padding: 12rpx 0rpx;
background: #efeff1;
color: #a2a2a8;
.item-coupon {
position: relative;
font-size: 24rpx;
line-height: 36rpx;
margin-left: -20rpx;
}
}
}
}
}
}
</style>
<!--
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-18 15:48:25
-->
<template>
<view class="point-box">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="month-box">
<view class="month-tabs">
<view :class="{ 'tab-prev': true, disabled: currentIndex == 0 }" @click="prevTab(currentIndex == 0)">
<view class="tab-icon">
<uni-icons type="left" size="20"></uni-icons>
</view>
</view>
<view class="tab-mid">11月</view>
<view :class="{ 'tab-next': true, disabled: currentIndex == detail.length - 1 }" @click="nextTab(currentIndex == detail.length - 1)">
<view class="tab-icon">
<uni-icons type="right" size="20"></uni-icons>
</view>
</view>
</view>
</view>
</view>
<view class="point-body">
<view class="point-detail">
<view class="point-item" v-for="(item, index) in pointList" :key="index">
<view class="item-header"><image :src="item.src" /></view>
<view class="item-body" :style="item.style">
<view class="item-logo">14</view>
<view class="item-name">王钰</view>
<view :class="{ 'item-prize': index == 0, 'item-medal': index != 0 }"><image :src="index == 0 ? pointImg[0] : starImg[index - 1]" /></view>
<view class="item-num">200</view>
</view>
<view class="desc-wrap">
<view class="item-body" v-for="(l, i) in 20" :key="i">
<view class="item-logo" v-if="i > 2">{{ i++ }}</view>
<view class="item-image" v-else><image :src="require(`@/assets/images/point/${item.isCrown ? 'crown_' : 'prize_'}${i + 1}.png`)" /></view>
<view class="item-name">王钰</view>
<view :class="{ 'item-prize': index == 0, 'item-medal': index != 0 }"><image :src="index == 0 ? pointImg[0] : starImg[index - 1]" /></view>
<view class="item-num">+1</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
selectItem: {},
detail: [],
currentIndex: 0,
pointImg: [require('@/assets/images/point/bronze_ranking.png'), require('@/assets/images/point/silver_ranking.png'), require('@/assets/images/point/gold_ranking.png'), require('@/assets/images/point/masonry_ranking.png')],
starImg: [require('@/assets/images/point/study_star.png'), require('@/assets/images/point/time_star.png'), require('@/assets/images/point/teacher_star.png'), require('@/assets/images/point/elite_star.png')],
pointList: [
{
src: require('@/assets/images/point/point_bg.png'),
style: 'background: #fef2cb99;',
isCrown: true
},
{
src: require('@/assets/images/point/study_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
},
{
src: require('@/assets/images/point/diligent_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
},
{
src: require('@/assets/images/point/teacher_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
},
{
src: require('@/assets/images/point/ipad_bg.png'),
style: 'background-image: linear-gradient(270deg, #c2d8fc59 0%, #d1e9ff59 100%);'
}
]
}
},
mounted() {},
methods: {
prevTab(val) {
if (val) return
this.currentIndex--
this.currentStep = 0
this.updateStage()
},
nextTab(val) {
if (val) return
this.currentIndex++
this.currentStep = 0
this.updateStage()
}
}
}
</script>
<style scoped lang="scss">
.point-box {
position: relative;
}
.nav-bar {
width: 100%;
height: 96rpx;
margin-top: 48rpx;
margin-bottom: 12rpx;
display: flex;
align-items: center;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.month-box {
flex: 1;
.month-tabs {
display: flex;
justify-content: center;
align-items: center;
.tab-mid {
font-size: 32rpx;
color: #1a1a1a;
margin: 0 120rpx;
}
}
.tab-prev,
.tab-next {
display: flex;
align-items: center;
justify-content: center;
width: 48rpx;
border-radius: 50%;
height: 48rpx;
background: #ffffff;
}
}
}
.point-body {
border-radius: 32rpx;
width: calc(100vw - 128rpx);
margin: 0 64rpx;
height: calc(100vh - 100rpx);
.body-top {
display: flex;
align-items: center;
margin-left: 80rpx;
.level-image {
width: 120rpx;
height: 120rpx;
}
.level-desc {
margin-left: 40rpx;
.level-name {
font-size: 36rpx;
color: #1a1a1a;
line-height: 60rpx;
font-weight: 700;
}
.level-num {
font-size: 24rpx;
color: #808291;
}
}
.level-score {
font-weight: 700;
font-size: 80rpx;
color: #4673ff;
margin-left: 64rpx;
}
}
.point-detail {
display: flex;
flex-wrap: nowrap;
width: 100%;
overflow-x: auto;
gap: 48rpx;
.point-item {
width: 688rpx;
background: #ffffff73;
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 32rpx;
height: calc(100vh - 200rpx);
.item-header {
image {
width: 688rpx;
height: 128rpx;
}
}
.item-body {
height: 128rpx;
border-radius: 24rpx;
margin: 0 24rpx;
display: flex;
align-items: center;
padding: 0 32rpx;
.item-logo {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
background: #ffffff;
border: 2rpx solid #ffffff;
line-height: 72rpx;
font-size: 34rpx;
color: #a0a1ad;
text-align: center;
box-sizing: border-box;
}
.item-image {
width: 80rpx;
box-sizing: border-box;
height: 80rpx;
border-radius: 50%;
background: #ffffff;
border: 2rpx solid #ffffff;
display: flex;
align-items: center;
justify-content: center;
image {
width: 56rpx;
height: 56rpx;
}
}
.item-name {
font-size: 30rpx;
color: #181a1f;
margin-left: 20rpx;
}
.item-prize {
flex: 1;
text-align: right;
margin-right: 48rpx;
image {
width: 148rpx;
height: 56rpx;
}
}
.item-medal {
margin-left: 16rpx;
image {
width: 48rpx;
height: 48rpx;
}
}
.item-num {
font-size: 32rpx;
color: #181a1f;
margin-left: auto;
}
}
.desc-wrap {
height: calc(100% - 292rpx);
overflow-y: auto;
}
}
}
}
</style>
<!--
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-17 11:29:03
-->
<template> <template>
<view class="point-box"> <view class="point-box">
<view class="nav-bar"> <view class="nav-bar">
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<view :class="['detail', { show: id }]"> <view :class="['detail', { show: id }]">
<slot name="detail" /> <slot name="detail" />
</view> </view>
<view class="point-page"> <view class="point-page" v-if="!showHome">
<component :is="pointComponentName" /> <component :is="pointComponentName" />
</view> </view>
<!-- 未点击开始接待,弹窗 --> <!-- 未点击开始接待,弹窗 -->
...@@ -66,9 +66,12 @@ import LeftSide from './components/LeftSide.vue' ...@@ -66,9 +66,12 @@ import LeftSide from './components/LeftSide.vue'
import Point from './components/Point.vue' import Point from './components/Point.vue'
import dayPoint from './components/Point/DayPoint.vue' import dayPoint from './components/Point/DayPoint.vue'
import rulePoint from './components/Point/RulePoint.vue' import rulePoint from './components/Point/RulePoint.vue'
import LevelPoint from './components/Point/LevelPoint.vue'
import Course from './components/Point/Course.vue'
import Ranking from './components/Point/Ranking.vue'
export default { export default {
mixins: [myClick, uploader], mixins: [myClick, uploader],
components: { RecordList, CustomerFile, LeftSide, Point, dayPoint, rulePoint }, components: { RecordList, CustomerFile, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint },
props: { props: {
id: [String, Number], id: [String, Number],
finishDoneText: String, finishDoneText: String,
...@@ -79,8 +82,8 @@ export default { ...@@ -79,8 +82,8 @@ export default {
}, },
data() { data() {
return { return {
showHome: false, showHome: true,
pointComponentName: 'rulePoint', pointComponentName: 'Point',
userInfo: {}, userInfo: {},
tabIndex: 0 tabIndex: 0
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!