3
0
Fork 0
web-store-retail-h5/pages/mine/growthRoad/gradeRoad.vue

135 lines
2.5 KiB
Vue
Raw Normal View History

2025-03-23 09:29:40 +08:00
<template>
<view class="content">
<view class="themain">
<view class="main_top">
<view class="topimg">
<image class="images1" :src="theData.thisAvatarUrl" mode=""></image>
</view>
<view class="top_title" :style="{color:theData.color}">
{{ theData.thisGradeName }}
</view>
<view class="top_name">
<view>{{$t('MY_ORD_71')}} {{ theData.globalCode }}</view>
<view style="margin-top: 10rpx;">{{$t('S_L_4')}} {{ theData.countryCode }}</view>
</view>
</view>
<view class="main_bottom">
<view class="awards-list" v-for="(item,index) in theData.gradeList">
<view class="awards-img" v-if="item.image">
<img :src="item.image">
</view>
<view class="height" :style="{height:item.gradeValue*index+300+'rpx',background:item.color}">
<view class="award-name">{{ item.gradeName }}</view>
<view class="price">
{{item.startValue|toThousandthAndKeepDecimal}}
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import * as bal from '@/config/balance.js'
export default {
filters: {
decimalFormat(value) {
return Number(value).toFixed(2);
},
},
data() {
return {
theData: {}
}
},
onLoad() {
this.getList();
},
methods: {
getList() {
bal.getGrowUpGrade().then((res) => {
if (res.code == 200) {
this.theData = res.data;
}
});
}
}
}
</script>
<style lang="scss" scoped>
.content {
padding: 20rpx 24rpx;
background: #F9F9F9;
.themain {
background: #FFFFFF;
box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(204, 204, 204, 0.4);
border-radius: 20rpx 20rpx 20rpx 20rpx;
.main_top {
padding: 40rpx 0 20rpx 0;
border-bottom: 8rpx solid rgba(0, 0, 0, 0.05);
text-align: center;
.topimg {
.images1 {
width: 124rpx;
height: 124rpx;
}
}
.top_title {
font-size: 40rpx;
margin-top: 20rpx;
}
.top_name {
font-size: 28rpx;
color: #666666;
margin-top: 8rpx;
}
}
.main_bottom {
padding: 40rpx 20rpx;
display: flex;
align-items: flex-end;
.awards-list {
margin: 0 20rpx;
width: 64rpx;
text-align: center;
.awards-img {
img {
width: 76rpx;
height: 76rpx;
}
}
.height {
border-radius: 8rpx;
width: 64rpx;
margin-top: 20rpx;
text-align: center;
font-size: 24rpx;
font-weight: 400;
color: #333333;
.price {
padding: 20rpx;
word-wrap: break-word;
}
}
}
}
}
}
</style>