wode-guanyu-hongxing.vue 3.68 KB
<template>
  <view class="level-page">
    <!-- 导航栏 -->
    <uni-nav-bar title="华创信" left-icon="left" @click-left="goBack" :fixed="true" :status-bar="true" />
    <view class="top-right">
      <!-- <u-icon name="document" size="24" color="#fff" @click="showRules"></u-icon> -->
      <text class="right-text">华创信</text>
    </view>

    <!-- 用户信息 -->
    <view class="user-info">
      <image src="https://fitness-hcxtec-bucket.oss-cn-shenzhen.aliyuncs.com/20260316/order-empty_1773628059920.png"
        mode="aspectFill" class="avatar"></image>
      <text class="username">华创信开发者</text>
    </view>

    <!-- 更多权益 -->
    <view class="more-benefits">
      <view class="more-text">华创信开发者</view>
      <view class="more-text">系统开发中</view>
      <view class="more-text">敬请期待~</view>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    goBack() {
      uni.navigateBack();
    },
    showRules() {
      uni.showToast({ title: '查看开发内容', icon: 'success' });
    },
  },
};
</script>

<style scoped>
.level-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-bottom: 40rpx;
}

.top-right {
  position: absolute;
  top: 20rpx;
  right: 20rpx;
  display: flex;
  align-items: center;
  gap: 10rpx;
  color: white;
  font-size: 24rpx;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20rpx;
  padding: 20rpx;
  margin-top: 20rpx;
}

.avatar {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  object-fit: cover;
}

.username {
  font-size: 28rpx;
}

.level-card {
  width: 600rpx;
  height: 300rpx;
  background-color: rgba(173, 216, 230, 0.3);
  border-radius: 20rpx;
  padding: 30rpx;
  margin: 20rpx auto;
  position: relative;
  overflow: hidden;
}

.level-name {
  font-size: 40rpx;
  font-weight: bold;
  margin-bottom: 10rpx;
}

.level-en {
  font-size: 36rpx;
  font-weight: bold;
  margin-bottom: 20rpx;
}

.require {
  font-size: 24rpx;
  margin-bottom: 20rpx;
}

.detail {
  font-size: 24rpx;
  color: #ccc;
}

.progress-bar {
  width: 600rpx;
  height: 20rpx;
  background-color: #333;
  border-radius: 10rpx;
  margin: 20rpx auto;
  position: relative;
  overflow: hidden;
}

.progress-track {
  width: 100%;
  height: 100%;
  background-color: #333;
  border-radius: 10rpx;
}

.progress-fill {
  width: 20%;
  height: 100%;
  background-color: #007aff;
  border-radius: 10rpx;
}

.progress-dot {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 12rpx;
  height: 12rpx;
  background-color: #007aff;
  border-radius: 50%;
}

.benefits-section {
  margin: 20rpx;
  padding: 0 20rpx;
}

.section-title {
  font-size: 32rpx;
  margin-bottom: 20rpx;
  padding-left: 10rpx;
}

.benefit-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 16rpx;
}

.benefit-item {
  width: 180rpx;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12rpx;
  padding: 16rpx 12rpx;
  text-align: center;
  box-sizing: border-box;
}

.icon {
  width: 36rpx;
  height: 36rpx;
  object-fit: cover;
  margin-bottom: 8rpx;
}

.benefit-name {
  font-size: 22rpx;
  margin-bottom: 4rpx;
  font-weight: bold;
}

.benefit-desc {
  font-size: 18rpx;
  color: #ccc;
  line-height: 1.4;
}

.time-tag {
  font-size: 18rpx;
  color: white;
  background-color: #ff6b00;
  padding: 4rpx 8rpx;
  border-radius: 8rpx;
  margin-top: 8rpx;
  display: inline-block;
}

.more-benefits {
  margin: 30rpx 20rpx 0;
  padding: 20rpx;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12rpx;
  text-align: center;
}

.more-text {
  font-size: 24rpx;
  color: #ccc;
  margin-bottom: 10rpx;
}
</style>