<template>
  <view class="page">
    <view class="card">
      <view class="card-title">VIP会员</view>
      <view class="card-desc">开通VIP会员专享权益</view>
      <view class="card-status">
        已经开通 <button class="card-btn">立即开通</button>
      </view>
    </view>
    <view class="list-title">VIP会员专享{{ list.length }}项权益</view>
    <view class="list">
      <view class="item" v-for="item in list" :key="item.name">
        <image class="icon" :src="item.icon"></image>
        {{ item.name }}
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: "VipVip",
  data() {
    return {
      id: 0,
      list: [
        {
          name: "10000积分",
          icon: require("@/assets/vip/icon-integral.png"),
        },
        {
          name: "90团1000",
          icon: require("@/assets/vip/icon-purchase.png"),
        },
        {
          name: "85团100",
          icon: require("@/assets/vip/icon-restaurant.png"),
        },
        {
          name: "积分翻倍抵现",
          icon: require("@/assets/vip/icon-double.png"),
        },
        {
          name: "精选商户权益",
          icon: require("@/assets/vip/icon-boutique.png"),
        },
        {
          name: "停车优惠",
          icon: require("@/assets/vip/icon-parking.png"),
        },
      ],
    };
  },
  methods: {},
};
</script>

<style lang="scss">
page {
  background: #000;
}
.page {
  background: url("~@/assets/vip/bg.png") no-repeat center top #000;
  background-size: contain;
  padding: 40rpx 20rpx;
  color: rgb(251, 222, 190);
}
.card {
  width: 660rpx;
  height: 392rpx;
  background: url("~@/assets/vip/card-vip.png") no-repeat center;
  background-size: contain;
  box-sizing: border-box;
  padding: 40rpx;
  margin: 0 auto;
  color: rgb(251, 222, 190);
  overflow: hidden;
  .card-title {
    font-size: 56rpx;
  }
  .card-desc {
    font-size: 28rpx;
    margin-top: 20rpx;
  }
  .card-status {
    margin-top: 100rpx;
    text-align: right;
    line-height: 92rpx;
    font-size: 36rpx;
  }
  .card-btn {
    color: rgb(3, 3, 3);
    background: rgb(251, 222, 190);
    display: inline-block;
    padding: 0 50rpx;
    border-radius: 100rpx;
    font-weight: bold;
    &::after {
      display: none;
    }
  }
}
.list-title {
  font-size: 36rpx;
  margin-top: 40rpx;
  text-align: center;
  &::before,
  &::after {
    content: "";
    display: inline-block;
    width: 40rpx;
    height: 40rpx;
    background: url("~@/assets/vip/icon-crown.png") no-repeat center;
    background-size: contain;
    vertical-align: middle;
    margin: 0 10rpx;
  }
}
.list {
  margin-top: 20rpx;
  display: flex;
  flex-wrap: wrap;
  .item {
    width: 33.3333%;
    text-align: center;
    margin: 20rpx 0;
    font-size: 24rpx;
  }
  .icon {
    width: 100rpx;
    height: 100rpx;
    display: block;
    margin: 0 auto 10rpx;
  }
}
</style>
