detail.vue 3.04 KB
<template>
  <div>
    <div class="box">
      <el-button class="back-btn" @click="goback()">{{ languageLibrary[language].a }}</el-button>
      <el-row class="detail-title">
        <el-col :span="2"><span class="not-start">进行中</span></el-col>
        <el-col :span="6">
          <div style="display: flex;flex-direction: column;">
            <span style="font-size: 20px;font-weight: bold;margin-bottom: 5px">LPT马来西亚巡回赛</span>
            <span>2023-09-08~2023-09-09</span>
          </div>
        </el-col>
        <el-col style="border-left: 1px solid #929AA0;border-right: 1px solid #929AA0" :span="4">
          <div style="display: flex;flex-direction: column;text-align: center">
            <span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].b }}</span>
            <span style="color: #EEEEEE;font-size: 16px">$1111111111111111</span>
          </div>
        </el-col>
        <el-col :span="4">
          <div style="display: flex;flex-direction: column;text-align: center">
            <span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].c }}</span>
            <span style="color: #EEEEEE;font-size: 16px">11111111</span>
          </div>
        </el-col>
      </el-row>

      <el-row>
        <el-col class="photo-space" :lg="12" v-for="item in itemList">
          <div class="photo-img-group">
            <img class="photo-img" :src="fillImgUrl('/fs/20250729/image/8638425535731875840.png')">
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>
<script setup>
import { onMounted, onUnmounted, ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import {useStorage} from "@vueuse/core";

const router = useRouter()
const route = useRoute()
const activeName = ref("first")
const language = useStorage('language', 0)
const languageLibrary = ref([{
  a:'返回',
  b:'总买入费用',
  c:'参赛席位',
},{
  a:'Return',
  b:'Total buy-in fee',
  c:'Entry seats',
},{
  a:'돌아가기',
  b:'총 바이인 금액',
  c:'엔트리 수',
},{
  a:'戻る',
  b:'バイイン総額',
  c:'エントリー数',
},{
  a:'Quay lại',
  b:'Tổng phí Buy-in',
  c:'Số ghế tham gia',
}])

const itemList = ref(['a','a','a','a','a','a','a','a','a'])

onMounted(() => {

})

const goback = function () {
  router.go(-1)
}

</script>
<style lang="scss" scoped>
.box {
  padding: 0 10%;
}

.back-btn {
  font-size: 16px;
  color: #fff;
  background: url("@/assets/v1/arrow_left.png") no-repeat left;
  background-size: auto 35px;
  padding-left: 35px;
  box-shadow: none;
  border: none;
}

.detail-title {
  color: #fff;
  background: #1F2644;
  padding: 40px 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;

  .not-start {
    display: inline-block;
    background: #3194FA;
    border-radius:6px 0 6px 0;
    padding: 0 4px
  }
}

.photo-space {
  padding: 10px;
}

.photo-img-group {
  padding: 20px;
  width: 100%;
  position: relative;
}

.photo-img {
  width: 100%;
  aspect-ratio: 2/1;
  cursor: pointer;
}
</style>