代码修改
This commit is contained in:
parent
b2ebdca17d
commit
6ec2e38d13
@ -318,7 +318,7 @@ const performExchange = async () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// 调用兑换接口
|
// 调用兑换接口
|
||||||
const response = await exchangePoint({
|
const response:any = await exchangePoint({
|
||||||
exchange_value: selectedExchangeAmount.value
|
exchange_value: selectedExchangeAmount.value
|
||||||
})
|
})
|
||||||
console.log('兑换结果:', response)
|
console.log('兑换结果:', response)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<!-- 左侧栏:实例、数据、邀请好友 -->
|
<!-- 左侧栏:实例、数据、邀请好友 -->
|
||||||
<a-col :span="16">
|
<a-col :span="16">
|
||||||
<!-- 实例卡片 -->
|
<!-- 实例卡片 -->
|
||||||
<a-card title="GPU容器实例" class="card">
|
<a-card title="GPU容器实例" class="card gpu-card">
|
||||||
<a-row :gutter="32" align="middle">
|
<a-row :gutter="32" align="middle">
|
||||||
<!-- 第一栏:容器实例和运行中 -->
|
<!-- 第一栏:容器实例和运行中 -->
|
||||||
<a-col :span="18">
|
<a-col :span="18">
|
||||||
@ -44,14 +44,17 @@
|
|||||||
|
|
||||||
<!-- 邀请好友卡片 -->
|
<!-- 邀请好友卡片 -->
|
||||||
<a-card title="邀请好友得算力券" class="card margin-top">
|
<a-card title="邀请好友得算力券" class="card margin-top">
|
||||||
|
<template #extra>
|
||||||
|
<a-button type="link" @click="goToRules">活动规则</a-button>
|
||||||
|
</template>
|
||||||
<a-row :gutter="24" class="invite-container">
|
<a-row :gutter="24" class="invite-container">
|
||||||
<!-- 左侧:邀请信息和链接 -->
|
<!-- 左侧:邀请信息和链接 -->
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="invite-content">
|
<div class="invite-content">
|
||||||
<div class="invite-status">
|
<div class="invite-status">
|
||||||
<div class="status-icon">
|
<!-- <div class="status-icon">
|
||||||
<LinkOutlined />
|
<LinkOutlined />
|
||||||
</div>
|
</div> -->
|
||||||
<div class="status-text">
|
<div class="status-text">
|
||||||
<div class="status-title">暂无邀请链接</div>
|
<div class="status-title">暂无邀请链接</div>
|
||||||
<div class="status-desc">
|
<div class="status-desc">
|
||||||
@ -61,33 +64,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="invite-actions">
|
<div class="invite-actions">
|
||||||
<a-button
|
<a-button type="primary" class="generate-btn" @click="generateInviteLink">
|
||||||
type="primary"
|
|
||||||
class="generate-btn"
|
|
||||||
@click="generateInviteLink"
|
|
||||||
>
|
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<PlusOutlined />
|
<PlusOutlined />
|
||||||
</template>
|
</template>
|
||||||
生成邀请链接
|
生成邀请链接
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|
||||||
<!-- 新增:活动规则链接 -->
|
|
||||||
<a-button
|
|
||||||
type="link"
|
|
||||||
class="rules-link"
|
|
||||||
@click="goToRules"
|
|
||||||
>
|
|
||||||
<template #icon>
|
|
||||||
<QuestionCircleOutlined />
|
|
||||||
</template>
|
|
||||||
查看活动规则
|
|
||||||
</a-button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
|
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
@ -112,10 +97,12 @@
|
|||||||
<CopyOutlined />
|
<CopyOutlined />
|
||||||
</i>
|
</i>
|
||||||
</p>
|
</p>
|
||||||
<a-tag :color="getCertifyName(userInfo.certificationStatus).color">{{ getCertifyName(userInfo.certificationStatus).name }}</a-tag>
|
<a-tag :color="getCertifyName(userInfo.certificationStatus).color">{{
|
||||||
|
getCertifyName(userInfo.certificationStatus).name }}</a-tag>
|
||||||
<!-- <p>{{getCertifyName(userInfo.certificationStatus).name}}</p> -->
|
<!-- <p>{{getCertifyName(userInfo.certificationStatus).name}}</p> -->
|
||||||
</div>
|
</div>
|
||||||
<span class="btn-item" style="cursor: pointer;" @click="router.push('/layout/admin/accountSet')">
|
<span class="btn-item" style="cursor: pointer;"
|
||||||
|
@click="router.push('/layout/admin/accountSet')">
|
||||||
账户设置
|
账户设置
|
||||||
<ArrowRightOutlined />
|
<ArrowRightOutlined />
|
||||||
</span>
|
</span>
|
||||||
@ -125,9 +112,9 @@
|
|||||||
|
|
||||||
<!-- 我的余额 -->
|
<!-- 我的余额 -->
|
||||||
<div class="asset-item">
|
<div class="asset-item">
|
||||||
<div class="asset-icon-box balance-icon">
|
<!-- <div class="asset-icon-box balance-icon">
|
||||||
<WalletOutlined class="asset-icon" />
|
<WalletOutlined class="asset-icon" />
|
||||||
</div>
|
</div> -->
|
||||||
<div class="asset-content">
|
<div class="asset-content">
|
||||||
<div class="asset-name">我的余额</div>
|
<div class="asset-name">我的余额</div>
|
||||||
<div class="asset-value" v-if="userInfo.balance >= 0">
|
<div class="asset-value" v-if="userInfo.balance >= 0">
|
||||||
@ -143,9 +130,9 @@
|
|||||||
|
|
||||||
<!-- 我的权益 -->
|
<!-- 我的权益 -->
|
||||||
<div class="asset-item">
|
<div class="asset-item">
|
||||||
<div class="asset-icon-box coupon-icon">
|
<!-- <div class="asset-icon-box coupon-icon">
|
||||||
<TagOutlined class="asset-icon" />
|
<TagOutlined class="asset-icon" />
|
||||||
</div>
|
</div> -->
|
||||||
<div class="asset-content">
|
<div class="asset-content">
|
||||||
<div class="asset-name">我的权益</div>
|
<div class="asset-name">我的权益</div>
|
||||||
<div class="rights-info">
|
<div class="rights-info">
|
||||||
@ -306,12 +293,15 @@ const goToInvoice = () => {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gpu-card {
|
||||||
|
background: linear-gradient(180deg, rgba(250, 252, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
.margin-top {
|
.margin-top {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 实例卡片样式 */
|
/* 实例卡片样式 */
|
||||||
.stats-column {
|
.stats-column {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -395,7 +385,9 @@ const goToInvoice = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.status-text {
|
.status-text {
|
||||||
|
width: 100%;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-title {
|
.status-title {
|
||||||
@ -413,10 +405,8 @@ const goToInvoice = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.invite-actions {
|
.invite-actions {
|
||||||
display: flex;
|
width: 100%;
|
||||||
align-items: center;
|
text-align: center;
|
||||||
gap: 16px;
|
|
||||||
margin-top: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.generate-btn {
|
.generate-btn {
|
||||||
@ -689,14 +679,16 @@ const goToInvoice = () => {
|
|||||||
/* 算力点特殊样式 */
|
/* 算力点特殊样式 */
|
||||||
.rights-item:first-child {
|
.rights-item:first-child {
|
||||||
.rights-amount {
|
.rights-amount {
|
||||||
color: #fa8c16; /* 算力点用橙色 */
|
color: #fa8c16;
|
||||||
|
/* 算力点用橙色 */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 算力券特殊样式 */
|
/* 算力券特殊样式 */
|
||||||
.rights-item:last-child {
|
.rights-item:last-child {
|
||||||
.rights-amount {
|
.rights-amount {
|
||||||
color: #1890ff; /* 算力券用蓝色 */
|
color: #1890ff;
|
||||||
|
/* 算力券用蓝色 */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -731,6 +723,7 @@ const goToInvoice = () => {
|
|||||||
|
|
||||||
.nav-account {
|
.nav-account {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
margin-top: -20px;
|
||||||
|
|
||||||
:first-child {
|
:first-child {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@ -767,7 +760,7 @@ const goToInvoice = () => {
|
|||||||
height: 20px;
|
height: 20px;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
margin-top: 42px;
|
margin-top: 30px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border: 1px solid rgba(166, 166, 166, 1);
|
border: 1px solid rgba(166, 166, 166, 1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user