<template>
  <view class="page-container">
    <view class="header">
      <view @click="goBack" class="back-btn">
        <image
          class="back-icon"
          src="https://des.dayunyuanjian.cn/epicSoul/taozi/back.png"
          mode="aspectFill"
        ></image>
      </view>
    </view>
    <image
      class="tag-image"
      :src="showImg('/uploads/20250802/7f125fdb8a2c2ab9c881d6f8fc6f2041.png')"
      mode="aspectFill"
    ></image>
    <image
      style="
        width: 361rpx;
        position: absolute;
        z-index: 2;
        top: 355rpx;
        left: 190rpx;
      "
      :src="showImg('/uploads/20250802/928796306484f1fa101ec113f7e94453.png')"
      mode="widthFix"
    ></image>
    <image
      @click="toBuy"
      style="
        position: absolute;
        bottom: 217rpx;
        width: 456rpx;
        left: 146rpx;
        z-index: 9;
      "
      :src="showImg('/uploads/20250802/92779fd82f7c0c0358ca453fd3071e7b.png')"
      mode="widthFix"
    ></image>
    <!-- 侧边导航组件 -->
    <SideNav :currentIndex="7" />
  </view>
</template>
<script>
import SideNav from "../components/SideNav.vue";
export default {
  components: {
    SideNav,
  },
  data() {
    return {};
  },
  methods: {
    toBuy() {
      uni.navigateTo({
        url: "./secBuy?type=2",
      });
    },
    goBack() {
      uni.navigateBack();
    },
  },
};
</script>

<style lang="scss" scoped>
.header {
  display: flex;
  align-items: center;
  padding: 50rpx 30rpx 30rpx;
  position: relative;
}

.back-btn {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 80rpx;
  height: 80rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-icon {
  width: 50rpx;
  height: 50rpx;
}

.title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48rpx;
  font-weight: bold;
  color: white;
}

.tag-image {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  top: 0;
}

.description {
  text-align: center;
}

.desc-text {
  font-size: 36rpx;
  color: white;
  line-height: 1.6;
}
</style>
