|
|
|
|
@ -15,21 +15,6 @@
|
|
|
|
|
<el-col :span="8">帐户等级:<el-tag class="ml-2" type="success">1</el-tag></el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-card>
|
|
|
|
|
<div class="main2" v-if="pushSwitch">
|
|
|
|
|
<el-card class="box-card">
|
|
|
|
|
<template #header>
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
<span>推荐计划</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<el-input v-model="pushUrl" size="large" readonly @click.stop="handleCopy(pushUrl)">
|
|
|
|
|
<template #append>
|
|
|
|
|
<el-button @click="handleCopy(pushUrl)">复制链接</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-alert :title="'推荐用户首次充值成功后将获得佣金奖励:' + rewardDesc+',奖励可在充值记录中查看'" type="success" :closable="false" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="main2">
|
|
|
|
|
<el-card class="box-card">
|
|
|
|
|
<template #header>
|
|
|
|
|
@ -37,31 +22,32 @@
|
|
|
|
|
<span>服务信息</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<div style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
|
<el-input v-model="serverUrl" size="large" readonly @click.stop="handleCopy(serverUrl)">
|
|
|
|
|
<template #prepend>Api Server:</template>
|
|
|
|
|
<template #append>
|
|
|
|
|
<el-button @click="handleCopy(serverUrl)">复制</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
|
|
|
|
|
|
<el-input v-model="userKey" size="large" readonly @click.stop="handleCopy(userKey)">
|
|
|
|
|
<template #prepend>Api Key:</template>
|
|
|
|
|
<template #append>
|
|
|
|
|
<el-button @click="handleCopy(userKey)">复制</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
|
<el-input v-model="serverUrl2" size="large" type="password" readonly @click.stop="handleCopy(serverUrl2)">
|
|
|
|
|
<template #prepend>Api Server备用:</template>
|
|
|
|
|
<template #append>
|
|
|
|
|
<el-button @click="handleCopy(serverUrl2)">复制</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
|
<el-input v-model="serverUrl" size="large" readonly @click.stop="handleCopy(serverUrl)">
|
|
|
|
|
<template #prepend>Api Server:</template>
|
|
|
|
|
<template #append>
|
|
|
|
|
<el-button @click="handleCopy(serverUrl)">复制</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
|
|
|
|
|
|
<el-input v-model="userKey" size="large" readonly @click.stop="handleCopy(userKey)">
|
|
|
|
|
<template #prepend>Api Key:</template>
|
|
|
|
|
<template #append>
|
|
|
|
|
<el-button @click="handleCopy(userKey)">复制</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
|
<el-input v-model="serverUrl2" size="large" type="password" readonly @click.stop="handleCopy(serverUrl2)">
|
|
|
|
|
<template #prepend>Api Server备用:</template>
|
|
|
|
|
<template #append>
|
|
|
|
|
<el-button @click="handleCopy(serverUrl2)">复制</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-alert title="点击输入框或按钮可直接复制" type="success" :closable="false" />
|
|
|
|
|
</div>
|
|
|
|
|
@ -99,7 +85,6 @@
|
|
|
|
|
|
|
|
|
|
<script setup name="Index">
|
|
|
|
|
import { getCertIndex } from '@/api/cert/index'
|
|
|
|
|
import { getConfigKey } from "@/api/system/config";
|
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
@ -109,33 +94,14 @@ const serverUrl2 = ref("");
|
|
|
|
|
const userKey = ref("");
|
|
|
|
|
const userBalance = ref(0);
|
|
|
|
|
const userBalanceMonth = ref(0);
|
|
|
|
|
const pushUrl = ref("");
|
|
|
|
|
const pushSwitch = ref("N")
|
|
|
|
|
const rewardDesc = ref("")
|
|
|
|
|
|
|
|
|
|
function getIndex() {
|
|
|
|
|
// 是否开启推广链接
|
|
|
|
|
getConfigKey("invite.distribution.switch").then(response => {
|
|
|
|
|
pushSwitch.value = response.msg;
|
|
|
|
|
});
|
|
|
|
|
getConfigKey("invite.distribution.type").then(resp1 => {
|
|
|
|
|
getConfigKey("invite.distribution.quota").then(resp2 => {
|
|
|
|
|
const type = resp1.msg
|
|
|
|
|
const quota = resp2.msg
|
|
|
|
|
if (type == "percent") {
|
|
|
|
|
rewardDesc.value = "被邀请用户首单充值"+quota+"%"
|
|
|
|
|
}else {
|
|
|
|
|
rewardDesc.value = quota +"元"
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
getCertIndex().then(response => {
|
|
|
|
|
serverUrl.value = response.data.serverUrl
|
|
|
|
|
serverUrl2.value = response.data.serverUrl2
|
|
|
|
|
userKey.value = response.data.userKey
|
|
|
|
|
userBalance.value = response.data.userBalance
|
|
|
|
|
userBalanceMonth.value = response.data.userBalanceMonth
|
|
|
|
|
pushUrl.value = response.data.pushUrl
|
|
|
|
|
modelList.value = response.data.modelList
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|